Created
October 8, 2013 04:43
-
-
Save jamesmichiemo/6879568 to your computer and use it in GitHub Desktop.
a 440 sine wave using the chucK programming language
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // connect sine oscillator to D/A convertor (sound card) | |
| SinOsc s => dac; | |
| // set frequency to 440 | |
| 400. => s.freq; | |
| // loop in time | |
| while( true ) { | |
| 2::second => now; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment