aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/eg02-midigate.lv2/midigate.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-02-18 00:12:59 +0000
committerDavid Robillard <d@drobilla.net>2013-02-18 00:12:59 +0000
commitbc8f4e16826abcc9a22466a151e1c4d8daf1a365 (patch)
tree649918e5ac0e3e3f4c4d3c07105e145861790bcd /plugins/eg02-midigate.lv2/midigate.c
parentfb9e90572dabd73d42435e8b001e57ac891acdf8 (diff)
downloadlv2-bc8f4e16826abcc9a22466a151e1c4d8daf1a365.tar.xz
Remove lv2:Program and all related things.
Diffstat (limited to 'plugins/eg02-midigate.lv2/midigate.c')
-rw-r--r--plugins/eg02-midigate.lv2/midigate.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/eg02-midigate.lv2/midigate.c b/plugins/eg02-midigate.lv2/midigate.c
index 3b74bfc..3ed6fbf 100644
--- a/plugins/eg02-midigate.lv2/midigate.c
+++ b/plugins/eg02-midigate.lv2/midigate.c
@@ -47,7 +47,7 @@ typedef struct {
} uris;
unsigned n_active_notes;
- unsigned program;
+ unsigned program; // 0 = normal, 1 = inverted
} Midigate;
static LV2_Handle
@@ -136,6 +136,10 @@ write_output(Midigate* self, uint32_t offset, uint32_t len)
+offset+ is updated and the next event is processed. After the loop the
final chunk from the last event to the end of the cycle is emitted.
+ There is currently no standard way to describe MIDI programs in LV2, so the
+ host has no way of knowing that these programs exist and should be presented
+ to the user. A future version of LV2 will address this shortcoming.
+
This pattern of iterating over input events and writing output along the way
is a common idiom for writing sample accurate output based on event input.