Page 1 of 1
Quick Question
Posted: Fri Feb 15, 2019 10:32 am
by Nickateenbeats
Is it possible to have a wave file loader with categories? And if yes, is there a way to do it similar in the example below? ( Instead of a drop down menu, the categories will be on the left and the presets on the right)
Re: Quick Question
Posted: Fri Feb 15, 2019 6:03 pm
by tulamide
Yes. But of course there are several ways to do it. I created one of those ways, a year or more ago. But I can't remember in what thread it was. It could have been one from adamszabo or Spogg. (I moved to 3 different PCs in that time, unwanted. So lost a lot of schematics)
Re: Quick Question
Posted: Sat Feb 16, 2019 12:19 am
by Nickateenbeats
Ahh that sucks. I guess i will have a look around and see what i can find. I wanna attempt to make my own but i have no knowledge on how to create a manager. I seen a post about the same kind of manager a while back, but nothing ever came about it i guess.
Re: Quick Question
Posted: Sat Feb 16, 2019 2:20 pm
by tulamide
Maybe this can help you get started. It is a file reader that creates a hierarchical tree list of a folder's content (recursively, so gets all sub folders and their content as well) and filters according to a file ending that you set (for example .txt or .wav)
This example uses a droplist to present the result, but this isn't necessary. The Ruby class creates a csv that follows the conventions of a menu string ('<<' and '>>' to enclose contents of a subfolder). You could alter this method to spit out just the content of a selected folder instead.
Please read the whole thread, as I didn't explain the intended usage, before Spogg asked for it. The details therefore are only found in the thread, not the schematic. Spogg uses this system successfully in a few of his synths to date, so it shouldn't be too difficult to understand in terms of Ruby.
viewtopic.php?t=6556&p=29848#p29848
Re: Quick Question
Posted: Sat Feb 16, 2019 2:28 pm
by tulamide
Sorry, I just noticed that you already know about this and commented on that other thread. So it obviously didn't help you

Re: Quick Question
Posted: Sun Feb 17, 2019 4:02 am
by Nickateenbeats
Yeah im still a noob at this. Would it be possible to take an existing preset manager that already has categories and replace the "text file" module with a wav array or wave file module?