Browse Source

temporary notation fix

Paola Fontana Gasio 4 years ago
parent
commit
ae15e6ea53
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/gizmo_transforming_functions.py

+ 4 - 0
src/gizmo_transforming_functions.py

@@ -1,4 +1,7 @@
 """ helper functions """
 """ helper functions """
+# temporary notation fix
+def fix_temp(note):
+    return note[:4] + note[6:]
 
 
 # converts float duration to string in the form x.xx
 # converts float duration to string in the form x.xx
 def duration_to_string(input_float_duration):
 def duration_to_string(input_float_duration):
@@ -59,6 +62,7 @@ def vergrösserung(input_list):
 
 
     # return the note higher by a value (1 = half a step)
     # return the note higher by a value (1 = half a step)
 def highes_note(note, value):
 def highes_note(note, value):
+    note = fix_temp(note)
     notes_list = ['C', 'C#', 'D', 'D#', 'E', 'F', 'F#', 'G', 'G#', 'A', 'A#', 'B']
     notes_list = ['C', 'C#', 'D', 'D#', 'E', 'F', 'F#', 'G', 'G#', 'A', 'A#', 'B']
     is_up = True
     is_up = True
     if value < 0:
     if value < 0: