Create a pre-equalizer in iOS

I am creating a music player application using AVplayer. The app accesses and plays songs from the iPod library. So I play mediaItem usingAVPlayer

MPMediaItem *mediaItem = ...
NSURL *assetUrl = [mediaItem valueForProperty:MPMediaItemPropertyAssetURL];
AVPlayerItem *playerItem = [AVPlayerItem playerItemWithURL:assetUrl];
self.player = [AVPlayer playerWithPlayerItem:playerItem];

I need to add a graphic equalizer to my application so that users can change the following values

enter image description hereenter image description here

Audio processing in iOS seems to be different from other frameworks. I did R&D and found

  • Audio device
  • MTAudioProcessingTap
  • NVDSP
  • novocaine
  • Openal

My questions: Is it possible to create a custom equalizer using AVPlayer? What technology should I use for my requirement (creating a custom equalizer using AVPlayer)?

P.S. - , , ( , )

btw eq lib https://github.com/clementprem/CPAudioPlayer

+4
2

AVPlayer , .

, Novocaine, NVDSP Audio Unit ( , ). Novocaine Equalizer, ( , ).

+2

NOVOCAINE.

, NVPeakingEQFilter:

    NVPeakingEQFilter* PEQ = [[NVPeakingEQFilter alloc] initWithSamplingRate:self.samplingRate];
    PEQ.Q = QFactor;
    PEQ.G = gain;
    PEQ.centerFrequency = centerFrequencies;

3 : Q, G centerFrequency. Q, centerFrequency (QFactor , 2.0).

, 10 : . iTunes: 32 , 64 , 125 , 250 , 500 , 1 , 2 , 4 , 8 , 16 . .

, , (G). G 0.0. " /".

, G, :

PEQ [sender.tag - 1].G = sender.value * kNominalGainRange;

kNominalGainRange - 12.0, , sender.value -1.0 +1.0, G -12 +12.

, .

0

All Articles