dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: Re: Extending the metronome plugin

Re: Extending the metronome plugin

From: Thomas Orgis <>
Date: Sun, 22 Jun 2014 22:48:04 +0200

Am Sun, 22 Jun 2014 13:09:43 -0700
schrieb Ryan Billing <>:

> The basic idea is I was whacking a 2nd order filter with moderately high
> Q. It has a little less annoying sound and is efficient enough because
> you only have to run the filter for the duration of its impulse
> response, then reset state variables.

Well, exchanging the acutal sound is rather trivial, though I wouldn't
do any on-the-fly processing. I am keeping the original approach of
including the raw pcm or MPEG data (for !SWCODEC, although I wonder
where that is used) as static variable in the source. Another minor
source of confusion is if it is really necessary to convert the data to
stereo, wasting one copy of the original data in memory.

Anyhow ... Any fancy sound is possible once you produced a raw pcm copy
of it;-) I am quite fine with the annoying square wave, as it is its
purpose to annoy me if I can hear it clearly not coinciding with my
playing. I'll check out further sound options once the functionality is
in. Also ... if it should support choosing sounds at runtime. One could
load from files which have assured maximum size.

Alright then,


Received on 2014-06-22

Page was last modified "Jan 10 2012" The Rockbox Crew