Parcourir la source

Got LiSa running as a delay

master
Pete Shadbolt il y a 10 ans
Parent
révision
15c2e2d848
3 fichiers modifiés avec 33 ajouts et 1 suppressions
  1. +1
    -0
      .gitignore
  2. +1
    -1
      libs/simpleosc.py
  3. +31
    -0
      scratch.ck

+ 1
- 0
.gitignore Voir le fichier

@@ -1,4 +1,5 @@
*.wav *.wav
lisa_docs/


# Byte-compiled / optimized / DLL files # Byte-compiled / optimized / DLL files
__pycache__/ __pycache__/


+ 1
- 1
libs/simpleosc.py Voir le fichier

@@ -26,7 +26,7 @@ License : LGPL
""" """


try : try :
from OSC import *
from osc import *
except : except :
print "Warning!!! you must have pyOSC installed -> https://trac.v2.nl/wiki/pyOSC" print "Warning!!! you must have pyOSC installed -> https://trac.v2.nl/wiki/pyOSC"


+ 31
- 0
scratch.ck Voir le fichier

@@ -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 // Effects chain
adc => LiSa s => dac; adc => LiSa s => dac;
1::second => s.duration; 1::second => s.duration;
@@ -11,3 +41,4 @@ s.play(1);
while (true){ while (true){
1::second => now; 1::second => now;
} }
*/

Chargement…
Annuler
Enregistrer