HISE Logo Forum
    • Categories
    • Register
    • Login

    Building an ARP - TransportHandler

    Scheduled Pinned Locked Moved General Questions
    6 Posts 2 Posters 269 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.
    • LindonL
      Lindon
      last edited by Lindon

      So I'm building an Arp, and I want it to be able to handle Tempo changes, as well as start on beat and start on bar stuff, so I think I need the TransportHandler, but Im getting nowhere with it.

      The demo snippet in the documentation works at least now - when I start/stop the external DAW simulator, but the documentation is its usual terse uncommunicative self....

      Has anyone used this and can say how it works? or has a snippet?

      So specifically Im looking at:

      th.setEnableGrid(true, 18); <--- whats this "18" here?

      th.setOnGridChange(false, function(num)
      {
      	Console.print("grid event");
      });
      

      This does nothing....so its not right in some way....

      HISE Development for hire.
      www.channelrobot.com

      ulrikU 2 Replies Last reply Reply Quote 0
      • ulrikU
        ulrik @Lindon
        last edited by

        @Lindon said in Building an ARP - TransportHandler:

        th.setEnableGrid(true, 18); <--- whats this "18" here?

        the 18 is equal to 1/64T, if you not use "HISE_USE_EXTENDED_TEMPO_VALUES=1" in your Hise build, then the lowest note value 1/64T will be the number 23

        Hise Develop branch
        MacOs 15.3.1, Xcode 16.2
        http://musikboden.se

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

          @ulrik thanks -- I have it running now.

          Im still confused about how to get it running without the transport running, so I assume that's not possible, and I have 2 arps so I'd like 2 transport handlers but again i assume we are (just like Kontakt) stuck with working it all out in the one call back..

          HISE Development for hire.
          www.channelrobot.com

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

            @Lindon this is a small snippet, TransportHandler will start/stop with the transport
            it will also start/stop dependent on pressed keys

            So if keys down, the gridChange function will start counting amount of 1/64T's (Clock), and if you start the transport the "Clock" will adjust to the transport (playHead)

            HiseSnippet 820.3ocsU01aZCCD1g1TMXunUoIsu5OFjpXvdoqRUUqq.sEsQKZvl12pbcN.qFribb5JZp+m2+fsywoDnkstgz3CQb28bmexSt6bOshCIIJMwq7fow.w6Q98mJMiaNlIjjNsHdOwuKKw.Zpy0ASiYIIPHwyasirN7JuNI62Od2ArHljCEtHjunDb3ihIBSg2d6+AQTzgrPXfXxbne89c3JYSUjJE4yZ90IwL9ErQvILKrR9DuMZGJLJceCy.IDu0OPENs+X02jN7eQjHNOBrFMH8wB4benJJzxXqWRywhnvd27dmPvpzqPEVyoBOyuqHTLyegZ7zr.zhLlWO7JsH8VaA5032QukPIu4nz5NJsoeetVDaJhX4yC86HwONCYnrOOUbXIkddI+lJDgzTaB6B3PMZLKifsqWeKJ9n5tUpfRehgN3X5dz1xQBITiqA78XflIShUZywLYXDnCrfGbbsDvzVxvWmizhv.iNE1h1XGavW7hxUDxHrDzgoRtQnjzQHHTEkif.djhewVTldzKyd9ppU9dkxHKSTQPsXsPZbXvZc8ry5T4QEkvcZE0DQ5Pg8t7tpPH.M6oggft8U3KqjEUc2YbQIOQYfSkAYGLx1DCSanlw.UHcnoYDnRYaUsA6j6uo0cfUuttB81Eb3PWEECoAYCQ0FAlSRmfDw9Y4Cvzjfpz81iVuZkxtRqhuuJa+5oUQYBus32JrcBZ4QxSLPlN4bPuE8RVTJLCH1VsXu5F+c8pbWyzb.UxNRg4zXH29OOrQx6Fw+84NsXFlsYO2GhKFzFgkNdsfKwMGtV+x9sfjKPwB2cbm4BbhTElFwLKNlZ2MkG.0iElMrRtLQXlN+tq+gY25+wY2+VJtoeOggOd4brzR3HpT+O3X9FuG62d3PfaJH359G90Uc818b7eRkZDxQcYFs3JhmONjzGW5yA63rDhvh66Ux1s3rqassJPePFlY7S7WdvFVau7fMtIHYBiqUmwcSA1cpOHyCxIY10Ikw60PaZCR1jw757DbE+Yb9hk5NI9xUMwWspI95UMw2rpIt8pl3aW0D249SzdC76SMpItwFBoau1YqR77b2Hk0sR9EmNif7C
            

            Hise Develop branch
            MacOs 15.3.1, Xcode 16.2
            http://musikboden.se

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

              @ulrik thanks - looking at this now..

              what are arg2 and arg3 in the callback?

              HISE Development for hire.
              www.channelrobot.com

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

                @Lindon actually I don't remember, I guess isPlaying and something?

                Hise Develop branch
                MacOs 15.3.1, Xcode 16.2
                http://musikboden.se

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

                22

                Online

                1.7k

                Users

                11.8k

                Topics

                102.8k

                Posts