Sir John Souch His Galiard by John Dowland

A more extended piece with 5 parts. Shows how to store notes and durations in arrays, which can then be played using a defined function called tune.Each section uses threads to play the parts simultaneously. Note durations use defined variables  like sq, c m for semi quaver, crotchet and minim. A scaling factor s sets the overall tempo. The reverb fx is used to give more presence to the final sound, and the synth is varied for the middle section to give more interest. attack:, sustain: and release: values are computed for each note appropriate to its duration, by the tune function.