Package edu.purdue.wind

Examples of edu.purdue.wind.SineGenerator.generate()


  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
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.