diff options
author | Richard <richard@1bpm.net> | 2025-02-28 02:08:19 +0000 |
---|---|---|
committer | Richard <richard@1bpm.net> | 2025-02-28 02:08:19 +0000 |
commit | 0f09f0882ed87bea9ff3e745c73f5d4743854fbb (patch) | |
tree | 62d04024200a4942ce4e012227822fdaae6a2e25 /BUG6/instruments.udo | |
parent | 6a8342a78bb65afbec9eac5693438a3107ff1dd3 (diff) | |
download | csd-unfixedbugs1-master.tar.gz csd-unfixedbugs1-master.tar.bz2 csd-unfixedbugs1-master.zip |
Diffstat (limited to 'BUG6/instruments.udo')
-rw-r--r-- | BUG6/instruments.udo | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/BUG6/instruments.udo b/BUG6/instruments.udo index a6d3458..0b91a1e 100644 --- a/BUG6/instruments.udo +++ b/BUG6/instruments.udo @@ -78,10 +78,10 @@ endin instr play_blip iamp = bid_getparameter(p4, p5, 2) - inote1 = table(p4+3, gibid_chordfn, 0, 0, 1) +12 - inote2 = table(p4+5, gibid_chordfn, 0, 0, 1) +12 - a1 oscil 1, cpsmidinn(inote1) - a2 oscil 1, cpsmidinn(inote2) + inote1 = table(p4+3, gibid_chordfn, 0, 0, 1) + 12 + inote2 = table(p4+5, gibid_chordfn, 0, 0, 1) + 12 + a1 oscil 1.2, cpsmidinn(inote1) + a2 oscil 1.2, cpsmidinn(inote2) kamp linseg 1, p3*0.2, 0, p3*0.8, 0 aL = a1 * kamp aR = a2 * kamp @@ -160,7 +160,8 @@ instr play_hat2 aout = a808 * aenv * iamp * 1.1 aL delay aout, idel1 aR delay aout, idel2 - if (i(gksection) == 1 && random(0, 1) > 0.7) then + isection = i(gksection) + if ((isection == 1 || isection == 9) && random(0, 1) > 0.7) then bus_mix("delay2", aL*0.4, aR*0.4) endif bus_mix("master", aL, aR) |