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

Solved Global Variables between instruments

Discussion in 'Scripting Workshop' started by tv.lidor, Nov 3, 2021.

  1. tv.lidor

    tv.lidor NI Product Owner

    Messages:
    31
    I am using Kontakt to play loops, I created 10 instruments and put them inside "instrument bank"
    I have some script for each instrument. but i want to sync between them and share variable between instruments.

    for example, I want to hold variable to store the last time user play note. when i move to the next instrument i want to get the data from the previous instrument.

    how can I do that?
     

    Attached Files:

  2. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    The only way would be by using NKA files (so, save_array() and load_array()).
     
  3. tv.lidor

    tv.lidor NI Product Owner

    Messages:
    31
    it's asynchronous operation :/ couldn't work for me
    is there any way to ask NI to add this feature?
     
  4. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    You kinda just did. It's extremely unlikely that it will happen.