Is there a way to pickup host transport messages directly within a custom node??
-
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?
-
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.
-
@HISEnberg https://forum.hise.audio/topic/11486/c-transport-handler/4
I just came across this too, which seems relevant.
-
@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.
-
@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::TempoListenerAnd 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.