[LAD] accepted use of sync callback

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Linux Audio Developers <linux-audio-dev@...>
Date: Saturday, March 26, 2011 - 3:08 pm

Hi everybody,

I have a question.

I'm trying to figure out how to deal with transport locate changes
in my arpeggiator "flarps". I am generating MIDI events only when
necessary, so I'm not able to rewind the state of the program.
I only keep track of Note-off messages, because they can be sent
out in the future, to allow overlapping notes. All the MIDI notes
are calculated relative to each other. So I keep track of time
internally.

So I only need to know the first frame of the period,
when somebody does a jack_transport_locate, and I need to know
when this happens so I can initialize the program state.

My question is, if it would be acceptable to use the sync callback
to do this, because strictly speaking, my client wouldn't be a
slow sync client.

Is there a more preferable way to do this, or should I do major
redesign, and use the time jack provides with each period directly.

I would be very glad with any of your insights or suggestions.

greetings,

lievenmoors

_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[LAD] accepted use of sync callback, Lieven Moors, (Sat Mar 26, 3:08 pm)
Re: [LAD] accepted use of sync callback, Paul Coccoli, (Sat Mar 26, 8:40 pm)
Re: [LAD] accepted use of sync callback, Lieven Moors, (Sat Mar 26, 11:36 pm)
Re: [LAD] accepted use of sync callback, Paul Davis, (Sat Mar 26, 3:18 pm)
Re: [LAD] accepted use of sync callback, Lieven Moors, (Sat Mar 26, 3:46 pm)
Re: [LAD] accepted use of sync callback, torbenh, (Sat Mar 26, 6:50 pm)
Re: [LAD] accepted use of sync callback, Lieven Moors, (Sat Mar 26, 11:23 pm)
Re: [LAD] accepted use of sync callback, Paul Davis, (Sat Mar 26, 9:02 pm)