well, finally starting to get a more or less complete loading system:
At the moment I've got 3 sample-loading systems/modules which can be used together.
They can be put one after another and load their samples to a single table or each to their own table (eg. basskicks,snares, hihats each get their own tables), so it's up to you to decide how you handle your samples.
-select by name:
use directories&names to load 8 samples in a row. Useful in case you want to load a specific set of samples from different folders and/or different names.
-select by ordered indexnumber:
using the same prefix, this loads a set of samples in consecutive indexnumbers, eg.
drum001 up to drum008, useful to load preset drumskits where you've made sure that the index numbers relate to drum-types, eg. basskick is dr001,dr009,dr017. snare is dr002,dr010,dr018, etc.
-random selection of samples within a range of indexnumbers:
using the same prefix, but random indexnumbers, you set the lowest index number and range for the index that could be randomly selected. Currently this index goes from 000 up to 999, so you could randomly combine samples from a set of 1000 samples.
As for the sample playing, I've made 3 different modules:
-a complex sampler with start, loopstart,loopend and end positions, reverse, repeat on/off (using loop positions and only for sample 2, but sample selection for 1 and 2 can be swapped with a gate-input), 2 samples with an tiltable envelope to mix between them and of course individual pitch control for both samples.
-a simple multi sampler to trigger 4 different samples, each with their own pitch-control, sample-select and gate inputs.
-wavetable-oscillator with zero-crossing detection that can use the sounds to create weird bass/glitch sounds. Sounds are created by setting sample-index, start-position within sample and amount of zero-crossings in the loop.