Package de.maramuse.soundcomp.process

Examples of de.maramuse.soundcomp.process.Mixer


  }
  }

  // create the frame structure for the pad instrument
  private void createPad() {
  pad_L=new Mixer();
  pad_L.setAbstractName("pad_L");
  pad_L.setInstanceName("pad_L");
  pad_R=new Mixer();
  pad_R.setAbstractName("pad_R");
  pad_R.setInstanceName("pad_R");
  advancerRegistry.registerAdvancer(pad_L);
  advancerRegistry.registerAdvancer(pad_R);
  for(int t=0; t<400; t++){
View Full Code Here


  }

  // create the frame structure for the drums instrument, and all the monophonous singleton instruments
  private void createDrumset() throws UnknownConnectionException, TypeMismatchException {
  // noise generation is handled globally. maybe not optimal, but good enough for this demo
  drums_R=new Mixer();
  drums_R.setAbstractName("drums_R");
  drums_R.setInstanceName("drums_R");
  advancerRegistry.registerAdvancer(drums_R);
  drums_L=new Mixer();
  drums_L.setAbstractName("drums_L");
  drums_L.setInstanceName("drums_L");
  advancerRegistry.registerAdvancer(drums_L);

  for(int t=0; t<400; t++){
View Full Code Here

  public void testComplexSong() {
  try{
    double calcTime=System.currentTimeMillis();
    advancerRegistry.clear();
    globalParameters.setSampleRate(44100);
    Mixer mixL=new Mixer();
    mixL.setAbstractName("mixL");
    mixL.setInstanceName("mixL");
    Mixer mixR=new Mixer();
    mixR.setAbstractName("mixR");
    mixR.setInstanceName("mixR");
    createBass();
    createPad();
    createSolo();
    createDrumset();
    System.out.println(""+(System.currentTimeMillis()-calcTime)/1000+": events created");
    mixL.setSource(-1, bass_L, OUT.i);
    mixL.setSource(-4, drums_L, OUT.i);
    mixL.setSource(-2, pad_L, OUT.i);
    mixL.setSource(-3, solo_L, OUT.i);
    mixR.setSource(-1, bass_R, OUT.i);
    mixR.setSource(-4, drums_R, OUT.i);
    mixR.setSource(-2, pad_R, OUT.i);
    mixR.setSource(-3, solo_R, OUT.i);
    OutputFile of=new OutputFile(2);
    Time time=new Time();
    of.setSource(0, mixL, OUT.i);
    of.setSource(-1, mixR, OUT.i);
    advancerRegistry.registerAdvancer(time);
View Full Code Here

TOP

Related Classes of de.maramuse.soundcomp.process.Mixer

Copyright © 2018 www.massapicom. 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.