This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Hardware | |
======== | |
Input | |
----- | |
Connect input jack sleeve to ground and tip to LIN1. | |
For a clearer signal, use a single-ended op-amp buffer (ie: TL072) before LIN1 to fix impedence issues. | |
If you plug the signal directly into LIN1, but you will lose a lot of the top end. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import board | |
import analogbufio | |
import array | |
import audiobusio | |
import audiocore | |
import audiodelays | |
import audiomixer | |
import digitalio | |
import time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import board | |
import analogbufio | |
import array | |
import audiobusio | |
import audiocore | |
import digitalio | |
import time | |
BUFFER_SIZE = 1024 # Lower buffer size = lower latency, but too low can cause digital artifacts | |
SAMPLE_RATE = 48000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CircuitPython synthio Sampling Example | |
# 2023 Cooper Dalrymple - me@dcdalrymple.com | |
import time | |
import board | |
import audiomixer, synthio | |
import math | |
import ulab, ulab.numpy as numpy | |
import adafruit_wave |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# synthio.Note ring_waveform_loop_start & ring_waveform_loop_end Test | |
# 2023 Cooper Dalrymple - me@dcdalrymple.com | |
import time | |
import board | |
import audiomixer | |
import synthio | |
import ulab.numpy as np | |
# for PWM audio with an RC filter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# synthio.Note waveform_loop_start & waveform_loop_end Test | |
# 2023 Cooper Dalrymple - me@dcdalrymple.com | |
import time | |
import board | |
import audiomixer | |
import synthio | |
import ulab.numpy as np | |
# for PWM audio with an RC filter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CircuitPython synthio Portamento with Single Shot LFO Example | |
# 2023 Cooper Dalrymple - me@dcdalrymple.com | |
# GPL v3 License | |
import board, time | |
import random, math | |
from audiobusio import I2SOut | |
from audiomixer import Mixer | |
import synthio | |
import ulab.numpy as numpy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CircuitPython synthio Portamento Example | |
# 2023 Cooper Dalrymple - me@dcdalrymple.com | |
# GPL v3 License | |
import board, time | |
import random | |
from audiobusio import I2SOut | |
from audiomixer import Mixer | |
import synthio | |
import ulab.numpy as numpy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CircuitPython synthio Portamento Example | |
# 2023 Cooper Dalrymple - me@dcdalrymple.com | |
# GPL v3 License | |
import board, time | |
import random, math | |
from audiobusio import I2SOut | |
from audiomixer import Mixer | |
import synthio | |
import ulab.numpy as numpy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CircuitPython synthio Monophonic MIDI Synthesizer | |
# 2023 Cooper Dalrymple - me@dcdalrymple.com | |
# GPL v3 License | |
import time | |
import math | |
import board | |
from digitalio import DigitalInOut, Direction, Pull |
NewerOlder