Package edu.purdue.wind

Examples of edu.purdue.wind.SineGenerator


  }

  Wave wave = new Wave((short)1, SAMPLE_BITS, SAMPLE_RATE);
  int[][] samples = new int[1][(int)(SAMPLE_RATE * duration)];

  SineGenerator generator = new SineGenerator(SAMPLE_RATE,
                (int)SAMPLE_BITS,
                1, freq);
  generator.generate(samples);

  wave.setSampleData(samples);

  FileOutputStream fos = new FileOutputStream(file);
  wave.writeFile(fos);
View Full Code Here

TOP

Related Classes of edu.purdue.wind.SineGenerator

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.