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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.