Changing pitch in an iOS audio player—like Alvin and the Chipmunks

你离开我真会死。 提交于 2019-12-12 18:23:05

问题


I found this code fragment in StackOverflow. I think this is what I want to use. But I cannot get it to change the pitch—as I expected it to. I figured changing the 44100.0 up/down would affect the pitch. But I'm getting no change, regardless of the setValue.

NSMutableDictionary *settings = [[NSMutableArray alloc] init];    
[settings setValue: [NSNumber numberWithFloat:44100.0] forKey:AVSampleRate];

Clearly I'm missing something.

Any additional fragments available to give this some more context?


回答1:


Quoting answers from the related question.

There is a Time-Pitch Stretch Tutorial on the DSP Dimensions site.

and...

Take a look at Dirac. It’s free of charge, though not free software.



来源:https://stackoverflow.com/questions/4442055/changing-pitch-in-an-ios-audio-player-like-alvin-and-the-chipmunks

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!