Here is a tutorial [1] that shows how to simulate a simple MiniMoog-inspired analog synthesizer in Pure Data [2].
It teaches the basic building blocks of subtractive synthesis like oscillators, filters, envelope generators and how to combine them into a working synthesizer.
You have to navigate through the tutorial using the sidebar on the left, current page is not highlighted, the page i linked to is called SIMPLE SYNTH...