diff --git a/docs/TMIDIX.html b/docs/TMIDIX.html index 2955bd6..6b370ca 100644 --- a/docs/TMIDIX.html +++ b/docs/TMIDIX.html @@ -8055,7 +8055,9 @@
################################################################################### def escore_notes_to_escore_matrix(escore_notes, - alt_velocities=False + alt_velocities=False, + flip_matrix=False, + reverse_matrix=False ): last_time = escore_notes[-1][1] @@ -8096,6 +8098,18 @@
pe = note + if flip_matrix: + + temp_matrix = [] + + for m in escore_matrix: + temp_matrix.append(m[::-1]) + + escore_matrix = temp_matrix + + if reverse_matrix: + escore_matrix = escore_matrix[::-1] + escore_matrixes.append(escore_matrix) return [channels_list, escore_matrixes] @@ -8184,7 +8198,9 @@
def escore_notes_to_binary_matrix(escore_notes, channel=0, - patch=0 + patch=0, + flip_matrix=False, + reverse_matrix=False ): escore = [e for e in escore_notes if e[3] == channel and e[6] == patch] @@ -8217,6 +8233,18 @@
escore_matrix[t][pitch] = 1 + if flip_matrix: + + temp_matrix = [] + + for m in escore_matrix: + temp_matrix.append(m[::-1]) + + escore_matrix = temp_matrix + + if reverse_matrix: + escore_matrix = escore_matrix[::-1] + return escore_matrix else: @@ -9239,9 +9267,7 @@
for cc in chord: if cc[3] != 9: pchord.append(cc[4]) - else: - pchord.append(cc[4]+128) - + return pchord def summarize_escore_notes(escore_notes, @@ -13905,9 +13931,7 @@

Functions

for cc in chord: if cc[3] != 9: pchord.append(cc[4]) - else: - pchord.append(cc[4]+128) - + return pchord @@ -14816,7 +14840,7 @@

Functions

-

def escore_notes_to_binary_matrix(

escore_notes, channel=0, patch=0)

+

def escore_notes_to_binary_matrix(

escore_notes, channel=0, patch=0, flip_matrix=False, reverse_matrix=False)

@@ -14827,7 +14851,9 @@

Functions

def escore_notes_to_binary_matrix(escore_notes, 
                                   channel=0, 
-                                  patch=0
+                                  patch=0,
+                                  flip_matrix=False,
+                                  reverse_matrix=False
                                   ):
 
   escore = [e for e in escore_notes if e[3] == channel and e[6] == patch]
@@ -14860,6 +14886,18 @@ 

Functions

escore_matrix[t][pitch] = 1 + if flip_matrix: + + temp_matrix = [] + + for m in escore_matrix: + temp_matrix.append(m[::-1]) + + escore_matrix = temp_matrix + + if reverse_matrix: + escore_matrix = escore_matrix[::-1] + return escore_matrix else: @@ -14874,7 +14912,7 @@

Functions

-

def escore_notes_to_escore_matrix(

escore_notes, alt_velocities=False)

+

def escore_notes_to_escore_matrix(

escore_notes, alt_velocities=False, flip_matrix=False, reverse_matrix=False)

@@ -14884,7 +14922,9 @@

Functions

def escore_notes_to_escore_matrix(escore_notes,
-                                  alt_velocities=False
+                                  alt_velocities=False,
+                                  flip_matrix=False,
+                                  reverse_matrix=False
                                   ):
 
   last_time = escore_notes[-1][1]
@@ -14925,6 +14965,18 @@ 

Functions

pe = note + if flip_matrix: + + temp_matrix = [] + + for m in escore_matrix: + temp_matrix.append(m[::-1]) + + escore_matrix = temp_matrix + + if reverse_matrix: + escore_matrix = escore_matrix[::-1] + escore_matrixes.append(escore_matrix) return [channels_list, escore_matrixes]