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

Is it possible to call prepare to load a second .sf2 file? #32

Open
JimTompkins opened this issue May 18, 2021 · 1 comment
Open

Is it possible to call prepare to load a second .sf2 file? #32

JimTompkins opened this issue May 18, 2021 · 1 comment

Comments

@JimTompkins
Copy link

Hi,

First, thanks for the great library!

I'm trying to have two different modes in my app, one using a percussion .sf2 file and another for bass with a different sf2 file. I tried calling the prepare method a second time with the second sf2 file name, but it still seems to use the first. Is there a way to "unload" the first sf2 file and then load a second?

Thanks,

Jim

@JimTompkins
Copy link
Author

What is the purpose of the changeSound method? It has the same arguments as the prepare method and does a similar thing except it calls a different routine and passes it a map containing the file path instead of the path itself.

Thanks,

Jim

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

1 participant