Re: [LAD] Program design: C++ -> SHM -> Python

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Harry Van Haaren <harryhaaren@...>
Cc: <linux-audio-dev@...>
Date: Monday, December 27, 2010 - 11:51 am

On 12/26/2010 01:37 PM, Harry Van Haaren wrote:

If you want to display a live waveform/spectrum while receiving data through
OSC, then I recommend that each packet is timestamped, so that you can
synchronize the graphics with audio output.

Also, if you don't need sample-level zooming in your waveform, you could send
peaks of blocks of a fixed size. Streaming the entire sample data through OSC
could be heavy IMO. Similarly, for the spectrum, you could compute it in the
engine, and send frequency peaks through OSC.

But for all that, you'll need accurate timestamps for each packet. Such accurate
timestamps can be tricky to produce. I made a small library for this purpose:
http://code.google.com/p/libtimefilter/

--
Olivier

_______________________________________________
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] Program design: C++ -&gt; SHM -&gt; Python, Harry Van Haaren, (Sun Dec 26, 1:05 am)
Re: [LAD] Program design: C++ -&gt; SHM -&gt; Python, Paul Coccoli, (Mon Dec 27, 8:32 pm)
Re: [LAD] Program design: C++ -&gt; SHM -&gt; Python, Arnold Krille, (Sun Dec 26, 8:22 am)
Re: [LAD] Program design: C++ -&gt; SHM -&gt; Python, Harry Van Haaren, (Sun Dec 26, 10:57 am)
Re: [LAD] Program design: C++ -&gt; SHM -&gt; Python, Harry Van Haaren, (Sun Dec 26, 12:37 pm)
Re: [LAD] Program design: C++ -> SHM -> Python, Olivier Guilyardi, (Mon Dec 27, 11:51 am)
Re: [LAD] Program design: C++ -&gt; SHM -&gt; Python, Arnold Krille, (Sun Dec 26, 4:00 pm)