HISE Logo Forum
    • Categories
    • Register
    • Login

    Sample compression

    Scheduled Pinned Locked Moved C++ Development
    14 Posts 4 Posters 3.5k 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.
    • d.healeyD
      d.healey
      last edited by

      I just came across this - http://www.monkeysaudio.com/developers.html - would it be a practical solution for implementing sample compression in HISE?

      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

        Yes I heard of it but its slower than FLAC (according to some benchmarks I've read) and FLAC is already too slow to stream huge amounts of voices. But I might be wrong about this. Have you any resources with other benchmarks?

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

          Actually I think you're right. The only info I'd looked at when I posted this was the Monkeys Audio site, I've since looked at the wiki and some other general info sites and it definitely seems like everyone thinks it's slower than flac. What do NI do to get such good compression and high speed I wonder...

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

          1 Reply Last reply Reply Quote 0
          • W
            Win Conway
            last edited by

            Pretty sure Kontakt uncompresses to a temp file as it loads banks, thats why loading is not particularly fast on Kontakt, I could well be wrong on this though.

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

              Ah that's interesting

              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

                Are you sure about this? This sounds like cheating :)

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

                  What sort of CPU hit will I get using FLAC instead of WAV?

                  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

                    Factor 10. Makes no fun. It also seams to use a global state so decompressing multiple files simultaneous brings an extra hit.

                    But I am thinking of writing a custom compression format in the not so distant future. Monophonic instrument samples do have lots of redundancy and I think an algorithm that takes this special type of material into account can beat a general purpose codec like FLAC...

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

                      That would be great. I've built a small patch with FLAC samples and didn't notice a performance hit but it didn't have any scripting and only one articulation, I wouldn't like to risk it on a larger instrument.

                      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

                        You can simply convert all your samples to FLAC, copy the HISE patch into Sublime, replace .wav with .flac and reimport that into HISE to compare the performance.

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

                          That's clever! I'll give it a go

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

                          1 Reply Last reply Reply Quote 0
                          • D
                            Dorian
                            last edited by

                            Did you maybe try this out with a larger instrument? Interested to see how it compares in performance

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

                              @Dorian : I wrote a custom audio codec that outperforms FLAC by a factor of 10 - see: http://178.62.82.76:4567/topic/236/hise-lossless-audio-codec-is-ready

                              It doesn't compress as good as FLAC (you can expect the file size to be reduced to 45% instead of 25%), but it has hardly any overhead compared to uncompressed files.

                              FLAC in it's current form is not suitable for streaming multiple voices (it allows ~70 voices to be decoded in realtime on my system vs. 700 uncompressed / HLAC compressed voices)

                              1 Reply Last reply Reply Quote 0
                              • D
                                Dorian
                                last edited by

                                this looks great

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

                                27

                                Online

                                1.7k

                                Users

                                11.8k

                                Topics

                                103.0k

                                Posts