 HOME

 GOOD MORNING SOUND MACHINE

 BLOG




3.16.23  Simple Humanize Script for Kontakt

Here’s a little KSP script that allows you to randomly delay each note played - it even works with multiple groups!


on init

    declare ui_knob $Humanize (0,99,1)
    declare $HumanizeTime

end on

{ - - - - - - - - - - - - - - - - - - - - - - - - - - - }


on note

    $HumanizeTime := random(0,($Humanize*1000))

            if ($HumanizeTime > 0)

    ignore_event ($EVENT_ID)

    wait ($HumanizeTime+1)

{ - - delete this section if you’re only humanizing one group at a time, but keep “play_note....” - - }

        disallow_group($ALL_GROUPS)
        allow_group(0)

{ - - - - - - - - - - - - - - - - - - - - - - - - - - - }


    play_note ($EVENT_NOTE,$EVENT_VELOCITY, 0, -1)


{ - - delete this section if only humanizing one group at a time. - - }
{ - - copy and paste this section for as many individual groups you would like delayed - - }
      
        wait ($HumanizeTime+1)
        disallow_group ($ALL_GROUPS)

        allow_group(1) { - - Put group number here- or use allow_group(find_group(”GROUP NAME”)) - - }

       play_note ($EVENT_NOTE,$EVENT_VELOCITY, 0, -1)

{ - - - - - - - - - - - - - - - - - - - - - - - - - - - }


            else 
            end if

end on


