Skip to content

Commit 9197852

Browse files
committed
synthio: Add adafruit_wave and use it in the manual test
1 parent 93b0e5b commit 9197852

10 files changed

Lines changed: 18 additions & 739 deletions

File tree

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,3 +338,6 @@
338338
[submodule "frozen/circuitpython-pcf85063a"]
339339
path = frozen/circuitpython-pcf85063a
340340
url = https://github.com/bablokb/circuitpython-pcf85063a
341+
[submodule "frozen/Adafruit_CircuitPython_Wave"]
342+
path = frozen/Adafruit_CircuitPython_Wave
343+
url = http://github.com/adafruit/Adafruit_CircuitPython_Wave.git

frozen/Adafruit_CircuitPython_Wave

tests/circuitpython-manual/synthio/note/audioop.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

tests/circuitpython-manual/synthio/note/chunk.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

tests/circuitpython-manual/synthio/note/code.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1+
import sys
2+
3+
sys.path.insert(
4+
0, f"{__file__.rpartition('/')[0] or '.'}/../../../../frozen/Adafruit_CircuitPython_Wave"
5+
)
6+
17
import random
28
import audiocore
39
import synthio
410
from ulab import numpy as np
5-
import wave
11+
import adafruit_wave as wave
612

713
SAMPLE_SIZE = 1024
814
VOLUME = 14700

tests/circuitpython-manual/synthio/note/wave.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

tests/circuitpython-manual/synthio/wave/audioop.py

Lines changed: 0 additions & 11 deletions
This file was deleted.

tests/circuitpython-manual/synthio/wave/chunk.py

Lines changed: 0 additions & 173 deletions
This file was deleted.

tests/circuitpython-manual/synthio/wave/midi2wav.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1+
import sys
2+
3+
sys.path.insert(
4+
0, f"{__file__.rpartition('/')[0] or '.'}/../../../../frozen/Adafruit_CircuitPython_Wave"
5+
)
6+
17
import audiocore
28
import synthio
39
from ulab import numpy as np
4-
import wave
10+
import adafruit_wave as wave
511

612
SAMPLE_SIZE = 1024
713
VOLUME = 32700

0 commit comments

Comments
 (0)