Skip to content

Commit

Permalink
new string formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
lynerist committed May 5, 2021
1 parent 02d3333 commit 6eeb03f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sintesi.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
print(e)
exit()

midi = MidiInterface(mido.MidiFile("midi/%s.mid"%song, clip=True))
midi = MidiInterface(mido.MidiFile(f"midi/{song}.mid", clip=True))
duration = midi.duration


Expand Down Expand Up @@ -77,7 +77,7 @@
if not os.path.exists("outputAudio"):
os.mkdir("outputAudio")

audio.export("outputAudio/%s-%s.wav"%(song, instrument.name), "wav")
audio.export(f"outputAudio/{song}-{instrument.name}.wav", "wav")



0 comments on commit 6eeb03f

Please sign in to comment.