tweak debug output
authorPaul Davis <paul@linuxaudiosystems.com>
Tue, 22 Nov 2011 20:29:41 +0000 (20:29 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Tue, 22 Nov 2011 20:29:41 +0000 (20:29 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@10780 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/midi_source.cc
libs/evoral/src/Sequence.cpp

index 1093cb2c4b69bc3280743c79bb5bb37780917726..bddb392221fbdffcbe8d9adcbf378e235fa4aa08 100644 (file)
@@ -241,6 +241,8 @@ MidiSource::midi_read (Evoral::EventSink<framepos_t>& dst, framepos_t source_sta
                                        }
                                }
                        } else {
+                                DEBUG_TRACE (DEBUG::MidiSourceIO, string_compose ("%1: reached end with event @ %2 vs. %3\n",
+                                                                                  _name, time_frames, start+cnt));
                                break;
                        }
                }
@@ -258,7 +260,7 @@ framecnt_t
 MidiSource::midi_write (MidiRingBuffer<framepos_t>& source, framepos_t source_start, framecnt_t duration)
 {
        Glib::Mutex::Lock lm (_lock);
-       cerr << "MidiSource calling write unlocked\n";
+
        const framecnt_t ret = write_unlocked (source, source_start, duration);
 
        if (duration == max_framecnt) {
@@ -267,7 +269,6 @@ MidiSource::midi_write (MidiRingBuffer<framepos_t>& source, framepos_t source_st
                _last_write_end += duration;
        }
 
-       cerr << name() << " last write end now @ " << _last_write_end << endl;
        return ret;
 }
 
index be3c7ec1218ddf503403ddc67e7f6e060c39d9c9..1001898a7cbf32aaeb60a3c74df8e8119721b959 100644 (file)
@@ -682,7 +682,7 @@ Sequence<Time>::add_note_unlocked(const NotePtr note, void* arg)
         /* This is the core method to add notes to a Sequence 
          */
 
-       DEBUG_TRACE (DEBUG::Sequence, string_compose ("%1 add note %2 @ %3\n", this, (int)note->note(), note->time()));
+       DEBUG_TRACE (DEBUG::Sequence, string_compose ("%1 add note %2 @ %3 dur %4\n", this, (int)note->note(), note->time(), note->length()));
 
         if (resolve_overlaps_unlocked (note, arg)) {
                 DEBUG_TRACE (DEBUG::Sequence, string_compose ("%1 DISALLOWED: note %2 @ %3\n", this, (int)note->note(), note->time()));