delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2012/05/05/06:17:32

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=penguindevelopment.org; h=
message-id:date:from:mime-version:to:subject:references
:in-reply-to:content-type:content-transfer-encoding; q=dns; s=
penguindevelopment.org; b=RKpyUJWxDaX3fF9jwazus2BD5hkTiuSyJswq2k
n5/4nn0LE1yAWA3EP6pp5a8GuVfPsQhnDhrdFesaBN1HwyzLLZe3DLhyeMF33SXt
8a6jAXqIvuWtwYsBKX1R9R7d8AHUpJ70+qen5b0DPN9ZQb4fNkux05UjdhQMjZqu
7E3p4=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=penguindevelopment.org; h=
message-id:date:from:mime-version:to:subject:references
:in-reply-to:content-type:content-transfer-encoding; s=
penguindevelopment.org; bh=NbAD8sm1wqbK9fozvDGLXWXZXf8=; b=pRmvf
XhVKGxkwug/ZsbJ6RECApFfxlFF951sLNUkM4Kg1GnF2kc+VRLNO4wyMGT9jPrRO
yKrdcPaP9xLj0jWeOyy05Nc9oyN0zt1PaiO2bZsomoektwr5s5TdzDmbzY2cbLX6
Iqoy8eZcQ8Mlg3+acGvP+DsDJE3bQ41Xgrj7IQ=
Message-ID: <4FA4FA2D.6070609@penguindevelopment.org>
Date: Sat, 05 May 2012 12:00:13 +0200
From: Link <link AT penguindevelopment DOT org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.3) Gecko/20120325 Thunderbird/10.0.3
MIME-Version: 1.0
To: geda-user AT delorie DOT com
Subject: Re: [geda-user] Frequency spectrum of a duck quack
References: <CALSZ9grrJHCGnZGSbJJOu4kru95+i7j=53KBFmPTpZ=4Q8YjXg AT mail DOT gmail DOT com> <CA+cauMBMbL3=RAqrUNXbt0m4oSprKU47u7ER-N-shrzB3VAmWg AT mail DOT gmail DOT com>
In-Reply-To: <CA+cauMBMbL3=RAqrUNXbt0m4oSprKU47u7ER-N-shrzB3VAmWg@mail.gmail.com>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q45AHGit016644
Reply-To: geda-user AT delorie DOT com

On 05/05/12 11:12, Alexis Phoenix wrote:
> Record a duck quacking and play it back to a spectrum analyser (I
> think that's what it's called)... Or save it as a midi sound file
> might be an option. Actually thinking about it, I'll bet you can get
> frequency analysis software now.
>
> On 5 May 2012 04:45, Rob Butts<r DOT butts2 AT gmail DOT com>  wrote:
>> Does anyone have an idea of how I would get the frequency spectrum of a duck
>> quack? Ideally I would like to reproduce the sound in a micro and send it to
>> a speaker.
>>
>> Thoughts? Suggestions? Ideas?
>>
>>   Thanks!
>
AFAIK MIDI isn't suitable for that.

I'd say the best way to go about it depends on the quality you're 
looking for. If you're not looking for Ultra Super Mega HDâ„¢ quality, 
record it as a simple WAV file (or find a public domain WAV on the 
internet) and use software to analyse the spectrum. Audacity 
(http://audacity.sourceforge.net/) can do that.

If you /are/ looking for Ultra Super Mega HDâ„¢ quality, it's probably 
best to pay a professional sound technician to record some ducks and 
plot the spectrum for you -- for a one-off spectrum analysis, that's 
bound to be a whole lot cheaper than getting the equipment and training 
needed to do it yourself.

It's probably easier to just play a recording than to reproduce the 
sound yourself, though. Audacity should be able to convert a sound file 
to raw PCM samples that you can just pipe into a DAC at a fixed rate. 
All that's left then is storing the file; if it's too large to fit on a 
microcontroller's EEPROM or program memory, it shouldn't be too hard to 
find an SPI/I²C memory chip of sufficient size. Or you could store it in 
a compressed format and decompress it in firmware; I'd imagine that's 
/still/ easier than reproducing the sound from the frequency spectrum.


Peter

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019