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

does this script exist?

Discussion in 'KONTAKT' started by Rich Roy Dear, Oct 27, 2005.

Thread Status:
Not open for further replies.
  1. Rich Roy Dear

    Rich Roy Dear NI Product Owner

    Messages:
    29
    Hi
    maybe someone has a solution for what I like to have, I guess it can be done by a script somehow.

    So: nearly the whole keyboards is assigned to samples that have the same pitch, e.g. many different articulations of a tabla or a berimbao. But with the lowest octave I want to be able to control the transposition (coarse pitch) of the whole, e.g. if I press "C" or "G" there, everything is playing back lower or higher. Of coarse this lowest octave is something like "dimension keys" or a controller, and would make no sound of their own.

    Does anyone have an idea how to do that in K2? Thanks.

    Ulrich
    (I know I could create 12 groups with identical samples but different detune but that's not really elegant, is it?)
     
  2. g.h.

    g.h. NI Product Owner

    Messages:
    73
    Hi!

    Sounds quite simple. I will look into this during the weekend.
    To keep it simple, 2 questions:
    1.) How many keys do you have on your keyboard
    2.) How many "detune" keys do you need?

    gh
     
  3. Rich Roy Dear

    Rich Roy Dear NI Product Owner

    Messages:
    29
    hi g.h.
    wow, I wasn't expecting somebody actually writing a script - cool. I'm sure there will more people be enjoying it...

    My keyboard has 88 keys, and after thinking about it some more, I think ideal would be the following:

    The samples would start at what is called c3 in Logic (c in classical german speech, opposed to C or c'), the original (loco) controlling key being c2 (="C") with the ability to transpose up by +11 and down by -15 semitones.

    Best - I'm very curious.

    Ulrich
     
  4. g.h.

    g.h. NI Product Owner

    Messages:
    73
    Hi Ulrich!

    Attached please find the requested script. I hope it is what you wanted.

    I have implemented 2 modes:
    1. unlocked (default)
    In this mode you must hold down the "detune" key.
    As soon you release the key, the script will switch back
    to default tuning.
    2. locked
    In this mode the last selected "detune" key will stay active
    until you select a new one.
    You can turn on/off the locked function with C-2 on your
    keyboard.

    If you want to change to the locked mode as default you need to add the following line to the script after the line
    "declare ui_button $Locked":
    $Locked := 1

    Then press "Apply" and save the script.

    The "detune" keys will not effect notes which are played when you press the "detune" key so there will be no pitch shift to the new tune value. The next note(s) will be effected.

    I have also made a small change to your specs. C2 is "default tuning". As a consequence, you can only tune up +10.

    Have fun
    gh
     

    Attached Files:

  5. g.h.

    g.h. NI Product Owner

    Messages:
    73
    Hi Ulrich!

    Just after sending you the file I figured out that the message stating the current tune value was not always updated correctly.

    Attached please find a corrected version.

    gh
     

    Attached Files:

  6. g.h.

    g.h. NI Product Owner

    Messages:
    73
    Hi Ulrich!

    "You can turn on/off the locked function with C-2 on your
    keyboard."

    Nonsense, I don't think you can access C-2 on your keyboard without transpose.

    What is the lowest / highest key on your keyboard?
    You can use the midi monitor script (in utilities) to find the value.

    gh
     
  7. Rich Roy Dear

    Rich Roy Dear NI Product Owner

    Messages:
    29
    hi g.h., very, very good, that's a very early christmas present, it does exactly what I meant.

    My own communication about the keyboard size was not so clear, but I think I like to study the script and change some range numbers an octave downward. In fact it's:

    A-1 (21) is the lowest key available (so it would be "locked mode on/off")
    C1(36) was my "no transpose" key
    C2 (48) was where my samples might start.

    So far so good, I'll see if changeing the ranges works for a non-programmer.

    And what would be a good name for it?

    u
     
  8. Rich Roy Dear

    Rich Roy Dear NI Product Owner

    Messages:
    29
    Hello,

    hard to believe but I managed to modify the script to fit my standard 88 key (piano size) keyboard, with the lowest A (Midinote 21) switching locked and unlocked.

    I'm really excited as I know I will use this very often in the future and I can only recommend trying it with sample sets of any fixed-pitch instruments like tablas, didgeridoos and such.

    I named it "CoarseTuneByKeys", but gh as you are the author, feel free to change that before you might like to add it to the user lib...

    Best wishes !

    Ulrich
     

    Attached Files:

  9. g.h.

    g.h. NI Product Owner

    Messages:
    73
    Hallo Ulrich!

    I am glad to see you managed to modify the script to your needs.

    One small comment:
    You need to change
    if ($EVENT_NOTE = 47)
    to
    if ($EVENT_NOTE <= 47)
    otherwise the transpose up +11 key will not work.

    The name: Perfect!
    Add it to the user lib: Maybe, but then I think I should probably make it more flexible because not everybody has a keyboard with 88 keys (like me) and add comments to the script. Anyhow, I will see if I find time.

    Viel Spass und Grüße aus Wien
    Der "Weihnachtsmann"
    gh
     
Thread Status:
Not open for further replies.