Soundbank question

projucer

#1

I had a question pertaining to the project below which is an adaptation of the SFZero soundfont synthesizer for JUCE:

https://github.com/altalogix/SFZero

I was just wondering if anyone had any suggestions on how to go about creating a “soundbank” for SFZero so instead of picking one soundfont you could choose a folder and all the soundfonts are listed within the box in the GUI, with each one being loadable by clicking on it. Just to clarify, I’m not trying to create presets but just display all the wav files/soundfonts in a given directory within a box of some sort.


#2

so, you want to display a list of files in some sort of file browser:

https://docs.juce.com/master/classDirectoryContentsDisplayComponent.html

and when you click on a file, it’ll load it:
https://docs.juce.com/master/classDirectoryContentsDisplayComponent.html#af2f2fe91f39fdc58d08be4d7537045f7

https://docs.juce.com/master/classFileBrowserListener.html

it shouldn’t be too difficult to wire it up so when the listener callback fires, it does the loading process in this tutorial: http://www.mucoder.net/blog/2016/03/24/sfzero.html
see the Using SFZero section which shows example code.


#3

Thanks @matkatmusic. Sounds straightforward.