iOS: Pitch Shifting & Piping output from OpenAL into a buffer
问题 I have recently spotted that it is possible in iOS to use OpenAL to pitch shift. I am looking at Hollance's sound bank player. it takes in 15 or so piano notes spattered through the range, and plays any note by figuring out which sample it is closest to, and pitch shifting that sample an appropriate amount. This is the code that does it: - (void) noteOn: (int) midiNoteNumber gain: (float) gain { if (!initialized) { NSLog(@"SoundBankPlayer is not initialized yet"); return; } int sourceIndex =