flutter_midi icon indicating copy to clipboard operation
flutter_midi copied to clipboard

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

Open JimTompkins opened this issue 3 years ago • 1 comments

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 avatar May 18 '21 21:05 JimTompkins

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

JimTompkins avatar May 26 '21 11:05 JimTompkins