View Single Post
Old 03-14-2019, 05:40 AM   #1
sefcocos
Human being with feelings
 
Join Date: Mar 2019
Posts: 5
Default snd-virmidi virtual midi buses issue

[reposted from https://forum.cockos.com/showthread.php?p=2107645]

Hello,

I am trying to consume midi events sent from Reaper in a java application.

I am using linux and the "snd-virmidi" kernel module to create virtual midi buses.

This method works well with Ardour and Tracktion Waveform but not with Reaper.

Reaper has everything I need for my project (tempo tapping, customizable midi overdubbing, non-buggy midi loop recording & playing, ..), the other software do not.

Midi events sent from Reaper to "hw:VirMIDI xx" or "virtual" are readable with "KMidimon" and "aseqdump" (command line tool) but not from "amidi" (command line tool) nor from my java application.

With Ardour and Tracktion Waveform, the situation is the reverse, Midi events are readable by my Java application and by "amidi" but not with "KMidimon" and "aseqdump".

I read the source code of "amidi", "aseqdump" & the java JVM native code.

- "amidi" & the JVM uses "alsa/rawmidi.h" (method "snd_rawmidi_read()")
- "aseqdump" and "KMidimon" (via "drumstick") uses "alsa/seqmidi.h" (method "snd_seq_event_input()")

Does anyone know how I can configure my system and/or Reaper so that midi events sent by Reaper are readable by "amidi" and my java application? I am open to alternative solutions too.

Thanks for any input!

Last edited by sefcocos; 03-14-2019 at 06:11 AM.
sefcocos is offline   Reply With Quote