Jul-07-2019, 11:06 AM
(This post was last modified: Jul-07-2019, 11:17 AM by rockproper.)
(Jul-07-2019, 12:04 AM)joe_momma Wrote: Hey have you heard of sonic pi: home page You can run your input with the program and capture outputs and control tones with their module psonic. (Use pip to install) The main program needs to be running to use python. Lots of examples to get you started.looks awesome! thanks!
(Jul-06-2019, 12:31 PM)noisefloor Wrote: Hi,Ah yes... I think you nailed the root of my problem. I was thinking the midifile command I was using was already pulling it into a list but I still need more formatting before I can manipulate. Thanks!Quote:I know this is a very basic python problem but I do not know exactly how to search for an answer here.No it's not. To be precise, it has nothing to do with Python in a strict sense. What you are looking for is a Python module which cannot only print tracks - as shown in your example, but can access the actual MIDI date and manipulate it. The mido module you are using seems to be able to do so. After a quick read through https://mido.readthedocs.io/en/latest/intro.html I think it's fairly easy: iterate of the messages of a MIDI file, copy the current message and alter the note at the same time, write the message to a new file. Done - I guess ;-) Gruß, noisefloor