FM Synthesis PD I created a simple patch for FM synthesis using PD. It uses a carrier and a single modulator. It takes two frequencies and combines them. The patch uses an oscillator that is connected to the final gain stage. This is then controlled by a volume knob which acts as the master volume control. An addition audio object is connected to a number box and added to the oscillator. This allows the frequency to be modulated. The modulator consists of an oscillator that has its own frequency. It goes through a multiplication object in order to curb the gain. The depth or index modulation goes into the right inlet of the multiplication object. This determines how far he modulation can be pushed. All of this is connected to the right inlet of the addition audio object of the carrier. Modulation depth or index creates vibrato through changing the carrier pitch. I then added a metro and connected this to the modulation frequency and modulation depth or index. I added a random number generator and sent this out to the modulation depth or index using the send and receive objects. I repeated this for the frequency but created an offset of 200. Again I used the send and rceive objects to connect to the frequency modulator. I did the same agian for the amplitude but used randomF. I used the send and receive object and connected the receive object to the volume knob.
Arduino to PD to Processing
Arduino to Pure Data to Processing
I altered the Pure Data patch used in the examples above in order to connect Pure Data with Arduino. This would allow me to control Pure Data using Arduino and sensors and to then affect the visuals in Processing. I used the comport object, repack and unpack to get values in from Arduino and connected it to the right port using a message (open message). I received values from Arduino when I moved my sensors but there is also a bit of noise coming through which is a problem I need to remedy. I connected the number boxes with the values to vertical sliders to get a better indication of the impact Arduino was having on the patch. Four of the sliders affect the movement of the visuals in Processing. Below is a video of the patch working with Processing.