HISE Logo Forum
    • Categories
    • Register
    • Login

    Sample start mod vs note offset

    Scheduled Pinned Locked Moved Scripting
    7 Posts 3 Posters 628 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

      If I have both a sample start modulator and I play a note with an offset value applied via Synth.playNoteWithStartOffset() which offset value is given priority?

      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

        I am not sure, but this is rather undefined behaviour territory - it might be possible that I change the implementation that changes the priority any time. What's your use case?

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

          @Christoph-Hart I have my legato script that applies an offset to the second sample when a legato interval is played. And I have an offset modulator that triggers when a velocity > 70 is played but for any other velocity it applies no offset (I'm using a velocity modulator for this).

          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

            If you want to combine them two, you need to move the legato logic into a voice start script:

            HiseSnippet 1183.3oc4X81aaSDF2No2nIZcZLMjPBgvu.jREPWb+yJnIwRaZ6TDKsQwkBua5p8kjSy9NqymCKLw2I9HvGo8M.dNeNwmaCcwSEFB7Kh78bOO2yu64+NCDbeRRBWXY237YwDK66h7lwjS5NASYV8Nxx9dn93DIQ3nIc3rXbRBIvx1t9yTDrarlU1yad5g3PLymTPxx5BN0m7bZDUVPcPmumFFdBNfbNMxf6c6zymy5xC4o.dpiZaEi8eIdL4TrhsZHK66bb.UxEdRrjjXYu1g7fYdS3+LSy+EzD5kgD0BWKO3fzjOgGFnPr5cqtSngACleuSrrrQCJrB00VgGh5SCnKnWXMte1FNERXZOrqcSvy8sCO2k.OKCzslFc.H3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ASJHASk9OBJiv9B9K70QGJrtdFE.krr+ZkFn9p0NtVYQ1ZqaDLf4K78Ucu9Zv9tbI1txRrSkkX2JKwdUVhGWYI1uxR7M2fDpo4OHUxizyx.DFbrNPx93EAR0s9SLrXJ+A
            

            (or you add the velocity offset to your existing legato script)

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

              @Christoph-Hart
              Thank you. Is the scripted modulator stuff documented somewhere?

              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

                Not really, but this one is pretty trivial: just return something between 0 and 1 just like any other voice start modulator.

                But I'll add it to the "tiny" list of things that need better documentation :)

                Dan KorneffD 1 Reply Last reply Reply Quote 1
                • Dan KorneffD
                  Dan Korneff @Christoph Hart
                  last edited by

                  @Christoph-Hart said in Sample start mod vs note offset:

                  But I'll add it to the "tiny" list of things that need better documentation

                  🤣

                  Dan Korneff - Producer / Mixer / Audio Nerd

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

                  26

                  Online

                  1.8k

                  Users

                  12.0k

                  Topics

                  104.6k

                  Posts