HISE Logo Forum
    • Categories
    • Register
    • Login

    How do you Tempo Sync ADSR?

    Scheduled Pinned Locked Moved General Questions
    60 Posts 5 Posters 1.3k 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.
    • HISEnbergH
      HISEnberg @Delamere
      last edited by

      @Delamere You can use the Synthesizer Group to load in several samplers and control them with the same envelope. You can also use a Container for that

      Link Preview Image
      HISE | Audio Modules | Syntesiser Group

      A container for other Sound generators that allows FM and other additional synthesis types.

      favicon

      (docs.hise.audio)

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

        @Delamere said in How do you Tempo Sync ADSR?:

        Tempo Synced ADSR?

        The ADSR only lets you set values in ms, so if you're calculating the time based on the host tempo you can apply it to all the envelopes so they have the same values.

        @Delamere said in How do you Tempo Sync ADSR?:

        Is there a way of creating 1 sampler containing 7 different instruments with the option to turn each instrument up or down in volume individually with its own knob?

        If the instruments are simple you could map each one to a separate group and control the volume separately using setRRGroupVolume()

        @HISEnberg said in How do you Tempo Sync ADSR?:

        You can also use a Container for that

        Are you sure?

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

        D 1 Reply Last reply Reply Quote 0
        • D
          Delamere @HISEnberg
          last edited by

          @HISEnberg Thanks that's great and what I needed to do. Only thing is, you can't add a Simple Gain to each Sampler in the Synth Group to control their output volume with a Knob before the Synth Group. If I try to use a Knob to control the Gain of each Sampler it goes straight form 0db to -100db with no in between, it doesn't follow the Knobs Value. Any idea why?

          Thanks.

          1 Reply Last reply Reply Quote 0
          • D
            Delamere @d.healey
            last edited by

            @d-healey Ok thanks, is Tempo Synced ADSR not possible then? Say for example you had a Synth Pad preset & you wanted the attack to be 1/4 tempo and for it to automatically match the tempo of the project you're working on in your DAW so you don't have to use a reverb calculator every time?

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

              @Delamere Yes it's possible, but you have to convert the project tempo to ms and set the knobs to the value you want.

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

              D 1 Reply Last reply Reply Quote 1
              • D
                Delamere @d.healey
                last edited by

                @d-healey Ok great, how do you convert the project tempo to ms? & does that mean the attack will always be set at that tempo? Would a user not be able to use a knob to change from 1/4 or 1/16 etc?

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

                  @Delamere said in How do you Tempo Sync ADSR?:

                  how do you convert the project tempo to ms?

                  c4a37b89-0904-409e-9075-a5f6ced236ff-image.png

                  As @HISEnberg said above you can use the Transport Handler to get the host tempo.

                  @Delamere said in How do you Tempo Sync ADSR?:

                  Would a user not be able to use a knob to change from 1/4 or 1/16 etc?

                  Yes they can if that's what you want.

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

                  D 1 Reply Last reply Reply Quote 1
                  • D
                    Delamere @d.healey
                    last edited by

                    @d-healey Ok thanks, I just really don't understand it. I just want to be able to have an ADSR Envelope with 4 knobs on the Interface that control the attack, decay, sustain & release. But with the Attack, Decay & Release to be Synced to the tempo of the track in the DAW, instead of ms.

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

                      @Delamere If the knobs are synced to the DAW what will happen when the user moves the knobs on the interface?

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

                      D 1 Reply Last reply Reply Quote 0
                      • D
                        Delamere @d.healey
                        last edited by

                        @d-healey What I don't understand, is how to sync the knobs to the DAW? I know you said to use the Transport Handler, but I can't understand how to do it.

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

                          @Delamere The link that @HISEnberg provided earlier takes you to the documentation. On that page there is a snippet that you can load into HISE that demonstrates how to use it.

                          If you can tell me which part you're struggling with I can give more specific info.

                          Again though, if the knobs are synced to the DAW, what happens when the user moves the knobs manually?

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

                          D 1 Reply Last reply Reply Quote 0
                          • D
                            Delamere @d.healey
                            last edited by

                            @d-healey I have read the link & opened the snippet but I just don't understand it. I know very little about scripting & I have been building most of the plug-in without it.

                            Again though, if the knobs are synced to the DAW, what happens when the user moves the knobs manually?

                            I'm not sure I understand what you mean by this question. I intend for the whole plug-in to be tempo synced to the DAW. If the User moves the knobs manually I want the tempo of the Attack, Decay & Release to change in beats, not ms?

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

                              @Delamere said in How do you Tempo Sync ADSR?:

                              I'm not sure I understand what you mean by this question. I intend for the whole plug-in to be tempo synced to the DAW. If the User moves the knobs manually I want the tempo of the Attack, Decay & Release to change in beats, not ms?

                              Ah I get it now, I was misunderstanding the user interaction.

                              @Delamere said in How do you Tempo Sync ADSR?:

                              I know very little about scripting & I have been building most of the plug-in without it.

                              The transport handler provides a callback that will tell your script when the tempo of the DAW has changed. TransportHandler.setOnTempoChange(var sync, var f)

                              In that callback function you can use the tempo, combined with the value of the knob on the UI (1/4, 1/8, etc.) to calculate the number of milliseconds the attack and release should be.

                              You can use that calculated value to set the attack and release knobs of the envelopes.

                              This is probably a bit more complicated than beginner level scripting so I recommend you start with something simpler - my scripting 101 video on YouTube might be a good starting point for you depending on where you are at currently.

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

                              D 1 Reply Last reply Reply Quote 0
                              • D
                                Delamere @d.healey
                                last edited by

                                @d-healey Ok thank you for the reply.

                                I designed the plugins, how I want them to be etc, before joining HISE or learning anything about scripting. The idea is to create Sample Based Instruments from my own instruments that I have recorded & mixed through analog hardware that would have a tempo synced Attack, Decay & Release.

                                Whenever using other instrument plug-ins I always prefer to use the ones that have this option, like Omnisphere etc. I find having to calculate the ms with a reverb calculator very time consuming and was hoping it would just be simple to change the ADSR from ms to beats.

                                I don't really have the time at the minute to learn all about Scripting in Hise, what I have already learnt is from previously watching your video you have mentioned on YouTube. Most of what I need to do in order to complete the plugins is possible without scripting, it's just a few things like the Tempo Synced ADSR etc. So I may need to leave it in ms for now & come back to Tempo Syncing at a later date when I have time to learn scripting properly. Either that or it seems to be possible in Scriptnode which looks similar to MAX which I'm familiar with, so I will also look into that.

                                Thanks.

                                1 Reply Last reply Reply Quote 1
                                • D
                                  Delamere
                                  last edited by

                                  I have tried to Tempo Sync the AHDSR using Scriptnode, Does anyone know the reason this isn't working?

                                  Tempo Synced AHDSR.jpg

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

                                    @Delamere You've made an effect, you need to make a Script Envelope Modulator.

                                    You should also tell us what you mean when you say "this isn't working", in what way is it not working?

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

                                    D 1 Reply Last reply Reply Quote 0
                                    • D
                                      Delamere @d.healey
                                      last edited by Delamere

                                      @d-healey I did try making it as a Script Envelope Modulator but it comes up with this..

                                      Script Envelope Modulator.jpg

                                      You should also tell us what you mean when you say "this isn't working", in what way is it not working?

                                      So if the Script Envelope Modulator is my Envelope & in Scriptnode there are 4 separate Tempo Syncs, one being sent to the Attack, Hold, Decay & Release of the AHDSR Envelope & a control for each one that changes them in beats. Then when I play a MIDI note, the AHDSR shows that it's triggering, but there's no sound coming out?

                                      Thanks.

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

                                        @Delamere Can you post a minimal snippet that demonstrates the issue? I haven't used script envelopes much but I can take a look.

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

                                        D 2 Replies Last reply Reply Quote 0
                                        • D
                                          Delamere @d.healey
                                          last edited by Delamere

                                          This post is deleted!
                                          1 Reply Last reply Reply Quote 0
                                          • D
                                            Delamere @d.healey
                                            last edited by Delamere

                                            @d-healey okay thanks I really appreciate it.

                                            HiseSnippet 1945.3oc6ZsraiTDEsZmTIjLYxvHgPBIVXgPnAznH+HILHVDO40PD3LVSmIvtnJcWNtT5tJS2kShAgDKYGrkcHwWAq.IVwN9Dxmv7G.2pejt53tcZ6DOAjR7lTu78bO2G081sa4Irn99BOjw760uKEYr.1rOW1YiNDFGsylHiEwMI9RpW4voVueWhuO0FYXL0yTSXL2znf+d0ZqSbHbKZxTHz9BlE8KXtLYxrsZ74LGmsI1z8XtZ6d4F6XI3aHbD8.7LEtBpKw5XxQzcIpsUBi9LheGjwGgqUqs0SpT4I0quREBotMgrbUZ8Og1d01VqT4SpXe3JUfOqhLlYKalT3YJIRpOxX50E18M6HNkGJf8Y9rCcnpAUQlfjCmdagisREUyh1nCywtULQ4iPF3VIz1Tgz1agaxrYWLeB88lAKTN4D5DnQozvapTvqpN7pnAuLfjgFjlNDRODaZ4w5JSVQgm6g2gCVy1DvNoCkv8hL9c7FBXCb4Rtjioa6ACt3.OZ0Uq73xebkO7Sa2iaIYBdYAeWgj9b9i9v4+14ma9ua9xWdo1sybMkT7DNNTuLWV4Y3MrC9HdO2CodOt7IDmdzK1Hn8ooTb9TptE2JTo01nfuCmIedWJOO+.TDSo7HhPErUY.4uXD4a5vrodHFvwyh+bt3vpn..m30+AMPE9v0tNGt904vKm5v+xuV570J9gWICI+xc1jHIJO2HVDX1tTOISYzL1jdBj2HzOdN7lT+ikhtAzraWAWw4FKdkD8YIB78azWefKy11g1R3yTNUIq7dMfLccMYeCUOslKQ6apVitwt.6.x5ciDe4s3mPc.MnbSgcOGB3AVERe4AYtffG0NeC7SkRHeFxUXSUwg6QAcAR1ZgjzyjZa3TlsDRygMN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Sp5tHo6hjtEhjz85Po5TKzaMU.0ahiambovUypQsvUthfH7P6n7A3c64pgrHXG1kMx7T0C0LIbqj9DoC+7uz1GbUU+7Nzyheaaaxf9LI8WuW61gAhomQgOtM8LEV9G3usbOjZaSsCNtRwRGEO2HGE+C+YwL7M1s4eEX3unmvBZxe+FiRjbQCX.VNWWy6GgvufBtNiWn7Dh6h5DnfL2x4ybSH7EWjUw.3e3ccA3HaZSdETwQn3JKsRN724q85l+Rtb85ahmvAGazy6jAf44qkGS9Z3dt6gSd1uEj9Fma5FYbMC9Yf8YDfTFUnkNKMdzA8nVqUdYoyoXqKcIUNETl5QYdotyBKsCM40rrygdszqzOaoaKEKmju2XZVsaLMahj0NbthoV4zYSrTdMXrxMS+Ml4pdNlq0EhicIAutow5Gs0MxqxepB8p7uweIoi+q0+lAJuPzSx3G0j.2SoJIGZZvDZ3vJ9sy4G2xPz3JwshXR41UhqgOZwppwFQKVMdwWKxvkX4INH5YUnbGeifY.8lGzS0b3lpwkG3GGIB4xrYGXYk9qZfCVabOX8w8fKOtGbkw8fqNtG7iG2C9jq9fpeBCQkTpBYgTcs1JrWQi3mh.Dcf9W.DigtXA

                                            d.healeyD 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            9

                                            Online

                                            1.7k

                                            Users

                                            11.9k

                                            Topics

                                            103.2k

                                            Posts