events_for_chord(coord,
chord_type,
start,
duration,
origin_note=60,
equal_temperament=False,
root_octave=0,
double_root=False,
velocity=100)
| source code
|
Builds a chord's midi events (note on and note off) from a root
coordinate and a chord type. Uses the chord definitions in jazzparser.harmonical.CHORD_TYPES to decide what notes
to play.
The list is grouped into sublists, one for each note. For each note,
three events are created: tuning, note on and note off.
- Parameters:
root_octave (int) - octave to transpose the root to relative to other notes. Default
(0) has the other notes in the octave above the root.
double_root (bool) - if True, an extra tone will be added an octave below the root.
This will be the last event in the list
|