Forum

    • Register
    • Login
    • Search
    • Categories

    Tempo Sync display and function issue.

    General Questions
    2
    9
    92
    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.
    • lalalandsynth
      lalalandsynth last edited by lalalandsynth

      There is a problem with the tempo sync on modulators.

      Lets say I set it to 1/4 .. switch tempo sync off... it goes to 5-6hz , then I set it to tempo sync again and now it shows 1/8t but is still modulating at the previous 1/4 .

      Now when switching between tempo sync on off it always goes to the 5-6 hz and back to 1/8t even though it is still modulating at the 1/4 still.

      Its really all over the place , when I set it to 1/8 , tempo sync off , tempo sync on , it now shows 1/4 , while still modulating at 1/8?

      I seem to recollect this being a problem on the delay as well , but cannot make it do that right now .

      https://lalalandaudio.com/

      https://lalalandsynth.com/

      https://www.facebook.com/lalalandsynth

      https://www.facebook.com/lalalandsynth

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

        @lalalandsynth said in Tempo Sync display and function issue.:

        There is a problem with the tempo sync on modulators.

        Lets say I set it to 1/4 .. switch tempo sync off... it goes to 5-6hz , then I set it to tempo sync again and now it shows 1/8t but is still modulating at the previous 1/4 .

        Now when switching between tempo sync on off it always goes to the 5-6 hz and back to 1/8t even though it is still modulating at the 1/4 still.

        Its really all over the place , when I set it to 1/8 , tempo sync off , tempo sync on , it now shows 1/4 , while still modulating at 1/8?

        I seem to recollect this being a problem on the delay as well , but cannot make it do that right now .

        use two UI knobs - one set to Tempo sync and one to Hz, when the user switches issue the mode change and a element.changed() command

        HISE Development for hire.
        www.channelrobot.com

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

          @Lindon hmm, not familiar with the element.changed() command ?

          Here is what I am using currently but , yes , this has the problem .

          const var LFO1FREQ = Content.getComponent("LFO1Frequency");
          const var tremBypass = Content.getComponent("tremBypass");
          const var tremDelay = Content.getComponent("tremDelay");
          const var TremIntensity = Content.getComponent("TremIntensity");
          const var tremSmooth = Content.getComponent("tremSmooth");
          
          
          
          
          
          
          // [JSON Knob]
          Content.setPropertiesFromJSON("LFO1Frequency", {
            "mode": "Frequency",
            "stepSize": 0.01,
            "defaultValue": "1",
            "suffix": " Hz"
          });
          
          const var LFO1MOD = Synth.getModulator("LFO1");
          
          
          const var LFO1Sync = Content.getComponent("LFO1Sync");
          
          inline function onLFO1SyncControl(component, value)
          {
          	// Sync Mode LFO1
          	LFO1MOD.setAttribute(LFO1MOD.TempoSync, value);
          	
          	if(value)
          	{
          		// Switch to tempo sync mode
          		LFO1FREQ.set("mode", "TempoSync");
          		LFO1FREQ.set("max", 18);
          	}
          	else
          	{
          		// Switch to frequency mode
          		LFO1FREQ.set("mode", "Frequency");
          		LFO1FREQ.set("min", 0.00);
          		LFO1FREQ.set("max", 50);
          		LFO1FREQ.set("middlePosition", 5);
          	}
          };
          
          LFO1Sync.setControlCallback(onLFO1SyncControl);
          
          
          inline function onLFO1FrequencyControl(component, value)
          {
          	LFO1MOD.setAttribute(LFO1MOD.Frequency, value);
          };
          
          Content.getComponent("LFO1Frequency").setControlCallback(onLFO1FrequencyControl);
          
          
          
          
          inline function onTremIntensityControl(component, value)
          {
          	LFO1MOD.setIntensity( value);
          };
          
          Content.getComponent("TremIntensity").setControlCallback(onTremIntensityControl);
          
          
          inline function ontremBypassControl(component, value)
          {
          	LFO1MOD.setBypassed(1- value);
          };
          
          Content.getComponent("tremBypass").setControlCallback(ontremBypassControl);
          
          
          inline function ontremDelayControl(component, value)
          {
          	LFO1MOD.setAttribute(LFO1MOD.FadeIn, value);
          };
          
          Content.getComponent("tremDelay").setControlCallback(ontremDelayControl);
          
          
          
          inline function ontremSmoothControl(component, value)
          {
          	LFO1MOD.setAttribute(LFO1MOD.SmoothingTime, value);
          };
          
          Content.getComponent("tremSmooth").setControlCallback(ontremSmoothControl);
          

          https://lalalandaudio.com/

          https://lalalandsynth.com/

          https://www.facebook.com/lalalandsynth

          https://www.facebook.com/lalalandsynth

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

            @lalalandsynth

            there is no element.changed() command - you substitute the name of your widgets(elements)

            so you need to replace LFO1FREQ with two controls LFO1SYNCFREQ and LFO1UNFREQ

            show and hide them depending on the TemopSync selection..

            HISE Development for hire.
            www.channelrobot.com

            lalalandsynth 3 Replies Last reply Reply Quote 1
            • lalalandsynth
              lalalandsynth @Lindon last edited by lalalandsynth

              @Lindon Working on that , but will that not have the same problem ?
              EDIT: This seems to work !

              https://lalalandaudio.com/

              https://lalalandsynth.com/

              https://www.facebook.com/lalalandsynth

              https://www.facebook.com/lalalandsynth

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

                @Lindon Could this not cause a problem when a preset is recalled since there are two buttons with the same callback ...although , assuming the sync button is also saved in the preset maybe not ...just a thought ?

                https://lalalandaudio.com/

                https://lalalandsynth.com/

                https://www.facebook.com/lalalandsynth

                https://www.facebook.com/lalalandsynth

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

                  @Lindon This does not seem to work , when saved in a preset , it does not recall the correct values.
                  It does save the unsynced values but not the synced values.

                  Unless I could script which one gets saved in preset ?

                  How do you guys do this ?

                  This does not save the correct values in a preset.

                  HiseSnippet 1464.3oc0X0saSbDEd1jrTrSMBn7.rJppxPCA6j.zpJTLwIgZ0DhaW9oU8BzjcGGOM6Ni6tyFvfPpuA8pdA20mj9rvs8NdCZOy92Lq8ZGWKfBNRQ5blyYNemu4myY1tAbGRXHO.YT4ACGPPFepo8Plne69XJC0YGjwELO.GJHAVIp1d3.bXHwEYXr38jJLprDJ92a1ZarGl4PTpPnGwoNj8o9TgRa2VeG0yaOrK4ATeMq2rUGGNqM2iGA3YQyFnAXmSvGStOVZ1BlHiysqKUvCrEXAIDrYat6P697mxRr+QzP5QdDoPSjMLQIpQs6S8b6lkqgHjwRcUY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.IUX06+vaCZT5aCZV1cmyHbujYWIsTNdWnD7Bm5eWi2zWZUyb2d8HNBEXWxbue787ypNe96co9C7H2S8d2DEVRMMmx6cgCODObAB7wI6xxT7SsJ4EwcXmBWu2k6gCFk9WbZuts4b951ouGQlRVui1SOmKLWHAvllPKwoG7J9VyyFjp69znW4GbniZ8q0u25w3SI83A9o0WyceexwPfz0nJCooz1myE8oriK9YLtRq847A6xv.M3pae293PYOUPyo53pcTnf6mgk3uygMbmbbaAF+r4s1bM3WuuT9+utM7uMN7si7XG2m+8aKLi629r3Ux7kL4Z5G32hlf378SeDf3KaFesj0GMEptrY70le7.3KZB8L9A.b+Adj.t84.rHHtgs6G4ayiBbH.TYPSsgxNbVPdCShbCorDP1Dlarv+.+RGroT1HcvlYC9dIF9Xm.9SbRdIk75jyGqAxaV7G9sh4ARYqlYOeR1nZCYqozm33Had35.+TtOqOG9rwb3ylygO2bN74VygO2dN74qlpOxuG9cifpVI6+AEc2ModkQdcOiEQ+KfeOLZB
                  

                  Feels like this should be fixed , feels like a bug.

                  https://lalalandaudio.com/

                  https://lalalandsynth.com/

                  https://www.facebook.com/lalalandsynth

                  https://www.facebook.com/lalalandsynth

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

                    @lalalandsynth you need to include the sync-state button in your preset - and test it in each of the sync setting controls. It's working fine here. It's not a bug.

                    HISE Development for hire.
                    www.channelrobot.com

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

                      @Lindon the sync button is set to save in preset if that is what you are referring to ?
                      When you say its working fine for you , do you mean the snippet I posted ?
                      it also works fine for me until I save and recall a preset .

                      If you have a snippet of a working setup that I could look at ?

                      https://lalalandaudio.com/

                      https://lalalandsynth.com/

                      https://www.facebook.com/lalalandsynth

                      https://www.facebook.com/lalalandsynth

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

                      16
                      Online

                      1.1k
                      Users

                      6.8k
                      Topics

                      62.4k
                      Posts