Structure¶
This module provides objects and methods that allows to create and analyze the structure parts of symbolic music.
The basic structure elements are:
Piece: The whole piece or MIDI file that contains lists of instruments, bars, notes…
It can also contain harmonic attributes like Key, Chord Progressions, etc, depending if we do want to predict or generate them.
Instruments: A list of bars or directly, notes (depending if we want to distrubte the notes in
bars or not).
Bar: List of notes (it can also contain a list of Chords).
Notes: The basic element in music in both time and harmonic axes.
Notes¶
|
An enumeration. |
|
The number of semitones that are added to a note if the accidental is present. |
|
This class contains all the possible notes with their names |
|
The Tuples have 3 values: |
|
This class allows to instantiate a note object by just giving the pitch value or the name of the note in the MIDI format. |
|
|
|
A note even with its relevant attributes. |
Instruments¶
|
An enumeration. |
|
Value 1: List of Midi instrument program number Value 2: Color (for plot purposes) Value 3: Pitch range? |
|
Bars¶
|
Defines a class to group notes in bars. |