More progress on buffering notes.  Some issues remain where processing buffer causes notes to be missed.
Fixed missing notes issue.  Some remaining issues with running out of memory that need to be investigated.
more progress with buffer.  removed note objects and returned to arrays on the stack to avoid heap fragmentation.  remaining bug: both frequency and duration arrays point to same address for some reason.