sampler with one sample per note

20 views
Skip to first unread message

Jeffrey Trevino

unread,
Oct 26, 2011, 5:52:37 PM10/26/11
to athenacl
Hi all,

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.

thank you,
Jeff

--
《〠》】〶【〖〠〗〶〛〷〚
Jeff Treviño
PhD Candidate in Music Composition
@ the University of California, San Diego
〖〠〗〶〛〷〚《〠》】〶
Skype: jeffreytrevino
E-mail: jeffrey...@gmail.com
〚《〠》】〶【〖〠〗〶〛〷
9310H Redwood Dr.
La Jolla, CA 92037
USA
〖〠〗〶〛〷〚《〠》】〶【

christopher ariza

unread,
Oct 26, 2011, 9:29:26 PM10/26/11
to athe...@googlegroups.com

> 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.

Jeffrey Trevino

unread,
Oct 26, 2011, 9:46:16 PM10/26/11
to athe...@googlegroups.com
Hi Chris,

Thanks for the quick response. If I go the csound route and create my own instrument, is there a way to extend athenaCL's list of csound instruments so that my new instrument appears in the list of available instruments? Or would I then be stuck opening a generated csound score in csound and rendering it with my new instrument outside of athena? I'm trying to keep all of this business in one python script.

thank you,
Jeff

Jeffrey Trevino

unread,
Oct 26, 2011, 9:47:36 PM10/26/11
to athe...@googlegroups.com
(or perhaps there's a way to create a new parameter object called "sampleMap," that would know to correlate files with pitches in a certain way?)

christopher ariza

unread,
Nov 2, 2011, 9:53:51 AM11/2/11
to athe...@googlegroups.com

sorry for the delay here.

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.

Jeffrey Trevino

unread,
Nov 2, 2011, 3:36:54 PM11/2/11
to athe...@googlegroups.com
Hi Chris,

Nice. Thanks for the advice- I'll keep things on the list from now on. I notice that csound supports soundFonts as of version 4.0. Maybe making my own soundFont with all of my french horn samples would be a good place to start work.

thanks for your help,
Jeff
Reply all
Reply to author
Forward
0 new messages