I’m working on a Synthesiser plugin and I try to apply new values from slider for Release&Attack but I know I am not doing it the right way. What happen right now is that I don’t want to add the sound at all updates because it gonna fill the memory very quick and I know its wrong doing it like that lol.
void SimpleSynth::updateAttackRelease(double attack, double release)
addSound(new juce::SamplerSound(“default”, *audioReader, allNotes, 60, attack, release, 10.0));
it must have a way to update only attack and release?