Added new dynamic buffering system, can be used for both audio samples as well as midi if desired.