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

Scripting K2

Discussion in 'KONTAKT' started by danskionline, May 17, 2005.

Thread Status:
Not open for further replies.
  1. danskionline

    danskionline New Member

    Messages:
    1
    Hi all,

    I read the manual yesterday night.It's a little too much for one night though.But i realize scripting opens doors for me!

    I would like to make a script that does things when i play certain pre-defined chords.
    When i play the specified chords, the script should:
    - add a keyswitch note to the notes i play.If that's not fast enough (maybe the keyswitch note should be played before the chord) the script should
    -change the midichannel of the incoming notes.

    Being a performer, i'd like to use .gig samples, strings for example.
    It would be great if K2 plays tremolo strings on certain chords, and
    sus strings on other chords.

    would this be possible at all?

    Hopefully someone will get me started on this one.

    I think it's a good idea, and it could be extended too:
    Imagine that more chords are defined: major/minor/major7/minor7/minor7b5/dim7 and a bunch of dominants...
    And then link all these intervals to certain patches.
    Now that would be fantastic and save a lot of programming!

    Greetings,

    D.
     
  2. doume

    doume NI Product Owner

    Messages:
    11
    Yes, this is possible with the scripts.

    In fact, have a look to the legato script which is included in K2, which gives some rough ideas toward the direction you are pointing. I used "as is" this legato script on some flute samples and it works perfectly. I just switched off the automatic mode.

    Using the conditionnal statement in the script language, you will be able to detect the chord structure, and then trigger dedicated action.

    Dominique
     
  3. fizbin

    fizbin NI Product Owner

    Messages:
    78
    Most of what you're saying is possible. For instance, I think the Akkord script determines chords. You should start looking there perhaps. As far as switching patches - a script can act only on a given patch. You'd need a single patch with lots of keyswitch layers to do what your describing later in your post. Then its just a matter of having the script press the keyswitch key at the right time for you.

    fizbin
     
Thread Status:
Not open for further replies.