Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
NyxTheShield authored Sep 30, 2022
1 parent 838d0f3 commit 432d485
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Binary file modified Midi2TromboneChamp.exe
Binary file not shown.
7 changes: 4 additions & 3 deletions Midi2TromboneChamp.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def SetupNote(beat, length, noteNumber, endNoteNumber):
lastNote = -1000
lastChannel = -1
defaultLength = 0.2
noteTrimming = 0.2
noteTrimming = 0.0
currBeat = 0
noteHeld = False

Expand Down Expand Up @@ -252,7 +252,8 @@ def SetupNote(beat, length, noteNumber, endNoteNumber):
currentNote = SetupNote(currBeat, 0, noteToUse, noteToUse)
else:
#If we are holding one, we add the previous note we set up, and set up a new one
currentNote[1] = round(currBeat-currentNote[0],2)
print("Cancelling Previous note!" + str(currBeat) + " old is" + str(currentNote[0]))
currentNote[1] = round(currBeat-currentNote[0],3)
currentNote[4] = (noteToUse-60)*13.75
currentNote[3] = currentNote[4]-currentNote[2]

Expand All @@ -273,7 +274,7 @@ def SetupNote(beat, length, noteNumber, endNoteNumber):
print("Skipping channel 1 note off...")
if (message.channel == 0):
if (noteToUse == lastNote and noteHeld):
currentNote[1] = round(currBeat-currentNote[0] - noteTrimming,2)
currentNote[1] = round(currBeat-currentNote[0] - noteTrimming,3)
currentNote[4] = currentNote[4]
currentNote[3] = 0

Expand Down

0 comments on commit 432d485

Please sign in to comment.