main/midi.c
void serialize_event(struct event e, uint16_t client) {
    char message[MAX_RECEIVE_LEN];
    // TODO -- patch / wave
    sprintf(message, "c%dl%fn%dv%dt%lld", 
        client, e.velocity, e.midi_note, e.voice, e.time );
    //printf("sending %s\n", message);
    mcast_send(message, strlen(message));
}
// take an event and make it a string and send it to everyone!
// This is only used for MIDI relay, so we only need to send events that MIDI parses.
take an event and make it a string and send it to everyone.
This is only used for MIDI relay, so we only need to send events that MIDI parses.
take an event and make it a string and send it to everyone . This is only used for MIDI relay so we only need to send events that MIDI parses .
void serialize_event(struct event e, uint16_t client) {
    char message[MAX_RECEIVE_LEN];
    sprintf(message, "c%dl%fn%dv%dt%lld", 
        client, e.velocity, e.midi_note, e.voice, e.time );
    mcast_send(message, strlen(message));
}
void serialize_event ( struct event e , uint16_t client ) { char message [ MAX_RECEIVE_LEN ] ; sprintf ( message , " " , client , e . velocity , e . midi_note , e . voice , e . time ) ; mcast_send ( message , strlen ( message ) ) ; }
take an event and make it a string and send it to everyone!
take an event and make it a string and send it to everyone!
// TODO -- patch / wave //printf("sending %s\n", message);