HISE Logo Forum
    • Categories
    • Register
    • Login

    Variable scope for includes

    Scheduled Pinned Locked Moved General Questions
    3 Posts 2 Posters 256 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      RCJacH
      last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • R
        RCJacH
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • d.healeyD
          d.healey
          last edited by

          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?

          Libre Wave - Freedom respecting instruments and effects
          My Patreon - HISE tutorials
          YouTube Channel - Public HISE tutorials

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          23

          Online

          1.7k

          Users

          11.8k

          Topics

          102.7k

          Posts