fix stupid MIDI::Manager design to properly handle multiple MIDI ports with the same...
[ardour.git] / gtk2_ardour / ghostregion.cc
index 7b92ab815b14b28ef203c621bca75fcc0dd5f889..9fb0deb98a0639076a25b2f80eaf55888f4b08a3 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2000-2007 Paul Davis 
+    Copyright (C) 2000-2007 Paul Davis
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
 
 */
 
-#include "simplerect.h"
-#include "waveview.h"
-#include "ghostregion.h"
-#include "midi_time_axis.h"
-#include "automation_time_axis.h"
-#include "midi_streamview.h"
-#include "rgb_macros.h"
+#include "evoral/Note.hpp"
 #include "ardour_ui.h"
+#include "automation_time_axis.h"
 #include "canvas-hit.h"
 #include "canvas-note.h"
+#include "ghostregion.h"
+#include "midi_streamview.h"
+#include "midi_time_axis.h"
+#include "rgb_macros.h"
+#include "simplerect.h"
+#include "waveview.h"
 
+using namespace std;
 using namespace Editing;
 using namespace ArdourCanvas;
 using namespace ARDOUR;
@@ -109,7 +111,7 @@ AudioGhostRegion::set_samples_per_unit (double spu)
 {
        for (vector<WaveView*>::iterator i = waves.begin(); i != waves.end(); ++i) {
                (*i)->property_samples_per_unit() = spu;
-       }               
+       }
 }
 
 void
@@ -122,7 +124,7 @@ AudioGhostRegion::set_height ()
        GhostRegion::set_height();
 
        ht = ((trackview.current_height()) / (double) waves.size());
-       
+
        for (n = 0, i = waves.begin(); i != waves.end(); ++i, ++n) {
                gdouble yoff = n * ht;
                (*i)->property_height() = ht;
@@ -166,7 +168,7 @@ MidiGhostRegion::MidiGhostRegion(TimeAxisView& tv, TimeAxisView& source_tv, doub
 MidiGhostRegion::MidiGhostRegion(MidiStreamView& msv, TimeAxisView& source_tv, double initial_unit_pos)
        : GhostRegion(msv.midi_underlay_group, msv.trackview(), source_tv, initial_unit_pos)
 {
-       base_rect->lower_to_bottom();   
+       base_rect->lower_to_bottom();
 }
 
 MidiGhostRegion::~MidiGhostRegion()
@@ -213,7 +215,7 @@ MidiGhostRegion::Hit::x_changed()
 }
 
 void
-MidiGhostRegion::set_samples_per_unit (double spu)
+MidiGhostRegion::set_samples_per_unit (double /*spu*/)
 {
 }
 
@@ -265,7 +267,7 @@ MidiGhostRegion::update_range()
        MidiGhostRegion::Note* note;
        uint8_t note_num;
        double y;
-       
+
        for (EventList::iterator it = events.begin(); it != events.end(); ++it) {
                if ((note = dynamic_cast<MidiGhostRegion::Note*>(*it)) != 0) {
                        note_num = note->event->note()->note();
@@ -308,7 +310,7 @@ MidiGhostRegion::add_note(ArdourCanvas::CanvasNote* n)
 }
 
 void
-MidiGhostRegion::add_hit(ArdourCanvas::CanvasHit* h)
+MidiGhostRegion::add_hit(ArdourCanvas::CanvasHit* /*h*/)
 {
        //events.push_back(new Hit(h, group));
 }