add eslint + fix lint errors

This commit is contained in:
Felix Roos 2022-11-24 15:30:11 +01:00
parent e1a532500e
commit e2898ee5bf
19 changed files with 938 additions and 92 deletions

View file

@ -59,7 +59,7 @@ Pattern.prototype.voicings = function (range) {
Pattern.prototype._rootNotes = function (octave = 2) {
return this.fmap((value) => {
const [_, root] = value.match(/^([a-gA-G][b#]?).*$/);
const root = value.match(/^([a-gA-G][b#]?).*$/)[1];
return root + octave;
});
};