HISE Logo Forum
    • Categories
    • Register
    • Login

    Sync to DAW

    Scheduled Pinned Locked Moved General Questions
    10 Posts 3 Posters 507 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.
    • MikeBM
      MikeB
      last edited by

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

      Link Preview Image
      HISE | Scripting | TransportHandler

      A class that manages callbacks for host playback events

      favicon

      (docs.hise.audio)

      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

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

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

        Can't help pressing F5 in the forum...

        MikeBM 2 Replies Last reply Reply Quote 0
        • MikeBM
          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
          • MikeBM
            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
            • MikeBM
              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

              ulrikU 1 Reply Last reply Reply Quote 0
              • ulrikU
                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 15.3.1, Xcode 16.2
                http://musikboden.se

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

                  ulrikU 1 Reply Last reply Reply Quote 0
                  • ulrikU
                    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 15.3.1, Xcode 16.2
                    http://musikboden.se

                    ulrikU 1 Reply Last reply Reply Quote 0
                    • ulrikU
                      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 15.3.1, Xcode 16.2
                      http://musikboden.se

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

                        29

                        Online

                        1.8k

                        Users

                        12.0k

                        Topics

                        104.2k

                        Posts