projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b027d9d
)
add a debug mode (in synth) to track down lost note-on
author
Robin Gareus
<robin@gareus.org>
Sun, 26 Jun 2016 15:15:46 +0000
(17:15 +0200)
committer
Robin Gareus
<robin@gareus.org>
Sun, 26 Jun 2016 15:15:46 +0000
(17:15 +0200)
libs/plugins/reasonablesynth.lv2/lv2.c
patch
|
blob
|
history
diff --git
a/libs/plugins/reasonablesynth.lv2/lv2.c
b/libs/plugins/reasonablesynth.lv2/lv2.c
index 4698cb9131c795352289004d5be0fb1ac8afeba8..bc3715ac4e8f0f37417247de1514a92c8fee5103 100644
(file)
--- a/
libs/plugins/reasonablesynth.lv2/lv2.c
+++ b/
libs/plugins/reasonablesynth.lv2/lv2.c
@@
-153,6
+153,13
@@
run(LV2_Handle handle, uint32_t n_samples)
)
{
if (ev->body.type == self->midi_MidiEvent) {
+#ifdef DEBUG_MIDI_EVENT // debug midi messages in synth -- not rt-safe(!)
+ printf ("%5d (%d):", ev->time.frames, ev->body.size);
+ for (uint8_t i = 0; i < ev->body.size; ++i) {
+ printf (" %02x", ((const uint8_t*)(ev+1))[i]);
+ }
+ printf ("\n");
+#endif
if (written + BUFFER_SIZE_SAMPLES < ev->time.frames
&& ev->time.frames < n_samples) {
/* first synthesize sound up until the message timestamp */