|
120 | 120 |
|
121 | 121 | # cc x value
|
122 | 122 | 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 |
124 | 124 | )
|
125 | 125 | cc_x_label.x = column_b
|
126 | 126 | cc_x_label.y = row_a
|
|
143 | 143 | screen.append(cc_y_num_label)
|
144 | 144 |
|
145 | 145 | # 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,) |
147 | 147 | cc_y_label.x = column_b
|
148 | 148 | cc_y_label.y = row_b
|
149 | 149 | screen.append(cc_y_label)
|
|
166 | 166 |
|
167 | 167 | # cc prox value text
|
168 | 168 | 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, |
170 | 170 | )
|
171 | 171 | cc_prox_label.x = column_b
|
172 | 172 | cc_prox_label.y = row_c
|
|
245 | 245 | ControlChange(cc_prox_num, cc_prox),
|
246 | 246 | ]
|
247 | 247 | )
|
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) |
251 | 251 |
|
252 | 252 | # If you want to send NoteOn or Pitch Bend, here are examples:
|
253 | 253 | # midi.send(NoteOn(44, 1column_a)) # G sharp 2nd octave
|
|
0 commit comments