• Register
  • Help
Results 1 to 3 of 3

Topic: a new script for legato

Share/Bookmark
  1. #1

    a new script for legato

    http://www.alchemystudio.it/docs/pedallegato.nkp

    legato script for kontakt 2 (derived from the default script from K2 library).

    The sustain pedal (CC64) is used as legato switch: if you press it, you will enter in a "monophonic mode" and to all the samples you will play will be applied an offset (the samples don't start from the beginning, avoiding the attack) and a short fadein. you can tweak the two parameters according to your needs (or even save and use the script in your patches!)
    in this way you can achieve a convincing legato in a very simple way.

  2. #2
    Senior Member Big Bob's Avatar
    Join Date
    Jun 2005
    Location
    Apple Valley, California
    Posts
    323

    Re: a new script for legato

    Thanks for the Script contribution. I haven't had a chance to try it yet, but the idea seems sound. However, you might want to point out that the sample start offset thing doesn't work in DFD mode (I sure wish it did).

    Again thanks for sharing this script.

    Bob

    PS I finally had some time to try it out and it sounds pretty good, thanks again for sharing this idea.

    BTW Your script works the way it is but, I'll point out a few simplifications (if you're interested in such things). You can avoid the 'on controller' callback entirely by simply testing for %CC[64] > 0 in the 'on note' callback. Also, as far as I've been able to determine, the fade_out ahead of the fade_in is unnecessary (since fade ins always seem to start from mute). So, if you eliminate the 'on controller' block and code the 'on note' block like this:
    Code:
    on note
    if (%CC[64] > 0) {is this note played legato?}
    	ignore_event($EVENT_ID)
    	$new_id := play_note($EVENT_NOTE,$EVENT_VELOCITY,$Offset,-1)
    	fade_in($new_id,$Fade) {fade in the new note}
    	fade_out($active_id,$Fade,1) {fade out the old one}
    	$active_id := $new_id
    end if
    end on
    I think it will still perform the same.
    Big Bob (aka Wonderful Bob)

  3. #3
    Senior Member Big Bob's Avatar
    Join Date
    Jun 2005
    Location
    Apple Valley, California
    Posts
    323

    Re: a new script for legato

    I'll bump this up since I added a postscript to my prior response.
    Big Bob (aka Wonderful Bob)

Go Back to forum

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •