adamrenklint / bap

A toolkit for making beats and composing sequences with Javascript and Web Audio
MIT License
115 stars 6 forks source link

Refactor to ES2015 #56

Closed zcei closed 5 years ago

zcei commented 7 years ago

Hej Adam,

this is the result of the applied transforms:

JSHint was updated to support esversion: 6 Linting & tests are running, didn't test anything manually.

How far do you want to push this? Cannot promise to spend more time on this. But I think it makes sense to at least refactor further to class syntax, as you're effectively already using a fake class-based approach. Maybe use ESLint to apply a few more fixes, in case you do not like the code style (e.g. I prefer brackets around single fat-arrow parameters)

When done, it closes #55