bp

Avatar

bp's code

A Modular Approach To Phase Modulation

28 Mar'21 22:37 in modularpm

In messing around with PM/FM synthesis, I had this idea to make a SynthDef that represents one individual operator in a PM synth. Then the operators are wired together by busses and played together in a Pbind. This moves the wiring logic out of the SynthDef and into the Pbind, which allows for any number of operators in each note, arranged in whatever configuration you want. You are only limited by CPU and the number of available busses. The Pbind I have included here reuses the same set of busses for every note, which means that when the notes overlap each other, the modulators from the current event will be summed with the modulators of the next event, on the shared bus. This creates some growl-y, screechy effects while the notes overlap. When playing only harmonics, the overlapping modulators are still harmonically related and so they produce harmonious sidebands. When the scale degree is changed (every fifth note), you will hear some nasty dissonant distortion during the transition. Try messing with \legato, \atk, and \rel times to see what I mean.