HISE Logo Forum
    • Categories
    • Register
    • Login

    Change specific samples "pan"

    Scheduled Pinned Locked Moved Scripting
    9 Posts 3 Posters 630 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.
    • ulrikU
      ulrik
      last edited by

      Is there a way to set a specific samples "pan", in the sampler, via scripting?
      like the way you can do with the gain

      Message.setGain()
      

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

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

        Link Preview Image
        Note panning

        Hello, would you know if this is possible or push me to the right direction: Is it possible to change pan of currently played note? I am thinking of randomiz...

        favicon

        Forum (forum.hise.audio)

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

        ulrikU 1 Reply Last reply Reply Quote 1
        • ulrikU
          ulrik @d.healey
          last edited by

          @d-healey Ahh, thank you David, it seems a bit complicated for me at the moment I guess, I wish it could be as simple like:

          Message.setPan()
          

          :)

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

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

            @ulrik

            I wish it could be as simple like:

            Me too

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

            ulrikU 1 Reply Last reply Reply Quote 1
            • ulrikU
              ulrik @d.healey
              last edited by

              @d-healey I found a solution using the

              Sampler.setSoundPropertyForSelection()
              

              I have this in my NoteOn Callback

              function onNoteOn()
              {
                  if(SoundsKey.indexOf(Message.getNoteNumber()) != -1)
                  {
                      local idx = SoundsKey.indexOf(Message.getNoteNumber());
                      //  Individual gain per sound   ----------------------------
                      Message.setGain(SoundsGain[idx]);
                      
                      //  Individual pan per sound   ----------------------------
                      Sampler1.selectSounds(SoundsNames[idx]);
                      Sampler1.setSoundPropertyForSelection(9, PanKnbs[idx].getValue());
                  }
              }
              

              and it seems to work fine so far, however I'm a bit afraid this will interfere with the audio thread, what do you think?

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

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

                I'm not sure, I haven't played around with those functions much. Try it and see.

                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

                  Nonononono, multiple no-gos. I am surprised that the AudioThreadGuard didn‘t fire ;)

                  Use a stereo FX and modulate it polyphonically.

                  ulrikU 2 Replies Last reply Reply Quote 3
                  • ulrikU
                    ulrik @Christoph Hart
                    last edited by

                    @Christoph-Hart 🤣 haha...yes I figured this would cause a lot of nonos..., so the gogos is to use a stereo FX, is there any examples around?

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

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

                      @Christoph-Hart Never mind, I figured it out, thanks! 👍

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

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

                      46

                      Online

                      1.7k

                      Users

                      11.7k

                      Topics

                      101.8k

                      Posts