HISE Logo Forum
    • Categories
    • Register
    • Login

    How to fade out before noteOff?

    Scheduled Pinned Locked Moved General Questions
    13 Posts 2 Posters 407 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 d.healey

      Synth.addVolumeFade(int eventId, int fadeTimeMilliseconds, int targetVolume);

      If you set the target volume to -100 it kills the voice when it gets there (I think...).

      You could also try Synth.noteOffByEventId(); I can't remember if it triggers the envelope.

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

      ustkU 2 Replies Last reply Reply Quote 1
      • ustkU
        ustk @d.healey
        last edited by

        @d-healey Oh that's exactly a function I was looking for when searching in the API list but I got itchy eyes these days 😂

        Can't help pressing F5 in the forum...

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

          @ustk It's a useful function but there is no control over the curve, I think it's linear.

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

          ustkU 1 Reply Last reply Reply Quote 0
          • ustkU
            ustk @d.healey
            last edited by

            @d-healey yeah I that's what I'm using in that snippet but no, the release is not triggered...
            Trying your first solution ;)

            Can't help pressing F5 in the forum...

            1 Reply Last reply Reply Quote 0
            • ustkU
              ustk @d.healey
              last edited by ustk

              @d-healey Strangely it does not work, is the mistake mine? 🤔

              HiseSnippet 1055.3oc4W8ziaTCE2SRLhLPApnB33bAorpoQIa2tzUqPM6lMoJBxtQaBKvoJ2YdIwZmwNLiSnQnJwE9bvWENwY9Tv49M.d1yjLSVFBQQzEUgO3Lu+Y+68768rS+PoKDEICIVkGtXJPrdW5fEB0jVSXbAo6YDq2hBh46SNcwTVTD3QrrJ9TsLqxkHlwqdxoLelvERYQHWI4tvWxC3pTt8a9Ebe+NLOXHOHi1GzrqqTzR5Kmg3nHsNYJ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SBvWU8LWWc39AX7Iea1eGr4g6fMGrC17ncvlC2Aa9rcvlGuQazOn8jYJYPboHxne63l0VsE5N2lrdxeBXQ5SkK
              

              Can't help pressing F5 in the forum...

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

                What about this ;)

                HiseSnippet 932.3oc4W0saSiDEdbRFDIKrKHP.W5aPpHXqRJk+DWPZSSPQPZipyxt6Uvf8IIivdFy3wAhPHs2ruA686Cw9.vaChK6a.LyXmXmhaIJB5JD9hnb9aluyu939BtKDEwEHqpClFBHqyfclxjiaMlPYnt6frNEFXS1.s8zPRTD3grrJ+PsLqpUPlmCdv1DeByExXgPOgScgGSCnxLt8a9HpueGhGLfFjS6Ma10kyZw84wJbTFWGERbeAYDrKQqVIrBDs8nRtvQRjPDxpx1buoNi4uhkn+SnQzm6CZhFHG0AkvtC22SiXMWTqwTeu9y72HDxB2Oy6Km38WD2i5QmyOKJbNi.6LKxGOrJcbvqQd3UeogGJG5pjfNEH3dw9D4hHSmNREP4rEPVWlDXQT4z7oq+Wg64w8oR2wEi2REfWUh5aMdSS9mE2d3PvUlA1J3N+wIal9mSfxOgcnLvzIZ.xkLz1+NYBX+PfABcPswQ0T9rG8g+YYaJQGQSY2OqobOWo55GHHrnPdTNUO3cNP.c.moiHY21uEAcDvK2WmkyyuEmHJTzAOnixIKzFGhLVXJW1JfGyjKTdTdoyIEObndQCGp7sZ3P4kqjo.HY84sXmG63JngxLIZ7bgTtYHZwRkDoHq+COLl4pip1b1tbIrGasqU6M0daM6CKX3Pijp8TGmZx75zQLt.ZOAXx0jhX3Z2+PV0hyjBtuOHRL7Ph0EaEKI0v0XwAOGD2vdBwWc7yTT44KFNqsbYaUsrZxhLmhbVWFUtWHLmNIBLiSczbWOOqL+JOWi6TfZYrJnsuUBlzsJc2gHI5TbJOkdgfPR0dn0NvDUeaRBuJdGH5ERd3I36GJubg3uPEasDL9K3ADkwsYS.ekOl9NACO6YLWrZsGmwCGyYT27c86CRAczHPjG4E5NaIkp0Ilyo4+1bevGHymf8WW78+cyDkLvvjJrZi27tqu3yj8t4qW26d5+duVF5+b6as60yQq9Y30yoOJ8lxctWEuwlYG4QY2WuTPokrL4x3zPfpR196lsItBdVD96JXerKAU9Gykf1mGKorQ8Hp95WqVNe23.G0tGtfBILF3qtHrUI8XyD55ZZytA.yyP7Q0SpvFZZqTgMlI7D4NBHtB9ScSl+q6.OsgixuYlOmoJtml1tAx7lMkc35qWGEn1f3ott5v8uphOEayFqfM2bErYyUvlasB1b6Uvl6rB1b2i0F8xaaEK4AIshJF8amLr1pMSO41T0i9DPx.IrK
                

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

                ustkU 4 Replies Last reply Reply Quote 0
                • ustkU
                  ustk @d.healey
                  last edited by

                  @d-healey Fade Time... silly me... 🙃
                  Exactly what I needed! Thanks a lot Dave! 🤘

                  Can't help pressing F5 in the forum...

                  1 Reply Last reply Reply Quote 1
                  • ustkU
                    ustk @d.healey
                    last edited by

                    @d-healey Oh what is that? Try to play two notes at the same time it creates a very nasty artifact 🤔

                    Can't help pressing F5 in the forum...

                    1 Reply Last reply Reply Quote 0
                    • ustkU
                      ustk @d.healey
                      last edited by

                      @d-healey Simply solved by checking only one key is triggered at a time...

                      Can't help pressing F5 in the forum...

                      1 Reply Last reply Reply Quote 1
                      • ustkU
                        ustk @d.healey
                        last edited by

                        @d-healey Side remark, don't you think the Voices limit is weird?
                        it limits the voices to 1 from a setting of 6, and if you set it to 1, it automatically comes back to a min of 2 after restart...

                        Can't help pressing F5 in the forum...

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

                          @ustk I hadn't noticed

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

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

                          25

                          Online

                          1.8k

                          Users

                          12.1k

                          Topics

                          105.0k

                          Posts