# Sound Processing frequency Dynamicly

Would like to know if there is a method to call upon the frequency of a song at a given time for instance at 0:34 second the frequency is x ;

But to do this live meaning as long as the song is playing these numbers change;

The purpose is to use this output in another equation where for instance if the frequency > x then some condition is applied

soundms = AudioLocalMeasurements[audio, {"MFCC", "Loudness"}, Association, PartitionGranularity -> Quantity[1./30., "Seconds"]];

length = QuantityMagnitude@Round@UnitConvert[Quantity[Duration[audio]], "seconds"] - 2;

Manipulate[soundms["MFCC"][Range[1, length]][[All, 1]][[i]], {i, 1, length, 1}]


where "audio" is the audio file

this code simply exports loudness and mfcc of the audio file in a list of one dight per second of that audio clip

is there a way to run the audio clip and get that frequency updated as in

frequency:= "the frequency of the clip at this second"


so that when i recall that variable in any time the clip is running i get the frequency at that given moment?

I apologize for the mess

• Is this related to the software Mathematica? If so, maybe give more detail, for instance, a concrete example. – Daniel Lichtblau Jan 29 at 16:12
• @DanielLichtblau Updated sorry for the mess – Omar Ahmed Jan 29 at 16:46
• Much better, thanks. – Daniel Lichtblau Jan 29 at 16:58
• Have you considered using Fourier on short intervals? – Hugh Jan 29 at 19:49
• @Hugh would you be kind to elaborate please? – Omar Ahmed Jan 29 at 20:21