I’m having a lot of fun learning and leading a group of grade 8 students creating with Sonic Pi. One student would like to make a tone and/or drum sound start panned -1 and then iterate by 0.1 to the other side(panned to 1) and then reverse this. And this process should loop indefinitely. So the effect for the listener will be the sound starting in one ear or on one side of the stage and gradually moving past center to the other ear/side of the stage and keep going back and forth. We have dabbled with a variable and if statements and also tried a range with .reverse, but nothing has worked yet.
Ideas? Thanks in advance.