more MIDI binding map syntax corrections
[ardour.git] / gtk2_ardour / midi_streamview.h
index b29f030e61c4038c35e4a8f6e757e46b9ef6b099..a939d8ea7d5e76b511784e65bfe819a339789e5a 100644 (file)
@@ -77,16 +77,13 @@ class MidiStreamView : public StreamView
        void redisplay_track ();
 
        inline double contents_height() const
-       { return (_trackview.current_height() - TimeAxisViewItem::NAME_HIGHLIGHT_SIZE - 2); }
+       { return (child_height() - TimeAxisViewItem::NAME_HIGHLIGHT_SIZE - 2); }
 
        inline double note_to_y(uint8_t note) const
                { return contents_height()
                        - (note + 1 - lowest_note()) * note_height() + 1; }
 
-       inline uint8_t y_to_note(double y) const
-               { return (uint8_t)((contents_height() - y - 1)
-                               / contents_height() * (double)contents_note_range())
-                               + lowest_note(); }
+       uint8_t y_to_note(double y) const;
 
        inline double note_height() const
                { return contents_height() / (double)contents_note_range(); }