So I designed a looping song that once a pulse is introduced, will loop forever. I wanted to see if there is a way to have a switch to end that loop or start that loop again. I figured it would be a piston that introduces a block a current can pass through to have the last note block continue the signal back to the first note block, but if the piston retracts, that signal doesnt go back to the beginning to start the loop. Is that possible? I attached an image of what I have at the moment, the circle is current that I would like to be able to break and repair with a switch.
(Note the music critic to the left, presumably your song sounds better than my test.)
When the switch is turned on the signal briefly goes through the block, before it has time to move, starting the sequence of noteblocks. (The repeter to the right is needed to keep the block from moving before the signal has gone through.)
Then the block moves, breaking the signal from the switch so it doesn't interfere with the signal coming from the noteblocks and allowing the later to pass.
If you turn off the switch and then turn it back on before the song has ended it will presumably allow two signals to chase each other around the loop which may not be quite the sound you intended, turning it back off and waiting for them to stop should fix it.