music.Sequencer¶
- class music.Sequencer(sample_rate=44100, events=<factory>)[source]¶
Bases:
objectSchedules notes and renders them as audio.
- __init__(sample_rate=44100, events=<factory>)¶
Methods
__init__([sample_rate, events])add_note(freq, start, duration[, ...])Add a note event to the sequencer.
render()Render all scheduled events and return the audio array.
write(filename[, bit_depth])Write the rendered audio to a WAV file.
Attributes