Skip to content

Commit aca2763

Browse files
authored
Merge pull request #1588 from Neradoc/nera-fix-ble-glove
Fix assigning ints to labels in the BLE glove
2 parents 225ce85 + b6ce1a0 commit aca2763

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

MIDI_CLUE_BLE_Glove/midi_clue_ble_glove.py

100644100755
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120

121121
# cc x value
122122
cc_x_label = label.Label(
123-
terminalio.FONT, text=(cc_x), scale=3, color=ORANGE, max_glyphs=3
123+
terminalio.FONT, text=str(cc_x), scale=3, color=ORANGE, max_glyphs=3
124124
)
125125
cc_x_label.x = column_b
126126
cc_x_label.y = row_a
@@ -143,7 +143,7 @@
143143
screen.append(cc_y_num_label)
144144

145145
# cc y value text
146-
cc_y_label = label.Label(terminalio.FONT, text=cc_y, scale=3, color=BLUE, max_glyphs=3,)
146+
cc_y_label = label.Label(terminalio.FONT, text=str(cc_y), scale=3, color=BLUE, max_glyphs=3,)
147147
cc_y_label.x = column_b
148148
cc_y_label.y = row_b
149149
screen.append(cc_y_label)
@@ -166,7 +166,7 @@
166166

167167
# cc prox value text
168168
cc_prox_label = label.Label(
169-
terminalio.FONT, text=cc_prox, scale=3, color=SILVER, max_glyphs=3,
169+
terminalio.FONT, text=str(cc_prox), scale=3, color=SILVER, max_glyphs=3,
170170
)
171171
cc_prox_label.x = column_b
172172
cc_prox_label.y = row_c
@@ -245,9 +245,9 @@
245245
ControlChange(cc_prox_num, cc_prox),
246246
]
247247
)
248-
cc_x_label.text = cc_x
249-
cc_y_label.text = cc_y
250-
cc_prox_label.text = cc_prox
248+
cc_x_label.text = str(cc_x)
249+
cc_y_label.text = str(cc_y)
250+
cc_prox_label.text = str(cc_prox)
251251

252252
# If you want to send NoteOn or Pitch Bend, here are examples:
253253
# midi.send(NoteOn(44, 1column_a)) # G sharp 2nd octave

0 commit comments

Comments
 (0)