Making Sound
Here you will learn how to make the basic sound using the mimium.
Documentation is under preparation! We are seeking for people who support documentations and translations.
Making 440Hz Sine wave sound
- Prepare a MMM file(e.g. sin.mmm). If you haven’t installed mimium at this point, see Installation.
- Write the following code and saving the file.
fn dsp(time){
return sin(now*440*3.14*2/48000)
}
Otherwise you can write one-liner code snippets.
dsp = |t|{ sin(now*440*3.14*2/48000) }
- Using your command line tool (e.g. bash), run the previous code.
$ mimium sin.mmm
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.