Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple beats/refactor #2

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

AlexandraDonchenko
Copy link

No description provided.

metronome.js Outdated
Comment on lines 127 to 130
// aListener(val) {};
// registerListener(listener) {
// this.aListener = listener;
// }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you Delete all of this to avoid

metronome.js Outdated
@@ -213,7 +214,7 @@ class Metronome {
return Promise.all(urlArray.map(async path => {
let sampleHolder = {};
sampleHolder.audioBuffer = await this._loadSound(audioCtx, path);
sampleHolder.name = path.match(/([^\/]+)(?=\.\w+$)/)[0].replace(/-/, '_');
sampleHolder.name = path.match(/\/([^\/]+)\/?$/)[1].replace(/-/, '_');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was supposed to change this method.. But ill make those changes into mine so we avoid conflicts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants