Re: [Alsa-user] Set tick state in seq ?

2016-04-04 Thread Clemens Ladisch
Charles Fox wrote: > So I have to construct of these events then pass it to the timer at 0:0 ? Yes, but instead of 0:0, use SND_SEQ_CLIENT_SYSTEM and SND_SEQ_PORT_SYSTEM_TIMER. > why do we have snd_seq_queue_tempo_set_tempo as a direct function on > the queue to change tempo, but we have to send

Re: [Alsa-user] Set tick state in seq ?

2016-04-04 Thread Charles Fox
ah I think I get it now -- snd_seq_ev_set_queue_pos_tick is a macro which constructs a special event type, it's not a function on the queue. So I have to construct of these events then pass it to the timer at 0:0 ? $aconnect -i client 0: 'System' [type=kernel] 0 'Timer ' I'd still

Re: [Alsa-user] Set tick state in seq ?

2016-04-04 Thread Charles Fox
Thanks very much Clemens. I saw this function in the API, but from from the name and signature, snd_seq_ev_set_queue_pos_tick(ev,q,ttime), I thought it was a method for a single event rather for the whole queue. Could you explain what the ev argument is for and what I need to put in it; and also

Re: [Alsa-user] Set tick state in seq ?

2016-04-04 Thread Clemens Ladisch
Charles Fox wrote: > The midiarp.c demo in the tutorial shows how to read the tick state, > and how to get and set the tempo. So I was expecting to find > a function called something like snd_seq_queue_set_tick , but there > doesn't seem to be one in the API. To set a queue's timer's position,

[Alsa-user] Set tick state in seq ?

2016-04-03 Thread Charles Fox
Dear alsa list -- I am trying to find out how to set the tick state in the midi seq library. Can anyone help? The midiarp.c demo in the tutorial shows how to read the tick state, and how to get and set the tempo. So I was expecting to find a function called something like snd_seq_queue_set_t