Midi Notes - Adding Midi Notes to a Clip

 You can use replace_selected_notes to add midi notes to a clip. 
Part of the function is where you want to place the notes. If there are no notes where you place them then they will be created.