Code: Select all
import Live
# ...
new_notes = []
note = Live.Clip.MidiNoteSpecification(pitch=69, start_time=1, duration=4, velocity=127)
new_notes.append(note)
clip.add_new_notes(tuple(new_notes))
Code: Select all
import Live
# ...
new_notes = []
note = Live.Clip.MidiNoteSpecification(pitch=69, start_time=1, duration=4, velocity=127)
new_notes.append(note)
clip.add_new_notes(tuple(new_notes))