I have a code that represent numbers as notes, C1 is equal to 1 C_sharp1 is equal to 2 and so forth. Is there a way to take those numbers convert them into a midi output and send them live to a daw software like Ableton to play them?
this is an example from the output of the code:
[1, 3, 5, 6, 8, 10, 11]
rhythm: 1.3333333333333333
note: 8
[1, 3, 5, 6, 8, 10, 11]
coucalating_new_note
rhythm: 1.3333333333333333
note: 9
currently the program take the note_n variable, play it with this portion of the code and print the number of it:
if note_n == 1:
winsound.PlaySound("1", winsound.SND_ASYNC)
elif note_n == 2:
winsound.PlaySound("2", winsound.SND_ASYNC)
elif note_n == 3:
winsound.PlaySound("3", winsound.SND_ASYNC)
I want to take those numbers and turn them in to midi signal that will feed the DAW and play them through it.