改变iOS音频播放器的音高 - 像Alvin和花栗鼠 [英] Changing pitch in an iOS audio player—like Alvin and the Chipmunks

查看:157
本文介绍了改变iOS音频播放器的音高 - 像Alvin和花栗鼠的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在StackOverflow中找到了这段代码片段。我认为这就是我想要使用的。但我不能让它改变音调 - 就像我预期的那样。我认为改变44100.0上/下会影响音高。但无论setValue如何,我都没有变化。

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?

推荐答案

从相关问题中引用答案。

Quoting answers from the related question.


时间-Pitch Stretch教程在DSP Dimensions网站上获得

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

和...


查看 Dirac 。它是免费的,但不是免费软件。

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

这篇关于改变iOS音频播放器的音高 - 像Alvin和花栗鼠的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆