def noteOn(note, velocity=69, channel='0'):
    """
    Create a MIDI noteon event.

    note is required
    velocity and channel are optional
    channel should be a hex digit character
    """
    return '9%c %2x %2x' % (channel, note, velocity)
