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

Anyone mess around with new K5 ksp features?

Discussion in 'Scripting Workshop' started by UCAudio, Oct 9, 2011.

  1. UCAudio

    UCAudio Forum Member

    Messages:
    146
    I'm wondering what all is possible with the new K5 ksp stuff... particularly the new midi sequencing stuff. Anyone script anything using the new features yet? Is there any documentation on the new ksp features?
     
  2. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    Basically you can load and play and edit MIDI files. You can also use the new file browser to load NKA files, as well as audio files.

    You can have a VU meter picking up a signal after any point in Kontakt's signal path. (I also managed to crash Kontakt instantly by moving the position of VU meter with move_control_px() command... if I use the set_control_par() command with $CONTROL_PAR_POS_X and $CONTROL_PAR_POS_Y, it doesn't crash!)

    You can have a bigger UI (K4 - 350 px, K5 - 540 px).

    You can synchronize the load_array and save_array callbacks with the new async callback.

    And of course, there is very little documentation, especially on the MIDI playback... Again a lot of this, us, the scripters, will have to learn by banging our heads agains the wall and tons of trial and error...
     
  3. guyburt

    guyburt NI Product Owner

    Messages:
    137
    Oh, wow, VU meters! Really? How do I do that? I want one! :lol:

    Please could you point me to the commands to use? (I'm still in the process of installing K5, but the moment it's up and running I'll be pimping my UIs... ;) )
     
  4. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    The command for declaring one is:

    Code:
    on init
        declare ui_level_meter $Meter
        attach_level_meter(get_ui_id($Meter),<group ID>,<FX slot ID>,<channel ID>,<bus ID>)
    Currently, the level meters can only be attached to the output level of the instrument buses and the instrument master. Consequently, the group index and slot index should always be set to -1.

    After that, you must set its properties - colors, width, height, orientation, etc. All the available commands are listed in the KSP reference that comes with Kontakt 5.

    Beware that currently in K5.0.1, positioning a level meter with move_control_px() command CRASHES Kontakt!
     
  5. guyburt

    guyburt NI Product Owner

    Messages:
    137
    Super -- many thanks :)

    I'll have some fun with that later today!

    PS -- Love your work on the Hollow Sun instruments. I have most of them!
     
  6. corbo-billy

    corbo-billy NI Product Owner

    Messages:
    652
    I confirm, but it's exciting and it must grow gradually. I hope that I will never need the code "@" because when I tap this with the MAc's keyboard to write a script, it is not in the script: strange!
     
  7. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    @ is very important if you want to use user text string input. :)

    So better find out what's wrong with your keyboard (probably it's down to the language selected, or something). :D
     
  8. corbo-billy

    corbo-billy NI Product Owner

    Messages:
    652
    I changed my keyboard and it still does not work! My OS X System is with english language .
     
  9. Rankonfile

    Rankonfile NI Product Owner

    Messages:
    17
    This may be a stupid question, but:
    How do you load and play a midi file in Kontakt 5?

    Thanks,
    Rank
     
  10. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    You need to have a script that does the MIDI information decoding and playing it back, paired with the new file selector UI element. :)
     
  11. Rankonfile

    Rankonfile NI Product Owner

    Messages:
    17
    I'd like to be able to play a horn riff that I create (a MID file) that can trigger a sampled horn sound from a libriary.

    Can you make this for me?
     
    Last edited: Dec 20, 2011
  12. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    Not very soon, sorry. I didn't even start to get into the new K5 KSP features.
     
  13. UCAudio

    UCAudio Forum Member

    Messages:
    146
    Any chance K5 KSP adds the abillity to control sync'd LFO?
     
  14. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    Nobody knows.

    I mean, you can use $ENGINE_PAR_INTMOD_FREQUENCY, but that will sweep the whole knob range, not just the values you need.
     
  15. Ivan68

    Ivan68 New Member

    Messages:
    16
    I would like to know if anyone has succeeded in a working midi file player script. It looks very hard.
     
  16. Rankonfile

    Rankonfile NI Product Owner

    Messages:
    17
    this thread is useless

    this thread is useless
     
  17. corbo-billy

    corbo-billy NI Product Owner

    Messages:
    652
    I have not found how to have the VU meters in vertical position: they are always original horizontal .
    Can you help me?
     
  18. corbo-billy

    corbo-billy NI Product Owner

    Messages:
    652
  19. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    $CONTROL_PAR_VERTICAL! It's in the KSP reference. :)
     
  20. corbo-billy

    corbo-billy NI Product Owner

    Messages:
    652
    Many thanks:
    I will try also control the angle . :eek:)