Rockbox mail archiveSubject: Re: Extending the metronome plugin
Re: Extending the metronome plugin
From: Thomas Orgis <thomas-forum_at_orgis.org>
Date: Sun, 22 Jun 2014 22:48:04 +0200
Am Sun, 22 Jun 2014 13:09:43 -0700
schrieb Ryan Billing <ryjobil_at_gmail.com>:
> 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.
Page was last modified "Sat May 23 08:12:40 2020" The Rockbox Crew