Sound.jl Documentation
Contents
Overview
The Julia module Sound.jl
exports the functions sound
and soundsc
for playing an audio signal through a computer audio output.
Their use is designed to be similar to Matlab commands sound
and soundsc
to facilitate code migration.
Getting started
using Pkg
Pkg.add("Sound")
Example
using Sound
S = 8192 # sampling rate in Hz
x = 0.6 * cos.(2π*(1:S÷2)*440/S)
y = 0.7 * sin.(2π*(1:S÷2)*660/S)
sound(x, S) # monophonic
sound([x y], S) # stereo
soundsc([x y], S) # scale to maximum volume