Przejdź do głównej zawartości

Szukaj

I want to turn music on/off with a button, but it doesn't seem to work.

  • Riandisa

    Does it turn off if you hold the button, not just press it?

    You may want to try running it while in Test Mode (green controller icon, not play test from start/options menu). You can watch your logic boards as you test your controls and see when/where the signals are not completing as expected.

  • Flyux

    I have a button hooked up to the timeline's power button. When I press that button, it used to be that I had to continue holding it down for the song to play and now, for whatever reason, the song doesn't stop when I enter test mode, even if I press the button, which should turn the timeline off or on.

    I thought maybe using a switch but it didn't work. The actual playhead seems to override the power button, by which I mean, even if the timeline node has power or not, the playhead plays regardless when in test-mode. I figured by having the power off, the playhead would stop, but that doesn't seem to be it.

  • mmdev7

    If you wire your button into a selector then out put B will be on when you want your music on. You can wire that into playback speed then the timeline will keep its place in the track. Probs also worth wiring the same wire into volume.

    Also you may need to make sure the speed input is set to modulate (x) so that it modulates between 100% & 0% speed.

    Hope this helps.:)Peter

  • Flyux

    Hey Peter, this doesn't seem to work. I've done everything you said and unfortunately there seems to be an "x" on the playback speed imput when I try to wire into it like you said. Could there be another way?

  • Mm Dev 6 - Cat/Tom C

    Hi Flyux,

    So I just gave Peter's suggestion a go and it does work ok, perhaps you didn't set it up completely correctly.

    So from your button press (I used X as my test) you wire that into the Move to Next Output input on the selector.

    Then on the B output of the selector wire that into the Playback Speed on the timeline's tweak menu, and also the power of the timeline too.

    The X on the playback speed input is cool and correct too! :)

    In the test I just did, then if I press the X button on my controller it will then move to the next input on the selector (it starts on A which has nothing on it's output) so when pressed the music will start playing. If I press X again it'll move back up to A (as I only A & B on the selector by default to choose between) powering off the timeline and changing the playback speed to 0.

    So it powers off the timeline and keeps the position of the music based off where it was when you turned it off, if that's what you want? :)

    Thanks,
    Cat

  • Mm dev - Bogdan/Yann

    Hey! Don't plug into playback speed at all, it's not necessary. Just plug into the power - timelines will play while powered and remember where they were as long as they're set to sustain. Don't plug into the playback speed unless you're doing something special, because it might stretch sounds or keep them running needlessly while paused.

    Bogdan

Zaloguj się, aby dodać komentarz.