Load/save patterns, write patterns as wav. clean up