> A basic question: I've got a directory full of samples, and I'd like to make a texture instance that associates possible note choices (in register-sensitive pitch space) with one of the samples in the directory. For example, I have a sample called "mute-horn-F#3-mf," and I'd like that sample to be written to the csound score anytime the texture chooses F#3 from the path.
> I looked at the documentation, and it seems that the "sampleSelect" parameterObject can only make relatively indeterminate selections of this kind. Will I need to make a new csound instrument to do this? Maybe someone has solved this problem before.
you are right: the sampleSelect object is the closest thing to what you need. there is not, however, a parameterObject that exactly meets your needs here.
if you are using samples to re-create a the pitches of instrument, where you have many samples for each specific pitch, your intuition is right: creating an instrument that plays the appropriate samples is probably a better approach. this can be done in csound. an easier alternative might be to generate MIDI output in athenacl, then realize this MIDI output in a DAW that has a sampler plug-in. many basic sampler plugins provide ways to assign samples to pitches or pitch ranges.
best regards,
chris.
if you use the csoundExternal event mode (emls will display the listing), you can configure an instrument for any instrument number within any number of auxiliary parameters. this only assumes start time and sustain time in the parameter output. you can then assign the pathRead parameterobject to the desired auxiliary parameter slot.