144 snd_seq_event_type_t te =
event->getSequencerType();
145 return ( te == SND_SEQ_EVENT_PORT_SUBSCRIBED ||
146 te == SND_SEQ_EVENT_PORT_UNSUBSCRIBED );
157 snd_seq_event_type_t te =
event->getSequencerType();
158 return ( te == SND_SEQ_EVENT_PORT_START ||
159 te == SND_SEQ_EVENT_PORT_EXIT ||
160 te == SND_SEQ_EVENT_PORT_CHANGE );
171 snd_seq_event_type_t te =
event->getSequencerType();
172 return ( te == SND_SEQ_EVENT_CLIENT_START ||
173 te == SND_SEQ_EVENT_CLIENT_EXIT ||
174 te == SND_SEQ_EVENT_CLIENT_CHANGE );
185 snd_seq_event_type_t te =
event->getSequencerType();
186 return ( te == SND_SEQ_EVENT_PORT_START ||
187 te == SND_SEQ_EVENT_PORT_EXIT ||
188 te == SND_SEQ_EVENT_PORT_CHANGE ||
189 te == SND_SEQ_EVENT_CLIENT_START ||
190 te == SND_SEQ_EVENT_CLIENT_EXIT ||
191 te == SND_SEQ_EVENT_CLIENT_CHANGE ||
192 te == SND_SEQ_EVENT_PORT_SUBSCRIBED ||
193 te == SND_SEQ_EVENT_PORT_UNSUBSCRIBED );
205 snd_seq_event_type_t te =
event->getSequencerType();
206 return ( te == SND_SEQ_EVENT_NOTEOFF ||
207 te == SND_SEQ_EVENT_NOTEON ||
208 te == SND_SEQ_EVENT_NOTE ||
209 te == SND_SEQ_EVENT_KEYPRESS ||
210 te == SND_SEQ_EVENT_CONTROLLER ||
211 te == SND_SEQ_EVENT_CONTROL14 ||
212 te == SND_SEQ_EVENT_PGMCHANGE ||
213 te == SND_SEQ_EVENT_CHANPRESS ||
214 te == SND_SEQ_EVENT_PITCHBEND );
234 snd_seq_ev_set_dest(&
m_event, client, port);
244 snd_seq_ev_set_source(&
m_event, port);
260 snd_seq_ev_set_broadcast(&
m_event);
269 snd_seq_ev_set_direct(&
m_event);
280 snd_seq_ev_schedule_tick(&
m_event, queue, relative, tick);
292 snd_seq_real_time_t rtime;
294 rtime.tv_nsec = nanos;
295 snd_seq_ev_schedule_real(&
m_event, queue, relative, &rtime);
306 snd_seq_ev_set_priority(&
m_event, high);
316 #if SND_LIB_VERSION > 0x010008
317 snd_seq_ev_set_tag(&
m_event, aTag);
331 if (n < 3)
return m_event.data.raw32.d[n];
342 if (n < 3)
m_event.data.raw32.d[n] = value;
353 if (n < 12)
return m_event.data.raw8.d[n];
364 if (n < 12)
m_event.data.raw8.d[n] = value;
382 return snd_seq_event_length(&
m_event);
394 snd_seq_ev_set_note(&
m_event, ch, key, vel, dur);
405 snd_seq_ev_set_noteon(&
m_event, ch, key, vel);
416 snd_seq_ev_set_noteoff(&
m_event, ch, key, vel);
427 snd_seq_ev_set_keypress(&
m_event, ch, key, vel);
438 snd_seq_ev_set_controller(&
m_event, ch, cc, val);
448 snd_seq_ev_set_pgmchange(&
m_event, ch, val);
458 snd_seq_ev_set_pitchbend(&
m_event, ch, val);
468 snd_seq_ev_set_chanpress(&
m_event, ch, val);
488 m_data = QByteArray((
char *) event->data.ext.ptr,
489 event->data.ext.len);
523 m_data = QByteArray(dataptr, datalen);
666 snd_seq_ev_set_fixed(&
m_event);
679 snd_seq_ev_set_queue_control(&
m_event, type, queue, value);
689 snd_seq_ev_set_fixed(&
m_event);
701 snd_seq_ev_set_queue_tempo(&
m_event, queue, tempo);
709 snd_seq_remove_events_malloc(&m_Info);
718 snd_seq_remove_events_malloc(&m_Info);
719 snd_seq_remove_events_copy(m_Info, other.m_Info);
728 snd_seq_remove_events_malloc(&m_Info);
729 snd_seq_remove_events_copy(m_Info, other);
737 snd_seq_remove_events_free(m_Info);
758 snd_seq_remove_events_copy(m_Info, other.m_Info);
769 return snd_seq_remove_events_sizeof();
780 return snd_seq_remove_events_get_channel(m_Info);
791 return snd_seq_remove_events_get_condition(m_Info);
799 const snd_seq_addr_t*
802 return snd_seq_remove_events_get_dest(m_Info);
813 return snd_seq_remove_events_get_event_type(m_Info);
824 return snd_seq_remove_events_get_queue(m_Info);
835 return snd_seq_remove_events_get_tag(m_Info);
843 const snd_seq_timestamp_t*
846 return snd_seq_remove_events_get_time(m_Info);
857 snd_seq_remove_events_set_channel(m_Info, chan);
881 snd_seq_remove_events_set_condition(m_Info, cond);
892 snd_seq_remove_events_set_dest(m_Info, dest);
903 snd_seq_remove_events_set_event_type(m_Info, type);
914 snd_seq_remove_events_set_queue(m_Info, queue);
925 snd_seq_remove_events_set_tag(m_Info, tag);
936 snd_seq_remove_events_set_time(m_Info, time);
954 snd_midi_event_free(m_Info);
963 snd_midi_event_init(m_Info);
976 const snd_seq_event_t *ev)
978 return CHECK_WARNING(snd_midi_event_decode(m_Info, buf, count, ev));
993 return CHECK_WARNING(snd_midi_event_encode(m_Info, buf, count, ev));
1004 snd_seq_event_t *ev)
1006 return CHECK_WARNING(snd_midi_event_encode_byte(m_Info, c, ev));
1016 snd_midi_event_no_status(m_Info, enable ? 0 : 1);
1025 snd_midi_event_reset_decode(m_Info);
1034 snd_midi_event_reset_encode(m_Info);
1044 CHECK_WARNING(snd_midi_event_resize_buffer(m_Info, bufsize));