I’d like to automatically import a specific midi file from a directory using Audacity scripting with python.
The following script works to open the ImportMIDI: file selection window, allowing me to manually select a file…but that’s not what I want.
toName = ‘\\.\pipe\ToSrvPipe’
fromName = ‘\\.\pipe\FromSrvPipe’
eol = ‘\r\n\0’
toFile = open(toName, ‘w’)
fromFile = open(fromName, ‘rt’)
I want to automatically import a specific midi file into Audacity without having to select it from the directory list. A pseudo example would be something like…
Here is my system configuration info
Windows 10 Home version 1903, Audacity 2.3.3, Python 3.7.4
Thank You for taking the time to look at this.