From e0a8e28140e5de36d230f7d52300d557d8f63c93 Mon Sep 17 00:00:00 2001 From: ThePython <87204246+ThePython10110@users.noreply.github.com> Date: Sun, 22 Oct 2023 13:47:59 -0700 Subject: [PATCH] Better MIDI flipping part 2 |NoConvert| Update Python script to fix pitches --- batch_convert.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/batch_convert.py b/batch_convert.py index 3f30d88..3010670 100644 --- a/batch_convert.py +++ b/batch_convert.py @@ -106,11 +106,11 @@ def list_files(startpath): pass try: - os.system(r'midiflip.cmd -i "'+ (output if output else '.') + '/MIDI/**/*.midi" -o "' + (output if output else '.') + '/FlippedMIDI"') #Flip all MIDI files, using https://github.com/1j01/midiflip + os.system(r'midiflip.cmd -i "'+ (output if output else '.') + '/MIDI/**/*.midi" -o "' + (output if output else '.') + '/FlippedMIDI" -f') #Flip all MIDI files, using my fork of https://github.com/1j01/midiflip except FileNotFoundError: print("Midiflip is not on PATH.") try: - os.system(r'.\\node_modules\\.bin\\midiflip.cmd -i "'+ (output if output else '.') + '/MIDI/**/*.midi" -o ' + (output if output else '.') + '"/FlippedMIDI"') #Flip all MIDI files, using https://github.com/1j01/midiflip + os.system(r'.\\node_modules\\.bin\\midiflip.cmd -i "'+ (output if output else '.') + '/MIDI/**/*.midi" -o ' + (output if output else '.') + '"/FlippedMIDI" -f') #Flip all MIDI files, using my fork of https://github.com/1j01/midiflip except FileNotFoundError: print("Midiflip is not installed. Install it with NodeJS with npm install midiflip\n\nIt should install to %UserProfile%\\node_modules\\.bin\\midiflip.cmd")