How to change frequency of AKMorphingOscillatorBank countinuously in Audiokit?

混江龙づ霸主 提交于 2019-12-11 15:29:59

问题


I am new to Audiokit. I want to build a tuneable monophonic wavetable-oscillator with morphable table output that could be synced to an others oscillators frequency.

I startet with AKMorphingOscillatorBank but could not find out how to change its frequency countinuously, not stepweise.

At the moment I start a note with

vco1.play(noteNumber: MIDINoteNumber(Int(noteNumber) + offset1), velocity: velocity, frequency: vco1Freq)

but changing the frequency while a note is played is not possible that way.

I want to have sequence of notes playing a base frequency tone and a knob that changes the base frequency of the oscillator continuously when rotated - like triggering an eurorack VCO module und turning the frequency knob... thnx!


回答1:


If you just want something monophonic, then you could use AKMorphingOscillator instead of AKMorphingOscillatorBank. It will allow you to control the frequency continuously.



来源:https://stackoverflow.com/questions/49085008/how-to-change-frequency-of-akmorphingoscillatorbank-countinuously-in-audiokit

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