HISE Logo Forum
    • Categories
    • Register
    • Login

    Breaking Changes: Monophonic Envelope Mode

    Scheduled Pinned Locked Moved General Questions
    9 Posts 3 Posters 1.7k 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.
    • Christoph HartC
      Christoph Hart
      last edited by Christoph Hart

      Hi everybody,

      I've just pushed a change to the GitHub repository which allows monophonic usage (with / or without retriggering) for envelopes. However this was a rather intrusive change which might lead to backward incompatibility if:

      1. an envelope is controlled via script AND
      2. you used magic numbers for the parameters (like 0 for Attack). This is because the parameters Monophonic and Retrigger must be stored before the other envelope parameters leading to a index change of the parameters. If you were using the enum values from the envelope object (eg SimpleEnvelope.Attack, then everything is fine because they simply contain the new value (I highly recommend using these enum properties to avoid problems like this in the future).

      But monophonic envelopes are fun :)

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

        Is there a list of enum values for other modules?

        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

          You can get the enums either by looking in the ModuleBrowser or using the autocomplete popup (I prefer the latter one).

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

            hmmm when I use Console.print(SimpleEnvelope.Attack); it comes up with undefined.

            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 Christoph Hart

              Have you created a module called SimpleEnvelope using the script variable declaration stuff?

              The enums are constant properties of the object you created to access modules

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

                Oh right I see, I thought they were global constants. Are there enums for sampler attributes too?

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

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

                  A follow up to my previous comment, I see in the module browser that the sampler has BufferSize = 5 but when I type Console.print(mySampler.BufferSize); the console shows undefined. So I'm just using the magic number 5 for now.

                  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

                    Ah yes, this is a little bit annoying, I already added the SamplerSound properties like HiKey, LoKey as enums to the Sampler. I can still add the other ones, but then it gets a little bit crowded there.

                    1 Reply Last reply Reply Quote 1
                    • lalalandsynthL
                      lalalandsynth
                      last edited by

                      Excellent ! Really needed this for what I am doing .
                      Loving Hise so far.

                      https://lalalandaudio.com/

                      https://lalalandsynth.com/

                      https://www.facebook.com/lalalandsynth

                      https://www.facebook.com/lalalandsynth

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

                      54

                      Online

                      1.7k

                      Users

                      11.7k

                      Topics

                      101.8k

                      Posts