Browse Source

Got LiSa running as a delay

Pete Shadbolt 4 years ago
parent
commit
15c2e2d848
3 changed files with 33 additions and 1 deletions
  1. 1
    0
      .gitignore
  2. 1
    1
      libs/simpleosc.py
  3. 31
    0
      scratch.ck

+ 1
- 0
.gitignore View File

@@ -1,4 +1,5 @@
1 1
 *.wav
2
+lisa_docs/
2 3
 
3 4
 # Byte-compiled / optimized / DLL files
4 5
 __pycache__/

+ 1
- 1
libs/simpleosc.py View File

@@ -26,7 +26,7 @@ License : LGPL
26 26
 """
27 27
 
28 28
 try :
29
-    from OSC import *
29
+    from osc import *
30 30
 except :
31 31
     print "Warning!!! you must have pyOSC installed -> https://trac.v2.nl/wiki/pyOSC"
32 32
     

+ 31
- 0
scratch.ck View File

@@ -1,3 +1,33 @@
1
+//signal chain; record a sine wave, play it back
2
+adc => LiSa saveme => dac;
3
+adc => dac; //monitor the input
4
+0.5 => adc.gain;
5
+
6
+//alloc memory; required
7
+2::second => saveme.duration;
8
+
9
+//start recording input
10
+1 => saveme.loop;
11
+0::second => saveme.playPos;
12
+1::second => saveme.loopEnd;
13
+
14
+// Start recording, wait one second, then start playing
15
+saveme.record(1);
16
+1::second => now;
17
+1 => saveme.play;
18
+
19
+while(true)
20
+{
21
+    1::second => now;
22
+}
23
+
24
+
25
+
26
+
27
+
28
+
29
+
30
+/*
1 31
 // Effects chain
2 32
 adc => LiSa s => dac;  
3 33
 1::second => s.duration;
@@ -11,3 +41,4 @@ s.play(1);
11 41
 while (true){
12 42
         1::second => now;
13 43
 }
44
+*/