Lines Matching refs:tempo
40 * its units change value at every tempo change. Mf_realtime is
43 * (9) maintains a history of tempo settings to update Mf_currtempo,
44 * to handle tempo tracks.
153 double mf_ticks2sec (unsigned long ticks, int division, unsigned long tempo);
361 * Step through each tempo change from old_currtime up to now,
379 printf("d(rev %lu - old %lu, div %d, tempo %lu) = %.3f\n",
396 printf("d(rev %lu - old %lu, div %d, tempo %lu) = %.3f\n",
549 case 0x51: /* Set tempo */
828 /* In format 1 files, the first track is a tempo map */
1030 mf_write_tempo (delta_time, tempo)
1032 unsigned long tempo;
1034 /* Write tempo */
1043 eputc ((unsigned) (0xff & (tempo >> 16)));
1044 eputc ((unsigned) (0xff & (tempo >> 8)));
1045 eputc ((unsigned) (0xff & tempo));
1063 mf_sec2ticks (secs, division, tempo)
1065 unsigned long tempo;
1068 return (unsigned long) (((secs * 1000.0) / 4.0 * division) / tempo);
1105 mf_ticks2sec (ticks, division, tempo)
1107 unsigned long tempo;
1113 return ((double) (((double) (ticks) * (double) (tempo)) / ((double) (division) * 1000000.0)));