i don't know of any specifics, but in theory i can think of two ways to do it: one is to add a constant time offset to any 'note off' or 'note on with 0 velocity' event, and the other is to ignore those events and add them in manually by taking the normal note on event and adding a note off (or 0) event with a constant offset. don't know what things you can do it in though, maybe puredata?
<br><br>porl<br><br><div><span class="gmail_quote">On 17/01/2008, <b class="gmail_sendername">lanas</b> &lt;<a href="mailto:lanas@securenet.net">lanas@securenet.net</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br><br>&nbsp;&nbsp;Looking for a way to &#39;elongate&#39; the period of MIDI events.<br><br>&nbsp;&nbsp;Doctor, what should I do to please her ears ?<br><br>&nbsp;&nbsp;Seriously, the problem is, Qsynth cannot play any MIDI note that is<br>played by a percussive MIDI pad, in this case the Alesis Control Pad
<br>played with drum sticks. Here&#39;s the thing (cheap at some $250 brand<br>new):<br><br><a href="http://www.alesis.com/product.php?id=103">http://www.alesis.com/product.php?id=103</a><br><br>&nbsp;&nbsp;It&#39;s as plain and simple as that.&nbsp;&nbsp;Can anyone
<br>verify it ? Start up Qsynth, load the Chromium sound font, pick a piano<br>sound, connect a MIDI percussive instrument, and try to play 10<br>consecutive, clear notes.&nbsp;&nbsp;No way.&nbsp;&nbsp;Try then with a percussive<br>soundfont.&nbsp;&nbsp;A drum set.
<br><br>&nbsp;&nbsp;Now, do the same with Hydrogen and the same MIDI pad.&nbsp;&nbsp;Works nicely.<br>Velocity works also nicely. Now make it take into account MIDI note offs<br>(it&#39;s in the Preferences, the default being to ignore them).&nbsp;&nbsp;You&#39;ll
<br>see that although most notes play OK, some are clipped.<br><br>&nbsp;&nbsp;Try also with WhySynth.&nbsp;&nbsp;Some patches work OK, some don&#39;t.&nbsp;&nbsp;When they<br>work, they even work with drum stick rebounds, as with Hydrogen.<br><br>&nbsp;&nbsp;From Kmidimon, the Alesis Control Pad MIDI notes, when hit with drum
<br>sticks, last typically 1 unit of time (whatever unit that is) eg.:<br><br>Time&nbsp;&nbsp; Event&nbsp;&nbsp;&nbsp;&nbsp; Data1&nbsp;&nbsp;&nbsp;&nbsp;Data2<br>89985&nbsp;&nbsp;Note on&nbsp;&nbsp; 63&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0<br>89984&nbsp;&nbsp;Note on&nbsp;&nbsp; 63&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 55<br><br>&nbsp;&nbsp;Whereas the shortest note I can do on an Axiom 25 keyboard looks like:
<br><br>Time&nbsp;&nbsp; Event&nbsp;&nbsp;&nbsp;&nbsp; Data1&nbsp;&nbsp;&nbsp;&nbsp;Data2<br>41067&nbsp;&nbsp;Note on&nbsp;&nbsp; 89&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00<br>41051&nbsp;&nbsp;Note on&nbsp;&nbsp; 89&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 94<br><br>&nbsp;&nbsp;That&#39;s a whole 16 units of whatever time.&nbsp;&nbsp;Same with the Axiom&#39;s<br>pads: they last a long time and thus, interact OK with Qsynth.
<br><br>&nbsp;&nbsp;My theory about Qsynth (Fluidsynth...) is that the MIDI notes sent by<br>the MIDI percussion instrument are too short for it to pick them up.<br>Could that be ?&nbsp;&nbsp;It&#39;d be nice to play all those available percussive
<br>soundfonts using a MIDI percussion controller.&nbsp;&nbsp;Wprks all right with<br>Hydrogen, but not with Qsynth.&nbsp;&nbsp;Should Alesis make their Control Pad<br>send longer MIDI notes ?&nbsp;&nbsp;Or have a programmable parameter for each<br>note ?&nbsp;&nbsp;I don&#39;t know.&nbsp;&nbsp;Hydrogen works, but not Qsynth.
<br><br>&nbsp;&nbsp;But then, can there be a default note length ?&nbsp;&nbsp;I would be glad to<br>set some default note length.&nbsp;&nbsp;I could even take the time to set notes<br>lengths according to soundfonts and load them with the instruments...
<br>as long as there&#39;s a filter that could do that.<br><br>&nbsp;&nbsp;So, is there a MIDI filter out there that would enable something like<br>this ?&nbsp;&nbsp;To make (all or specific) MIDI notes last longer ?<br><br>Thanks for reading, and do not hesitate to throw suggestions.
<br><br>Jam, no spam,<br><br>Al<br><br>_______________________________________________<br>Linux-audio-user mailing list<br><a href="mailto:Linux-audio-user@lists.linuxaudio.org">Linux-audio-user@lists.linuxaudio.org</a><br>
<a href="http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user">http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user</a><br></blockquote></div><br>