diff --git a/.gitignore b/.gitignore index 15f0190..6ac4533 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ *.wav +lisa_docs/ # Byte-compiled / optimized / DLL files __pycache__/ diff --git a/libs/simpleosc.py b/libs/simpleosc.py index cf387b0..25d032c 100644 --- a/libs/simpleosc.py +++ b/libs/simpleosc.py @@ -26,7 +26,7 @@ License : LGPL """ try : - from OSC import * + from osc import * except : print "Warning!!! you must have pyOSC installed -> https://trac.v2.nl/wiki/pyOSC" diff --git a/scratch.ck b/scratch.ck index 6c889d7..595e904 100644 --- a/scratch.ck +++ b/scratch.ck @@ -1,3 +1,33 @@ +//signal chain; record a sine wave, play it back +adc => LiSa saveme => dac; +adc => dac; //monitor the input +0.5 => adc.gain; + +//alloc memory; required +2::second => saveme.duration; + +//start recording input +1 => saveme.loop; +0::second => saveme.playPos; +1::second => saveme.loopEnd; + +// Start recording, wait one second, then start playing +saveme.record(1); +1::second => now; +1 => saveme.play; + +while(true) +{ + 1::second => now; +} + + + + + + + +/* // Effects chain adc => LiSa s => dac; 1::second => s.duration; @@ -11,3 +41,4 @@ s.play(1); while (true){ 1::second => now; } +*/