pyampact.symbolicUtils.noteRestHelper

pyampact.symbolicUtils.noteRestHelper(nr)[source]

Helper function for the notes method.

If the note/rest object nr is a rest, return ‘r’. Otherwise, return the note’s name with octave.

Parameters:

nr – A note/rest object.

Returns:

‘r’ if nr is a rest, otherwise the note’s name with octave.