Sample start mod vs note offset



  • 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?



  • 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?



  • @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).



  • 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.H3AogXYYjobG4aP4k8T8XRBKgJmY5tp.baeqC2ODMfJ8mrb7VaI3EbT+ci2bm+FniGMh3KK.6ZnS9o2UO86FT9TMTd.xSJH3HJarGNJNjHxvSST9J2ai7w3UNebffDxwAdzewfseuygof8RTl5u0ISUGDwSYkzUNxGRhIXI39MjY8NCG9LAOM9pR8lmlErbt.pG.lByMNiQ.6tz7N1UvSRFAWmryJwbqAohwJaUAkgjoDQRYZmlFA9dFiDBBirsAR+PBQ4qo98wRA8Ulbmok1miy72eAZ6c2p7yzyfeF8kpW+1tYq0h3VcQ1t5hrS0EY2pKxdUWjGWcQ1uRhnCz5iiUYLplGqUNm8CVspyvAL.CgBFbdHc7hCWSoboWCVWDKlAciVUKoOzcdOzGp8+B6CUe0f6Rrf1Ct17L2G4QUtpiYSgZW.EEFe.5HxHbZnbN0x0Q6yY73IbF0ubkBHye7XhvD6K8BcfTBEpJn7vNCIgDbhQotOuyyoLBVTt.XkrEtqts3l7WeLRCWGUwem+aL+P8+2O+vMY5tW9zCNf1ExaU+bEl5tlAZWWi1lnKfrQek5U37iVrzYwsv8sCWnUcdeByzTnKurbW9iH9zKIgky.gIjx0Y1YbDVhuR+lQ62c48at0RcM8iHsk4SPd9BZrLalpL21BKRlo5yx22IiAsisRFMs3V011FQYgPoImQoLeUdkCMwi.yAFbJWRZs4FMe8FMcfmG8HmebBbSACqSHeL0GrB5cDDYpf4.SJMYKAlEviZsoy24zdq8dRyecwwxYEWlVSUu1iEPd0lMecyFzQsJqUPsMLN51asyS.Jv7YjqtQaPGMutR3wWUGkYqKmIE7PXvzV+061hkFcIQ7UNSwgoj47csAKVe0b7bVOFUdVLgMecgAYNUWKiafIqE3cITKHsjfKEODX3ZXl1dYg2PLQNMfuXHMgptD1GQlB5UG90.5Wl7R.BqbMl6hxlXyQ8UEuu5jLjmJguVX9D6HXrdO3SY7IlC2WSYRzqaqVq.jGgEjs3Ofm7Mcm+k.pMcmuok+7iBta4uqqYTmvTEPx9Z1PHIIzrFSB7ASJHASk9OBJiv9B9K70QGJrtdFE.krr+ZkFn9p0NtVYQ1ZqaDLf4K78Ucu9Zv9tbI1txRrSkkX2JKwdUVhGWYI1uxR7M2fDpo4OHUxizyx.DFbrNPx93EAR0s9SLrXJ+A
    

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



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



  • 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 🙂



  • @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

    🤣


 

1
Online

383
Users

1.2k
Topics

8.8k
Posts