HISE Logo Forum
    • Categories
    • Register
    • Login

    quick audioWaveform/Sampler question

    Scheduled Pinned Locked Moved Unsolved Scripting
    16 Posts 3 Posters 107 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.
    • rglidesR
      rglides @d.healey
      last edited by

      @d-healey not sure if the wav will come through in the snippet but the issue is recreated here with any wav loaded into a few of the notes here

      HiseSnippet 1285.3ocyW0zaSbDFd13rz3TJpfnRbnG1J0CAIJxFBg9gHwNw1fEwIVdCoToHgF1cr8nr6LqlcVGbqp54pdo+T54dhi8mC+CZem8iry5XYbbAC4Pje+Zlm2umsqf6PBC4BjQ4iFGPPFW0zdLSNbugXJC0tAx3ZlcvgRhvJg0tiCvggDWjgQoGqXXTdUT7euYmcwdXlCImEBcLm5P1m5Sk4b6V6oTOuVXWxQTeMs2rVaGNaOtGOBvSIyJn.ryo3AjCvJ0VwDYbkltTIWXKwRRHnytb2w1C4mwRz+XZH8kdDEQUjMbPIrQ6Mj541MyWCQHCyt4ddoDO+llcntzy4mGA97XAV4VnGCLVYVPp5k.RFZPZ0DHccSaGAMPlKQgmO0rMCRH8wPnVGJI5hLds4dbPAl7t93SIsD.w4FrwVUpbGK3e29G5GwbjTNyhyNfKIGx131q+KqWd8eccqIE0u+TkotFA2yiHlpXU1ULKC2fE4+Rh3NVivdQjyUDb+hwzqLewTmDuVSQNqMiJOLfjR2h64phUpeewL.JMroxEoHDTUFmI9hzLQ8HWJ+GwiH84BeD0UUcTfWUTryn2CfdV6FXIN6Xga.t0.hPRUNmQCxHnGIIgW1rAI7TIOHVW+.NSgGi0tzf3U4.3mpMNmfV6LpqbHz.X7mFHzPBcvPoh5e.gAYAi1vQttoM1O.xsUQgw+nMyk.G6pleCD7tXsJzkvci7vxhsNpYDoBfbeg5UUQIKjJGqOC4RzOUYl8SyKDutYWpzY3zw3JSAiPd78AFSmB8YlM62m3HyA3plsd9hNxY9u9uL45ugosTPv9T1fzzeLFzJFdGr.HXtW.zUP73XWa5Oqo1qqsaDDiDE49W0hup597HVg6JE48HADrDRyZ1rVsd8drfGELoUuYm3hhiDvBHHTnK3PFAh0RcebOAOLrO3NwmUntntQhApXUNmdjQDQXQdGD4C4aFi3Ep5EMTyLBIp7K0oCVJnuRW63aoxQ33bLrULlt5Dz2aB56OA8lSP+fIn2ZB5GlSaXVr96SluwycvAcwfKpo4tzzpLPVBmhiKzT87XbLNz14OkMoW480x8UmuNs2xZlO9mcV3sHkyvnMUkpZxFA8j.GEFuArupONxSlws37gNbFOXHmQcJ1A.UzCFPD5XepNTcoDZ.y4byZ8HdDbnVK7WWaeJifEEaruTwhK+6xlZ95VlIv0RMTy5+SdaoVlMy8eklq8euyw6huKboF5tV5VQK31ExOxyyW0LdNtkZs6GJn1iGIg0oYqzLg8d1vtdGh91uUTaTSnqnnU.xlvbiI9W3uTgUyVUpDVMSHxI6n.eK82wu91nDgoVcD+rNOXIrmdIcH7hBEjf0aoO20GVIAGZBAD95w4wOT9Qf16yeJYbFwSnZD6yOVcvIn9IzTheS46IuzHCzsndoeW6WYZ+8mXWuS28aZeRu1sZ8L61GdvI087rZyt6Y3QnFQAdTGHQnRW6y4AOONIldKJFIEf.ie+61DkTTNEVMYtJF2pwej4jvmVj4Waq6Waq6WauL7qUPWHRuiNh1QGQ6rTPzrizO5uslLRmyZlQ5Z59UMc+p1xMReNhpqin55Hp9xAQKiAC9XGA+ENIeXuZ7vZwbfACrXLW1rih1ZJeAuO7DwW33T7ntfg2aQM79KpgatnF9fE0vsVTCe3hZ3291MT8B95QRtex6WPnNcalLy2n44y7Kg9OY8lbVC
      
      d.healeyD ChazroxC 2 Replies Last reply Reply Quote 0
      • d.healeyD
        d.healey @rglides
        last edited by

        @rglides The range seems to be updating correctly for me, or perhaps I'm misunderstanding the issue.

        Peek 2025-08-12 13-33.gif

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

        1 Reply Last reply Reply Quote 0
        • ChazroxC
          Chazrox @rglides
          last edited by Chazrox

          @rglides works for me too. Behavior is the same as @d-healey ...unless thats not right.

          1 Reply Last reply Reply Quote 0
          • rglidesR
            rglides
            last edited by

            Thanks for looking guys, it's still working strangely for me. the intention is to update the range in the audioWaveform and then any note played should use that updated range. this is working technically, but the audioWavefom jumps back to showing the default/full range for any note played, other than the note I last played when setting the range, which does show the range I set. But you're both getting the manually set range for all played notes after setting it?

            1 Reply Last reply Reply Quote 0
            • rglidesR
              rglides
              last edited by

              I'm loading the same wav into notes 61, 62, 63, 64 for the test. All in the same sampler with the same audioWaveform. I set the range after playing note 61. note 61 range is visually represented properly in the audioWaveform. I play note 62, 63 or 64 and they all use the range I set technically, but visually the audioWaveform shows the full/default range when I hit those notes. I play note 61 again and the correct range shows in the audioWaveform again. I just want to set the range and have the audioWaveform show that manually set range for all played notes in that sampler

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

                @rglides What about if you just load the sample once and stretch it over the range, instead of duplicating it?

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

                rglidesR 1 Reply Last reply Reply Quote 0
                • rglidesR
                  rglides @d.healey
                  last edited by

                  @d-healey That could work. So here I have my load function in my main project, with NOTE_SP1 = 61 for when I am loading a single sample and then the array for when I activate btn_UNI (the mode where a single sampler is used for multiple notes with the same sample) What would be the call to load a sample across 8 notes, rather than load the sample into 8 notes separately at once?

                  inline function loadSample_sp1(file)
                  {
                      if (btn_UNI.getValue())
                      {
                          local samples = [];
                          for (i = 0; i < NUM_ROWS_HK4; i++)
                          {
                              local s = SP_1.parseSampleFile(file);
                              if (isDefined(s))
                              {
                                  s['LoKey'] = NOTE_SP1 + i; 
                                  s['HiKey'] = NOTE_SP1 + i;
                                  samples.push(s);
                              }
                          }
                          
                          if (samples.length > 0)
                          {
                              SP_1.loadSampleMapFromJSON(samples);
                          }
                      }
                      else
                      {
                          local s = [SP_1.parseSampleFile(file)];
                          if (s.length > 0) 
                          {
                              s[0]['LoKey'] = NOTE_SP1; 
                              s[0]['HiKey'] = NOTE_SP1;  
                          }	
                          SP_1.loadSampleMapFromJSON(s);
                      }
                      manuallyLoadedFile_sp1 = file.toString(file.FullPath);
                  
                  d.healeyD 1 Reply Last reply Reply Quote 0
                  • d.healeyD
                    d.healey @rglides
                    last edited by

                    @rglides I think you need to modify it to set the LoKey and HiKey values to cover the range you want to use.

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

                    rglidesR 1 Reply Last reply Reply Quote 0
                    • rglidesR
                      rglides @d.healey
                      last edited by

                      @d-healey you mean just hard code that rather than use the array?

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

                        @rglides It depends, if you always want it to cover the same range you might use a couple of a constants. If the range is going to vary then you'll need something more dynamic like an array.

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

                        rglidesR 1 Reply Last reply Reply Quote 0
                        • rglidesR
                          rglides @d.healey
                          last edited by

                          @d-healey Sure, although it doesn't really tackle the issue, I'll keep messing around for now. It is interesting that you guys didn't seem to have the problem I had so I might open the snippet on another computer and see, I hope it's just an anomaly on my end. Thanks for looking David!

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

                          25

                          Online

                          1.9k

                          Users

                          12.3k

                          Topics

                          106.9k

                          Posts