on avance pas à pas...
This commit is contained in:
@@ -9,8 +9,9 @@ SqrOsc s => BPF f => Envelope e => dac;
|
||||
2 => f.Q;
|
||||
1337 => f.freq;
|
||||
|
||||
//--- hop encore un beep !
|
||||
e.keyOn();
|
||||
2::second => now;
|
||||
e.keyOff();
|
||||
1::second => now;
|
||||
fun void beep() {
|
||||
e.keyOn(); 2::second => now;
|
||||
e.keyOff(); 1::second => now;
|
||||
}
|
||||
|
||||
() => beep;
|
||||
|
||||
@@ -7,8 +7,5 @@ SqrOsc s => BPF f => Envelope e => dac;
|
||||
2 => f.Q;
|
||||
1337 => f.freq;
|
||||
|
||||
//--- hop encore un beep !
|
||||
e.keyOn();
|
||||
2::second => now;
|
||||
e.keyOff();
|
||||
1::second => now;
|
||||
() => beep;
|
||||
|
||||
|
||||
16
code/midibeep.ck
Normal file
16
code/midibeep.ck
Normal file
@@ -0,0 +1,16 @@
|
||||
MidiIn input;
|
||||
MidiMsg msg;
|
||||
|
||||
1 => int port; // please explain
|
||||
|
||||
if (!input.open(port)) {
|
||||
<<< "erreur open MIDI" >>>; me.exit();
|
||||
}
|
||||
|
||||
while (1) {
|
||||
input => now;
|
||||
while ( input.recv(msg) ) {
|
||||
<<< msg.data1, msg.data2, msg.data3 >>>;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user