HISE icon indicating copy to clipboard operation
HISE copied to clipboard

Inconsistent Behavior Between Exported VSTi MIDI Output and HISE VST-hosted Project MIDI Output in DAW

Open aaronventure opened this issue 6 months ago • 2 comments

I'm creating a rather simple MIDI effect. Take in the controller value, fill the array, get the average, output that instead. Some checks for notes playing to ensure a smooth experience. Using the timer callback to send that average as a controller.

If I load this inside the HISE VST in the DAW then load an instrument right after, it works as expected. I can monitor the MIDI with ReaControlMIDI and it's all great.

But when I export this as a VST3i plugin (the MIDI FX export results in a plugin that outputs no MIDI when loaded as vst3 in a DAW), the output seems to have interspersed real controller values. The result is controller output that jumps all over the place.

Here's the snippet. Don't forget to enable MIDI output in the project settings.

HiseSnippet 1699.3oc6X0uaaaCDWJIpqRqcXEaO.r4OJjQ7br6Z65lm2RhSxfWW9.0cEEnnnfQh1lHRjFTTo0qM.8gcO.6MX6HojkriShmQSF1vBJJLIui2u638oNTvCHIIbgks6yFMjXYeKmtiXxAsGfoLqNaaYeam85rcGT2XNWNvZqQCwIIjPKa6k+IEI1tqXo+6O9wsvQXV.oXKKqmyoAjegFSkE6d3FOgFEsKNj7LZbIpevFcB3r17HdJ.mkcpaMDGbLtOYerhrkbrruwNgTIWzUhkjDK6U1hGNp6.9aXF5eNMgdTDQsngUW3hLauKOJTgX0tVsGPiBOLWsSrrrcNrvHrrwH7kN6QCoi2uvX745CPEbT1dXuzjva4IfWixvqdI3MCHYWBRqXfzcb5FHnCkEmnvyMb1SAsxnvPl0RCtkCCLbIfQjf1THvidAx6cddqudqq1+7b8bWeciHQcSi8borHJif5kxBjTNCkjFi7wpyq349NOW2Hd.NRs8lnVn5Mgcf+0iKP9LDkgLjZNesVHVFABhLUnusMgcN0H2qSkaySHBv+7rJH1bvGYkbcMI0hHr9xA+ynwcIxY7bRjYZZUjAbUQmfiRISn3zVZc1nCAQDrnYt9qNBQ+9LECQWaMfSMqFxeI8UfISekJdNUo5dmdc3J6IH8QTy600f3TRSBIEEcIPpvvDkfqU+gMM3.eR+sR60iH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hqAbVAD3tuTH+VvNZqj2n7ejWJEtzaXmMecrdB7hk32pV9grkkK1Vn8e6FVyERFq+ZnDlCkv+VPI7xfxYmzElwlGlFgkSN3s5qMjc.3UNwHup9BYIT4nxOwezlFedg3cbNjJCFLaLtzLvnxI9J.iYeCia6rCDRGHK.3JN69hqlOXQYweyy46H8oNpXEXEQ7w3qHMbt+JR1KeU7UiV4ewe0nuvo6D0DfFzl0mPx92cPmSyqWTCfWRidquNrSBOhTan.l0y+h5GSUNZN6mrTSB+Kn50BUA4+yU9ehbkOkmJgFngwUETUoUnZeWHYU.AjNiAMCppxtjxawrtddC.pfV8h+D9K6vFp01YG1H+vqEYDiCD7WGXhtT4etodGPuY5OXuqydp0nFS29kpWgP5qCBl7pNCi2eQY7qWTFevhx3CWTFezhx32rnL93KmQUR1MSk7XSnok0dGtiNcks8NLL3kqiHr9K.zPuaoB

Here's a screencap of the ReaControlMIDI log which shows the plugin outputting values that it shouldn't be outputting. If you load that snippet into the VST version of HISE inside your DAW and use it as a MIDI plugin, the output works as expected - for the target controller, it's only outputting the average of the array, with none of these weird values.

image

aaronventure avatar Dec 23 '23 05:12 aaronventure