2021-10-19 19:07:28 +02:00
|
|
|
//--- Just a noisy beep
|
|
|
|
SqrOsc s => BPF f => Envelope e => dac;
|
|
|
|
//--- reglage de notre oscillateur
|
|
|
|
0.8 => s.gain;
|
|
|
|
440 => s.freq;
|
|
|
|
//--- reglage de notre enveloppe
|
|
|
|
100::ms => e.duration;
|
|
|
|
//--- reglage du filtre passe bande
|
|
|
|
2 => f.Q;
|
|
|
|
1337 => f.freq;
|
|
|
|
|
2021-10-23 14:25:18 +02:00
|
|
|
fun void beep() {
|
|
|
|
e.keyOn(); 2::second => now;
|
|
|
|
e.keyOff(); 1::second => now;
|
|
|
|
}
|
|
|
|
|
|
|
|
() => beep;
|