mirror of
https://git.sr.ht/~neverness/ultima
synced 2025-01-09 20:03:56 +00:00
17 lines
491 B
Plaintext
17 lines
491 B
Plaintext
~gate: speed 2.0
|
|
>> seq 60 _60 _~a 48;
|
|
~a: choose 48 48 48 72 0 0 0
|
|
~amp: ~gate >> envperc 0.001 0.1;
|
|
~pit: ~gate
|
|
>> mul ##Math.pow(2, (60-69)/12) * 440#
|
|
// mix js to get 261.63
|
|
~lead: saw ~pit >> mul ~amp >> lpf ~mod 5.0
|
|
>> meta `
|
|
output = input.map(|x|x*0.1);
|
|
output
|
|
` // rhai script, same as "mul 0.1"
|
|
~mod: sin 0.2 >> mul 1300 >> add 1500;
|
|
out: ~lead >> add ~drum >> plate 0.1 // optional semicolon
|
|
~drum: speed 4.0 >> seq 60 >> sp \808bd;
|
|
// live drag and drop your sample ^^^
|