devcode backup

dev dev dev.
fixed NOTE-OUT apparatus behavior, I think.
fixed LOOP button behavior, I think.
plus some general refactoring too.