im trying to add knob to control the delay,also i had a volume knob that controlled volume, i did multiple combinations but it keeps doing the reverb or no sound, in this example i got sound but fx cant be controlled neither the volume that i had working with the volume knob, im guessing it has to do with “samplerOut” but i can find what it is,
rslider channel(“delay”), bounds(12, 126, 196, 231), text(“Effect”), range(0, 3600, 10000, 1, 0.001)imgfile(“Slider”, “…/…/Downloads/Untitled design-21.png”) trackercolour(0, 255, 255, 0) markercolour(255, 0, 0, 0) outlinecolour(255, 0, 0, 0) textcolour(0, 0, 0, 0) alpha(0.96) trackerinsideradius(0.2) trackeroutsideradius(0.65) identchannel(“delay”)
rslider channel (“volume”), bounds(604, 124, 194, 191), text(“Volume”), range(0, 1, 0.5, 1, 0.001)imgfile(“Slider”, “…/…/Downloads/Untitled design-21.png”) trackercolour(0, 255, 255, 0) markercolour(255, 0, 0, 0) outlinecolour(255, 0, 0, 0) textcolour(0, 0, 0, 0) alpha(0.96) trackerinsideradius(0.6) trackeroutsideradius(0.6)
image bounds(314, 8, 179, 72) file("…/…/Downloads/Copy of supertonic.png")
image bounds(256, -40, 320, 179) file("…/…/Downloads/W.png")
-n -d -+rtmidi=NULL -M0 --midi-key=4 --midi-velocity-amp=5 -m0d
sr = 44100
ksmps = 64
nchnls = 2
0dbfs = 1
;triggering samples…
instr 1
event_i “i”, 99, 0, .25, p4
endin
;sampler instrument
instr 99
kVol chnget “volumen”
kDel chnget “delay”
iTable = p4
p3 = ftlen(iTable)
aOut loscil3 1, 1, iTable, 1, 0;
outs aOutkVol, aOutkVol
chnset aOut, “samplerOut”
endin
instr Delay
aSig chnget “samplerOut”
aDel comb aSig, 3, .2
outs aDel, aDel
chnclear “samplerOut”
endin
schedule(“Delay”, 0, 3600)