Re: [LAD] [ANN] Qtractor 0.5.4 - Echo Victor shouts out!

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: michael noble <looplog@...>
Cc: <linux-audio-dev@...>, Albert Graef <Dr.Graef@...>
Date: Monday, March 5, 2012 - 1:17 am

On Mon, 2012-03-05 at 09:40 +0900, michael noble wrote:
[...]

I don't really grasp what you're getting at here, or what MIDI has to do
with it, etc. However, using plugins to process/filter/whatever OSC
messages is natural (same thing for Jack apps). You can use any event
types in LV2.

What you'd need to work with OSC in plugins is a simple implementation
capable of reading and writing OSC messages in realtime. Liblo is too
heavy for that.

Reading is probably easy. Writing is a bit trickier, I struggled with
inventing a decent API for a similar thing (LV2 atoms, not OSC, but same
idea), but eventually arrived at an "append-based" API which works
pretty well. I call this the "forge" API for atoms. A similar scheme
could work for OSC, e.g hard real-time code to write the message
"/foo/bar if 1 3.0" could look something like:

OSC_Forge forge;
osc_forge_set_output(output_butter, n_bytes);
OSC_Msg msg;
osc_forge_msg_start(&msg, "/foo/bar");
osc_forge_int(1);
osc_forge_float(3.0);
osc_forge_msg_finish(msg)

One unfortunate thing with OSC is the size of the type string must be
known in advance[1], so you might have to pass that to osc_forge_msg.
Nesting (bundles) can be handled automagically, the forge maintains a
stack (without allocating, of course). Such a thing can be implemented
in a single smallish header.

I think a very simple stand-alone API to deal with OSC message would go
a long way towards making OSC more feasible for plugins or Jack apps.

-dr

[1] I consider this a mistake in OSC. The type tag should precede each
argument so messages can be built sequentially by simply appending
successive arguments.

_______________________________________________
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] [ANN] Qtractor 0.5.4 - Echo Victor shouts out!, Rui Nuno Capela, (Thu Mar 1, 6:39 pm)
Re: [LAD] [ANN] Qtractor 0.5.4 - Echo Victor shouts out!, Alexandre Prokoudine, (Mon Mar 5, 10:34 am)
Re: [LAD] [ANN] Qtractor 0.5.4 - Echo Victor shouts out!, Rui Nuno Capela, (Mon Mar 5, 4:42 pm)
Re: [LAD] [ANN] Qtractor 0.5.4 - Echo Victor shouts out!, Alexandre Prokoudine, (Mon Mar 5, 4:48 pm)
Re: [LAD] [ANN] Qtractor 0.5.4 - Echo Victor shouts out!, Rui Nuno Capela, (Mon Mar 5, 4:59 pm)
Re: [LAD] [ANN] Qtractor 0.5.4 - Echo Victor shouts out!, Alexandre Prokoudine, (Mon Mar 5, 5:15 pm)
Re: [LAD] [ANN] Qtractor 0.5.4 - Echo Victor shouts out!, Rui Nuno Capela, (Mon Mar 5, 5:26 pm)
Re: [LAD] [ANN] Qtractor 0.5.4 - Echo Victor shouts out!, David Robillard, (Sat Mar 3, 5:51 am)
Re: [LAD] [ANN] Qtractor 0.5.4 - Echo Victor shouts out!, David Robillard, (Sat Mar 3, 7:26 pm)
Re: [LAD] [ANN] Qtractor 0.5.4 - Echo Victor shouts out!, Fons Adriaensen, (Mon Mar 5, 11:19 am)
Re: [LAD] [ANN] Qtractor 0.5.4 - Echo Victor shouts out!, David Robillard, (Sun Mar 4, 2:31 am)
Re: [LAD] [ANN] Qtractor 0.5.4 - Echo Victor shouts out!, Fons Adriaensen, (Mon Mar 5, 11:23 am)
Re: [LAD] [ANN] Qtractor 0.5.4 - Echo Victor shouts out!, Emanuel Rumpf, (Sun Mar 4, 10:50 am)
Re: [LAD] [ANN] Qtractor 0.5.4 - Echo Victor shouts out!, David Robillard, (Sun Mar 4, 5:48 pm)
Re: [LAD] [ANN] Qtractor 0.5.4 - Echo Victor shouts out!, David Robillard, (Sun Mar 4, 9:30 pm)
Re: [LAD] [ANN] Qtractor 0.5.4 - Echo Victor shouts out!, Fons Adriaensen, (Mon Mar 5, 11:25 am)
Re: [LAD] [ANN] Qtractor 0.5.4 - Echo Victor shouts out!, Emanuel Rumpf, (Mon Mar 5, 12:01 pm)
Re: [LAD] [ANN] Qtractor 0.5.4 - Echo Victor shouts out!, David Robillard, (Sun Mar 4, 2:47 am)
Re: [LAD] [ANN] Qtractor 0.5.4 - Echo Victor shouts out!, David Robillard, (Sun Mar 4, 5:32 pm)
Re: [LAD] [ANN] Qtractor 0.5.4 - Echo Victor shouts out!, Rui Nuno Capela, (Sun Mar 4, 10:26 pm)
Re: [LAD] [ANN] Qtractor 0.5.4 - Echo Victor shouts out!, michael noble, (Mon Mar 5, 12:40 am)
Re: [LAD] [ANN] Qtractor 0.5.4 - Echo Victor shouts out!, David Robillard, (Mon Mar 5, 1:17 am)
Re: [LAD] [ANN] Qtractor 0.5.4 - Echo Victor shouts out!, Stefan Kersten, (Mon Mar 5, 11:14 am)
Re: [LAD] [ANN] Qtractor 0.5.4 - Echo Victor shouts out!, David Robillard, (Mon Mar 5, 8:50 pm)
Re: [LAD] [ANN] Qtractor 0.5.4 - Echo Victor shouts out!, David Robillard, (Sun Mar 4, 9:51 pm)
Re: [LAD] [ANN] Qtractor 0.5.4 - Echo Victor shouts out!, Thorsten Wilms, (Sat Mar 3, 8:53 am)
Re: [LAD] [ANN] Qtractor 0.5.4 - Echo Victor shouts out!, Rui Nuno Capela, (Fri Mar 2, 6:17 pm)
Re: [LAD] [ANN] Qtractor 0.5.4 - Echo Victor shouts out!, David Robillard, (Sat Mar 3, 5:44 am)