Forum

    • Register
    • Login
    • Search
    • Categories

    Tempo Synced Attack Time? How?

    General Questions
    6
    9
    83
    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.
    • Natan
      Natan last edited by

      Hey Hise friends, Hope all is well with you😘♥️

      Tryna ng to find a solution to make my ADSR Attack time to work Time synced.
      But no Idea how to achieve this,
      I Can do this using Scriptnode, But any other solutions?

      Thanks for your Advices👏

      Christoph Hart DanH 2 Replies Last reply Reply Quote 0
      • Christoph Hart
        Christoph Hart @Natan last edited by

        @Natan You can use a TransportHandler and recalculate the attack time when the tempo changes. There are a few Engine.getXForY() methods that will help you with it.

        Natan 1 Reply Last reply Reply Quote 1
        • DanH
          DanH @Natan last edited by

          @Natan you could use an LFO with loop switched off. It will behave like an envelope

          Lindon 1 Reply Last reply Reply Quote 1
          • Lindon
            Lindon @DanH last edited by

            @DanH said in Tempo Synced Attack Time? How?:

            @Natan you could use an LFO with loop switched off. It will behave like an envelope

            Well nearly - it wont sustain...

            HISE Development for hire.
            www.channelrobot.com

            Natan 1 Reply Last reply Reply Quote 1
            • Natan
              Natan @Christoph Hart last edited by

              @Christoph-Hart said in Tempo Synced Attack Time? How?:

              @Natan You can use a TransportHandler and recalculate the attack time when the tempo changes. There are a few Engine.getXForY() methods that will help you with it.

              Thanks Christoph, BTW this is the Hardest solution to script🤦‍♂️
              Out of my knowledge, do you have time to post a snippet?👏 thanks legend

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

                @DanH
                @Lindon said in Tempo Synced Attack Time? How?:

                @DanH said in Tempo Synced Attack Time? How?:

                @Natan you could use an LFO with loop switched off. It will behave like an envelope

                Well nearly - it wont sustain...

                I tried that before posting, The sustain like @Lindon Said is problem here.

                I need a Better solution 🙇👏😔

                C Matt_SF 2 Replies Last reply Reply Quote 0
                • C
                  crd @Natan last edited by

                  @Natan

                  Do you have an example of a synth or sampler with this functionality? I’m trying to figure out how you would use a tempo synced attack segment …

                  1 Reply Last reply Reply Quote 0
                  • Matt_SF
                    Matt_SF @Natan last edited by

                    @Natan don't have any snippet right now but basically you do :

                    onHostTransport > Engine.getMilliSecondsForTempo and apply the returned time to the attack parameter.

                    https://docs.hise.audio/scripting/scripting-api/transporthandler/index.html#setontempochange

                    Develop branch - Build : may 14
                    Win10 / Monterrey & Xcode 13

                    Natan 1 Reply Last reply Reply Quote 0
                    • Natan
                      Natan @Matt_SF last edited by

                      @Matt_SF No Idea ho it works 😕

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

                      8
                      Online

                      740
                      Users

                      5.4k
                      Topics

                      50.4k
                      Posts