HISE Logo Forum
    • Categories
    • Register
    • Login

    The sampler goes crazy with monolith

    Scheduled Pinned Locked Moved General Questions
    33 Posts 5 Posters 1.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.
    • bendursoB
      bendurso
      last edited by

      I was trying to figure out why the sampler was behaving unpredictably in a project—it would sometimes play the wrong samples and occasionally play a slow arpeggiated melody after just one note.

      At first, I thought it was caused by a module or script, but it turned out not to be the case. When I switched back from using monolith to WAV files, the issue was resolved. So, the problem was related to the conversion to monolith.

      I'm currently using commit 6cdf5de7

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

        @bendurso did you rebuild the monolith(ch1 file?)

        HISE Development for hire.
        www.channelrobot.com

        bendursoB Christoph HartC 2 Replies Last reply Reply Quote 0
        • bendursoB
          bendurso @Lindon
          last edited by

          @Lindon Yeap, I did rebuilt the monolith files with commit 6cdf5de7

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

            Yeah, definitely a mismatch between samplemap and ch1 file. In the end the monolith file is just a big chunk of audio and the samplemap stores the offsets where the actual samples begin. If there is a mismatch between those two, you'll end up jumping all over the place.

            Just reencode the monolith and you should be fine.

            EDIT: Just saw your answer, if reencoding doesn't fix it, it might be possible that I broke something with the introduction of the release offset feature:

            Link Preview Image
            - added release start mode to streaming engine! · christophhart/HISE@79019ea

            The open source framework for sample based instruments - - added release start mode to streaming engine! · christophhart/HISE@79019ea

            favicon

            GitHub (github.com)

            Can you go back to a commit before that and check if it solves your problem?

            bendursoB 2 Replies Last reply Reply Quote 0
            • bendursoB
              bendurso @Christoph Hart
              last edited by bendurso

              @Christoph-Hart I have a version built on September 12 (before release offset) and after recoding the samplemaps I have the same problem.

              1 Reply Last reply Reply Quote 0
              • bendursoB
                bendurso @Christoph Hart
                last edited by

                This post is deleted!
                d.healeyD 1 Reply Last reply Reply Quote 0
                • d.healeyD
                  d.healey @bendurso
                  last edited by

                  @bendurso Are you using the monolith reference feature?

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

                  bendursoB 1 Reply Last reply Reply Quote 0
                  • bendursoB
                    bendurso @d.healey
                    last edited by

                    @d-healey Mm no, I don't know what that function does

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

                      @bendurso It breaks monoliths for me, so don't use it :)

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

                      1 Reply Last reply Reply Quote 0
                      • bendursoB
                        bendurso
                        last edited by

                        Am I the only one with this problem?

                        I tested with 4.0.0, re-encoding monoliths and have the same problem, which is weird.

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

                          @bendurso Can you make a mini example project for us to see the issue?

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

                          bendursoB 1 Reply Last reply Reply Quote 0
                          • bendursoB
                            bendurso @d.healey
                            last edited by

                            @d-healey Yes, I've attached the project file. The error doesn't always occur, but if you start changing the sample map and play long notes (holding the keyboard note), at some point you'll hear an arpeggio of notes."

                            Dropbox - File Deleted - Simplify your life

                            favicon

                            (www.dropbox.com)

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

                              @bendurso said in The sampler goes crazy with monolith:

                              but if you start changing the sample map and play long notes

                              Do you mean change the sample map while notes are playing?

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

                              bendursoB 1 Reply Last reply Reply Quote 0
                              • bendursoB
                                bendurso @d.healey
                                last edited by

                                @d-healey Mm no, I mean playing normal notes until the sample ends. Sometimes it doesn't happen, but after changing the sample map several times, the error occurs while playing.

                                d.healeyD ulrikU 2 Replies Last reply Reply Quote 0
                                • d.healeyD
                                  d.healey @bendurso
                                  last edited by

                                  @bendurso You say error, does that mean you get an error message? I'm not able to trigger any issues with the project and the steps you suggested. Might be helpful at this stage to make a screen recording of what you see.

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

                                  1 Reply Last reply Reply Quote 0
                                  • ulrikU
                                    ulrik @bendurso
                                    last edited by

                                    @bendurso I checked you project and yes, there is issues, for instance holding down B2 when having the sample map "Folk/Nomad Strings" selected, after 6 sec another sample will play.

                                    So if this issue doesn't occur when playing that specific sample as wav or aiff, then it must be issues with conversion to monolith

                                    Skärmavbild 2024-10-03 kl. 10.24.37.png

                                    Hise Develop branch
                                    MacOs 15.3.1, Xcode 16.2
                                    http://musikboden.se

                                    d.healeyD bendursoB 2 Replies Last reply Reply Quote 0
                                    • d.healeyD
                                      d.healey @ulrik
                                      last edited by

                                      @ulrik Following your instruction I can trigger the issue too. It would be interesting to have the original audio files in order to test the conversion to monolith.

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

                                      bendursoB 1 Reply Last reply Reply Quote 0
                                      • bendursoB
                                        bendurso @ulrik
                                        last edited by

                                        @ulrik Thanks for checking :) Yeah, I just converted it to wav using the SaveMode=1 and the error was gone.

                                        1 Reply Last reply Reply Quote 0
                                        • bendursoB
                                          bendurso @d.healey
                                          last edited by

                                          @d-healey

                                          Now I included the samples of the samplemap Nomad Strings. I re-enconde it again, and now the error it's on E3

                                          Dropbox - File Deleted - Simplify your life

                                          favicon

                                          (www.dropbox.com)

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

                                            I just noticed in your sample map that all the files have absolute paths instead of relative paths (were your samples not in the project's Samples folder when you mapped them?). This could be the cause of the issue.

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

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

                                            14

                                            Online

                                            1.8k

                                            Users

                                            11.9k

                                            Topics

                                            103.9k

                                            Posts