summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorHans Baier <hansfbaier@googlemail.com>2009-01-30 06:21:14 +0000
committerHans Baier <hansfbaier@googlemail.com>2009-01-30 06:21:14 +0000
commit6fe0dc459eb0107b9c4df28b3ab8f71a2d37816b (patch)
tree33b072bf30e2efc38a0aa3b008b2469a22a21518 /libs
parent582555c3370f3bf274ec0a6c02e30c4d3d73bdd4 (diff)
* enlage MidiBuffer size to 128 bytes to allow for sysex events
git-svn-id: svn://localhost/ardour2/branches/3.0@4462 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/ardour/midi_buffer.h2
-rw-r--r--libs/evoral/src/Sequence.cpp6
2 files changed, 6 insertions, 2 deletions
diff --git a/libs/ardour/ardour/midi_buffer.h b/libs/ardour/ardour/midi_buffer.h
index 812f697aa3..bee7767977 100644
--- a/libs/ardour/ardour/midi_buffer.h
+++ b/libs/ardour/ardour/midi_buffer.h
@@ -85,7 +85,7 @@ private:
Evoral::MIDIEvent& operator[](size_t i) { assert(i < _size); return _events[i]; }
// FIXME: Eliminate this
- static const size_t MAX_EVENT_SIZE = 4; // bytes
+ static const size_t MAX_EVENT_SIZE = 128; // bytes
/* We use _size as "number of events", so the size of _data is
* (_size * MAX_EVENT_SIZE)
diff --git a/libs/evoral/src/Sequence.cpp b/libs/evoral/src/Sequence.cpp
index 6a860ac833..7781ea8907 100644
--- a/libs/evoral/src/Sequence.cpp
+++ b/libs/evoral/src/Sequence.cpp
@@ -536,7 +536,11 @@ Sequence::append(const Event& event)
} else if (ev.is_note_off()) {
append_note_off_unlocked(ev.channel(), ev.time(), ev.note());
} else if (!_type_map.type_is_midi(ev.event_type())) {
- printf("WARNING: Sequence: Unknown event type %X\n", ev.event_type());
+ printf("WARNING: Sequence: Unknown event type %X: ", ev.event_type());
+ for (size_t i=0; i < ev.size(); ++i) {
+ printf("%X ", ev.buffer()[i]);
+ }
+ printf("\n");
} else if (ev.is_cc()) {
append_control_unlocked(
Evoral::MIDI::ContinuousController(ev.event_type(), ev.channel(), ev.cc_number()),