Package de.maramuse.soundcomp.process

Examples of de.maramuse.soundcomp.process.Event.addElement()


    bd.addElement(m2);
    bd.addElement(p1);
    bd.addElement(p2);
    bd.addElement(st);
    bd.addElement(m3);
    bd.addElement(m4);
    m3.setSource(IN_IMAG.i, m, OUT.i);
    m3.setSource(IN.i, ConstStream.c(left), OUT.i);
    m4.setSource(IN_IMAG.i, m, OUT.i);
    m4.setSource(IN.i, ConstStream.c(right), OUT.i);
  }catch(UnknownConnectionException e){
View Full Code Here


  synchronized(hihatsync){
    Event hihat_open=new Event();
    InputFile ifho=new InputFile("javasrc/de/maramuse/soundcomp/test/testfiles/hh-o.wav");
    hihat_open.setDuration(0.025);
    hihat_open.setLivetime(1.25);
    hihat_open.addElement(ifho);
    /*
     * we would have to disregister the open hihat when it is hit closed, but not at creation time, rather at run
     * time. if(hihat!=null){ hihat.die(); drums_L.disconnect(hihatcl); drums_R.disconnect(hihatcr); }
     */
    hihat_open.setAbstractName("hihat_open");
View Full Code Here

    m4.setSource(IN_IMAG.i, ifhc, OUT.i);
    m4.setSource(IN.i, ConstStream.c(right), OUT.i);
    }catch(Exception ex){
    ex.printStackTrace();
    }
    hihat_closed.addElement(ifhc);
    hihat_closed.addElement(m3);
    hihat_closed.addElement(m4);
    hihat_closed.addMixerConnection(drums_L, m3, OUT.i);
    hihat_closed.addMixerConnection(drums_R, m4, OUT.i);
    return hihat=hihat_closed;
View Full Code Here

    m4.setSource(IN.i, ConstStream.c(right), OUT.i);
    }catch(Exception ex){
    ex.printStackTrace();
    }
    hihat_closed.addElement(ifhc);
    hihat_closed.addElement(m3);
    hihat_closed.addElement(m4);
    hihat_closed.addMixerConnection(drums_L, m3, OUT.i);
    hihat_closed.addMixerConnection(drums_R, m4, OUT.i);
    return hihat=hihat_closed;
  }
View Full Code Here

    }catch(Exception ex){
    ex.printStackTrace();
    }
    hihat_closed.addElement(ifhc);
    hihat_closed.addElement(m3);
    hihat_closed.addElement(m4);
    hihat_closed.addMixerConnection(drums_L, m3, OUT.i);
    hihat_closed.addMixerConnection(drums_R, m4, OUT.i);
    return hihat=hihat_closed;
  }
  }
View Full Code Here

  }
  event.setLivetime(event.getDuration()+1);
  event.setFrequency(n.frequency);
  // System.out.println("solo note "+n.frequency+"Hz at "+ts+" for "+event.getDuration()+"/"+event.getLivetime()+"(beats:"+n.beats+","+tempo+")");
  event.setPitch(n.pitch);
  event.addElement(st);
  event.addElement(pn);
  event.addElement(noisevol);
  event.addElement(noiseenv);
  event.addElement(sawvol);
  event.addElement(sawenv);
View Full Code Here

  event.setLivetime(event.getDuration()+1);
  event.setFrequency(n.frequency);
  // System.out.println("solo note "+n.frequency+"Hz at "+ts+" for "+event.getDuration()+"/"+event.getLivetime()+"(beats:"+n.beats+","+tempo+")");
  event.setPitch(n.pitch);
  event.addElement(st);
  event.addElement(pn);
  event.addElement(noisevol);
  event.addElement(noiseenv);
  event.addElement(sawvol);
  event.addElement(sawenv);
  event.addElement(out);
View Full Code Here

  event.setFrequency(n.frequency);
  // System.out.println("solo note "+n.frequency+"Hz at "+ts+" for "+event.getDuration()+"/"+event.getLivetime()+"(beats:"+n.beats+","+tempo+")");
  event.setPitch(n.pitch);
  event.addElement(st);
  event.addElement(pn);
  event.addElement(noisevol);
  event.addElement(noiseenv);
  event.addElement(sawvol);
  event.addElement(sawenv);
  event.addElement(out);
  NoteGateOffEvent ng0e=new NoteGateOffEvent(event, ts+event.getDuration(), advancerRegistry);
View Full Code Here

  // System.out.println("solo note "+n.frequency+"Hz at "+ts+" for "+event.getDuration()+"/"+event.getLivetime()+"(beats:"+n.beats+","+tempo+")");
  event.setPitch(n.pitch);
  event.addElement(st);
  event.addElement(pn);
  event.addElement(noisevol);
  event.addElement(noiseenv);
  event.addElement(sawvol);
  event.addElement(sawenv);
  event.addElement(out);
  NoteGateOffEvent ng0e=new NoteGateOffEvent(event, ts+event.getDuration(), advancerRegistry);
  NoteBirthEvent nbe=new NoteBirthEvent(event, ts, advancerRegistry);
View Full Code Here

  event.setPitch(n.pitch);
  event.addElement(st);
  event.addElement(pn);
  event.addElement(noisevol);
  event.addElement(noiseenv);
  event.addElement(sawvol);
  event.addElement(sawenv);
  event.addElement(out);
  NoteGateOffEvent ng0e=new NoteGateOffEvent(event, ts+event.getDuration(), advancerRegistry);
  NoteBirthEvent nbe=new NoteBirthEvent(event, ts, advancerRegistry);
  NoteGateOnEvent ng1e=new NoteGateOnEvent(event, ts+1.01/globalParameters.getSampleRate(),
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.