aboutsummaryrefslogtreecommitdiff
path: root/monitors_midi_pianoroll.c
diff options
context:
space:
mode:
Diffstat (limited to 'monitors_midi_pianoroll.c')
-rw-r--r--monitors_midi_pianoroll.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/monitors_midi_pianoroll.c b/monitors_midi_pianoroll.c
index 0df1f85..04cd841 100644
--- a/monitors_midi_pianoroll.c
+++ b/monitors_midi_pianoroll.c
@@ -32,7 +32,7 @@
#define MAX_GRAPH 0x20000 //FIXME actually measure this
#define MAX_NPROPS 7
#define MAX_KEYS 0x80
-#define MAX_NOTES 0x80
+#define MAX_NOTES 0x200
#define MAX_VELOCITY 0x80
#define MASK_KEYS (MAX_KEYS - 1)
#define MASK_NOTES (MAX_NOTES - 1)
@@ -434,7 +434,8 @@ instantiate(const LV2_Descriptor* descriptor, double rate,
lv2_canvas_idisp_init(&handle->idisp, queue_draw, handle->map);
#endif
- handle->midi_MidiEvent = handle->map->map(handle->map->handle, LV2_MIDI__MidiEvent);
+ handle->midi_MidiEvent = handle->map->map(handle->map->handle,
+ LV2_MIDI__MidiEvent);
const LV2_URID ui_update_rate= handle->map->map(handle->map->handle,
LV2_UI__updateRate);
@@ -446,8 +447,11 @@ instantiate(const LV2_Descriptor* descriptor, double rate,
opt && (opt->key != 0) && (opt->value != NULL);
opt++)
{
- if( (opt->key == ui_update_rate) && (opt->type == handle->notify.forge.Float) )
+ if( (opt->key == ui_update_rate)
+ && (opt->type == handle->notify.forge.Float) )
+ {
handle->update_rate = *(float*)opt->value;
+ }
}
handle->spf = handle->sample_rate / handle->update_rate;
@@ -595,7 +599,8 @@ run(LV2_Handle instance, uint32_t nsamples)
{
const LV2_Atom_Object *obj = (const LV2_Atom_Object *)atom;
- props_advance(&handle->props, &handle->notify.forge, ev->time.frames, obj, &handle->notify.ref);
+ props_advance(&handle->props, &handle->notify.forge, ev->time.frames, obj,
+ &handle->notify.ref);
}
const int64_t to = ev->time.frames;