瀏覽代碼

Making progress

master
Pete Shadbolt 10 年之前
父節點
當前提交
6c50d3b97f
共有 3 個檔案被更改,包括 26 行新增32 行删除
  1. +21
    -12
      main.ck
  2. +1
    -1
      main.py
  3. +4
    -19
      scratch.ck

+ 21
- 12
main.ck 查看文件

@@ -1,15 +1,21 @@
// Effects chain
Gain mixer => dac; // Main mixer
adc => Gain adcThru => mixer; // Monitor the input
adc => Gain feedback => DelayL delay => feedback; // Delay line
delay => Gain delaySend => mixer; // Connect delay to mixer
Gain mixer => dac; // Main mixer
adc => Gain adcThru => mixer; // Monitor the input
adc => LiSa sample => mixer; // Sampler
// TODO: turn off adcThru when recording

// Delay parameters
10::second => delay.max;
5::second => delay.delay;
0 => adc.gain;
1 => feedback.gain;
.5 => delaySend.gain;
//Times
10::second => sample.duration;
0::second => sample.recPos;
1::second => sample.playPos => sample.loopEnd => sample.loopEndRec;

// Start recording and playing in a loop
1 => sample.loop => sample.record => sample.play;

// Levels
//0 => adc.gain;
1 => sample.feedback;
.5 => sample.gain;
.5 => adcThru.gain;

// OSC listener class
@@ -36,8 +42,11 @@ class InputListener extends OSCListener {
class DelayListener extends OSCListener
{
fun void handle(OscEvent oe){
oe.getFloat()::second => delay.delay;
oe.getFloat() => feedback.gain;
//TODO: this doesn't work
// oe.getFloat()::second => sample.recPos => sample.loopEnd => sample.loopEndRec;
//oe.getFloat()::second => sample.playPos => sample.loopEnd => sample.loopEndRec;
oe.getFloat();
oe.getFloat() => sample.feedback;
<<< "Edit delay" >>>;
}
}


+ 1
- 1
main.py 查看文件

@@ -55,7 +55,7 @@ class InputPanel(wx.Panel):
sizer.Add(self.thru, 1, wx.ALL, 5)

self.mute = wx.ToggleButton(self, 1, "Mute")
self.mute.SetValue(1)
#self.mute.SetValue(1)
sizer.Add(self.mute, 0)
self.SetSizerAndFit(sizer)


+ 4
- 19
scratch.ck 查看文件

@@ -9,12 +9,13 @@ adc => dac; //monitor the input
//start recording input
1 => saveme.loop;
0::second => saveme.playPos;
1::second => saveme.loopEnd;
2::second => saveme.recPos;
2::second => saveme.loopEnd;

// Start recording, wait one second, then start playing
saveme.record(1);
1::second => now;
1 => saveme.record;
1 => saveme.play;
1 => saveme.feedback;

while(true)
{
@@ -26,19 +27,3 @@ while(true)




/*
// Effects chain
adc => LiSa s => dac;
1::second => s.duration;
0::second => s.recPos;
1::second => s.playPos;
s.loop(1);
s.loopRec(1);
s.play(1);


while (true){
1::second => now;
}
*/

Loading…
取消
儲存