set $vel0 1
set $vel1 .7
set $vel2 .4

set $counter 0
set $countto 8
set $step 1
set $reset 0

lo $note

set $echo1 $note
set $echo2 $note
set $echo3 $note

@loop

gt $counter $reset @skip1
lo $note
@skip1

on $note $vel0
on $echo1 $vel1 12
wait 1
off $note
off $echo1 12

on $echo2 $vel1 12
on $echo3 $vel2 24
wait 1
off $echo2 12
off $echo3 24

set $echo3 $echo2
set $echo2 $echo1
set $echo1 $note

add $counter $step
mod $counter $countto

up $note

valid $note @skip2
lo $note
@skip2

goto @loop