Using Event / Stream to setting user input in SOUL?

when i was write soul plug-in
i try both Event and Stream as user input
seems both method can trigger the Plug-in
any different between them?

Yeah, they’re quite different in the way they work, though we tried to make it so that when using your soul code in a patch, it can push parameters changes to your code using both mechanisms.

If you need to actually run some code to do something each time a new value is sent (and if you’re only expecting occasional changes), then use an event, because you handle it with a callback. But if your DSP code is just going to use the current value in its calculations each sample, then a stream is simpler.

(Also, a stream can be automatically smoothed if you give it a ramp value)

1 Like