Lines Matching refs:track
62 struct track {
63 struct event *first_event; /* list of all events in this track */
64 int end_tick; /* length of this track */
79 static struct track *tracks;
279 static struct event *new_event(struct track *track, int sysex_length)
288 /* append at the end of the track's linked list */
289 if (track->current_event)
290 track->current_event->next = event;
292 track->first_event = event;
293 track->current_event = event;
304 /* reads one complete track from the file */
305 static int read_track(struct track *track, int track_end)
311 /* the current file position is after the track ID and length */
357 event = new_event(track, 0);
368 event = new_event(track, 0);
385 event = new_event(track, len);
414 case 0x2f: /* end of track */
415 track->end_tick = tick;
426 event = new_event(track, 0);
483 tracks = calloc(num_tracks, sizeof(struct track));
782 /* initialize current position in each track */
799 struct track* event_track = NULL;
804 struct track *track = &tracks[i];
805 struct event *e2 = track->current_event;
809 event_track = track;