Revert adsr trigger logic
Fixes for cross-platform compatibility
Fix sustain/neutral state for when only part of buffer