Skip to content

Commit 5ef9d38

Browse files
authored
Update cpx-basic-synth.py
1 parent e4631b5 commit 5ef9d38

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Circuit_Playground_Express_USB_MIDI/cpx-basic-synth.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@
6060

6161
# 440Hz is the standard frequency for A4 (A above middle C)
6262
# MIDI defines middle C as 60 and modulation wheel is cc 1 by convention
63-
A4refhz = const(440)
63+
A4refhz = 440 # was const(440)
6464
midi_note_C4 = note_parser("C4")
6565
midi_note_A4 = note_parser("A4")
66-
midi_cc_modwheel = const(1)
66+
midi_cc_modwheel = 1 # was const(1)
6767
twopi = 2 * math.pi
6868

6969
# A length of 12 will make the sawtooth rather steppy
@@ -104,7 +104,7 @@ def waveform_sawtooth(length, waves, volumes):
104104

105105
# brightness 1.0 saves memory by removing need for a second buffer
106106
# 10 is number of NeoPixels on CPX
107-
numpixels = const(10)
107+
numpixels = 10 # was const(10)
108108
pixels = neopixel.NeoPixel(board.NEOPIXEL, numpixels, brightness=1.0)
109109

110110
# Turn NeoPixel on to represent a note using RGB x 10

0 commit comments

Comments
 (0)