How can I change the Music Note(audio file) to right pitch?
For example:
file - C3.wav
I wanna play the note C3 to D3. And to Higher or lower. (I plan to make a music keyboard by The Amazing)
My code:
AudioUnitSetParameter(_pitch.audioUnit, kAudioUnitScope_Global, 0, kVarispeedParam_PlaybackRate, 1.40, 0);
How can I change the pitch to right note?
Sorry for my poor English Somebody hlep~~
by the way, when my code is runing, here are some log like this, what's that meaning?
2015-06-28 00:28:55.028 TheEngineSample[23125:509616] TAAE: AEAudioController.m:642: AudioUnitRender result -10863
Comments
For this task you better use AUSampler. Use AU Lab (to find on Apples developer site) to create a preset-file.
Get the Apple sample project here: https://developer.apple.com/library/ios/samplecode/LoadPresetDemo/Introduction/Intro.html
Thank you!~