Examples of advanceAll()


Examples of de.maramuse.soundcomp.util.AdvancerRegistry.advanceAll()

    m2.setSource(IN.i, gate, OUT.i);
    advancerRegistry.registerAdvancer(ws1);
    double lastVal=0;
    int lastIndex=0;
    for(double t=0; t<10.5; t+=1/globalParameters.getSampleRate()){
    advancerRegistry.advanceAll();
    // ws1.getChannel(0).add(0.5*mix.getValue(StandardParameters.OUT.i));
    // ws1.getChannel(1).add(0.5*gate.getValue(StandardParameters.OUT.i));
    double newVal=gate.getValue(StandardParameters.OUT.i);
    if(lastVal<1&&newVal>0){
      cos.setSource(StandardParameters.FREQUENCY.i, notes[lastIndex], StandardParameters.OUT.i);
View Full Code Here

Examples of de.maramuse.soundcomp.util.AdvancerRegistry.advanceAll()

    m2.setSource(IN.i, gate, OUT.i);
    advancerRegistry.registerAdvancer(ws1);
    lastVal=0;
    lastIndex=0;
    for(double t=0; t<10.5; t+=1/globalParameters.getSampleRate()){
    advancerRegistry.advanceAll();
    // ws1.getChannel(0).add(0.5*mix.getValue(StandardParameters.OUT.i));
    // ws1.getChannel(1).add(0.5*gate.getValue(StandardParameters.OUT.i));
    double newVal=gate.getValue(StandardParameters.OUT.i);
    if(lastVal<1&&newVal>0){
      cos.setSource(StandardParameters.FREQUENCY.i, notes[lastIndex], StandardParameters.OUT.i);
View Full Code Here

Examples of de.maramuse.soundcomp.util.AdvancerRegistry.advanceAll()

    m2.setSource(IN.i, gate, OUT.i);
    advancerRegistry.registerAdvancer(ws1);
    double lastVal=0;
    int lastIndex=0;
    for(; time.getValue(StandardParameters.OUT.i)<10.5;){
    advancerRegistry.advanceAll();
    // ws1.getChannel(0).add(0.5*mix.getValue(StandardParameters.OUT.i));
    // ws1.getChannel(1).add(0.5*gate.getValue(StandardParameters.OUT.i));
    double newVal=gate.getValue(StandardParameters.OUT.i);
    if(lastVal<1&&newVal>0){
      fmul.setSource(StandardParameters.IN.i, notes[lastIndex], StandardParameters.OUT.i);
View Full Code Here

Examples of de.maramuse.soundcomp.util.AdvancerRegistry.advanceAll()

    advancerRegistry.registerAdvancer(pe);
    OutputFile ws=new OutputFile(1);
    advancerRegistry.registerAdvancer(ws);
    ws.setSource(0, pe, OUT.i);
    for(double time=0; time<1.5; time+=1/globalParameters.getSampleRate()){
    advancerRegistry.advanceAll();
    }
    File f=new File("hh-o.wav");
    BufferedOutputStream fos=new BufferedOutputStream(new FileOutputStream(f), fileBufferSize);
    ws.setFormat(FileFormats.FMT_WAVE_S16);
    ws.write(fos);
View Full Code Here

Examples of de.maramuse.soundcomp.util.AdvancerRegistry.advanceAll()

    fl.setSource(FREQUENCY.i, ConstStream.c(0.366), OUT.i);
    fl.setSource(DEPTH.i, ConstStream.c(0.0025), OUT.i);
    fl.setSource(MAXDELAY.i, ConstStream.c(0.0075), OUT.i);
    fl.setSource(DELAY.i, ConstStream.c(0.0033), OUT.i);
    for(double time=0; time==0||in.getValue(GATE.i)>0; time+=1/globalParameters.getSampleRate()){
    advancerRegistry.advanceAll();
    }
    File f=new File("flanger-out.wav");
    BufferedOutputStream fos=new BufferedOutputStream(new FileOutputStream(f), fileBufferSize);
    of.setFormat(FileFormats.FMT_WAVE_S16);
    of.write(fos);
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.