HISE Logo Forum
    • Categories
    • Register
    • Login

    Audio Loop Player and setLinkBpmToSyncMode (?)

    Scheduled Pinned Locked Moved Unsolved General Questions
    4 Posts 2 Posters 235 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.
    • M
      Mighty23
      last edited by

      I'm trying to figure out what is the right way to use 'tempo sync' on an Audio Loop Player.

      Connecting the combo box to the relevant choice in the Audio Loop Player, I get a crash if I try to change from 'Free Running' to other values. In the documentation I found:

      • setLinkBpmToSyncMode
        If enabled, this will link the internal / external BPM to the sync mode.

      • Engine.getHostBpm()
        Returns the Bpm of the host.

      I think I should use the first option but I don't understand how it is implemented
      screen2.png

      Free Party, Free Tekno & Free Software too

      1 Reply Last reply Reply Quote 0
      • M
        Mighty23
        last edited by

        OK; I tried to enter "getHostBPM" without success; the Audio Loop Player still crash. I therefore now have to understand what the correct syntax is for transporthandler or try to understand how to overcome this crash.

        Free Party, Free Tekno & Free Software too

        LindonL 1 Reply Last reply Reply Quote 0
        • M Mighty23 marked this topic as a question on
        • LindonL
          Lindon @Mighty23
          last edited by Lindon

          @Mighty23

          so reading the documentation gets you this:

          Parameters
          ID Description
          4 SyncMode Syncs the looper to the host tempo
          5 LoopEnabled Enables looped playback
          6 PitchTracking Repitches the sample based on the note and the root note.
          7 RootNote Sets the root note when pitch tracking is enabled
          8 SampleStartMod Modulates the sample start
          9 Reversed Reverses the sample

          Link Preview Image
          HISE | Docs

          favicon

          (docs.hise.audio)

          so I would start with:

          YourLoopPlayer.setAttribute(YourLoopPlayer.SyncMode, true);
          

          and see if that works for you.

          HISE Development for hire.
          www.channelrobot.com

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

            @Lindon Thanks, I'm testing the plugin right now and it seems there are no crashes; the sample produces "crackles and glitches" but at least I no longer have an instant crash. I was probably looking for the wrong things in the documentation, Thanks again. I will continue to do tests in the next few hours and if I don't have any problems I might even consider the problem solved.

            Free Party, Free Tekno & Free Software too

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

            26

            Online

            1.7k

            Users

            11.8k

            Topics

            102.8k

            Posts