Re: Loop sequencer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Mar 28, 2008 at 3:26 AM, Guillaume Dupré <gui.dupre@xxxxxxxxx> wrote:
> Hello
>  I try to program a loop midi sequencer with libasound .
>  For the moment, I have this :

Hi!

[...]
>  sleep(4) ;

use snd_seq_sync_output_queue() instead.

>  It works, no problem .
>  But now, I want to do a loop with my two notes .
>  I searched on the Internet but I didn't find .

I guess there is no loop helpers in alsa-lib. You must make your own.

Check how other looping software is doing. I think you could do
something like a function that receives a loop sequence (array of
events sorted by time), a time (or tick) and a max time or max events.

int dump_loop(events[], base_time, max_time);

This function should put the appropiate event from the events[] based
on the time frame and up to the max_time or max_events.

HTH,
-- 
Aldrin Martoq
Episodio 002 (Lunes 24 Marzo)!
http://aldrinvideopodcast.podshow.com/
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel


[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux