HISE Logo Forum
    • Categories
    • Register
    • Login

    Installing Samples Dialog....

    Scheduled Pinned Locked Moved Feature Requests
    130 Posts 13 Posters 11.4k 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.
    • Christoph HartC
      Christoph Hart
      last edited by

      It would also be nice if we could define a (fixed size) graphic to use as a background in these dialogs or at least select a background and button/text colour set.

      The beauty of open source:

      Link Preview Image
      HISE/hi_tools/hi_tools/HI_LookAndFeels.h at master · christophhart/HISE

      The open source framework for sample based instruments - HISE/hi_tools/hi_tools/HI_LookAndFeels.h at master · christophhart/HISE

      favicon

      GitHub (github.com)

      Line 941+ :)

      LindonL 1 Reply Last reply Reply Quote 0
      • LindonL
        Lindon @Christoph Hart
        last edited by

        @Christoph-Hart Oh very nice... now if I could just change the text and remove the bottom button....☺

        HISE Development for hire.
        www.channelrobot.com

        1 Reply Last reply Reply Quote 0
        • Dan KorneffD
          Dan Korneff
          last edited by

          I'm trying to simplify the initial dialog for HISE plugins here. I checked out the HI_LookAndFeels.h but didn't see anything related to the "install" or "locate" buttons that show up on first launch.
          I did, however, find the data in:
          hi_components\plugin_components\FrontendBar.cpp
          Line 50+

          addAndMakeVisible(installSampleButton = new TextButton("Install Samples"));
          

          I tried commenting this line out, but it removes the entire GUI from my plug when I compile.
          @Christoph-Hart any hints?

          Dan Korneff - Producer / Mixer / Audio Nerd

          1 Reply Last reply Reply Quote 1
          • Christoph HartC
            Christoph Hart
            last edited by

            @dustbro said in Installing Samples Dialog....:

            I tried commenting this line out, but it removes the entire GUI from my plug when I compile.

            Yes you are creating the object in this line and commenting this out will lead to a null pointer access later so you can be happy that it didn't crash.

            Without going to deep into what you're trying to do, what you wanted to do can be achieved by putting

            installSampleButton->setVisible(false);
            

            somewhere after this line. I can't say whether this is helpful for your intentions though - what do you want to prettify exactly?

            Dan KorneffD 1 Reply Last reply Reply Quote 0
            • Dan KorneffD
              Dan Korneff @Christoph Hart
              last edited by

              @Christoph-Hart said in Installing Samples Dialog....:

              what do you want to prettify exactly?

              I don't plan on using the HRx format for distribution, so I don't want to confuse the end user with access to a button to install them. All I need is 1 button to locate the sample folder on first launch.

              Dan Korneff - Producer / Mixer / Audio Nerd

              1 Reply Last reply Reply Quote 2
              • T
                tomekslesicki
                last edited by

                Do I have to build Hise from source in order to remove the "Install Samples" button or can it be set before the VST export? And if it can be set before the export - how? I've added the line of code as @Christoph-Hart mentioned but it doesn't seem to do anything...

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

                  @tomekslesicki Yes you'll need to rebuild from source

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

                  T 1 Reply Last reply Reply Quote 1
                  • T
                    tomekslesicki @d.healey
                    last edited by

                    @d-healey Great, thanks!

                    1 Reply Last reply Reply Quote 0
                    • T
                      tomekslesicki
                      last edited by tomekslesicki

                      Ok, I've added the "installSampleButton->setVisible(false);" under line 50 in the hi_components > plugin_components > FrontendBar.cpp and built Hise from source again, but the button is still there. What am I not getting?

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

                        @tomekslesicki Is your project pointing to the correct HISE source code?

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

                        T 1 Reply Last reply Reply Quote 0
                        • T
                          tomekslesicki @d.healey
                          last edited by

                          @d-healey Yeah, it is. I've just double checked, built Hise again, checked then, tried to export and the button is still there :-(

                          1 Reply Last reply Reply Quote 0
                          • Christoph HartC
                            Christoph Hart
                            last edited by

                            I've added a few compiler flags that decide what dialog to show. Just put these two in the Extra Definitions Windows / OSX properties of your project before compiling:

                            // If you want to hide the install button
                            HISE_SAMPLE_DIALOG_SHOW_INSTALL_BUTTON=0
                            
                            // If you want to bypass the entire thing and use a default location for the samples
                            HISE_SAMPLE_DIALOG_SHOW_LOCATE_BUTTON=0
                            
                            T 1 Reply Last reply Reply Quote 3
                            • T
                              tomekslesicki @Christoph Hart
                              last edited by

                              @Christoph-Hart said in Installing Samples Dialog....:

                              I've added a few compiler flags that decide what dialog to show. Just put these two in the Extra Definitions Windows / OSX properties of your project before compiling:

                              // If you want to hide the install button
                              HISE_SAMPLE_DIALOG_SHOW_INSTALL_BUTTON=0
                              
                              // If you want to bypass the entire thing and use a default location for the samples
                              HISE_SAMPLE_DIALOG_SHOW_LOCATE_BUTTON=0
                              

                              Tried that and still doesn't work :-(

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

                                @tomekslesicki Did you rebuild HISE using the latest version from GitHub today?

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

                                1 Reply Last reply Reply Quote 0
                                • Christoph HartC
                                  Christoph Hart
                                  last edited by

                                  And you need to make sure that HISE uses this source code for compilation (in this case rebuilding HISE doesn‘t make a difference)

                                  1 Reply Last reply Reply Quote 1
                                  • T
                                    tomekslesicki
                                    last edited by

                                    I've re-downloaded the Hise source code, re-compiled, added the code to the project, exported again and the button is still there. He's a tough one, that's for sure!

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

                                      @tomekslesicki said in Installing Samples Dialog....:

                                      added the code to the project

                                      Could you clarify what you mean? Just so I understand the situation better.

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

                                      1 Reply Last reply Reply Quote 0
                                      • T
                                        tomekslesicki
                                        last edited by

                                        @tomekslesicki said in Installing Samples Dialog....:

                                        HISE_SAMPLE_DIALOG_SHOW_INSTALL_BUTTON=0

                                        Sure! I meant I've added the "HISE_SAMPLE_DIALOG_SHOW_INSTALL_BUTTON=0" line to Extra Definitions:

                                        2019-10-06 18_48_04-HISE Backend Standalone.jpg

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

                                          @tomekslesicki Have you pointed the project to the correct version of the HISE source code?

                                          030fc761-a271-4f30-adb8-616c8d97bad1-image.png

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

                                          T 1 Reply Last reply Reply Quote 0
                                          • T
                                            tomekslesicki @d.healey
                                            last edited by

                                            @d-healey Yup, the one I've built from - downloaded from github, as you've suggested.

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

                                            14

                                            Online

                                            1.7k

                                            Users

                                            11.8k

                                            Topics

                                            102.4k

                                            Posts