HISE Logo Forum
    • Categories
    • Register
    • Login

    A few questions of understanding

    Scheduled Pinned Locked Moved General Questions
    2 Posts 2 Posters 193 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.
    • MikeBM
      MikeB
      last edited by

      1. LAF global vs. local?
        We already had this topic briefly here - my question is about the meaning of global vs. local.

      If I have almost 100 knobs (in different panels) that should all look the same, a global LAF is better, isn't it?

      With a local LAF, I would need an additional 5-10 scripts for each knob for the individual LAF.

      or do I understand this wrong.

      1. all declarations in one script?
        Does it make sense to collect all component declarations in an external script "declarations.js" or better in different scripts at the beginning of the respective function?

      "One hour of trial and error can save 10 minutes of reading the manual."
      "It's easier to hit the developer with feature requests than to spend 10 minutes reading the manual. :-)))"
      HISE Develop - Mac Pro 5.1, OS X 10.14.6, Projucer 6.02, Xcode 10.3

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

        @MikeB said in A few questions of understanding:

        If I have almost 100 knobs (in different panels) that should all look the same, a global LAF is better, isn't it?

        If they all look the same and all have the same colours then it doesn't matter. I'd still go with local so that I had control over individual knobs and so it didn't make the HISE UI knobs look weird, but it really doesn't matter.

        With a local LAF, I would need an additional 5-10 scripts for each knob for the individual LAF.

        You can use the same local LAF object for multiple controls. I put almost all my laf in a single file. See this as an example.

        1. all declarations in one script?
          Does it make sense to collect all component declarations in an external script "declarations.js" or better in different scripts at the beginning of the respective function?

        As I mentioned I put almost all my laf functions in a single file. I put component declarations into separate files, each with their own namespace. So if I have a set of controls all relating to a mic mixer, then they go in Mixer.js with the namespace Mixer.

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

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

        28

        Online

        1.7k

        Users

        11.8k

        Topics

        102.8k

        Posts