summaryrefslogtreecommitdiff
path: root/libs/ardour
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-10-21 00:00:56 +0000
committerDavid Robillard <d@drobilla.net>2009-10-21 00:00:56 +0000
commitaf8c16cfe0ccfd6d4611159ba0956e98d0f08e5c (patch)
treebcee2bf8086c37c88f74f7b3a93b046eae8598f1 /libs/ardour
parent214a31bb98f283d9d4c9f3849af344d5d8def74c (diff)
Disable excessive debug printing.
git-svn-id: svn://localhost/ardour2/branches/3.0@5834 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour')
-rw-r--r--libs/ardour/midi_state_tracker.cc7
-rw-r--r--libs/ardour/midi_track.cc4
-rw-r--r--libs/ardour/smf_source.cc4
3 files changed, 6 insertions, 9 deletions
diff --git a/libs/ardour/midi_state_tracker.cc b/libs/ardour/midi_state_tracker.cc
index e3c66e4df8..0ddafc3fed 100644
--- a/libs/ardour/midi_state_tracker.cc
+++ b/libs/ardour/midi_state_tracker.cc
@@ -48,19 +48,18 @@ MidiStateTracker::track_note_onoffs (const Evoral::MIDIEvent<MidiBuffer::TimeTyp
}
}
}
+
void
MidiStateTracker::add (uint8_t note, uint8_t chn)
{
- cerr << "Added note " << note << " chan " << chn << endl;
- _active_notes[note + 128 * chn]++;
+ ++_active_notes[note + 128 * chn];
}
void
MidiStateTracker::remove (uint8_t note, uint8_t chn)
{
if (_active_notes[note + 128 * chn]) {
- cerr << "Removed note " << note << " chan " << chn << endl;
- _active_notes[note + 128 * chn]--;
+ --_active_notes[note + 128 * chn];
}
}
diff --git a/libs/ardour/midi_track.cc b/libs/ardour/midi_track.cc
index 68ff7de1e2..6b27d1b009 100644
--- a/libs/ardour/midi_track.cc
+++ b/libs/ardour/midi_track.cc
@@ -523,17 +523,15 @@ void
MidiTrack::write_out_of_band_data (BufferSet& bufs, sframes_t /*start*/, sframes_t /*end*/, nframes_t nframes)
{
// Append immediate events
-
MidiBuffer& buf (bufs.get_midi (0));
_immediate_events.read (buf, 0, 0, nframes - 1); // all stamps = 0
- /* MIDI thru: send incoming data "through" output */
+ // MIDI thru: send incoming data "through" output
if (_midi_thru && _input->n_ports().n_midi()) {
buf.merge_in_place (_input->midi(0)->get_midi_buffer(nframes));
}
}
-
int
MidiTrack::export_stuff (BufferSet& /*bufs*/, nframes_t /*nframes*/, sframes_t /*end_frame*/)
{
diff --git a/libs/ardour/smf_source.cc b/libs/ardour/smf_source.cc
index 169fcaf619..3e35e58fb9 100644
--- a/libs/ardour/smf_source.cc
+++ b/libs/ardour/smf_source.cc
@@ -239,8 +239,8 @@ SMFSource::write_unlocked (MidiRingBuffer<nframes_t>& source, sframes_t position
ev.set(buf, size, time);
ev.set_event_type(EventTypeMap::instance().midi_event_type(ev.buffer()[0]));
if (!(ev.is_channel_event() || ev.is_smf_meta_event() || ev.is_sysex())) {
- cerr << "SMFSource: WARNING: caller tried to write non SMF-Event of type "
- << std::hex << int(ev.buffer()[0]) << endl;
+ /*cerr << "SMFSource: WARNING: caller tried to write non SMF-Event of type "
+ << std::hex << int(ev.buffer()[0]) << endl;*/
continue;
}