【发布时间】:2017-12-09 12:42:28
【问题描述】:
我已使用 AudioKit 示例代码进行麦克风分析,但我不知道如何更改绘图/图表。
func setupPlot() {
let plot = AKNodeOutputPlot(mic, frame: audioInputPlot.bounds)
plot.plotType = .buffer
plot.shouldFill = false
plot.shouldMirror = false
plot.color = color
audioInputPlot.addSubview(plot)
}
我想在按下按钮时更改 plot.color 。我该怎么做?
【问题讨论】: