<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:16px"><div dir="ltr">Out of curiosity, is it not up to the receiving device to parse the received bytes in such a way that they form a coherent message? Or is there a "timeout" after which a sysex message is considered aborted ?</div><div dir="ltr">I don't remember the latter from the specs, so I always assumed the former.</div><div dir="ltr">Giulio</div><div class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1476612301832_102390"><br><br></div><div class="yahoo_quoted" id="yui_3_16_0_ym19_1_1476612301832_102243" style="display: block;"> <blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;" id="yui_3_16_0_ym19_1_1476612301832_102242"> <div style="font-family: Helvetica Neue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 16px;" id="yui_3_16_0_ym19_1_1476612301832_102241"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 16px;" id="yui_3_16_0_ym19_1_1476612301832_102240"> <div dir="ltr" id="yui_3_16_0_ym19_1_1476612301832_102388"> <font size="2" face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Albert Graef <agraef@users.sf.net><br> <b><span style="font-weight: bold;">To:</span></b> pd-dev@lists.iem.at <br> <b><span style="font-weight: bold;">Sent:</span></b> Sunday, 16 October 2016, 18:17<br> <b><span style="font-weight: bold;">Subject:</span></b> [PD-dev] [pure-data:bugs] #1272 midiout not working correctly on        ALSA<br> </font> </div> <div class="y_msg_container" id="yui_3_16_0_ym19_1_1476612301832_102239"><br><div id="yiv8365498489"><div class="yiv8365498489markdown_content" id="yui_3_16_0_ym19_1_1476612301832_102238"><hr>
<div id="yui_3_16_0_ym19_1_1476612301832_102237"><strong> <a rel="nofollow" class="yiv8365498489alink" target="_blank" href="https://sourceforge.net/p/pure-data/bugs/1272/">[bugs:#1272]</a> midiout not working correctly on ALSA</strong></div>
<div id="yui_3_16_0_ym19_1_1476612301832_102314"><strong>Status:</strong> open<br>
<strong>Group:</strong> v0.47<br>
<strong>Created:</strong> Sun Oct 16, 2016 05:17 PM UTC by Albert Graef<br>
<strong>Last Updated:</strong> Sun Oct 16, 2016 05:17 PM UTC<br>
<strong>Owner:</strong> Miller Puckette</div>
<div>This has been there forever, and affects all Linux systems when using ALSA MIDI devices.</div>
<div>sys_alsa_putmidibyte() in s_midi_alsa.c outputs individual bytes instead of complete MIDI messages. You can clearly see this, e.g., when sending a sysex message from Pd to an ALSA MIDI output and looking at the results in kmidimon. Instead of a proper sysex message you'll get a sequence of (malformed) single-byte messages.</div>
<div>You can't just output single bytes of a multi-byte MIDI message with snd_seq_event_output_direct(), this only works with single-byte (such as system realtime) messages. The proper way to do this, so that it works with any MIDI message, is to use snd_midi_event_encode_byte() and output the message when it's complete. The following fix is from the pd-l2ork repo, but it should apply cleanly on the current pure-data master branch:<br>
<a rel="nofollow" target="_blank" href="https://github.com/pd-l2ork/pd/commit/9f5a265">https://github.com/pd-l2ork/pd/commit/9f5a265</a></div>
<hr>
<div>Sent from sourceforge.net because pd-dev@lists.iem.at is subscribed to <a rel="nofollow" target="_blank" href="https://sourceforge.net/p/pure-data/bugs/">https://sourceforge.net/p/pure-data/bugs/</a></div>
<div>To unsubscribe from further messages, a project admin can change settings at <a rel="nofollow" target="_blank" href="https://sourceforge.net/p/pure-data/admin/bugs/options.">https://sourceforge.net/p/pure-data/admin/bugs/options.</a>  Or, if this is a mailing list, you can unsubscribe from the mailing list.</div></div></div><br>_______________________________________________<br>Pd-dev mailing list<br><a ymailto="mailto:Pd-dev@lists.iem.at" href="mailto:Pd-dev@lists.iem.at">Pd-dev@lists.iem.at</a><br><a href="https://lists.puredata.info/listinfo/pd-dev" target="_blank">https://lists.puredata.info/listinfo/pd-dev</a><br><br><br></div> </div> </div> </blockquote> </div></div></body></html>