[Alsa-devel] yet another library question

2004-03-04 Thread jacqueslen
I've been told that meta events can't be handled by the sequencer, and thus midi doesn't have any mechanisms for creating them, apart from setting the tempo(I can understand this, since the sequencer doesn't care about lyrics or copyright). shouldn't the sequencer be able to handle a "MIDI chan

[Alsa-devel] Question

2004-03-03 Thread jacqueslen
Hullo, I can't seem to find how to create MIDI channel mode messages (like "reset all controllers" or "all notes off"), nor can I find out how to create many MIDI meta events (like "text event" or "copyright notice" or "sequence name"), I've been able to find out how to create some events at ht

[Alsa-devel] library problems

2004-03-02 Thread jacqueslen
I wanted to get the tempo, so I did this: snd_seq_queue_tempo_t *qt; snd_seq_queue_tempo_alloca(&qt); snd_seq_get_queue_tempo(seq,id,qt); return qt->tempo;//line 91 and the compiler told me this: alsa.cpp:91: invalid use of undefined type `struct _snd_seq_queue_tempo' /usr/includ

[Alsa-devel] setting ppq problems

2004-02-29 Thread jacqueslen
Hello, I'm trying to set my ppq on my queue, so I do this: snd_seq_queue_tempo_t *qt; snd_seq_queue_tempo_alloca(&qt); snd_seq_queue_tempo_set_ppq(qt, ppq); return snd_seq_set_queue_tempo(seq, id, qt); where id is my queue id and ppq the new ppq. This is quite similar to the way I

[Alsa-devel] Code snippet issue

2003-10-12 Thread jacqueslen
Hello, I've set my sights on using alsa for a project, and while searching on the internet I found this code snippet: http://www.suse.de/~mana/seqdemo.c (I will paste it at the end of the question). However, I've been unable to get it to work. It compiles, but running it doesn't do anything even