HISE Logo Forum
    • Categories
    • Register
    • Login

    Tempo Synced Attack Time? How?

    Scheduled Pinned Locked Moved General Questions
    9 Posts 6 Posters 415 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.
    • NatanN
      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 HartC DanHD 2 Replies Last reply Reply Quote 0
      • Christoph HartC
        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.

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

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

          DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
          https://dhplugins.com/ | https://dcbreaks.com/
          London, UK

          LindonL 1 Reply Last reply Reply Quote 1
          • LindonL
            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

            NatanN 1 Reply Last reply Reply Quote 1
            • NatanN
              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
              • NatanN
                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_SFM 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_SFM
                    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.

                    Link Preview Image
                    HISE | Scripting | TransportHandler

                    A class that manages callbacks for host playback events

                    favicon

                    (docs.hise.audio)

                    Develop branch
                    Win10 & VS17 / Ventura & Xcode 14. 3

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

                      @Matt_SF No Idea ho it works :/

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

                      19

                      Online

                      1.8k

                      Users

                      12.0k

                      Topics

                      104.0k

                      Posts