First time here? Check out the FAQ!
x

Multisample with modulo-index and MIDIvoice polyphony?

0 votes
383 views
Hi! I created a simple Multisample sound that goes through the index automatically by using "!KeyDown nextIndexMod: 6" as the Index parameter. This works fine so that each time a key is pressed a new sample is played. I wanted to smooth it out by making it polyphonic so I added a MIDIvoice after it. Now that the MIDIvoice has been added the nextIndexMod behaves in a very odd way. It seems that each sample is now repeated six times before the MultiSample goes to the next sample in the index??

 

I can make it polyphonic by using "!KeyNumber" in the index, but then I have to use the predefined keys on my keyboard. I would prefer hitting just any of them.

 

Also a bonus question: is there any way of rearranging/controlling the ordering of the index if I use  "{'sample.aif' sampleFileNamesInSameFolder}" as samples parameter? I tried adding 01..02..03 numbering to the filenames, but it didn't go right. Solution that works is to add the names individually in order i.e.

"'01sample.aif' '02sample.aif'..."
asked May 11, 2018 in Using Kyma by anssi-laiho (Adept) (1,150 points)

2 Answers

0 votes

To get a different sample on each !KeyDown when using MIDIVoice, you could try using

?VoiceNumber - 1

in the Index field.

Regarding the bonus question, you could sort the file names using

{'sample.aif' sampleFileNamesInSameFolder asSortedCollection}

answered May 11, 2018 by ssc (Savant) (128,080 points)
Thanks a lot!
0 votes

In your example, you would like to gate with !KeyDown (by voice) but count the number of times any key goes down. It suggests that you really want to differentiate between when any key goes down and when this specific voice's key goes down.

One way to do that would be using a TransformEventValues to "rewrite" any !KeyDowns that occur outside the context of the MIDIVoice and change them to an EventValue called !AnyKeyDown. Here's an AnyKeyDown example.

Alternatively, you could use ?VoiceNumber - 1 as the Index (see below)

answered May 11, 2018 by ssc (Savant) (128,080 points)
Thanks, I'll check this out as well.
...