added the boolean pat-val-one-note? which indicates this section of the pattern
requires a single note that completely fills the section

restructured driver so it triggers new pattern section when initially run

restructured so that the pattern element is checked in three stages:
 - test for end of pattern
 - test for pattern section filled
 - "else" clause assumes there's soem more duration to fill in this section