A functional-based Javascript midi parsing library