upgraded example with multiple midi channels