pd-l2ork / pd

L2Ork version of Pure-Data real-time digital signal processing language developed and maintained at DISIS, Virginia Tech
http://l2ork.music.vt.edu
127 stars 63 forks source link

Fix broken sys_alsa_putmidibyte() in order to make midiout work on Linux. #36

Closed agraef closed 8 years ago

agraef commented 8 years ago

This fixes a long-standing bug with midiout on ALSA, which would just output malformed 1-byte "sysex" messages for each byte that goes into midiout. The bug affects all Linux versions of Pd, in all flavors. For a test witness, run the cyclone/seq-help.pd patch and hook it up to kmidimon or qmidiroute to see the MIDI output. The new implementation proposed here does the necessary buffering and parsing using the appropriate ALSA routines to emit proper MIDI messages. It also works fine with system realtime and exclusive messages.