|
|
@ -932,6 +932,19 @@ def _setBlockData(block, newData): |
|
|
|
|
|
|
|
|
|
|
|
#Cursor |
|
|
|
|
|
|
|
def getCursorPitch(): |
|
|
|
keysig = session.data.currentTrack().state.keySignature() |
|
|
|
return pitchmath.toScale(session.data.cursor.pitchindex, keysig) |
|
|
|
|
|
|
|
def getCursorSimpleLyNote(): |
|
|
|
"""Return the note on the the cursor pitch position as simple lilypond note, without octave. |
|
|
|
This is mainly intended for occasional GUI information display, such as in sub menus""" |
|
|
|
pitch = getCursorPitch() |
|
|
|
lyNote = pitchmath.pitch2ly[pitch].strip("'").strip(",").lower() |
|
|
|
return lyNote |
|
|
|
|
|
|
|
|
|
|
|
def left(): |
|
|
|
"""move the currently active tracks cursor one position to the left. |
|
|
|
Can be directly used by a user interface""" |
|
|
|