This tutorial introduces you to a powerful tool that should be in everyone's toolbox. That tool is called an envelope.
Envelopes let you define how the volume of a note changes over time, defining attack, hold, decay, sustain and release. Envelopes are extremely powerful!
This tutorial references a wikipedia page, here is that page: http://en.wikipedia.org/wiki/ADSR_envelope#ADSR_envelope