fixed ringbuffer won't return anything if it overflows bug;
added some test cases also for multiple notes
fixed index off-by-one issue; extended multiple notes test;
moved definitions to Makefiles and removed unsave defines.h