Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Bug Reports

Reply
 
Thread Tools Display Modes
Old 05-14-2021, 05:33 AM   #1
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,688
Default VST3 "Replaces Midi Bus" problem

See -> https://forum.cockos.com/showpost.ph...98&postcount=8

-Michael
mschnell is offline   Reply With Quote
Old 05-15-2021, 12:28 PM   #2
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,688
Default

I verified that when compiling the same code to a VST2. the problem does not occur.

-Michael
mschnell is offline   Reply With Quote
Old 05-18-2021, 06:48 AM   #3
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,688
Default

@devs: I might rather urgently need a fix for this.

Any plans ?

-Michael
mschnell is offline   Reply With Quote
Old 05-21-2021, 01:15 PM   #4
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,688
Default

I did more tests.

The current version of my VST3 plugin (done with JUICE) receives Midi Data and dose nothing interesting with same (pushes them to a FiFo for later use) and clears the Midi message buffer before pushing its output message(s) on same (if any).
On user request it can (e.g.) send a single Midi message.

In the project, "MidiCCLFOgenerator" sends a stream of Midi messages to the plugin.

Result:
- Without user interaction, no Midi messages are detected downstream of my plugin.
- Each time I have the plugin send a Midi message, "something" additionally repeats downstream the last Midi Message it had received.

Hence if I deactivate MidiCCLFOgenerator, the last message same sent is repeated towards ReaContrlMidi which sits after my plugin over and over again, with each message my plugin sends. It sits sometimes before and sometimes after the message my plugin sends.

See the post referenced in the first message in this thread to see why suppose this might be a bug of Reaper's.

You can get a current version of the plugin here: -> http://www.bschnell.de/VST3_Test_mschnell.zip

This is the code in the Audio block callback I did for sending Midi:
Code:
    midiMessages.clear();
    const int CCmsg = 0xB0 + midiChannel; // + 1;
    int size;
    MidiValue mv;
    while ((size = midiOutFiFo.readFromFifo(&mv, 1))>0) {  // the values for the midi messages the plugin wants to send. 
        juce::MidiMessage msg{CCmsg, controllertype, mv.val};
        midiMessages.addEvent(msg, 0);
    }
Devs please help, as this is not usable for the purpose I have in mind.

-Michael

Last edited by mschnell; 05-21-2021 at 10:16 PM.
mschnell is offline   Reply With Quote
Old 06-03-2021, 09:47 AM   #5
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,688
Default

I did an update to the uploaded files. https://www.bschnell.de/Midi_passthrough_bug.zip
Now the plugin(s) additionally show 7 numbers (in fact much less seem to get triggered) :

Each number counts the occurrences of receives vs. sent Midi messages within am audio block

1) more than two additionally sent
2) two more sent
3) one more sent
4) as many sent as received
5) one less sent
6) two less sent
7) more then two less sent

I found that in the default project always the same count is sent as received. (Obviously correct.)

When setting the channel in the Midi source different from 1 one less is sent with each block (as all messages are filtered, and there is never more than one per block in the default project configuration) (Obviously correct.)

But the Midi monitor after the VST3 sees twice as many messages (the original and the converted one) if all messages fit through the filter (which is wrong), and no messages at all (which is correct) if they all get filtered away.

(of course I can provide the source code on request.)

-Michael

Last edited by mschnell; 06-04-2021 at 03:33 AM.
mschnell is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 06:03 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.