Musical scale: Difference between revisions

m
imported>RemoW
m (→‎{{header|Wren}}: Minor tidy)
 
Line 1,800:
{{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 sampleRate = 44100
Line 1,818:
It's also possible to play .wav files which (preferably) have a sample rate of 44.1 kHz using DOME:
{{libheader|DOME}}
<syntaxhighlight lang="ecmascriptwren">import "audio" for AudioEngine
 
class Main {
9,476

edits