Host transport callbacks
-
@christoph-hart When the DAW playback is stopped I want to make sure a button on my UI is reset.
-
@Christoph-Hart : +1 for this feature!
-
Is this possible yet?
-
i 've just try this
const var th = Engine.createTransportHandler(); th.setOnTransportChange(false, function(isPlaying) { Button1.setValue(isPlaying); Button1.changed(); });
I took the solution on this example but I must have done something wrong
HiseSnippet 1721.3oc4WstaaTDEd23rkFWLzhpP7yQQHUGvjZW5MABUGmKsVzjXEmVnRHUMd2isG5tyXlc1jZphD+jGi9XvO4QoOB8MnblYu3cC1oFKZ.AVIVdly4Ly27ctLmoiT3BggBok8JGNdDXY+9NcGyUC2bHkwsZukk8G5bnjxCGIjpCgPkUqwinggfmksco6qUxdkksLed88ZQ8obWXxTVVOVvbgGxBXpIy1o42x782g5AGxBxo8Ma11Uv2T3KhP.Uxot0Hp6ynCf8nZ0Vxwx9Ba6wTBYWEUAgV1K2R3Mt6Pww7X8eLKj0yGzCZX0EWn3o2Q36oQrdVqMGx785jdvCsrrc5LgFJESCW0YWlGKa9IzwkMBHSrHOeXuzYAuF4gW84Gd14f2xwv6JNcckrQpIRzX6RNs4JP1mhtf7vJVWqk9sK3ro.0fqVOf9LXGINHyhp2td8ZjaUu9ZeckxUJe8qSNbHKjf+oFBjvwb2gn9hHbbZ7.YHk64CRxwCYtCIGiNUxHe5XiEAfRqe.P3BjLpTFcsgJxQTIJl7Mjs4CXbXcWIfbUVH1ChWwpYfX2Hznd.gxILtOZAoeD2UwDbbVWZTHPXp3sVFo0wr4zHOl.+Et3dUJeZCE7V3lVsG9UM7.tGbbKpbMRkxunRYB9wW3R8ILODkljg0odd6gGh84UaTib25jOOyJxmQZbiZ3+2oFwvbZ6iMRer2ue+s.jQ.uVi29Hj3a6Uk4oWCixmjbHa2mLVDQbQ9b.f7aD9kfzm5imtgfDpU3LRy4L7GSphldMTDteXpFILpmxGsGS43CH+HSg9WyljRWZ94QsSHGhm.B4WSQFDQQefBPtiDpnXTJYDHYBu0pTFOLgfZeCqsoAiU0XrVBQl4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y7inehNfwyTQeDSEcQlJZlJ58GUzEYpnigJ5hryEMSEMSEMSE8ArJ5RLUz6JUzkvUQ+gmzSE8u92wETEMLNLUzv3YpnOhohtDSEMSE89iJ5RLUzwPEcIlJZlJZlJZlJ58SUzeoP9UWI8+eKi9x65e1URSX2nu8u44otazv3Y5nObqi9oG32ckzLgzLgz6kBoOk+O7JoYJoIoj9zX+xqjlIklIklIklIk9Q4xnkbcSiaADGaaZnA69eBTH.aqNRWZR9qBuVHC2VN+p1yymdpz.YlMTuU85vwaewLbbgiQbDvjcDvHMBXxMBXxOBXJLBXJRECTm7zcrMZ4zGCDP04fqT.zIyaMJIFi6+BxjQVk.
-
@yall You've assigned two of the same callback, you can only have one.
-
@d-healey yes I tried but it only starts when the daw stops and does not start again
-
@yall Make a new project with just your button and just the transport callback and see if it works. That way we can rule out any other part of your project causing an issue. Also test it in more than one DAW. If that doesn't work post the snippet of that new minimal project here.
-
@d-healey hello, so i just created a simple button with the transport callback.
once compiled, I start reading on my daw ( ableton and fl studio ), nothing happens.
if I set the button to ON and launch a reading, the button switches to OFF.
so something must be missing for an action to happen when reading.HiseSnippet 788.3ocsUstaSCCE1tqdhVfIlDO.Q6WYRipVXbQBPL5kAUv1pniI92jmiaq0RrircFTg1qBuL7Bwa.bbRZSFqprUIxOhx4p+NG+cNYfVw3FiRiv0NdZLGguGY3TocRmITgD0uKBuA4.pwx0dYpZOMlZL7.DFu16bJv0phRe90aZSCoRFuPEBchRv3eTDIrEZGr2GDgg6SC3GKhJ48t60mojcTgpD.OqQZhhoryoi4GRctUgfvq2KPXU5gVpka.eZqBlNbh5qxL+OQXDmExcBsPCgDkoF0YhHLXvrZ0fP3pCJp70xp7GRNPDHlqunC7fTCdEQTtGfqrLH05V.IbIHUMCRaRFxzhXagEGdtKouDtPFQgVcYnj4KpxOvjNJvCosQD8b99ZPXdD9OqYyc7fWa+x50qC8ai06Bp1yNw60d8jiERdCllCEywZpzDqz12SkAgbsODQg+sSrVkrEDzryZL21QEEqjff+V412J8XbO1IMLb6Qx4oEZvxwb+QzPCeGuQIRlUnj9ByfP5Tgb710+dcO3IOStnOgFlv8uv8FxaYirzjE3v3kYG4rD5ojGpr7ij9tDVq9k089aSiFsPatBSqBSK8EX1Qd0KKPeYRzYb8NdY.dlivs6UoLqeynLrr9bIGUx9Rg8nXdt79pv.GUv880IXn7KJGUKGgfq1Th1F4Dsr1IR.IoFIu2hRge4gZzm62kZoyRDjS3bh4ZqvUN3t7Kfg9LFbMRWt4bqJN02b1AzAtAG62PXB9mvoM08wqR2bbsIDX1TEjDRsWcf0sYJ2.bkbkoD2jfzHrSKu45VLE2boSw2THtIYfvxlrXLVYAXDZ1+OvX9tu6S5MZDmYK.XUx9eYUWz8ON9OoRrv78ATqV3tjOLIZHrxmwcaDj7Pi69thivlI2zI65.C4xfTgeCO4Fa4jw4FaMyHJhxzpSYYzb2106jpAvjL8mI0f+pAxdyY2DRyFMQQvh9SYLW4+HXFZww73UHlmrBwr6JDySWgXd1JDyyWgXdwRiw8O12lXUQYiCfhA8R2xfw8jTfYkxBQ+APt0dwC
-
I have just corrected my problem. My problem was that there was only one state in my reminder so I put this line. and it works now.
th.setOnTransportChange(false, function(isPlaying) { Button1.setValue(isPlaying ? 1-value : value); Button1.changed(); });