a way to save strings along with the vst host project.
Archive · 20056 old posts
From the original SynthMaker forum (2004–2014), with its members’ names and dates.
dasdeck ·
there is still a big problem wich makes it impossible to build a reliable sampler.
How can i save the path from a sample (or the sample itslef) along with a song?
i mean, i dont want to handle this externally, every vst sampler saves the samples along with the song.
i would suggest to provide a string chunk comp.
lengh input for the number of letters it can hold.
string input for the actual string.
AFAIK the chunk size of the chunk the vstsdk offers for saving additional preset data (in addition to the parameter values, like sample pathes) must get set at design time.
if it can be set at runtime, the lenght input pin would not be nesecarry.
maybe you could add a buffer pin ?
the data you feed into this chunk component would then saved in the sonffile (or a [fxb/fxp]preset file) and next time you load the song everything gets reloaded.
maybe there is already a way to store paths? how? (i know i can save and reload text files, give them numbers and ideas and can even reload them but the user has to handle two files then (the song and the samplerpreset))
thanks
D3CK
The Sound Scientist ·
Hey dasdeck.. =) I too am in the same position as you....try to save using the presets mod????? I have not tried it yet cause I've been busy figuring out other stuff but it's how I saved presets in my first synths,, it's worth a try???... Anyone??? 😉 Peace and Science
dasdeck ·
AFAIK the preset modules can only carry floats. i dont know of any way to store a full path in a float (maybe ther is one?nhaa.. is it?).
I already tried the parameter name/preset name fields as a workaround, but it seems they get cut of really early(limited string size)
D3CK
infuzion ·
You can easily save a text file that is read upon startup; look at my loader GUI thingy in the skOre's megapack. Thought it is a pain to have extra files, lots of VSTs come with extra files, esp when it comes to samples.
dasdeck ·
i already do it like you suggest. in fact i built a whole sample manager.
it is finished, buti'll rework it, as the entries need a unique identifier ,to be able to delete and reorder them.
or, wait, do you know of a hashing method wich identifys a path string 100% by a number wich then can be stored as a float?
anyways, ID numbers for my sample favourites are much better than hashing all entrys on load, and i think the ability to store strings along host project must find its way into SM some day (tomorow please,please, or maybe santa will bring it?).
BTW, wich sampler does store its smaple links externaly only? i don't know many that do so. even the synthedit ones save the internally AFAIK.
D3CK
rl ·
you can store 4 chars (8 bit each) per 32 bit float VST parameter
(...just kidding, chunks are the way to go)
Wrote something here? To have a post removed or your name hidden, write to [email protected].