Commit Graph

31051 Commits

Author SHA1 Message Date
Jeff Epler 2b42783301
Apply suggestions from code review
Co-authored-by: Dan Halbert <halbert@adafruit.com>
2023-05-23 08:57:16 -05:00
Jeff Epler 122e00bdb3
document ring arguments to constructor
thanks Mark!
2023-05-22 21:59:39 -05:00
Jeff Epler af40a173ba
synthio: midi_to_hz: remove arbitrary note number limitation
The underlying routine can return numbers for higher and lower
octaves. Other bits of the code might have frequency limitations
but that doesn't mean we shouldn't let someone get a ~4Hz "note"
by sending in (-12), because that's actually totally plausible as
an LFO frequency.
2023-05-22 21:58:09 -05:00
Jeff Epler 1b174f8b3d
synthio: remove "1-octave" caveat, is false now 2023-05-22 21:58:09 -05:00
Jeff Epler 5b4d621fd2
synthio: explicitly cast away const to satisfy compiler 2023-05-22 21:58:08 -05:00
Jeff Epler 167aa30f12
synthio: remove if0'd code
thanks tannewt
2023-05-22 21:58:04 -05:00
Jeff Epler 8626130af7
synthio: Add default triangle waveform to LFO, improve docs 2023-05-22 10:53:29 -05:00
Jeff Epler 1059c99f6e
synthio: Add tests of each varying lfo input
I looked at all the results and they pleased me
2023-05-22 10:45:28 -05:00
Jeff Epler 3790fd4117
synthio: Add tests of all synthio math blocks
I plotted and eyeballed these and they all looked plausible
2023-05-22 10:45:21 -05:00
Jeff Epler 4f671dab6f
synthio: one more doc fix 2023-05-21 19:15:34 -05:00
Jeff Epler 4d60c4608e
synthio: doc fixes 2023-05-21 17:49:30 -05:00
Jeff Epler ac02a2668e
synthio: avoid exceptions inside get_buffer
.. in case the items in lfos are not actually LFOs
2023-05-21 13:22:50 -05:00
Jeff Epler 78e75f6977
synthio: enable additional LFO test cases 2023-05-21 13:22:49 -05:00
Jeff Epler c5615995d9
synthio: fix docstring 2023-05-21 13:22:49 -05:00
Jeff Epler 823a02c0b7
synthio: Add a new test of synthio.LFO 2023-05-21 13:22:49 -05:00
Jeff Epler 11c110e0da
synthio: remove 'none' case from lfo_tick 2023-05-21 13:22:48 -05:00
Jeff Epler c084ab92c8
synthio: Enable `synthio.MathOperation.SUM(3,4,5)` 2023-05-21 13:22:48 -05:00
Jeff Epler 76101c035e
core: Allow `enum` types to specify additional fields in the object
this will be used to make MathOperation enum values callable to
construct a Math object with that function
2023-05-21 13:22:48 -05:00
Jeff Epler 4ff08e02eb
synthio: lfo: bugfixes & improvements
LFO waveforms are now linearly interpolated by default, but a new
property (interpolated=False) can disable this.

The 'once' logic was improved
2023-05-21 13:22:47 -05:00
Jeff Epler e6c4d12eaf
synthio: doc improvement 2023-05-21 13:22:47 -05:00
Jeff Epler e0cfae1d05
synthio: add (untested) phase offset 2023-05-21 13:22:46 -05:00
Jeff Epler e259f8d1ba
synthio: Move some divide-by-twos to get_buffer
these are always h-type buffers, so let's make the "len" be the element
count, not the byte count.
2023-05-21 13:22:44 -05:00
Jeff Epler 4da32a7b86
Merge remote-tracking branch 'origin/main' into synthio-lfo-dag 2023-05-19 11:56:13 -05:00
Scott Shawcroft 02cb13e1a1
Merge pull request #7941 from bill88t/m5timer
M5 Timer Camera X
2023-05-19 09:13:22 -07:00
Scott Shawcroft 802628cedf
Merge pull request #7998 from tannewt/fix_mv_cast
Fix memoryview.cast over sliced memoryview
2023-05-19 08:48:21 -07:00
Scott Shawcroft 177b98174e
Shrink by combining error messages 2023-05-18 16:24:37 -07:00
Scott Shawcroft 9d11bda9e8
Fix memoryview.cast over sliced memoryview
Fixes #4758
2023-05-18 13:26:50 -07:00
Bill Sideris a731c26f01
Update m5x creator id 2023-05-18 22:29:21 +03:00
Bill Sideris 302cdad4ca
m5x camera working 2023-05-18 21:39:59 +03:00
Jeff Epler c435c469f4
synthio: simplify block logic a bit by converting from float just once 2023-05-18 11:55:01 -05:00
Bill Sideris ed0cc9295f
More camera pin definition improvements 2023-05-18 19:07:48 +03:00
Bill Sideris d426ba79f9
Merge branch 'adafruit:main' into m5timer 2023-05-18 15:13:24 +03:00
Jeff Epler 4901bdceb7
synthio: disable on more boards where it stopped fitting 2023-05-17 18:49:45 -05:00
Jeff Epler bd2a153eae
synthio: there is a midi note 0 2023-05-17 16:37:12 -05:00
Jeff Epler 391438102b
synthio: Finish implementing Math blocks 2023-05-17 16:32:20 -05:00
Jeff Epler 5de4d197a2
synthio: start generalizing LFO to Block 2023-05-17 15:05:34 -05:00
Jeff Epler 3d2db5dbe0
synthio: improve documentation, simplify synthio_lfo_obj_tick_scaled 2023-05-17 11:13:15 -05:00
Jeff Epler a682b42180
fir filtering demo 2023-05-17 11:13:15 -05:00
Jeff Epler 32e5d9e5c4
update ulab to 6.0.12 w/sinc function 2023-05-17 11:13:10 -05:00
Dan Halbert f2bfced407
Merge pull request #7976 from anecdata/ap_ipv4_picow
Allow Access Point static IPv4 on the raspberrypi port
2023-05-16 18:45:22 -04:00
Dan Halbert d945d8b6e0
Merge pull request #7988 from Neradoc/add-feather-rp2040-button-pin
Add the Feather RP2040 boot button to the board module ?
2023-05-16 18:41:15 -04:00
Dan Halbert b6a4d2e932
Merge pull request #7987 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2023-05-16 18:18:55 -04:00
Jeff Epler d4294de62b
synthio: Allow bends of more than one octave
up to +-12 sounds good, right?
2023-05-16 16:58:04 -05:00
Luis Ruiz San Segundo a568a0ba4a
Translated using Weblate (Spanish)
Currently translated at 100.0% (999 of 999 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/es/
2023-05-16 21:50:14 +02:00
Dan Halbert ab83c98c1d
Merge pull request #7982 from bill88t/picow-stop-ap
Await `CYW43_LINK_DOWN` in `stop_station`
2023-05-16 12:31:46 -04:00
Scott Shawcroft ae699ba898
Merge pull request #7983 from furbrain/main
Fix for #2204
2023-05-16 09:14:32 -07:00
Jeff Epler 0b926f8fd4
synthio: improve release/press/change
Semi-incompatible name change: The method `release_then_press`
is now `change`. For now a compatibility alias is supported.

Everywhere a `NoteSequence` was accepted, a single note is now accepted.
So for instance, `synth.press(30)` can be written instead of requiring
``synth.press((30,))`. The same goes for `change.retrigger`, which
will accept a single LFO or a sequence.
2023-05-16 10:26:56 -05:00
Jeff Epler e6c5e83a45
synthio: remove more dead code 2023-05-16 10:07:22 -05:00
Jeff Epler b2c6f9b1a4
synthio: add Synthesizer.lfo, retrigger option 2023-05-16 10:07:07 -05:00
Jeff Epler f83212314e
synthio: Add LFOs 2023-05-15 21:15:39 -05:00