Hi
simple question: can I apply modulation to a synth opt (not FX), after a note has been triggered, i.e. on its release phase. For example, apply a running LFO to the synth’s filter cutoff, AFTER the note is triggered? I’ll not post any code just yet, as I’ve tried numerous times and each one throws an error, cos I’m thick.
This seems to work ok, would love to see/hear any improvements:
rmp = line(0,1.0, steps: 10).mirror
use_synth :bass_foundation
use_synth_defaults cutoff_slide: 1
define :lfo do
8.times do
tick
control cutoff: rmp.look*70+50
end
end
live_loop :lfotest do
play [40, 40.2], release: 2
lfo
sleep 2
end
No matter how often/regularly I code music in Sonic Pi, I just cannot shake that old PD/Max modular patching mindset!
PD-Pi
In my YummyFillings.rb library, there’s a general-purpose lfo function, that can easily modulate any slideable param in any synth, sample or fx. There’s also an env function for easy envelopes, and a trancegate supporting complex rhythms.
I’m working on a major update, including navigating sample maps (a la decent/kontakt libraries), easy trills, granular-type synthesis, stepwise application of multiple effects a la infiltrator/glitch, etc. But the current stable version has tons of goodies to make things like lfos easier.