Skip to content

Instantly share code, notes, and snippets.

@jamesmichiemo
Created October 8, 2013 04:43
Show Gist options
  • Select an option

  • Save jamesmichiemo/6879568 to your computer and use it in GitHub Desktop.

Select an option

Save jamesmichiemo/6879568 to your computer and use it in GitHub Desktop.
a 440 sine wave using the chucK programming language
// 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