Here are the examples from today's lecture. The one that is named as "class_example" is the simple patch we built together. I've also added some explanations for each object just as a reminder. The "faderDancer" is the second example I showed at the end of the class, the one that made the knobs and faders in Live go crazy! The Live project is also added.
Remember: if you want to send MIDI messages from Pd to Live, you have to select the IAC driver (MidiYoke if you are on Windows) as your MIDI output on Pd, and as your MIDI input in Live.
Let me know if you have any questions.