blob: ec3578b99756c4e0ee8eeaf30b1a279d7d1c6ae9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
== Simple Oscilloscope ==
This plugin displays the wave-form of an incoming audio-signal using a simple
GTK+Cairo GUI.
This plugin illustrates:
- UI <==> Plugin communication via LV2 atom events
- LV2 Atom vector usage and resize-port extension
- Save/Restore UI state by communicating state to backend
- Cairo drawing and partial exposure
This plugin intends to outline the basics for building visualization plugins
that rely on Atom communication. The UI looks likean oscilloscope, but is not a real oscilloscope implementation:
- There is no display synchronisation, results will depend on LV2 host.
- It displays raw audio samples, which a proper scope must not do.
- The display itself just connects min/max line segments.
- No triggering or synchronization.
- No labels, no scale, no calibration, no markers, no numeric readout, etc.
Addressing these issues is beyond the scope of this example.
Please see http://lac.linuxaudio.org/2013/papers/36.pdf for scope design,
https://wiki.xiph.org/Videos/Digital_Show_and_Tell for background information,
and http://lists.lv2plug.in/pipermail/devel-lv2plug.in/2013-November/000545.html
for general LV2 related conceptual criticism regarding real-time visualizations.
A proper oscilloscope based on this example can be found at
https://github.com/x42/sisco.lv2
|