Examples of Synthesizer


Examples of com.meapsoft.Synthesizer

   
    currentTime += oldChunk.length;
      }
        edl.haveReadFile = true;

        Synthesizer synth = new Synthesizer(edl, null);
        playThread = new Thread(synth, "synthesizer");
        playThread.start();
    }
View Full Code Here

Examples of com.meapsoft.Synthesizer

    return featsFile;
  }
 
  public static String compose(EDLFile edl, String outputSoundFileName)
  {
    Synthesizer synth = new Synthesizer(edl, outputSoundFileName);
    synth.run();
   
    return null;
  }
View Full Code Here

Examples of com.meapsoft.Synthesizer

        {
            EDLFile edl = new EDLFile("null");
            BlipComposer b = new BlipComposer(segmentFile, edl);
            b.setBlipWav(dataDirectory + slash + "blip.wav");
            b.compose();
            Synthesizer synth = new Synthesizer(edl, null);
           
            //add the waveform panel as a line listener
            synth.addLineListener((LineListener)meapsoftGUI.waveformPanel);
           
            if(playThread != null)
            {
                playThread.interrupt();
                playThread.stop();
View Full Code Here

Examples of com.meapsoft.Synthesizer

        {
      GUIUtils.ShowDialog("You need to pick an output file!!!", GUIUtils.MESSAGE, mMainScreen);
            return -1;
        }
   
    Synthesizer synth = new Synthesizer(edlFile, outputSoundFileNameFull);
        synth.writeMEAPFile = MEAPUtil.writeMEAPFile;

      //update the progress bar
      mMainScreen.updateProgressBar("Synthesizing...", synth.getProgress());
       
        try
        {
            synth.doSynthesizer();
        }
        catch(Exception e)
        {
      GUIUtils.ShowDialog(e, "Error synthesizing audio file", GUIUtils.MESSAGE, mMainScreen);
            return -1;
View Full Code Here

Examples of com.meapsoft.Synthesizer

        {
      GUIUtils.ShowDialog("You need to pick an output file!!!", GUIUtils.MESSAGE, meapsoftGUI.jframe);
            return -1;
        }
   
    Synthesizer synth = new Synthesizer(edlFile, outputSoundFileNameFull);
        synth.writeMEAPFile = meapsoftGUI.writeMEAPFile;

        JPanel progressPanel = new JPanel();
        progressPanel.add(new JLabel("Synthesizing: "));
        JProgressBar progressBar = new JProgressBar(synth.getProgress());
        progressBar.setStringPainted(true);
        progressPanel.add(progressBar);
        meapsoftGUI.setProgressPanel(progressPanel);

        try
        {
            synth.doSynthesizer();
        }
        catch(Exception e)
        {
      GUIUtils.ShowDialog(e, "Error synthesizing audio file", GUIUtils.MESSAGE, meapsoftGUI.jframe);
            return -1;
View Full Code Here

Examples of com.meapsoft.Synthesizer

           e.printStackTrace();
         }
         }
        
             //create a synth from this edl file
             mSynth = new Synthesizer(edl, null);
            
             //are we being visualized?
         if(mVisualized)
         {
           //if the original, add the waveform as listener
View Full Code Here

Examples of com.meapsoft.Synthesizer

      currentTime += oldChunk.length;
    }
    edl.haveReadFile = true;

    Synthesizer synth = new Synthesizer(edl, null);
    playThread = new Thread(synth, "synthesizer");
    playThread.start();
  }
View Full Code Here

Examples of javax.sound.midi.Synthesizer

public class Main {

  public static void main(String[] args) throws MidiUnavailableException, InterruptedException {

    Synthesizer synth = MidiSystem.getSynthesizer();
    synth.open();

    MidiChannel[] channels = synth.getChannels();
    MidiChannel channel = channels[0];

    Instrument[] instr = synth.getDefaultSoundbank().getInstruments();
    synth.loadInstrument(instr[0]);

    Piano piano = new Piano(3, -1, channel);

    PianoFrame frame = new PianoFrame(piano);
    frame.setVisible(true);
View Full Code Here

Examples of javax.sound.midi.Synthesizer

        ret.init();
        return ret;
    }

    public static String[] getInstruments() {
        Synthesizer synthesizer = null;
        try {
            synthesizer = MidiSystem.getSynthesizer();
            synthesizer.open();
            synthesizer.loadAllInstruments(synthesizer.getDefaultSoundbank());
        } catch (MidiUnavailableException ex) {
            ex.printStackTrace();
        }
        Instrument in[] = synthesizer.getLoadedInstruments();
        String ret[] = new String[in.length];
        for (int x = 0; x < in.length; x++) {
            ret[x] = in[x].getName();
        }
        return ret;
View Full Code Here

Examples of javax.sound.midi.Synthesizer

    }

    public void init() {
        try {
            // events directly to the Synthesizer instead.
            Synthesizer synthesizer = MidiSystem.getSynthesizer();
            synthesizer.open();

            synthesizer.loadAllInstruments(synthesizer.getDefaultSoundbank());
            Instrument in[] = synthesizer.getLoadedInstruments();

            synthesizer.loadInstrument(in[70]);
            channel = synthesizer.getChannels()[0];
        } catch (MidiUnavailableException ex) {
            ex.printStackTrace();
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.