Lines Matching refs:ppq
45 int tempo, int ppq)
48 tick->resolution = (tempo * 1000) / ppq;
52 s = tempo % ppq;
53 s = (s * 1000) / ppq;
54 tick->resolution = (tempo / ppq) * 1000;
105 tmr->ppq = 96; /* 96 PPQ */
107 snd_seq_timer_set_tick_resolution(&tmr->tick, tmr->tempo, tmr->ppq);
189 snd_seq_timer_set_tick_resolution(&tmr->tick, tmr->tempo, tmr->ppq);
195 /* set current ppq */
196 int snd_seq_timer_set_ppq(struct snd_seq_timer * tmr, int ppq)
201 if (ppq <= 0)
204 if (tmr->running && (ppq != tmr->ppq)) {
205 /* refuse to change ppq on running timers */
208 snd_printd("seq: cannot change ppq of a running timer\n");
212 tmr->ppq = ppq;
213 snd_seq_timer_set_tick_resolution(&tmr->tick, tmr->tempo, tmr->ppq);