that condicional was unecesary
sometimes there was no sound on startup. I hope this was the problem
newpreset var can be local
wrong syntax...grrr
renamed variable, it is more descriptive now
adding old style beat calculation with last beat on the bar