Welcome to the new and improved Native Instruments online community. Join our active forum of 40,000+ members for discussions and much more.

Can i make Kontakt play a sample loop endlessly after pressing the key just once?

yelamri
yelamri Member Posts: 1 Noise
edited October 2022 in Scripting Workshop

Hey i was wondering if it is possible to set up a Kontakt instrument in a way that it plays every sample loop i start by pressing a key forever. Is there any way to assign an LFO and make it endlessly long so the sample loop would never stop after pressing the key until i turn down the volume of the instrument?

i have some samples that are just seconds long but i don't want to "play" them in Kontakt but rather "trigger" them by pressing the key. they should then go on and on in a loop until i turn down the volume..

maybe there is a way to "lock" a key after pressing it?

Comments

  • Gablux
    Gablux Member Posts: 39 Sine

    A minimal example

    on init
    end on
    on note
      ignore_event($EVENT_ID)
      play_note(60,64,0,0)
    end on
    

    the last argument in the play_note function is related to its duration. "0" will play the entire sample. If you set a loop in the mapping editor, you will get it to play forever.

  • EvilDragon
    EvilDragon Moderator Posts: 852 mod

    There is a factory script called MIDI Latch that does exactly this. Try it.

Back To Top