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

Randomly change pan for each note.

Discussion in 'Scripting Workshop' started by E Keith B, Dec 6, 2021.

  1. E Keith B

    E Keith B New Member

    Messages:
    16
    Hi. I notice that Kontakt 6 has a preset called Humanizer. It has a knob for randomly panning for each note. I love it. Is there a script in which will do this with a custom knob? I tried to create my own script just using the panning part and I couldn't get it to work. Can I alter the current script so that it uses only the panning knob? Thanks in advance for your replies
     
  2. medusa

    medusa NI Product Owner

    Messages:
    239
    The very first script I ever wrote for Kontakt, May 2005 :)
    You can change the value_edit to a Knob.

    Code:
    on init
        declare ui_label $label1 (1,1)
        set_text ($label1, "Random Spread %")
        declare ui_value_edit $Width (0,1000,10)
        $Width := 1000
        make_persistent ($Width)
        message (" ")
    end on
    
    on note
        change_pan ($EVENT_ID, random(-$Width,$Width),0)      
    end on
    
     
    • Like Like x 1
  3. E Keith B

    E Keith B New Member

    Messages:
    16
    I don't even know how to thank you for this. I've been wanting this like forever, minus a few centuries, lol. It works perfectly. You the man, along with Evil.