Logo Search packages:      
Sourcecode: rosegarden version File versions  Download package

void NotationView::showPreviewNote ( int  staffNo,
double  layoutX,
int  pitch,
int  height,
const Rosegarden::Note note,
int  velocity = -1 

Show and sound the given note. The height is used for display, the pitch for performance, so the two need not correspond (e.g. under ottava there may be octave differences).

Definition at line 2901 of file notationview.cpp.

References playNote().

Referenced by NotationSelector::drag().

    m_staffs[staffNo]->showPreviewNote(layoutX, height, note);
    playNote(m_staffs[staffNo]->getSegment(), pitch, velocity);

Generated by  Doxygen 1.6.0   Back to index