我正在尝试遵循这个游乐场教程:https://www.raywenderlich.com/835-audiokit-tutorial-getting-started
我正在尝试遵循这一部分:
oscillator.rampTime = 0.2
oscillator.frequency = 500
AKPlaygroundLoop(every: 0.5) {
oscillator.frequency =
oscillator.frequency == 500 ? 100 : 500
}但是我得到了这些错误:
error: Oscillators.xcplaygroundpage:13:1: error: value of type 'AKOscillator' has no member 'rampTime'
oscillator.rampTime = 0.2
^~~~~~~~~~ ~~~~~~~~
error: Oscillators.xcplaygroundpage:15:1: error: use of unresolved identifier 'AKPlaygroundLoop'
AKPlaygroundLoop(every: 0.5) {我已经导入了以下内容:
import AudioKitPlaygrounds
import AudioKit
import PlaygroundSupport发布于 2019-10-22 08:04:40
我通过使用oscillator.rampDuration而不是rampTime消除了第一个错误。
对于第二个错误,'import AudioKitUI‘完成了工作。
https://stackoverflow.com/questions/57407927
复制相似问题