Modified MidiOut. Song parameters are now properly referenced. All note value cases accounted for. Midi ticks implemented based on note value. Still needs proper output testing.