1. IMPORTANT:
    We launched a new online community and this space is now closed. This community will be available as a read-only resources until further notice.
    JOIN US HERE

ui_table questions

Discussion in 'Scripting Workshop' started by sevaels, Nov 7, 2014.

  1. sevaels

    sevaels New Member

    Messages:
    23
    Hey Guys,

    I'm really new to this stuff, but thought I would ask some simple questions regarding ui_tables.

    One is, I have a table that I'd like to sit in the background with a few bars standing up to add as markers. Every time I hit apply or load the script the table is reset. How do I make it so Kontakt remembers the values?

    Also, Is there a way to scale the values in the table? Up or down is fine, compression and expansion would be even better.

    Any help would be great.

    Thanks!

    Sev
     
  2. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    You gotta use make_persistent() command in init callback for the values to stick.

    Scaling and stuff like that is all done "manually", utilizing math, either via dropdown menus, or via other controls, etc.
     
  3. David Das

    David Das Moderator Moderator

    Messages:
    7,060
    Moved to scripting forum.
     
  4. sevaels

    sevaels New Member

    Messages:
    23
    Great, thank you very much Dragon! Make_persistent did the trick.

    I would love an example of how to scale the velocities of a table using CC1 if you have time. I'm very curious as to how that would work.

    Thanks!
     
  5. Tangra

    Tangra Member

    Messages:
    35
    Hi,
    There is a very nice Factory Multi Script for scaling the Velocities. Open the Multi Script, go to Preset ->Factory->Transform->Change Velocity.
    There are several modes such as "Linear", "Shelf" etc where the "Curve" knob changes. The NI script is not protected as far as I remember so you can have a look at the Math code lines which control the table.
    It will be great if you can MIDI learn the Curve knob to CC1 but as far as I know the Multi Script Knobs can not be learned. I have updated that factory code with a MIDI "learn" button so I can control the Curve Knob via MIDI - it was for my own needs. This update required to make some extra scale Maths for the incoming MIDI CC which twitch the UI knob. If you have any interest of my updated version I can share my NKP Multiscript preset. By the way what is your computer platform Mac OSX or PC Windows?

    [​IMG]
     
    Last edited: Nov 12, 2014
  6. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    BTW there's that same script at instrument level, and in that one you can MIDI learn the knobs.
     
  7. Tangra

    Tangra Member

    Messages:
    35
    Thanks for the note! I did not expect that it could be placed in the "Randomize & Change" factory path. Anyway I still prefer the Multiscript update cause you can control that globally which is better than inserting multiple scripts into the different Instruments inside Kontakt. Many third party Instrument scripts start from slot#0 so you have to re-order the slots etc.