Beta, I’ll try the or, but I don’t think it will work:rambo:
sbeener, Yes that is excactly what I want my if statement to say.
I am really trying to put an audio loop over another audio loop in time by rolling over a button and having the second loop start on beat 1,2,3 or 4 of the main loop.
What do you want me to do with the trace command?
What about the else if command to put the multible staments?
Nice idea but lets say that “sp = 1” is the first beat of the song and “sp = 2” is the second beat of the song and so forth.
Lets say then when I click a button a new sound starts that fits in very well with the ongoing song when it starts on beat 1,2,3 or 4.
There for if I used
button_btn.onpress = function(){
if(sp > 0 && sp < 4){
sound2.play()
}
}
The new loop could start any time after I click the button except after beat 4. Most likely this would not sound right because the new loop did not start on beat 1,2,3 or 4.
Thus, I need more resolution in my “if statements” to dictate when my new sound can play.
New problem on this topic, if you would please look at thread “refresh rate = frames or ?”