data base management
Hi,
i'm quite new at max/msp, and i was wondering how to manage a soundbank.
examples:
-Being able to read an aleatory part of an aleatory readable audio file (that could be anywhere in my harddrive), with no need to buffer all the files before (like polybuffer~ does)
-Being able to tag my audio files with keywords that i could use in max to select specific files.
thanks for your help!
Hi BENBEN
One way to get a list of your files is to place them all into one folder and use [ùmenu] to list them. Inside the inspector of [umenu] select the "Auto-Populate" checkbox and set the folder location under "Prefix or Folder". The middle outlet will give you the absolute file path.
To add tags to your file take a look at the [dict] object. You'll need to set up the dict content manually. After loading a file into a buffer you can access information like length via the [info~] object; or without loading into a buffer via [sfinfo~].
When dealing with large amount of files using a database might be better. Max comes with a SqLite database that can be accessed via JavaSrcipt. This solution will be pretty slick as you can send queries to the db and get list by tags, or any other data fields in your database sort them and much more (https://cycling74.com/tutorials/data-collection-building-databases-using-sqlite/).
But if you are new to programing/Max that might involve a bit of a steep learning curve...
Cheers,
Jan