Skip to content

Commit

Permalink
Better MIDI flipping part 2 |NoConvert|
Browse files Browse the repository at this point in the history
Update Python script to fix pitches
  • Loading branch information
ThePython10110 authored Oct 22, 2023
1 parent 491ed8c commit e0a8e28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions batch_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit e0a8e28

Please sign in to comment.