Create MIDI clips in the DAW

Hi there. Is there some way to create a set or an array of MIDI events such as Note On and Note Off and then use that set/array to print the MIDI notes to a clip in the DAW? For eg, if I m using Ableton Live OR Bitwig, could I select an existing MIDI clip in the DAW and then write the MIDI data that i had in the set/array so that those notes are in the clip now.

This is not really something that you can do in a traditional Audio plug-in. Certain digital audio workstations such as Ableton live or Cockos Reaper have ways which allow you to do it - max for live or the reaper api for example

Thank you for your reply Oliā€¦ i did figure this out eventually based on another question here on this forum.