Variable scope for includes



  • A quick question.

    I have a module imported into multiple processors with include().
    I would like to have variables (used in onNoteOn() and onController())stay local to each of the processors that imports the module.
    What is the best way to achieve that?



  • After some tests I realized my question was bigger than originally stated, I'll start another post.

    As for the original question.
    Variables defined by hardcoding are kept local in their own processor, but since I'm not able to import a complete module, I cannot test whether a change of variable made in one processor is reflected in other processors or not.



  • stay local to each of the processors that imports the module.

    I'm not fully understanding your terminology here. What do you mean by processor and what do you mean by module?


Log in to reply
 

14
Online

1.6k
Users

4.6k
Topics

42.7k
Posts