HISE Logo Forum
    • Categories
    • Register
    • Login

    Is there a way to pickup host transport messages directly within a custom node??

    Scheduled Pinned Locked Moved C++ Development
    5 Posts 2 Posters 61 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.
    • OrvillainO
      Orvillain
      last edited by

      I'd like to be able to poll transport start/stop and tempo changes from within a node. Is that possible, or do I have to use a data cable to feed messages from the top Hise layer?

      Musician - Instrument Designer - Sonic Architect - Creative Product Owner
      Crafting sound at every level. From strings to signal paths, samples to systems.

      HISEnbergH 1 Reply Last reply Reply Quote 0
      • HISEnbergH
        HISEnberg @Orvillain
        last edited by

        I'd like to be able to poll transport start/stop and tempo changes from within a node. Is that possible, or do I have to use a data cable to feed messages from the top Hise layer?

        +1 Would really like to know about how to do this.

        Definitley a good place to start experimenting is the tempo_sync node and the tempo_sync_base class it inherits from.

        OrvillainO 1 Reply Last reply Reply Quote 0
        • OrvillainO
          Orvillain @HISEnberg
          last edited by

          @HISEnberg https://forum.hise.audio/topic/11486/c-transport-handler/4

          I just came across this too, which seems relevant.

          Musician - Instrument Designer - Sonic Architect - Creative Product Owner
          Crafting sound at every level. From strings to signal paths, samples to systems.

          HISEnbergH 1 Reply Last reply Reply Quote 1
          • HISEnbergH
            HISEnberg @Orvillain
            last edited by

            @Orvillain Nice find.

            Honestly up until now I have just been placing my C++ nodes inside of scriptnode and using that for interacting with transport/tempo information. Not always the most ideal solution but it does work in most scenarios.

            OrvillainO 1 Reply Last reply Reply Quote 0
            • OrvillainO
              Orvillain @HISEnberg
              last edited by Orvillain

              @HISEnberg If in doubt, stalk @griffinboy 🤣

              So following Chris's comment in that thread, it sounds like the node needs to inherit from:

              public hise::TempoListener
              

              And then you write a custom callback. Something like:

              void tempoChanged(double newTempo) override
                  {
                      
                      // yo bro, do a thing here innit fam bruv dudemeister
                      for (auto& t : data)
              	{
              		t.bpm = newTempo;
              		t.refresh();
              	}
                   }
              

              But I haven't tried it yet.

              Musician - Instrument Designer - Sonic Architect - Creative Product Owner
              Crafting sound at every level. From strings to signal paths, samples to systems.

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

              26

              Online

              2.0k

              Users

              12.7k

              Topics

              110.6k

              Posts