Examples of InputFile


Examples of de.maramuse.soundcomp.files.InputFile

  private Event getCrash(double left, double right) {
  // create the crash cymbal
  // TODO a crash cymbal, when hit multiple times, does not create overlaying sounds, the older sound
  // would need to be stopped similar to the hihat handling
  Event crash=new Event();
  InputFile ifsn=new InputFile("javasrc/de/maramuse/soundcomp/test/testfiles/crash.wav");
  crash.setDuration(0.025);
  crash.setLivetime(5.25);
  crash.addElement(ifsn);
  crash.setAbstractName("crash");
  crash.setInstanceName("crash"+nameCount++);
View Full Code Here

Examples of de.maramuse.soundcomp.files.InputFile

  // create the ride cymbal
  // TODO a ride cymbal is played in multiple, clearly distinct ways
  // TODO a ride cymbal, when hit multiple times, does not create simple overlaying sounds, the older sound
  // would need to be influenced on a second hit depending on what kind of hit occurs
  Event ride=new Event();
  InputFile ifsn=new InputFile("javasrc/de/maramuse/soundcomp/test/testfiles/ride.wav");
  ride.setDuration(0.025);
  ride.setLivetime(5.25);
  ride.addElement(ifsn);
  ride.setAbstractName("ride");
  ride.setInstanceName("ride"+nameCount++);
View Full Code Here

Examples of de.maramuse.soundcomp.files.InputFile

  private Event getHHOpen(double left, double right) {
  // create the open hihat from a sampled file
  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
View Full Code Here

Examples of de.maramuse.soundcomp.files.InputFile

  private Event getHHClosed(double left, double right) {
  // create the closed hihat from a sampled file
  synchronized(hihatsync){
    Event hihat_closed=new Event();
    mul m3=new mul(), m4=new mul();
    InputFile ifhc=new InputFile("javasrc/de/maramuse/soundcomp/test/testfiles/hh-c.wav");
    ifhc.setAbstractName("ifhc");
    ifhc.setInstanceName("ifhc"+nameCount++);
    hihat_closed.setDuration(0.025);
    hihat_closed.setLivetime(0.5);
    /*
     * 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); }
View Full Code Here

Examples of de.maramuse.soundcomp.files.InputFile

  public void testTS9() {
  try{
    AdvancerRegistry advancerRegistry=new AdvancerRegistry();
    advancerRegistry.clear();
    globalParameters.setSampleRate(44100);
    ProcessElement pe=new InputFile("javasrc/de/maramuse/soundcomp/test/testfiles/hh-o.wav");
    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()){
View Full Code Here

Examples of de.maramuse.soundcomp.files.InputFile

  try{
    if(!new File("flanger-in.wav").exists())return;
    AdvancerRegistry advancerRegistry=new AdvancerRegistry();
    advancerRegistry.clear();
    globalParameters.setSampleRate(44100);
    ProcessElement in=new InputFile("flanger-in.wav");
    Flanger fl=new Flanger();
    mul _mul1=new mul(), _mul2=new mul();
    _mul1.setSource(IN.i, fl, OUT.i);
    _mul1.setSource(IN_IMAG.i, ConstStream.c(0.5), OUT.i);
    _mul2.setSource(IN.i, fl, OUT_IMAG.i);
    _mul2.setSource(IN_IMAG.i, ConstStream.c(0.5), OUT.i);
    OutputFile of=new OutputFile(2);
    advancerRegistry.registerAdvancer(of);
    advancerRegistry.registerAdvancer(fl);
    advancerRegistry.registerAdvancer(in);
    advancerRegistry.registerAdvancer(_mul1);
    advancerRegistry.registerAdvancer(_mul2);
    of.setSource(0, _mul1, OUT.i);
    of.setSource(-1, _mul2, OUT.i);
    fl.setSource(IN.i, in, OUT.i);
    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);
View Full Code Here

Examples of jadx.core.utils.files.InputFile

      throw new JadxException("Empty file list");
    }
    inputFiles.clear();
    for (File file : files) {
      try {
        inputFiles.add(new InputFile(file));
      } catch (IOException e) {
        throw new JadxException("Error load file: " + file, e);
      }
    }
    parse();
View Full Code Here

Examples of jadx.core.utils.files.InputFile

    for (int i = 1; i < args.length; i++) {
      File f = new File(args[i]);
      if (f.isDirectory()) {
        addFilesFromDirectory(f, inputFiles);
      } else {
        inputFiles.add(new InputFile(f));
      }
    }
    for (InputFile inputFile : inputFiles) {
      LOG.info("Loaded: {}", inputFile.getFile());
    }
View Full Code Here

Examples of jadx.core.utils.files.InputFile

    for (File file : files) {
      if (file.isDirectory()) {
        addFilesFromDirectory(file, inputFiles);
      }
      if (file.getName().endsWith(".dex")) {
        inputFiles.add(new InputFile(file));
      }
    }
  }
View Full Code Here

Examples of net.pms.dlna.InputFile

        "-noskip",
        "-of", "rawvideo",
        "-o", ffVideoPipe.getInputPipe()
      };

      InputFile newInput = new InputFile();
      newInput.setFilename(filename);
      newInput.setPush(params.stdin);

      /**
       * Note: This logic is weird; on one hand we check if the renderer requires videos to be Level 4.1 or below, but then
       * the other function allows the video to exceed those limits.
       * In reality this won't cause problems since renderers typically don't support above 4.1 anyway - nor are many
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.