InDashPC.org Forum Index InDashPC.org
In Dash Car PC forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

getting sound frequency, amplitude from SpectrAnalyzer

 
Post new topic   Reply to topic    InDashPC.org Forum Index -> Software
View previous topic :: View next topic  
Author Message
onionparadise
Newbie


Joined: 14 Feb 2008
Posts: 16

PostPosted: Thu Dec 11, 2008 3:09 pm    Post subject: getting sound frequency, amplitude from SpectrAnalyzer Reply with quote

So I'm writing a program that needs to be able to get a list of the frequencies and their respective amplitudes for every sound byte played, so it can convert the frequencies to musical notes and ascertain the tonality of the sound byte, and then over the duration of the entire song determine the variability in amplitudes and breadth of melodic movement. I have code that translates frequency to approximate musical note. Am I correct in thinking that by using the SpectrAnalyzer I will be able to get this data? And would it be better to use asFrequencies(...) for my purposes or asBands(...)? Additionally, if you could give a simple description of the output of each function (i.e. [(frq1,amp),(frq2,amp),...]) that would be very very helpful.

Thanks!
Back to top
View user's profile Send private message
jbors
Site Admin


Joined: 12 Nov 2004
Posts: 1675

PostPosted: Mon Dec 15, 2008 10:16 am    Post subject: Reply with quote

Check doc:
http://pymedia.org/docs/pymedia.audio.sound.html#SpectrAnalyzer
Also check fft.c and sound.c for more info inside the source file Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    InDashPC.org Forum Index -> Software All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group