Forum

    • Register
    • Login
    • Search
    • Categories

    Sync to DAW

    General Questions
    3
    10
    142
    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.
    • MikeB
      MikeB last edited by

      In order to sync my plug-in with the DAW
      I used the transport snipper from the documentation

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

      I have included it.

      Bildschirmfoto 2021-08-31 um 14.33.09.png

      It works from
      the beat and it counts when the timeline is running in the DAW. What does not adjust is the speed.
      It gal what I set in the DAW. The plug-in remains at 80BPM
      Is there anything missing here?

      "One hour of trial and error can save 10 minutes of reading the manual."
      "It's easier to hit the developer with feature requests than to spend 10 minutes reading the manual. :-)))"
      HISE Develop - Mac Pro 5.1, OS X 10.14.6, Projucer 6.02, Xcode 10.3

      ustk 1 Reply Last reply Reply Quote 0
      • ustk
        ustk @MikeB last edited by

        @MikeB Interesting. Have you also tested time signature change to see if the same issue occurs?

        I cannot help pressing F5 in the forum...
        Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

        MikeB 2 Replies Last reply Reply Quote 0
        • MikeB
          MikeB @ustk last edited by

          @ustk Timesignatur works fine

          "One hour of trial and error can save 10 minutes of reading the manual."
          "It's easier to hit the developer with feature requests than to spend 10 minutes reading the manual. :-)))"
          HISE Develop - Mac Pro 5.1, OS X 10.14.6, Projucer 6.02, Xcode 10.3

          1 Reply Last reply Reply Quote 1
          • MikeB
            MikeB @ustk last edited by

            @ustk Why did you ask?
            Does that work for you?
            Or do you have another solution to synchronise the BPM with the DAW?

            "One hour of trial and error can save 10 minutes of reading the manual."
            "It's easier to hit the developer with feature requests than to spend 10 minutes reading the manual. :-)))"
            HISE Develop - Mac Pro 5.1, OS X 10.14.6, Projucer 6.02, Xcode 10.3

            1 Reply Last reply Reply Quote 0
            • MikeB
              MikeB last edited by

              Surely someone has already synchronised their plug-in with the tempo of the DAW?
              I can't be the only one trying to do that here.

              I can't get my plug-in BPM to match the speed of the DAW (StudioOne).

              This was the last attempt -a snippet from @ulrik

              const var TimeValue = Content.getComponent("TimeValue");
              const var SetTime = Content.getComponent("SetTime");
              const var HostTempo = Content.getComponent("HostTempo");
              
              
              var time = 60;
              const var t = Engine.createTimerObject();
              
              inline function onSetTimeControl(component, value)
              {
              	time = value;
              	t.startTimer(time);
              };
              
              Content.getComponent("SetTime").setControlCallback(onSetTimeControl);
              
              t.setTimerCallback(function()
              {
              	HostTempo.set("text", Engine.getHostBpm());
              });
              
              

              "One hour of trial and error can save 10 minutes of reading the manual."
              "It's easier to hit the developer with feature requests than to spend 10 minutes reading the manual. :-)))"
              HISE Develop - Mac Pro 5.1, OS X 10.14.6, Projucer 6.02, Xcode 10.3

              ulrik 1 Reply Last reply Reply Quote 0
              • ulrik
                ulrik @MikeB last edited by

                @MikeB This was only a test plugin to see if the tempo changes in the daw was registred in the plugin.
                I tried my "Scale modes" (instrument) just now, and it syncs just fine inside Logic X Pro.
                Is it a FX plugin ot instrument?

                Hise Develop branch
                MacOs 13, Xcode 14.0.1
                http://musikboden.se

                MikeB 1 Reply Last reply Reply Quote 0
                • MikeB
                  MikeB @ulrik last edited by

                  @ulrik

                  It's an instrument - drum machine

                  Your snippet works alone in Studio One as AU
                  as Ist does not - strange.

                  In my PlugIn it does not work in AU nor VST nor in HISE PlugIn.

                  Do you have a solution here?

                  "One hour of trial and error can save 10 minutes of reading the manual."
                  "It's easier to hit the developer with feature requests than to spend 10 minutes reading the manual. :-)))"
                  HISE Develop - Mac Pro 5.1, OS X 10.14.6, Projucer 6.02, Xcode 10.3

                  ulrik 1 Reply Last reply Reply Quote 0
                  • ulrik
                    ulrik @MikeB last edited by

                    @MikeB Hmm.. drum machine, so it's the arp that doesn't sync, or how have you set it up?

                    Hise Develop branch
                    MacOs 13, Xcode 14.0.1
                    http://musikboden.se

                    ulrik 1 Reply Last reply Reply Quote 0
                    • ulrik
                      ulrik @ulrik last edited by

                      @ulrik my Scale modes plugin use the arp and it will auto sync to the host if you have set

                      Engine.setHostBpm(-1);
                      

                      Skärmavbild 2021-08-31 kl. 22.26.20.png

                      Hise Develop branch
                      MacOs 13, Xcode 14.0.1
                      http://musikboden.se

                      MikeB 1 Reply Last reply Reply Quote 0
                      • MikeB
                        MikeB @ulrik last edited by

                        @ulrik said in Sync to DAW:

                        Engine.setHostBpm(-1);

                        The syntax, the syntax - you know my motto first try it out 🙂
                        Thank you Ulrik - as always 👍 👍 👍
                        Works now.

                        "One hour of trial and error can save 10 minutes of reading the manual."
                        "It's easier to hit the developer with feature requests than to spend 10 minutes reading the manual. :-)))"
                        HISE Develop - Mac Pro 5.1, OS X 10.14.6, Projucer 6.02, Xcode 10.3

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

                        14
                        Online

                        983
                        Users

                        6.6k
                        Topics

                        60.8k
                        Posts