vagfilm its ok man..Thanks so much for getting back to me here..and no worries at all if you don't remember the original idea clearly. It .. something you posted a few years ago.
The post I was referring to was actually your old one on the Kontakt velocity mapping, where you shared a script for remapping MIDI input velocities using a %map[128] array. I thought it was a clever workaround..to shape response curves in Kontakt. Your suggestion about using Excel to generate the curve and then pasting it into the KSP script struck me as something that could potentially be automated with a bit of Python, hence my question.
I was mostly curious whether you'd ever gone that route..automating the creation of the 128-value curve, possibly interpolated from just a few anchor points. Totally fair if you didn’t, of course. Just thought I’d check in case anything came from that idea since.
Anyway thanks ..)
this is your post 2022
''I have made a small Kontakt script for velocity mapping. It is convenient and can be adapted to any Kontakt library, but it still is a pain to fine tune the curve...
What you do is:
Open Kontakt and the library (Noire in this case)
Click the KSP button on the top right (below the NI logo and CPU meter)
On the window that opens, paste the following code:
on init
declare %map[128]:=(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,...
17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32,...
33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48,...
49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64,...
65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80,...
81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96,...
97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112,...
113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127 )
end on
on midi_in
if ($MIDI_COMMAND = $MIDI_COMMAND_NOTE_ON)
ignore_midi
set_midi ($MIDI_CHANNEL,$MIDI_COMMAND_NOTE_ON,$MIDI_BYTE_1,%map[$MIDI_BYTE_2])
end if
end on
and then you wrote .. If this velocity script is of interest to a few, let me know and I may write a simple Python script to generate a full velocity curve from a list of mappings. You simply provide a few mapping points velocity-in, velocity-out such as:
2,2
10,8
60,40
90,72
127,120
and the program will generate the entire range of 128 values, ready to be copied and paste into the Kontakt script.
PS It works for me as is, but that Python script you mentioned..to generate a full velocity curve from a list of mappings...would definitely make things more comfortable..I just wanted to ask in case you had something in mind back then..