Jump to content

Sine wave: Difference between revisions

m
m (syntax highlighting fixup automation)
m (→‎{{header|Wren}}: Minor tidy)
Line 674:
{{libheader|Wren-sound}}
As Wren-cli doesn't have any built-in audio support, we instead build a .wav file which can then be played using a utility such as rhythmbox or SoX,
<syntaxhighlight lang="ecmascriptwren">import "./sound" for Wav
 
var sineWave = Fn.new { |frequency, seconds, sampleRate|
9,483

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.