Direct Delivery of NoteOn events

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

 



Hi everyone,
I am having difficulty getting alsa to actually delivery a noteon event for me.  I am came across a list posting from 2004 which claimed that Queue's were necessary for NoteOn's to allow alsa to schedule the concomitant Noteoff at the appropriate time.  Nevertheless, i can find nothing in the documentation which collaborates this.  Still, i did attempt to use to a Q but was unable to produce any results.  Here is the offending code:

snd_seq_ev_clear( &event );
snd_seq_ev_set_source( &event, our_parcel->out_port );
snd_seq_ev_set_subs( &event ); //subscription was graphically verified with Qjack
snd_seq_ev_set_direct( &event );
snd_seq_ev_schedule_tick(  &event, queue, 0, 4 );
snd_seq_ev_set_note( &event, 1, 67, 127, 8 );

//Queue stuff
snd_seq_queue_tempo_t *tempo;
int queue = snd_seq_alloc_queue( our_parcel->seq );
snd_seq_queue_tempo_alloca( &tempo );
snd_seq_queue_tempo_set_tempo( tempo, 100000); 
snd_seq_queue_tempo_set_ppq( tempo,64 );
snd_seq_set_queue_tempo( our_parcel->seq, queue, tempo );

snd_seq_start_queue( our_parcel->seq, queue, NULL );
snd_seq_drain_output( our_parcel->seq );

Any help would be much appreciated.
thanks in advance,
-paul

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/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