HISE Logo Forum
    • Categories
    • Register
    • Login

    Simple mono portamento question?

    Scheduled Pinned Locked Moved Scripting
    7 Posts 3 Posters 483 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.
    • A
      alfaholic
      last edited by

      Hello everyone,

      I am trying to create a (from a user perspective) relatively simple mono portamento which will have a button, combo box, and a slider.
      Let me try...

      The button will turn mono on and off, the slider will change the time for the portamento glide between the initial note that stays on and the notes played after, while the combo box will select one of the three options for the glide:

      • Mono legato (it will always glide the initial note to all the notes activated after while holding the initial note - the result will be always gliding by pitching the initial note all over the place)
      • Standard mono (it will always re-trigger the next note and glide it to it while holding the initial note - the result will be always pitching to the active note from the previous)
      • Crossfade (it will start with both notes active, however the glide from first to second will start with pitching the first note half way, then crossfade it to the second note pitching to its default value).
      1. Is this even possible in Hise?

      2. How to create it? Only with the script processor, or it must be done with the Pitch Modulation?

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

        @alfaholic

        1. yes
        2. Synth.addPitchFade(int eventId, int fadeTimeMilliseconds, int targetCoarsePitch, int targetFinePitch); and similar Synth note altering calls are your friendw....

        HISE Development for hire.
        www.channelrobot.com

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

          I added a snippet to the snippet browser with a monophonic glide script.

          https://github.com/qdr/HiseSnippetDB/blob/main/Monophonic Glide Script.md

          A 1 Reply Last reply Reply Quote 2
          • A
            alfaholic @Christoph Hart
            last edited by

            @Christoph-Hart Thank you very much Christoph. This works great, there is only one problem, let's say you hold C2 and add G2, then release C2 while still holding the G2, then after you let go the G2 as well it is still on.

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

              @alfaholic yup that is fixed in the last HISE commit - there was an issue with artificial note offs invalidating their note on despite being ignored.

              1 Reply Last reply Reply Quote 0
              • A
                alfaholic
                last edited by alfaholic

                Thanks, I just compiled the latest Hise, this is now ok.

                Still not perfect, for example:

                While holding D3 and playing (legato also) G3 and A3 back and forth, it plays the G3 and A3 just for a millisecond, and again returns to D3 no matter you hold the G3 or A3 as well.

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

                  @alfaholic this is because the voice allocation logic is very naive and just picks the first note in the stack. You can change this easily in the findNewNote() function.

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

                  29

                  Online

                  1.7k

                  Users

                  11.8k

                  Topics

                  102.5k

                  Posts