Browse Source

Metronome still wont lock but oh well

master
Pete Shadbolt 9 years ago
parent
commit
dd17b0e238
2 changed files with 6 additions and 6 deletions
  1. +4
    -4
      main.ck
  2. +2
    -2
      main.py

+ 4
- 4
main.ck View File

@@ -105,10 +105,10 @@ class LoopPedal
public void setWet( float ratio ) { ratio => wet.gain; 1-ratio => dry.gain;}
public void clear() { sample.clear(); }
public void recordFrom(UGen ugen) { ugen => sample; }
public dur remaining() { sample.loopEnd() => dur ltime; return (ltime - sample.playPos()) % (ltime/4.); }
public int beat() {
<<< 4*sample.playPos()/sample.loopEnd()>>>;
return Math.round(4 * sample.playPos() / sample.loopEnd()) $ int;
public int beat() { return Math.round(4 * sample.playPos() / sample.loopEnd()) $ int; }
public dur remaining() {
sample.loopEnd() => dur ltime;
return (ltime - sample.playPos()) % (ltime/4.);
}

public void outputTo(UGen wetSink, UGen drySink) {


+ 2
- 2
main.py View File

@@ -259,11 +259,11 @@ class FXPanel(wx.Panel):
label.SetFont(font)
sizer.Add(label, 0, wx.EXPAND | wx.TOP | wx.BOTTOM | wx.RIGHT, 5)

self.lpf = OSCSlider(self, "Lo-pass", default_value=.5, align=False)
self.lpf = OSCSlider(self, "Lo-pass", default_value=.9, align=False)
sizer.Add(self.lpf, 2, wx.EXPAND | wx.ALL, 5)
self.lpf.Bind(wx.EVT_SCROLL, self.update)

self.hpf = OSCSlider(self, "Hi-pass", min_value=0, default_value=.5, align=False)
self.hpf = OSCSlider(self, "Hi-pass", min_value=0, default_value=.1, align=False)
sizer.Add(self.hpf, 2, wx.EXPAND | wx.ALL, 5)
self.hpf.Bind(wx.EVT_SCROLL, self.update)



Loading…
Cancel
Save