musicscore.simpleformat
- class musicscore.simpleformat.SimpleFormat(quarter_durations=None, midis=None, default_midi=71, *args, **kwargs)[source]
Bases:
objectIt is useful tool to generate list of chords and also do some simple algorithmic changes to it if needed.
- extend(simple_format)[source]
Chords of another SimpleFormat will be added at the end of self.chords.
- mirror(pivot=None)[source]
Chords will be changed to get a mirrored version of the original. Pivot is a midi value that will be used as mirror axis. If not set the first midi will be the axis.
- property chords
- property default_midi
If only quarter_durations are provided the midi of chord will be set to default_midi. Default value is 71.
- property midis
- property quarter_duration