Forum
    • Categories
    • Register
    • Login

    DAW <> Plugin sync scaling

    Scheduled Pinned Locked Moved General Questions
    10 Posts 2 Posters 54 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.
    • B
      Bart
      last edited by

      Need a plugin to scale to FL Studios scale factor, but the following doesn't work, it only displays a factor of 1.0.

      Content.makeFrontInterface(480, 240);
      
      const var lbl = Content.addLabel("lbl", 0, 0);
      
      // Detect host scale
      var hostScale = Settings.getZoomLevel(); 
      lbl.set("text", hostScale);
      
      // Apply scale to UI
      Settings.setZoomLevel(hostScale);
      

      Extra Definitions Windows:
      HI_VIEW_IS_DPI_AWARE=1
      JUCE_WIN_PER_MONITOR_DPI_AWARE=1

      Toggling FL Studios DPI Aware setting doesn't help

      Maybe Settings.getZoomLevel(); gets the plugin scaling, not the DAW?

      David HealeyD 1 Reply Last reply Reply Quote 0
      • David HealeyD
        David Healey @Bart
        last edited by

        @Bart said in DAW <> Plugin sync scaling:

        var hostScale = Settings.getZoomLevel();

        Settings.getZoomLevel() returns the current zoom level of your plugin, I don't believe there is away to get the scaling factor of the daw.

        Free HISE Bootcamp Full Course for beginners.
        YouTube Channel - Public HISE tutorials
        My Patreon - HISE tutorials

        B 2 Replies Last reply Reply Quote 0
        • B
          Bart @David Healey
          last edited by

          @David-Healey Ok thanks.

          Do you know if its possible to detect a screens resolution, to implement a full screen toggle option?

          David HealeyD 1 Reply Last reply Reply Quote 0
          • David HealeyD
            David Healey @Bart
            last edited by

            @Bart Content.getScreenBounds(true)

            Free HISE Bootcamp Full Course for beginners.
            YouTube Channel - Public HISE tutorials
            My Patreon - HISE tutorials

            B 1 Reply Last reply Reply Quote 0
            • B
              Bart @David Healey
              last edited by

              @David-Healey Oh lol, brilliant thanks!

              One last thing, is there a source of information about setting Extra Definitions?
              I'm probably searching in the wrong places, apologies.

              David HealeyD 1 Reply Last reply Reply Quote 0
              • David HealeyD
                David Healey @Bart
                last edited by

                @Bart There is no single source, there is scattered information on the forum and the docs. What do you want to know?

                Free HISE Bootcamp Full Course for beginners.
                YouTube Channel - Public HISE tutorials
                My Patreon - HISE tutorials

                B 1 Reply Last reply Reply Quote 0
                • B
                  Bart @David Healey
                  last edited by

                  @David-Healey

                  Basically a list of what definitions exist and what they do..

                  1 Reply Last reply Reply Quote 0
                  • B
                    Bart @David Healey
                    last edited by

                    @David-Healey

                    I don't believe there is away to get the scaling factor of the daw.

                    Assuming it's neither possible to get the OS scaling factor?

                    David HealeyD 1 Reply Last reply Reply Quote 0
                    • David HealeyD
                      David Healey @Bart
                      last edited by

                      @Bart said in DAW <> Plugin sync scaling:

                      Assuming it's neither possible to get the OS scaling factor?

                      Not as far as I'm aware. I think JUCE might make it available so it could be possible to add it to HISE.

                      @Bart said in DAW <> Plugin sync scaling:

                      Basically a list of what definitions exist and what they do..

                      There is an out of date Google sheet somewhere that lists a lot of them. There are also some that are toggleable from the Help >> About menu in HISE.

                      Oh here it is: https://forum.hise.audio/topic/8023/preprocesor-definitions?_=1767740498748

                      Free HISE Bootcamp Full Course for beginners.
                      YouTube Channel - Public HISE tutorials
                      My Patreon - HISE tutorials

                      B 1 Reply Last reply Reply Quote 0
                      • B
                        Bart @David Healey
                        last edited by Bart

                        @David-Healey

                        Awesome! Thanks for your input David!

                        Really appreciate your video tutorials also.. I would have likely never attempted plugin dev scripting otherwise, great work ;)

                        Hise for the WIN

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

                        25

                        Online

                        2.1k

                        Users

                        13.2k

                        Topics

                        114.3k

                        Posts