eupolicy.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
This Mastodon server is a friendly and respectful discussion space for people working in areas related to EU policy. When you request to create an account, please tell us something about you.

Server stats:

221
active users

#circuitpython

0 posts0 participants0 posts today

For the last month or so I've been working on seeing how far I can push CircuitPython into emulating a TB-303 bass synth. With the new audiofilters library, you can "stack" filters to make two two-pole filters seem like a 4-pole filter, getting close to that squelchy sound we need. My efforts so far:
youtube.com/watch?v=1AflpXbEIno
#circuitpython #tb303 #synthdiy #raspberrypipico

I should be socializing with our host here in Aarhus but instead I've been doing some #circuitpython crimes. What if we could run synthio on desktop computers? It… sorta works? but only if you live code your synthio at the repl. and pitches seem wrong. and it clicks when changing notes.

github.com/adafruit/circuitpyt

aud.py: gist.github.com/jepler/6785f1d

$ cd ports/unix
$ make VARIANT=sound
$ ./build-sound/micropython
>>> import aud
>>> i = 72
>>> aud.s.release_all_then_press(i := i + 1)
>>> aud.s.release_all_then_press(i := i + 1)
>>> aud.s.release_all_then_press(i := i + 1)
>>> aud.s.release_all_then_press(i := i + 1)
>>> aud.s.release_all_then_press(i := i + 1)
>>> aud.s.release_all_then_press(i := i + 1)
>>> aud.s.release_all_then_press(i := i + 1)
>>> aud.s.release_all_then_press(i := i + 1)
GitHubComparing adafruit:main...jepler:unix-sound-sdl · adafruit/circuitpythonCircuitPython - a Python implementation for teaching coding with microcontrollers - Comparing adafruit:main...jepler:unix-sound-sdl · adafruit/circuitpython

My Raspberry Pi Pico 2-based Dub siren now has a simple synth engine in addition to a sample engine, so its sounds now range from classic siren sounds to air horns and vocal snippets.

In this short video I show off the synth engine: 🎹🔈🎶

v.basspistol.org/w/qmjJ3TY8Q8m

thx again 2 @todbot

And if you haven't seen it yet check out this video for yesterday's exploration of the sample engine: 📯🔈🎶

v.basspistol.org/w/pS4PrN9Wjo5

I was inspired by @todbot's latest #CircuitPython audio effects experiments, so I had a go at incorporating what I learned into a DIY Dub siren. It consists of a Raspberry Pi Pico 2, an i2s module with stereo line out and some pots, an encoder and a button.

Check out my unfinished (but already fun) prototype here:

v.basspistol.org/w/pS4PrN9Wjo5

NB: the case was a charity shop find.

Catch up on the latest episode of The CircuitPython Show with #CircuitPython core developer Dan Halbert. We discuss building CircuitPython from source and Dan shares some tips and tricks to building it yourself:

I've hacked together a CircuitPython library to UART boot the RP2350. The two bin files it's uploading just cycle through the LEDs in different directions.

I still have no RUN pin so I'm using one of my USB Power Switches to power cycle the board.