Connecting to MIDI Controller and using Envelope Generator
I started by plugging an APC 40 Midi controller to PD. I ran a simple patch to determine the channel, input number and velocity.
simpleAPC40
I also tried using a MIDI keyboard and playing with the notein function to have access to notes.
http://itp.nyu.edu/~lfc267/blog/midipiano.pd
Here is a video
The tapping like sound was picked up by the laptop’s microphone as I played the keys on the piano. The sound running through PD was just the notes.
In order to understand the sounds better I assigned a different graph to each input from the MIDI controller, phasor~, osc~. I wanted to understand the sound created by different waves.
I then went to experimenting to make a synthesizer using the input from the MIDI Controller
I first did a sequencer, I incorporated readsf~ hooked up to a counter. The sequencer is receiving input float values from the MIDI controller. I added a Vline envelope to prevent glitches
I would like to create subpatches to make the patch more organized. I would also like to incorporate the notein function to create a synthesizer.
My very First Sequencer
I have followed the tutorial to build a simple sequencer using an oscillator with four different frequencies. Each frequency is controlled by a vertical slider that defines the output of the frequency. I added two sound samples, each controlled by the counter. The counter is affected by each modulos [%] attached to each sample. Finally I added an intermittent phasor to add texture to the sound.
The bng [o] objects are very helpful to understand the movement of the sequencer through time and the relationship between sounds.
I still don’t understand very well how do the modulos work. I need to look into that better.
The following is a video showing the patch in action.

