From 74b8a63270c1c0b01b33e861c26b1e2a59eeb82b Mon Sep 17 00:00:00 2001 From: Jonas Suhr Christensen Date: Fri, 7 Mar 2014 04:25:52 +0100 Subject: Changed midi handling from event extension to atom extension. --- lv2/lv2.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lv2/lv2.cc') diff --git a/lv2/lv2.cc b/lv2/lv2.cc index c1f1ecc..3aeb5f0 100644 --- a/lv2/lv2.cc +++ b/lv2/lv2.cc @@ -27,6 +27,7 @@ #include #include +#include #include "lv2_gui.h" @@ -34,7 +35,7 @@ #include -#define MIDI_EVENT_URI "http://lv2plug.in/ns/ext/midi#MidiEvent" +#include #define NS_ATOM "http://lv2plug.in/ns/ext/atom#" #define NS_DG "http://drumgizmo.org/lv2/atom#" @@ -310,7 +311,7 @@ void connect_port(LV2_Handle instance, DGLV2 *dglv2 = (DGLV2 *)instance; if(port == 0) {// MIDI in - dglv2->in->eventPort = (LV2_Event_Buffer*)data_location; + dglv2->in->eventPort = (LV2_Atom_Sequence*)data_location; } else {// Audio Port if(port - 1 < NUM_OUTPUTS) { dglv2->out->outputPorts[port - 1].samples = (sample_t*)data_location; -- cgit v1.2.3