• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: how to change pitch in real time
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to change pitch in real time


  • Subject: Re: how to change pitch in real time
  • From: Brian Willoughby <email@hidden>
  • Date: Thu, 13 Jan 2011 01:32:26 -0800


On Jan 13, 2011, at 00:38, Akram Ahmad wrote:
I want to change the pitch during playback of an audio file using a "pitch slider". Actually, My app has an view with two sliders namely Pitch and Tempo. I want to change the pitch and tempo when audio is playing.

Could you please help me with some code snippet?

I have already gone through with MixerHost sample code on apple site to play the audio file but not able to change the pitch during playback.
I have not looked at the MixerHost sample, but if it uses AUGraph and AudioUnits, then it would be very easy to add pitch changes.

AUVarispeed will change pitch and tempo together, like a physical tape deck. Just hook up the PlaybackRate parameter to your slider (and update the other slider to match).
AUTimePitch allows changing of playback rate independently from pitch, using a pair of parameters.


Both of these AudioUnits are from Apple, and are included for free with CoreAudio. On my ancient PowerPC machine, they only use about 3% to 6% of the CPU.

Brian Willoughby
Sound Consulting

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: how to change pitch in real time
      • From: tahome izwah <email@hidden>
References: 
 >how to change pitch in real time (From: Akram Ahmad <email@hidden>)

  • Prev by Date: Re: how to change pitch in real time
  • Next by Date: Re: how to change pitch in real time
  • Previous by thread: Re: how to change pitch in real time
  • Next by thread: Re: how to change pitch in real time
  • Index(es):
    • Date
    • Thread