From e55e3fde7cec89c49e01046a2db276b2d8f30958 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 3 May 2008 21:55:43 +0000 Subject: Comment out excessive terminal output. Write all events (not just notes) to SMF file from MidiModel (just use iterator instead of hand-hacked MidiModel::write_to). Various MIDI bug fixes. git-svn-id: svn://localhost/ardour2/branches/3.0@3312 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/ardour/midi_model.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libs/ardour/ardour/midi_model.h') diff --git a/libs/ardour/ardour/midi_model.h b/libs/ardour/ardour/midi_model.h index ea915d0a45..39987dfe7a 100644 --- a/libs/ardour/ardour/midi_model.h +++ b/libs/ardour/ardour/midi_model.h @@ -63,7 +63,7 @@ public: */ class MidiModel : public boost::noncopyable, public Automatable { public: - MidiModel(MidiSource *s, size_t size=0); + MidiModel(MidiSource* s, size_t size=0); void write_lock(); void write_unlock(); @@ -91,7 +91,6 @@ public: inline size_t n_notes() const { return _notes.size(); } inline bool empty() const { return _notes.size() == 0 && _controls.size() == 0; } - inline static bool note_time_comparator (const boost::shared_ptr a, const boost::shared_ptr b) { return a->time() < b->time(); @@ -149,7 +148,8 @@ public: void set_edited(bool yn) { _edited = yn; } bool write_to(boost::shared_ptr source); - // MidiModel doesn't use the normal AutomationList serialisation code, as CC data is in the .mid + // MidiModel doesn't use the normal AutomationList serialisation code + // since controller data is stored in the .mid XMLNode& get_state(); int set_state(const XMLNode&) { return 0; } -- cgit v1.2.3