Explorar el Código

Metronome still wont lock but oh well

master
Pete Shadbolt hace 10 años
padre
commit
dd17b0e238
Se han modificado 2 ficheros con 6 adiciones y 6 borrados
  1. +4
    -4
      main.ck
  2. +2
    -2
      main.py

+ 4
- 4
main.ck Ver fichero

@@ -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 Ver fichero

@@ -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)



Cargando…
Cancelar
Guardar