Skip to content

Piezo Speaker Tune/Melody Functionality#1515

Draft
jackhumbert wants to merge 2 commits intokeyboardio:masterfrom
jackhumbert:f/speaker_tunes
Draft

Piezo Speaker Tune/Melody Functionality#1515
jackhumbert wants to merge 2 commits intokeyboardio:masterfrom
jackhumbert:f/speaker_tunes

Conversation

@jackhumbert
Copy link
Copy Markdown

Makes some methods virtual for overriding, and allows initializer lists for nice calls like this:

kaleidoscope::Runtime.device().speaker().playTune(
    {440, 880,  440,  880}, 
    {50,  50,   200,  50}
);

Signed-off-by: Jack Humbert <jack.humb@gmail.com>
Signed-off-by: Jack Humbert <jack.humb@gmail.com>
@obra
Copy link
Copy Markdown
Member

obra commented Jul 22, 2025

<3 #1512 is kind of what I'd been thinking for how to do 'themes' for different events. I suspect we'd also want it to listen to events the way the LEDIndicators plugin does.

@jackhumbert
Copy link
Copy Markdown
Author

Ah, I didn't see that! I should have dug deeper. It's funny how we ended up with similar playNextNote methods :)

This is great, though - I love the phonemes! I'll check it out and play around with it.

@obra
Copy link
Copy Markdown
Member

obra commented Jul 22, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants