23 Commits
Author SHA1 Message Date
Earle F. Philhower, III 7d99e6b7b9 BREAKING: Re-port MIDI, faster, lower memory, ESP32 support (#790)
* Pull untouched upstream TinySoundFont

Start from the upstream TinySoundFont by @schellingb at
https://github.com/schellingb/TinySoundFont and rearchitect the MIDI
processing.

* Convert to PROGMEM-based SoundFont structures.

This makes it much faster to access the SoundFont and also removes all the
static RAM usage.  The samples, the regions, the instruments are all now
in ROM.  Only the dynamic voices and related info takes up RAM.  No caching.

* (Re)convert to fixed point math.

TSF upstream is built for systems with real floating point units (and
produces great sound with it!), but processors like the Pico, ESP8266,
and several models of ESP32 don't have one so emulate FP in *extremely*
slow SW.  Use fixed point (integer) representations for the inner loop
and wherever possible to avoid `float` math.

For processors like the Pico 2 or original ESP32 with hardware FPUs this
still increases performance since integer is still much faster.

* Redo the example and add default SF2s

Rewrite the MIDI examples to use PROGMEM for both SF2 and MID file.
It simplifies life for the casual user and me.

* Breaking change

The MIDI object now has a `midi::SetSoundFont(tsf *)` instead of a
`midi::SetSoundfont(AudioFileSource *)`.  It no longer supports reading
SF2 from LittleFS or SD.
2025-10-20 18:26:41 -07:00
Earle F. Philhower, III f1d74df9f7 Rewrite OPUS driver, no extra libs, update (#780)
Move to Opus 1.5.1
Remove OpusFile and OGG libraries because we parse the OGG file in
the object directly with way less memory and overhead.

Update example for LittleFS and RP2040

Fixes #372
2025-10-10 15:19:20 -07:00
Earle F. Philhower, III c19a6153c9 Add Werror, etc. to CI process (#779) 2025-10-09 09:42:39 -07:00
Earle F. Philhower, III a3e6f97862 Add auto-release GH action 2025-10-08 10:07:53 -07:00
Earle F. Philhower, III 069945007d Pin GH actions to SHA (#770) 2025-10-08 09:28:03 -07:00
Earle F. Philhower, III b09bad5b9c Fix stale acction warnings 2025-10-08 09:11:53 -07:00
Earle F. Philhower, III acc4dc426d Add CodeQL GH action (#768) 2025-10-08 09:05:51 -07:00
Earle F. Philhower, III 18796abb1e Up GH action operations 2025-10-08 08:28:51 -07:00
Earle F. Philhower, III df171f5657 Add stale issue tracker GH action (#766) 2025-10-08 08:26:34 -07:00
Earle F. Philhower, III ae685b19e9 Use arduino-cli to build examples, avoid bitrot (#765)
The CI internals for all cores seem to change a lot, so don't rely
on them to build tests here.  Instead, run arduino-cli to build a sketch.
2025-10-07 20:26:11 -07:00
Earle F. Philhower, III f9e72dbb21 Add style check matching RP2040 core (#740)
Will let us backport the BackgroundAudio patches to libhelix easier and clean
up some ugly formatting we've let develop.
2025-04-11 12:09:49 -07:00
Earle F. Philhower, III a4a974363d Update Arduino Lint GH Action 2024-10-08 13:56:03 -07:00
Earle F. Philhower, III c93201483f Update pr-or-master-push.yml (#687) 2024-06-06 14:59:31 -07:00
Earle F. Philhower, III 492a5beba4 Update GH CI actions to latest (#681) 2024-04-17 10:22:17 -07:00
Earle F. Philhower, III 72ed4f76dd Update pr-or-master-push.yml 2022-09-01 12:15:29 -07:00
Earle F. Philhower, III a323627243 Update pr-or-master-push.yml 2022-08-31 10:54:49 -07:00
Earle F. Philhower, III 9a9e030d90 Add more tests to host testing in CI (#534)
Add more tests to host testing in CI
Fix FLAC potential 1st sample output oddity
2022-05-19 17:17:21 -07:00
Earle F. Philhower, III 2069060574 Add RP2040 build (#530)
Fix examples to build on RP2040
Clean up generator warnings
No SPDIF on RP2040 (yet)
Add back C sources for AAC on ARM
No WiFi streaming on RP2040
No webradio on RP2040
No talking clock (NTP) on RP2040 either
2022-05-18 21:03:37 -07:00
Earle F. Philhower, III 86a1818da5 Add codespell to CI checks (#450) 2021-11-28 10:52:33 -08:00
Earle F. Philhower, III 3e3bc35493 Add arduino-lint CI check (#360)
* Add arduino-lint CI check

* Fix linting warnings
2021-01-14 15:15:17 -08:00
Earle F. Philhower, III 87742f502c Update pr-or-master-push.yml 2020-08-09 11:32:02 -07:00
Earle F. Philhower, III f8d5ccf7d0 Add ESP32 build, break out ESP8266 install for CI (#288)
Re-enable ESP32 builds in CI

Fix examples which do not compile on ESP32
2020-08-08 16:40:21 -07:00
Earle F. Philhower, III 0f40d83241 Use GitHub CI to run tests (#287) 2020-08-08 15:36:06 -07:00