[LAD] basic MIDI note-on/note-off questions

2010-06-25 Thread James Morris
Hi, I keep getting surprised at some of the most basic problems I run into... This time, processing order. 1) Notes of zero duration? Are these legal MIDI? Do I send a note-on with simultaneous note-off? Or should they simply be ignored? 2) note x ending simultaneously with note y beginning

[LAD] Jack latency handling (Re: Software for recording digital audio?)

2010-06-25 Thread Kjetil S. Matheussen
Robin Gareus: 0.49 has this feature implemented. Use the -jt option. It should be sample sync, Almost. It does not yet compensate for port-latency. It is important for both effects that introduce latency as well as to keep physical I/O in sync with apps. see jack_port_get_latency() and

Re: [LAD] basic MIDI note-on/note-off questions

2010-06-25 Thread Jens M Andreasen
On Fri, 2010-06-25 at 11:55 +0100, James Morris wrote: Hi, I keep getting surprised at some of the most basic problems I run into... This time, processing order. Midi is serial, first come first served. 1) Notes of zero duration? Are at least one millisecond. 2) note x ending

Re: [LAD] basic MIDI note-on/note-off questions

2010-06-25 Thread Ralf Mardorf
On Fri, 2010-06-25 at 12:51 +0100, James Morris wrote: Does this imply that a note-off should always happen one millisecond early? I've got no knowledge how to program for Linux, but regarding to those oldish sequencers. No, a note-off should always is send at the correct time. --

Re: [LAD] basic MIDI note-on/note-off questions

2010-06-25 Thread James Morris
On 25 June 2010 12:51, James Morris ja...@jwm-art.net wrote: On 25 June 2010 12:35, Jens M Andreasen jens.andrea...@comhem.se wrote: On Fri, 2010-06-25 at 11:55 +0100, James Morris wrote: Hi, I keep getting surprised at some of the most basic problems I run into... This time, processing

Re: [LAD] Jack latency handling (Re: Software for recording digital audio?)

2010-06-25 Thread Paul Davis
On Fri, Jun 25, 2010 at 7:23 AM, Kjetil S. Matheussen k.s.matheus...@notam02.no wrote: Thanks for the info! I also wonder, does jack compansate for latency when it mixes the outputs from ports (i.e. when several output ports are connected to a jack_capture port), so that the sound is in sync?

Re: [LAD] basic MIDI note-on/note-off questions

2010-06-25 Thread Paul Davis
On Fri, Jun 25, 2010 at 6:55 AM, James Morris ja...@jwm-art.net wrote: Hi, I keep getting surprised at some of the most basic problems I run into... This time, processing order. just remember that in real MIDI, nothing can be simultaneous. its a serial protocol without timestamps. with

Re: [LAD] basic MIDI note-on/note-off questions

2010-06-25 Thread Ralf Mardorf
On Fri, 2010-06-25 at 08:29 -0400, Paul Davis wrote: On Fri, Jun 25, 2010 at 6:55 AM, James Morris ja...@jwm-art.net wrote: Hi, I keep getting surprised at some of the most basic problems I run into... This time, processing order. just remember that in real MIDI, nothing can be

Re: [LAD] basic MIDI note-on/note-off questions

2010-06-25 Thread Clemens Ladisch
James Morris wrote: 1) Notes of zero duration? Are these legal MIDI? Yes. There are synthesizers that can play percussion sounds at their natural length and ignore note-off messages, so, sometimes, note-off timing isn't available. Do I send a note-on with simultaneous note-off? Yes. Some

Re: [LAD] basic MIDI note-on/note-off questions

2010-06-25 Thread Ralf Mardorf
On Fri, 2010-06-25 at 14:38 +0200, Ralf Mardorf wrote: On Fri, 2010-06-25 at 08:29 -0400, Paul Davis wrote: On Fri, Jun 25, 2010 at 6:55 AM, James Morris ja...@jwm-art.net wrote: Hi, I keep getting surprised at some of the most basic problems I run into... This time, processing

Re: [LAD] basic MIDI note-on/note-off questions

2010-06-25 Thread Pedro Lopez-Cabanillas
On Friday, June 25, 2010, James Morris wrote: On 25 June 2010 12:35, Jens M Andreasen jens.andrea...@comhem.se wrote: On Fri, 2010-06-25 at 11:55 +0100, James Morris wrote: Hi, I keep getting surprised at some of the most basic problems I run into... This time, processing order.

Re: [LAD] basic MIDI note-on/note-off questions

2010-06-25 Thread Ralf Mardorf
On Fri, 2010-06-25 at 15:36 +0200, Ralf Mardorf wrote: On Fri, 2010-06-25 at 14:38 +0200, Ralf Mardorf wrote: On Fri, 2010-06-25 at 08:29 -0400, Paul Davis wrote: On Fri, Jun 25, 2010 at 6:55 AM, James Morris ja...@jwm-art.net wrote: Hi, I keep getting surprised at some of the

Re: [LAD] Jack latency handling (Re: Software for recording digital audio?)

2010-06-25 Thread Robin Gareus
On 06/25/2010 01:23 PM, Kjetil S. Matheussen wrote: Robin Gareus: 0.49 has this feature implemented. Use the -jt option. It should be sample sync, Almost. It does not yet compensate for port-latency. It is important for both effects that introduce latency as well as to keep physical

Re: [LAD] Jack latency handling (Re: Software for recording digital audio?)

2010-06-25 Thread Florian Faber
On 06/25/10 17:08, Robin Gareus wrote: The system_playback port has a latency of 1024 frames and so is the jack_buffersize (frames per period). app1 is a simple jack application that prints the _total_-port-latency of it's in out ports every time they change and announces a latency of 512

Re: [LAD] Jack latency handling (Re: Software for recording digital audio?)

2010-06-25 Thread Paul Davis
On Fri, Jun 25, 2010 at 1:03 PM, Florian Faber fa...@faberman.de wrote: On 06/25/10 17:08, Robin Gareus wrote: The system_playback port has a latency of 1024 frames and so is the jack_buffersize (frames per period). app1 is a simple jack application that prints the _total_-port-latency of

Re: [LAD] basic MIDI note-on/note-off questions

2010-06-25 Thread Paul Davis
On Fri, Jun 25, 2010 at 9:29 AM, Clemens Ladisch clem...@ladisch.de wrote: James Morris wrote: 1) Notes of zero duration? Are these legal MIDI? Yes.  There are synthesizers that can play percussion sounds at their natural length and ignore note-off messages, so, sometimes, note-off timing