HISE Logo Forum
    • Categories
    • Register
    • Login

    Delay Tempo Sync

    Scheduled Pinned Locked Moved Scripting
    35 Posts 4 Posters 1.1k 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.
    • X
      Xearox73 @Tangerine_Sounds
      last edited by

      @Tangerine_Sounds

      the long runner, i had the same problem, here is my solution ...

      HiseSnippet 2261.3oc0ZszaajbDdnjFulzV6JuwIdCPBvDgbPNwPKeHoXi.CQIRwULVTjhTq273fPyYZR1Pyz8jYZJK5EBvGy+fj8lOkeB4V.7egf8RNl64x9GHvo5dH4zCEI0HpG6ZI.AzU2c00q9qppGUyiYh88YdZIRcXOWrVh6q2nGk2oPGDgpUtnfPSWmiPTqi57Zss64h78wVZIRL+WHVQhjKnI+461bajMhZhCIoo8RFwDuGwgvCoVK+KH11kPV3CINJqds7kMYzBLaVWPZlWOslKx7XTa79HwxlSWaWjeGsD+J8rYaY9zzoeZtbqmFgxYgPqkAm6Y3Vazxb8zOKsUy0SC+tgVh6riEgy7ZvQbruVhE1lY0qQG1qnAGvKI9jl1XwfLZMfSNfbIlskPEET0JzgXaUafYxWSKgdsPi17AFsGpWgXQFROz3sjbBivcnZ.SLWTwa9HhWFUwKsh3MFQJghHsPfH8.8FldDWd3LB44d5kobrWKD3mTEkf0pM2eKkdAFrBJeUGzw3Rdvfg6XkMRm9IFqkN8i+soR84etQ0FELJQrgYMpvrLpi8YoHTaBEazpK0jSXTCFcuRUCVjXdH1xrJsZqVhSwiYuhIywkQgy6IFmfr6hebpuNURalIx1vtEy34FxnwUai4vQz0FAlqUVNBKA5KCBTRX4q5i4aw4djlc43UDDNDCrWbnCXOrvTIIsVQNx34O2H8iSkDNxjCTa3jJLPlVY4WPYMOmBr7iEGzJK6vrvK+DikK4g+ycwTydR4Xl3DgJXT5UWe1YA5TAKVK8pomFOht4hccb5Uj36Zi5MSZULXWrTsXvmQzuyRkD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rUWNyI3dBTfTscBdXgDCeUiDyq8+04lJhI

      Tangerine_SoundsT 1 Reply Last reply Reply Quote 0
      • Tangerine_SoundsT
        Tangerine_Sounds @Xearox73
        last edited by

        @Xearox73 thanks for this. HISE says it's not a valid Snippet. Am I doing something wrong?

        X 2 Replies Last reply Reply Quote 0
        • X
          Xearox73 @Tangerine_Sounds
          last edited by

          @Tangerine_Sounds

          try this 🙄

          Content.makeFrontInterface(600, 400);

          // OSC Filter Mod Reso
          inline function onLFOFilterResoSyncOnOffControl(component, value)
          {
          local lfo = Synth.getModulator("LFOFilterResoMod");
          lfo.setAttribute(lfo.TempoSync, value);

          if(value == 0)
          {
          	Content.getComponent("KnobLFOFilterResoSync").set("mode", "Frequency");
          	Content.getComponent("KnobLFOFilterResoSync").set("min", "0.5");
          	Content.getComponent("KnobLFOFilterResoSync").set("max", "40.0");
          	Content.getComponent("FilterResoSyncDummyDisplay").set("mode", "Frequency");
          	Content.getComponent("FilterResoSyncDummyDisplay").set("min", "0.5");
          	Content.getComponent("FilterResoSyncDummyDisplay").set("max", "40.0");
          }
          else
          {
          	Content.getComponent("KnobLFOFilterResoSync").set("mode", "TempoSync");
          	Content.getComponent("KnobLFOFilterResoSync").set("defaultValue", "5.0");
          	Content.getComponent("KnobLFOFilterResoSync").set("min", "0.0");
          	Content.getComponent("KnobLFOFilterResoSync").set("max", "18.0");
          	Content.getComponent("FilterResoSyncDummyDisplay").set("mode", "TempoSync");
          	Content.getComponent("FilterResoSyncDummyDisplay").set("defaultValue", "5.0");
          	Content.getComponent("FilterResoSyncDummyDisplay").set("min", "0.0");
          	Content.getComponent("FilterResoSyncDummyDisplay").set("max", "18.0");
          }
          

          };

          Content.getComponent("LFOFilterResoSyncOnOff").setControlCallback(onLFOFilterResoSyncOnOffControl);
          // OSC Filter Mod Reso End

          // Delay HZ BPM
          inline function onbtnDelayTempoControl(component, value)
          {
          local delay = Synth.getEffect("Delay1");
          delay.setAttribute(delay.TempoSync, value);

          if(value == 0)
          {
          	Content.getComponent("knobDelayL").set("mode", "Frequency");
          	Content.getComponent("knobDelayL").set("min", "0.5");
          	Content.getComponent("knobDelayL").set("max", "40.0");
          	Content.getComponent("knobDelayR").set("mode", "Frequency");
          	Content.getComponent("knobDelayR").set("min", "0.5");
          	Content.getComponent("knobDelayR").set("max", "40.0");
          }
          else
          {
          	Content.getComponent("knobDelayL").set("mode", "TempoSync");
          	Content.getComponent("knobDelayL").set("defaultValue", "5.0");
          	Content.getComponent("knobDelayL").set("min", "0.0");
          	Content.getComponent("knobDelayL").set("max", "18.0");
          	Content.getComponent("knobDelayR").set("mode", "TempoSync");
          	Content.getComponent("knobDelayR").set("defaultValue", "5.0");
          	Content.getComponent("knobDelayR").set("min", "0.0");
          	Content.getComponent("knobDelayR").set("max", "18.0");
          }
          

          };

          Content.getComponent("btnDelayTempo").setControlCallback(onbtnDelayTempoControl);
          // Delay HZ BPM End

          1 Reply Last reply Reply Quote 0
          • X
            Xearox73 @Tangerine_Sounds
            last edited by

            @Tangerine_Sounds
            i tried export as hise snippet .... no idea why that doesn't work?

            Tangerine_SoundsT 2 Replies Last reply Reply Quote 0
            • Tangerine_SoundsT
              Tangerine_Sounds @Xearox73
              last edited by

              @Xearox73 Thank you, I'll give it a go

              1 Reply Last reply Reply Quote 0
              • Tangerine_SoundsT
                Tangerine_Sounds @Xearox73
                last edited by

                @Xearox73 OK so if I understand correctly the LFO is just acting as a dummy display. The KnobDelayL and KnobDelayR are still controlling the Delay Time Left and Right.
                What I'm unsure of is the difference between LFOFilterResoMod and KnobLFOFilterResoSync?
                Also, which component should be called here?: inline function onLFOFilterResoSyncOnOffControl(component, value)

                Sorry, I'm very new to HISE scripting!

                X 1 Reply Last reply Reply Quote 0
                • X
                  Xearox73 @Tangerine_Sounds
                  last edited by

                  @Tangerine_Sounds

                  no, these are two different examples:

                  between // OSC Filter Mod Reso and // OSC Filter Mod Reso End - is the example for a Filter LFO with sync incl. a hidden second dummy, in case you want to display the value somewhere else on the GUI.

                  The second example between // Delay HZ BPM and // Delay HZ BPM End is for the DelayFX

                  i saved this for myself, that I can always fall back on it.
                  if you want to build a synth, you are always faced with this problem,
                  unless you use the standard presentation without filmstrips and a very very simple design.
                  Yes, you can also work with hide/show and two buttons, however, i would not recommend this for larger projects.
                  I'm also relatively new to this (8 weeks or so) and I'm still finding some things really difficult 😧 😲
                  I think i viewed every video of d.healy and read tons of forum posts, but some things are not clear to me. In addition, simple ideas can only be achieved in complicated ways 😢 🤤
                  The best example is my bullshit solution with the value display that i want to see somewhere on my gui 😵 😰

                  Why is it not possible to simply display all values in a single display when i move a button?
                  A solution for one or two buttons, ok, but what if i have 4 or 10 filter 2 delays and tons of lfo`s ???
                  Most of the explanations work on a small scale, but when i start to get bigger ... hmmmm 🤒 😨
                  So, to program a Serum2 with HISE requires at least 8 developers, 2 graphic designers, 20 testers and at least 2 years I think 😂 😂 😂 😂

                  Tangerine_SoundsT d.healeyD 2 Replies Last reply Reply Quote 0
                  • Tangerine_SoundsT
                    Tangerine_Sounds @Xearox73
                    last edited by

                    @Xearox73 I understand now!

                    The second example works perfectly for me. I just tweaked it slightly by changing the mode from Frequency to Time.

                    Yeah, It's a pretty steep learning curve, but I'm sure it gets easier over time!! 🤞

                    I'm just looking to do fairly simple stuff for now so your solution is just what I need! Thanks again and all the best

                    ... I think Serum 2 (or 3) will have to wait awhile 🤣

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

                      @Xearox73 said in Delay Tempo Sync:

                      Why is it not possible to simply display all values in a single display when i move a button?

                      What do you mean?

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

                      X 1 Reply Last reply Reply Quote 0
                      • X
                        Xearox73 @d.healey
                        last edited by Xearox73

                        @d-healey
                        Hi
                        i would like to create a display at a fixed position in the gui that always shows the value of the knob i move.
                        I haven't found anything about this yet, or have overlooked or misinterpreted it 😰

                        similar to your video with the custom tooltip panel, except that i want to display the values of all needed knobs in the panel 👍

                        ..... as a musician, you just try to do things that you can't find with others or that you miss in plugins and the learning curve is a bit steep if you want too much 😊 😂

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

                          @Xearox73 Do you want one display for all knobs or one display for each knob?

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

                          X 1 Reply Last reply Reply Quote 0
                          • X
                            Xearox73 @d.healey
                            last edited by

                            @d-healey
                            one display for all knobs

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

                              @Xearox73 So if I move a knob the knob's value will be showing in the display, and if I move another knob its value will be shown. What happens if I move both knobs together?

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

                              X 1 Reply Last reply Reply Quote 0
                              • X
                                Xearox73 @d.healey
                                last edited by Xearox73

                                @d-healey

                                hmmm, good argument 🙄 😰
                                then probably better for everyone and then make the ones you don't need invisible ....
                                or a possibility to enlarge the font of the TextBox 🤠 😍
                                Then my trick with the hidden button works and the value is always 😳 visible.

                                similar to here, only the font is a bit small
                                textbox_view.png

                                1 Reply Last reply Reply Quote 0
                                • X
                                  Xearox73 @Tangerine_Sounds
                                  last edited by Xearox73

                                  @Tangerine_Sounds
                                  After some Tests and work for myself, a final Version of the Delay Link and Sync Version 🤗

                                  HiseSnippet 1770.3ocuYsraaaDEcnsYRjRyKfhtdfAJfbSfCkUrqCbcshe0XDIEAJ2fFjFDLhbnz.SMiJ4n33VXfrr65uPA5OP+D5mPAxhtseBcY20NyPJwg1TxTxIQdCmG268beSdcy.lCNLjE.LJd3I8w.iOwr0ITd2c5hHTvA6BLtuYMB8HrK7ITV6PnGK.tK1GcBDQcg8XAX3wDdWHBt8.NmQAaeReTXH1EXXL+2HYhQgE.pe+yVai7QTGbxV.vyXDGbMROBOY2lUeBw2eejK9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EVMUFmy3tm.6qkTAORyyS5e17LCCTTegoufObuF6NodEppABolNYtbR1b4jz4nxNw6VN0tSHiN57YM7dH9tbYz5ktFSvcDLGazc7w4NmNxVcY05KYNcdU6ZSVsyWVstvlxr5xiKsNAciIwKUv0LjXm30mj.xYpc5FjYyzLrRSL0dXjfJOVyZ2fwwOkVRYPKdZQ3YOxyKyyhEoONHyikERBlDgknC50FGn6NkWDXrP5gQXN9gQnOqDmH6n1EYzCnD9S6ioiaBJfXiO.Xb0XTItJWM1haFO1hV9DWb.f3JGZUREZfB0wCMB9825tUASGGrmBNDOyKIGtoodE8T7PM6q7wC8PmyxiXyxEnI2vTKlNEKpVox61ZZYg8TvBMM45li9nmLTiu8fcQbjbpTw9YguuONfSjgUF6heMwAGMipBBnDdDm0WEHDmEJ1NegBuQe1gmjr3fp8Htt93lrPhL1ezIU+kphu7SJ13O0GH+.VfwULUShT+yQ0sHgC77HBxLMg8BkdooCn1Z.824Z.8sO9iFPWHuA1IP8sd51zFUyK6REiON1QRwtqlyvcMG9Wqws+nS0HyymY1fEzC4S9QraSbfif4nNXvPyx7leNXLFbveu0zCHcG6ux+fBnExUp33r1OuJ37yG91l0YtC7Q7ziqVNT+3CHmYd+x4.SE37D8Beu2lgcdg3cLaJmlR1XbtLvnnPzGBLFO4+aXFMDiD.tf49e2Ggw7e8H4e0n.RkjuVzykSI8TeQsdauze1o9I5uwtd8kTuSq9A0XG2THv8Cv+vH69O+tpOlbtcA6VsNYTb5e8a+4VilcXJO1741jUdxdLa1.43qpiDuetrzXiA8ZwFHREENLJE6KeSGi4jMeiVaIWKgPKL0Us3+D+hOrrbsQ7gkGd3GEYzC4DvdkSTuYYrv0T6Hzap5eOVAy5x0vxmugrnDC4UNNoY04HbkYkvJyJgOXVIb0Ykv0lUB+xYkv0uXBk+CBez.NqWT0L.ndy8Tu.kgwdTjHJWkFC9evRF+tp

                                  Tangerine_SoundsT 2 Replies Last reply Reply Quote 0
                                  • Tangerine_SoundsT
                                    Tangerine_Sounds @Xearox73
                                    last edited by

                                    @Xearox73 Thanks for this but HISE wont import the snippet again

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

                                      @Tangerine_Sounds Works here, make sure you are only copying the snippet and nothing extra, no white space, etc.

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

                                      Tangerine_SoundsT 1 Reply Last reply Reply Quote 0
                                      • Tangerine_SoundsT
                                        Tangerine_Sounds @d.healey
                                        last edited by

                                        @d-healey My bad. I wasn't copying the 'HiseSnippet' text at start!

                                        1 Reply Last reply Reply Quote 0
                                        • Tangerine_SoundsT
                                          Tangerine_Sounds @Xearox73
                                          last edited by

                                          @Xearox73 This is awesome. Works great. Thank you so much

                                          1 Reply Last reply Reply Quote 0
                                          • Tangerine_SoundsT
                                            Tangerine_Sounds
                                            last edited by

                                            So after playing with this for a while there are couple of things I'd like to change.
                                            When the Tempo Sync is activated and the dial is fully clockwise this is the shortest delay time (1/64T). However when Tempo Sync is deactivated and the dial is fully clockwise this is the longest delay setting in m/s.

                                            I also ran into another issue when applying Look and Feel which means the Tempo Sync Values are not showing correctly.

                                            So, I'm going to rethink this... just thinking out loud here!

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

                                            29

                                            Online

                                            1.7k

                                            Users

                                            11.7k

                                            Topics

                                            102.3k

                                            Posts