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. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    Can't do that, I'm afraid.
     
  2. corbo-billy

    corbo-billy NI Product Owner

    Messages:
    652
    Anyway thank you: I make an effort by looking more closely at KSP Reference and news and I also discovered the concepts of CONTROL PAR WIDTH and CONTROL PAR HEIGHT necessary for these commands around a Level Meter.
    With this reflex, it avoids simple questions: I'm getting a little more comfortable.
    Many thanks for the patience with newbies like me.
     
    Last edited: Sep 7, 2014
  3. Sloba

    Sloba New Member

    Messages:
    6
    and how can I play and edit midi in Kontakt 5?
     
  4. Tun

    Tun NI Product Owner

    Messages:
    224
    perhaps this means its not long until NI decide to give us floating point capabilities and the ability to build code that directly affects the signal, meaning we can build our own FX :D
     
  5. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    Nope, VU meters have absolutely nothing with that. :D
     
  6. Tun

    Tun NI Product Owner

    Messages:
    224
    darn :(
    how is the VU meters current value calculated without using the audio signal itself?
     
  7. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    It's done internally by Kontakt - not by KSP itself.
     
  8. Tun

    Tun NI Product Owner

    Messages:
    224
    that would be a great feature for kontakt, maybe a bit much to ask though. if we got that we would want audio inputs, then kontakt would just become a programming environment
     
  9. Majuh

    Majuh New Member

    Messages:
    4
    how do i use $CONTROL_PAR_VERTICAL
     
  10. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    That one is only valid for ui_level_meter.
     
  11. Majuh

    Majuh New Member

    Messages:
    4
    i know... i just dont know how to use it in the script
     
  12. Majuh

    Majuh New Member

    Messages:
    4
    how do i use $CONTROL_PAR_VERTICAL for my level meter
     
  13. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    You use it along with set_control_par(). There are examples in the KSP reference.
     
  14. Majuh

    Majuh New Member

    Messages:
    4
    i got it man thanks........1 more question....how do i make a button to select [show] effects and hide the others...sumn like the Q instrument
     
  15. JForester

    JForester NI Product Owner

    Messages:
    68
    {just an exemple}

    on init
    set_ui_height(5)
    declare ui_level_meter $Level1
    declare ui_level_meter $Level2

    attach_level_meter (get_ui_id($Level1),-1,-1,0,-1)
    move_control_px($Level1,53,101)
    set_control_par(get_ui_id($Level1),$CONTROL_PAR_WIDTH,10)
    set_control_par(get_ui_id($Level1),$CONTROL_PAR_HEIGHT,100)
    set_control_par(get_ui_id($Level1),$CONTROL_PAR_ON_COLOR,963f514h)
    set_control_par(get_ui_id($Level1),$CONTROL_PAR_VERTICAL,1)
    set_control_par(get_ui_id($Level1),$CONTROL_PAR_OVERLOAD_COLOR,9ff0000h)
    set_control_par(get_ui_id($Level1),$CONTROL_PAR_PEAK_COLOR,9ff0000h)

    attach_level_meter (get_ui_id($Level2),-1,-1,1,-1)
    move_control_px($Level2,106,101)
    set_control_par(get_ui_id($Level2),$CONTROL_PAR_WIDTH,20)
    set_control_par(get_ui_id($Level2),$CONTROL_PAR_HEIGHT,100)
    set_control_par(get_ui_id($Level2),$CONTROL_PAR_ON_COLOR,963f514h)
    set_control_par(get_ui_id($Level2),$CONTROL_PAR_VERTICAL,1)
    set_control_par(get_ui_id($Level2),$CONTROL_PAR_OVERLOAD_COLOR,9ff0000h)
    set_control_par(get_ui_id($Level2),$CONTROL_PAR_PEAK_COLOR,9064f84h)

    end on