Sine Wave Sound Generator in Java

后端 未结 7 1968
时光说笑
时光说笑 2020-12-05 01:22

What\'s the simplest way to generate a sine wave sound at any frequency in Java? A sample size more than 2 bytes would help, but it doesn\'t really matter.

7条回答
  •  眼角桃花
    2020-12-05 01:53

    I'd just like to point out that there is a very efficient algorithm for generating sine waves.

    DSP Trick: Sinusoidal Tone Generator http://www.dspguru.com/dsp/tricks/sine_tone_generator

提交回复
热议问题