I am experimenting with FM-synthesis and slowly starting to understand how it works. When playing around with it I wondered whether there was a way to change cmRatio and Index, while the oscillator continued to run:
Also, it’s worth pointing out that a lot of FM synthesis algorithms use multiple “operators”… I’m really doing the simplest algorithm possible in Gibber. But if you look at the patches for the DX7 there were actually 6 operators (sine oscillators) that could be chained together in different ways. The code example above is basically sort of a four operator patch… the carrier, the modulator, the LFO for the cmRatio and the LFO for the index, but if I remember correctly the operators in “traditional” FM synthesis were really just wired into to the frequency components of other oscillators, as opposed to being able to control parameters like cmRatio directly.