First time here? Check out the FAQ!
x

Fader min max and grid generated algorithmically

0 votes
297 views
hello everybody, I hope you are all doing alright and can't wait to see you in person, somewhere, sometime :)

I would like to generate the min, max and grid value for a fader in a Script.

for example I would like to have the max value for the fader used for a sample !End equals to 'mySample.wav' sampleFileDuration * 1000

is that possible?

thanks for the help.

d
asked Oct 9, 2022 in Capytalk & Smalltalk by domenico-cipriani (Master) (3,110 points)

1 Answer

+1 vote
 
Best answer

You could use a MIDIMapper with Map set to:

!End is: (`End displayAs: #fader; min: 0 max: ('count.aif' sampleFileDuration removeUnits * 1000)).

For other examples showing the syntax, check in the text file default.map, for example:

!WiiTrigger is: (`WiiTrigger displayAs: #gate; min: 0 max: 1 grid: 1).

Or check in Kyma X Revealed on page 390.

answered Oct 14, 2022 by ssc (Savant) (128,080 points)
selected Oct 14, 2022 by domenico-cipriani
thank you really much!!
...