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

Unable to play sounds one after the other #152

Open
Benoit1980 opened this issue Apr 10, 2021 · 1 comment
Open

Unable to play sounds one after the other #152

Benoit1980 opened this issue Apr 10, 2021 · 1 comment

Comments

@Benoit1980
Copy link

Hello,

I need to be able to play tiny wav files one after the other(with BPM sync).
At the moment I coded;

            var sound = [];
            this.samples.forEach((item, i) => {
                sound[i] = new Pizzicato.Sound({
                    source: 'file',
                    options: { path: item.sampleUrl }
                }, () => {
                    sound[i].play();
                });
            })

My first problem is that all the files are playing like on a sprite(all at once). How to have them playing sequentially and only once please?

It looks like the library does not have a BPM function, am I correct? ie: Play the give files on a beat at 125BPM,135BPM and so on.

Thank you for the great library!

@1hko
Copy link

1hko commented Jan 19, 2023

Maybe you could consider Pizzicato.Group?

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

No branches or pull requests

2 participants