Examples of outputToFile()


Examples of com.talixa.audio.wav.WaveFile.outputToFile()

 
  public static void mix(short[] background, short[] foreground, MixerMode mode, String outputFile) throws IOException {
    short[] mixed = mix(background,foreground, mode);
    byte[] byteData = SharedDSPFunctions.shortArrayToByteArray(mixed);   
    WaveFile w = WaveGenerator.generateWaveFromRaw16bitPcm(byteData);   
    w.outputToFile(outputFile);   
  }
 
  public static void main(String args[]) {       
    try {
      short[] sample1k = ToneGenerator.generateWave(1000, .1, 30);
View Full Code Here

Examples of com.talixa.audio.wav.WaveFile.outputToFile()

 
  public static void shiftDown(short[] data, int frequency, String outputFile) throws IOException {
    short[] shifted = shiftDown(data, frequency);         
    byte[] byteData = SharedDSPFunctions.shortArrayToByteArray(shifted);                   
    WaveFile out = WaveGenerator.generateWaveFromRaw16bitPcm(byteData);
    out.outputToFile(outputFile);   
  }
 
  public static short[] shiftUp(short[] data, int frequency) {
    return doDoubleShift(data, frequency);
  }
View Full Code Here

Examples of com.talixa.audio.wav.WaveFile.outputToFile()

 
  public static void shiftUp(short[] data, int frequency, String outputFile) throws IOException {
    short[] shifted = shiftUp(data, frequency);         
    byte[] byteData = SharedDSPFunctions.shortArrayToByteArray(shifted);                   
    WaveFile out = WaveGenerator.generateWaveFromRaw16bitPcm(byteData);
    out.outputToFile(outputFile);   
  }
 
  public static void main(String args[]) {
    String testFile = "/home/thomas/audio/1000Hz.wav";
    String downFile  = "/home/thomas/audio/900Hz.wav";
View Full Code Here

Examples of com.talixa.audio.wav.WaveFile.outputToFile()

 
  public static void generateWave(double frequency, double volume, int length, int phase, String outputFile) throws IOException {
    short[] data = generateWave(frequency, volume, length, phase);
    byte[] byteData = SharedDSPFunctions.shortArrayToByteArray(data);   
    WaveFile w = WaveGenerator.generateWaveFromRaw16bitPcm(byteData);   
    w.outputToFile(outputFile);   
  }
 
  public static short[] generateWave(double frequency, double volume, int length) {
    return generateWave(frequency,volume,length,0);
  }
View Full Code Here

Examples of com.talixa.audio.wav.WaveFile.outputToFile()

 
  public static void filterData(short[] data, int lowFreq, int highFreq, String outputFile) throws IOException {               
    short[] filteredData = filterData(data, lowFreq, highFreq);           
    byte[] byteData = SharedDSPFunctions.shortArrayToByteArray(filteredData);                   
    WaveFile out = WaveGenerator.generateWaveFromRaw16bitPcm(byteData);
    out.outputToFile(outputFile);   
  }
 
  public static void main(String args[]) {
    String testFile = "/home/thomas/audio/rtty-psk.wav";   
    try {     
View Full Code Here

Examples of com.talixa.audio.wav.WaveFile.outputToFile()

 
  public static void setGain(short[] data, double gain, String outputFile) throws IOException {
    short[] newData = setGain(data,gain);
    byte[] byteData = SharedDSPFunctions.shortArrayToByteArray(newData);   
    WaveFile w = WaveGenerator.generateWaveFromRaw16bitPcm(byteData);   
    w.outputToFile(outputFile);   
  }   
}
View Full Code Here

Examples of com.talixa.audio.wav.WaveFile.outputToFile()

           // Save this chunk of data.
           out.write(data, 0, numBytesRead);
        }    
       
        WaveFile test = WaveGenerator.generateWaveFromRaw16bitPcm(out.toByteArray());
        test.outputToFile(outputFile);
     
      } catch (LineUnavailableException e) {
        e.printStackTrace();
      } catch (IOException e) {
        e.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.