refactoring playing into soundrepl, implementing note array and duration