Terra/gui/PianoRoll.cpp
IPianoRollViewStatus::NoteHeight IPianoRollViewStatus::GetNoteYRange(Int32 note_number) const
{
    double const yzoom = GetZoomFactor(wxVERTICAL);
    Int32 const yscroll = GetScrollPosition(wxVERTICAL);
    
    return NoteHeight {
        (float)((kNumKeys - note_number - 1) * kDefaultKeyHeight * yzoom - yscroll),
        (float)((kNumKeys - note_number) * kDefaultKeyHeight * yzoom - yscroll),
    };
}
//! get bottom y position for the note considering y-zoom factor and y-scroll position.
get bottom y position for the note considering y-zoom factor and y-scroll position.
get bottom y position for the note considering y - zoom factor and y - scroll position .
IPianoRollViewStatus::NoteHeight IPianoRollViewStatus::GetNoteYRange(Int32 note_number) const
{
    double const yzoom = GetZoomFactor(wxVERTICAL);
    Int32 const yscroll = GetScrollPosition(wxVERTICAL);
    return NoteHeight {
        (float)((kNumKeys - note_number - 1) * kDefaultKeyHeight * yzoom - yscroll),
        (float)((kNumKeys - note_number) * kDefaultKeyHeight * yzoom - yscroll),
    };
}
IPianoRollViewStatus :: NoteHeight IPianoRollViewStatus :: GetNoteYRange ( Int32 note_number ) const { double const yzoom = GetZoomFactor ( wxVERTICAL ) ; Int32 const yscroll = GetScrollPosition ( wxVERTICAL ) ; return NoteHeight { ( float ) ( ( kNumKeys - note_number - 1 ) * kDefaultKeyHeight * yzoom - yscroll ) , ( float ) ( ( kNumKeys - note_number ) * kDefaultKeyHeight * yzoom - yscroll ) , } ; }
get bottom y position for the note considering y-zoom factor and y-scroll position.
get bottom y position for the note considering y - zoom factor and y - scroll position .