Skip to contentSkip to conversation

How to set ppq?

DISCUSSION Gerald Grabner 2 participants 2 messages Dec 23, 2002

lore
Share & tools
lore
#0 lore raw

Hi,

I'm trying to set PPQ for the alsa sequencer queue but it doesn't work. Here is the piece of code:

  snd_seq_queue_tempo_set_tempo (queue_tempo, tempo) ;
  snd_seq_queue_tempo_set_ppq   (queue_tempo, ppq  ) ;
  snd_seq_set_queue_tempo (seq_handle, queue_id, queue_tempo) ;

It works for tempo, but not for ppq. Does anybody know how I could also set ppq?

Thanks a lot!
Gerald

BTW: It's on a SuSE 8.1 box that comes with alsa-0.9.0rc3, cvs20020903.

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

#1 lore raw

Hi,

At Mon, 23 Dec 2002 14:19:38 +0100,

Quoted 6 lines · Gerald Grabner

Hi,

I'm trying to set PPQ for the alsa sequencer queue but it doesn't work. Here is the piece of code:

Quoted 6 lines
   snd_seq_queue_tempo_set_tempo (queue_tempo, tempo) ;
   snd_seq_queue_tempo_set_ppq   (queue_tempo, ppq  ) ;
   snd_seq_set_queue_tempo (seq_handle, queue_id, queue_tempo) ;

It works for tempo, but not for ppq. Does anybody know how I could also set ppq?

the ppq cannot be changed during the queue is running although the tempo can be varied.

you can set the ppq before starting the queue, or after stopping the queue.

ciao,

Takashi

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf