HISE Logo Forum
    • Categories
    • Register
    • Login

    Export pooled Files to Binary

    Scheduled Pinned Locked Moved General Questions
    15 Posts 3 Posters 489 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.
    • NatanN
      Natan
      last edited by Natan

      If You Compile Anything Without a Single Image / Audio,
      The Component Files Will be around 20/25 M.b.
      IPP also Adds size to Component.
      And I already Mentioned Yiu In Other thread To Be aware of this.

      Btw, I Always Convert my audio files To .flac
      It is compressed and Compared to Wave files, It's Like 1/3.

      LindonL 1 Reply Last reply Reply Quote 0
      • NatanN
        Natan
        last edited by

        Another Example:

        Let say you have 80M.b Of Images In Image Folder.

        But you only used 1 or 2 OF Them.
        Hise Will Automatically Include Those 2, And skip On Rest of Images Files.

        But with Audio Files,
        It Includes Everything Once Use engine.loadaudiofiles....

        MikeBM 1 Reply Last reply Reply Quote 0
        • MikeBM
          MikeB @Natan
          last edited by MikeB

          @Natan

          But with Audio Files,
          It Includes Everything Once Use engine.loadaudiofiles....

          And it doesn't matter how you compress your audio files, in HISE they are always 32 bits in size.

          Original sample 53kb
          Samples in AudioLoadWindow 106kb

          Do you embed your samples - or not?

          "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

          NatanN 1 Reply Last reply Reply Quote 0
          • NatanN
            Natan @MikeB
            last edited by

            @MikeB said in Export pooled Files to Binary:

            32 bits in size.

            Yeah, I Embed Impulses, Audio Files, And All Goes Around 23 M.b Plus Hise
            Not Sure About The 32 Bit, But I Guess That's For BMP Images, Not For Audio Files.

            MikeBM 1 Reply Last reply Reply Quote 0
            • MikeBM
              MikeB @Natan
              last edited by

              @Natan

              Not Sure About The 32 Bit, But I Guess That's For BMP Images, Not For Audio Files.

              see here:

              Link Preview Image
              Embedded audio files

              what does HISE do with embedded audio files. Why are they twice as big in the AudioFilePool after import?

              favicon

              Forum (forum.hise.audio)

              "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

              1 Reply Last reply Reply Quote 1
              • LindonL
                Lindon @Natan
                last edited by

                @Natan said in Export pooled Files to Binary:

                If You Compile Anything Without a Single Image / Audio,
                The Component Files Will be around 20/25 M.b.
                IPP also Adds size to Component.
                And I already Mentioned Yiu In Other thread To Be aware of this.

                Btw, I Always Convert my audio files To .flac
                It is compressed and Compared to Wave files, It's Like 1/3.

                So are you saying if I convert all my .wav based IRs to flac files I can have a whole bunch more without blowing the compiler heap space?

                HISE Development for hire.
                www.channelrobot.com

                NatanN 1 Reply Last reply Reply Quote 0
                • NatanN
                  Natan @Lindon
                  last edited by

                  @Lindon Yeah, That Works Here
                  Recetly i Included 20 Ir + 20 Loops And Still Under 50 M.b

                  LindonL MikeBM 2 Replies Last reply Reply Quote 0
                  • LindonL
                    Lindon @Natan
                    last edited by

                    @Natan said in Export pooled Files to Binary:

                    @Lindon Yeah, That Works Here
                    Recetly i Included 20 Ir + 20 Loops And Still Under 50 M.b

                    hmm, yeah - but did you test this? The 50MB limit is a bit more fluid I find, so it might be uncompressing them before adding them into the image - in the way it does with jpg and png images...

                    HISE Development for hire.
                    www.channelrobot.com

                    1 Reply Last reply Reply Quote 0
                    • MikeBM
                      MikeB @Natan
                      last edited by

                      @Natan @Lindon
                      So according to my tests and Christoph's answer, it doesn't matter how you compress. Everything is processed in HISE with 32Bit.

                      Only the length and the number of samples 44.1 or 48 or 22.05khz changes the size of the space reserved by HISE per sample.

                      If you read in a sample 2 bars with 8 or 16 or 24 or 32 bits you will notice that in HISE they are all the same size.

                      If you change the sample rate from 48 to 44.1 or 22.05, the size is halved.

                      If you have other experiences - please tell me :-)

                      Samplefile
                      Bildschirmfoto 2021-09-23 um 12.25.01.png

                      HISE AudioPool
                      Bildschirmfoto 2021-09-23 um 12.28.01.png

                      "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

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

                        @MikeB - yeah that was my understanding too...

                        HISE Development for hire.
                        www.channelrobot.com

                        1 Reply Last reply Reply Quote 1
                        • MikeBM
                          MikeB
                          last edited by

                          The same is true for images - there are NO compressed images in HISE - all images are processed in a 32bit colour space.
                          So no matter if you import a jpg or an uncompressed png both are the same size in HISE and four times bigger than your original.

                          "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

                          NatanN 1 Reply Last reply Reply Quote 0
                          • NatanN
                            Natan @MikeB
                            last edited by Natan

                            @MikeB Okey
                            Let say You Have A .Wav File " 3 M.b X 2 = 6 M.b "
                            And the Same File In .Flac " 1.5 M.b X 2 = 3 M.b "

                            What You Think?

                            LindonL MikeBM 2 Replies Last reply Reply Quote 0
                            • LindonL
                              Lindon @Natan
                              last edited by

                              @Natan said in Export pooled Files to Binary:

                              @MikeB Okey
                              Let say You Have A .Wav File " 3 M.b X 2 = 6 M.b "
                              And the Same File In .Flac " 1.5 M.b X 2 = 3 M.b "

                              What You Think?

                              not how it works ....

                              it does not matter what size the file is on disk - HISE loads the audio and expands it to 32-bit and keeps that internally.

                              Same for images - you can have a jpg file on disk, but HISE will expand it out to 16-bit uncompressed and save that.

                              HISE Development for hire.
                              www.channelrobot.com

                              1 Reply Last reply Reply Quote 0
                              • MikeBM
                                MikeB @Natan
                                last edited by

                                @Natan We are already talking about AudioFiles that are used in the AudioPool and in the AudioLoopPlayer.

                                if so:

                                You can also save it as mp3 with 200kb - as soon as you load it into the AudioPool it has 6MB.

                                I guess your .FLac conversion reduces the sample rate of the file - as you can see from my experiment, when you reduce the sample rate you reduce the size in HISE.

                                What is the sample rate of your original .wav and how much is the .flac file?

                                "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

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

                                20

                                Online

                                1.7k

                                Users

                                11.8k

                                Topics

                                103.0k

                                Posts