midi()
Read a MIDI file into a score, replacing the score's contents.
Read.midi(score, filename)
Parameters
Read.midi(score, filename, humanize=False)
| Parameter | Type | Default | Description |
|---|---|---|---|
score |
Score |
required | The score to read the music into; its current contents are cleared. |
filename |
str |
required | The MIDI file to read (a .mid file). |
humanize |
bool |
False |
If True, give the notes their default sounding length (about 90% of their duration) for a more natural feel, instead of keeping the exact recorded timing. |
Returns
return score
| Value | Type | Description |
|---|---|---|
| score | Score |
The score, now holding the music from the file. |