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

Midi Latch Question - Assigning Panic to a Key

Discussion in 'Scripting Workshop' started by RRepsher, Feb 13, 2014.

  1. RRepsher

    RRepsher New Member

    Messages:
    16
    Is it possible to assign the Panic function to a particular key (like C6 for example?) Also, is it possible to assign the script to different ranges, as in a per group script.

    I have been reading the manual, but I do not see a reference to the relationship scripts have within the zone / group / instrument structure.

    Thanks,

    Rick
     
  2. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    You'd need to edit the script for this. Alternatively you should be able to MIDI learn the Panic button by right-clicking on it and assigning a CC to it, so if your MIDI controller has buttons that can send CCs, you're sorted. If you can't do this, then just go into script edit mode, find the line:

    Code:
    declare ui_button $Panic
    and change it to:

    Code:
    declare ui_switch $Panic

    MIDI Latch script works on event level, so it only takes care of notes being played. It doesn't care about groups or zones or anything, since it just sends note_off() events basically.
     
  3. RRepsher

    RRepsher New Member

    Messages:
    16
    ED,

    I'm confused... the code already is:

    declare ui_switch $Panic

    And if I right click on the panic button, it wants to learn a CC value. I want to send it a note value.

    Rick
     
  4. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    Use a CC instead of a note if possible - makes things much easier without needing to additionally script things. Using a note might clash with the latch functionality.

    I put the code above in case the script was an older version before ui_switches were added - no worries if it's already using ui_switch there! ;)
     
  5. RRepsher

    RRepsher New Member

    Messages:
    16
    ED,

    Ok, thanks for the info. The keyboard I use as a controller doesn't really have any buttons I can assign a CC to, but I'll figure something out!

    Rick
     
  6. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    Modwheel should work, in case you don't have assignable buttons.
     
  7. DavidJuarez

    DavidJuarez New Member

    Messages:
    2
    Hi There.

    I would like to ask if there is any way of assign a MIDI Learn of panic buttom in Konktact 6. I don't have any assignable button in the key board and it would be for a live show where I need to control the Panic button from the control of sound.

    Thank you very mucho for your patience and your tips!
     
  8. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    It's not possible.
     
  9. DavidJuarez

    DavidJuarez New Member

    Messages:
    2
    Thank you so much for the information!:)