pub fn set_wave_source(Json: Json<Option<WaveSource>>) -> FnResult<()>
This is called whenever the wave source changes and can be used by the plugin to change its behaviour depending on the currently loaded waveform.