Re: [yoshimi-user] Another update

  • From: Kristian Amlie <kristian@xxxxxxxxxx>
  • To: yoshimi-user@xxxxxxxxxxxxxxxxxxxxx
  • Date: Sat, 31 May 2014 22:13:38 +0200

On 29/05/14 19:02, Will Godfrey wrote:

On Tue, 27 May 2014 22:00:10 +0200
Kristian Amlie <kristian@xxxxxxxxxx> wrote:

NRPNs are not as well supported by hardware devices as other CC
messages. Given the choice I'd focus on either MIDI learn, or trying to
support as much as we can with regular CC messages.

That is, unless NRPN support is an easy one we can grab from Zyn?

I quite agree. It's a low priority. Also NRPNs are rather clunky to uses even
from a sequencer - and you can only control one at a time. The feature I'm
most
interested in is MIDI learn as it's the most flexible.

Indeed.

I'm still struggling with the code at the moment. Things are getting clearer
but rather s-l-o-w-l-y :(

In the new_midi branch I've done some further optimisations.

Cool! Even if it arrives at a slow pace, I think MIDI learn will be
worth the wait!

One thing that is a bit odd is that in midi.event we are passing around a
time as well as the 4 byte data we're actually interested in, but nowhere is
this time figure used. From a MIDI point of view yoshi (and zyn) are 'instant
response'.

Doing a lot of reading and head-scratching, this makes sense. We are *using*
the data not creating it or passing it on to any other application. While in
ALSA it's arguable that the timing could be used for latency alignment, JACK
is
already sample aligned (which also has the interesting possibility that we
don't need the ring buffer for processing, only for GUI operations).

Yes, using the ALSA timestamp for latency alignment is what is being
done in Jacktube (my own pet project). I doubt that it has any
significant benefit unless you work in a quite high latency environment,
since it will always be aligned to the nearest period anyway, and say,
256 samples, are not that much. But it could make a difference for a
4096 latency environment, since that's almost 1/10 of a second of wiggle
room, and it would be audible if all your MIDI input was aligned to each
period start.

No one has complained about it yet, so I'd say don't bother fixing it,
but don't remove the timestamp either, since it would make it easier for
us to fix it if we ever had to.

--
Kristian



Other related posts: