generate

fun generate(length: Duration, frequency: Double, rate: Int = 44100, volume: Double = 1.0): AudioData

Generates a tone with the specified frequency and length.

The []frequency] For example, 440.0 is the A4 note. The audible frequency range for humans is typically given as being between about 20 Hz and 20,000 Hz (20 kHz), although the upper hearing limit decreases with age.