Okay, I’m fiddling around with trying to make a whistle sound, using resonant filters.
What I want is to have the noise have an attack, and the resonance for the filter also have an attack. But when I wrap the play command inside the fx command for the filter, the noise attack seems to go away:
with_synth :noise do
handle = play :c3, attack: 0.25, decay: 0, sustain: 1.0, release: 0.25
end
sleep 2
with_fx :nrlpf, cutoff: :c6, res: 0 do |lh|
with_fx :nhpf, cutoff: :c6 do
with_synth :noise do
handle = play :c3, attack: 0.25, decay: 0, sustain: 1.0, release: 0.25
end
sleep 0.125
control lh, res: 0.99, res_slide: 0.25
sleep 1.25
control lh, res: 0.0, res_slide: 0.01
end
end
Any idea what’s going on here? How do I hack around it? I’m trying to emulate a human whistle, which has a short attack at the beginning. The fadeout seems to be working, but the fade in is still problematic.
Any insights would be most appreciated.