musicaiz.rhythm.NoteLengths

class musicaiz.rhythm.NoteLengths(value)[source]

This Enum contains Note durations in fractions of the whole note. The Enum names correspond to the American notation. From https://www.fransabsil.nl/htm/ticktime.htm

Value: Relative value

__init__(*args, **kwargs)

Methods

ticks([resolution])

ms([bpm, resolution])

get_note_ticks_mapping([triplets, resolution])

get_note_with_fraction(fraction)

Attributes

DOTTED_WHOLE

WHOLE

DOTTED_HALF

HALF

DOTTED_QUARTER

QUARTER

DOTTED_EIGHT

EIGHT

DOTTED_SIXTEENTH

SIXTEENTH

DOTTED_THIRTY_SECOND

THIRTY_SECOND

DOTTED_SIXTY_FOUR

SIXTY_FOUR

DOTTED_HUNDRED_TWENTY_EIGHT

HUNDRED_TWENTY_EIGHT

HALF_TRIPLET

QUARTER_TRIPLET

EIGHT_TRIPLET

SIXTEENTH_TRIPLET

fraction