/sound/core/seq/ |
D | seq_midi_emul.c | 49 int note, int vel); 99 dest_channel = ev->data.note.channel; in snd_midi_process_event() 116 if (ev->type == SNDRV_SEQ_EVENT_NOTEON && ev->data.note.velocity == 0) in snd_midi_process_event() 123 if (ev->data.note.note >= 128) in snd_midi_process_event() 129 if (chan->note[ev->data.note.note] & SNDRV_MIDI_NOTE_ON) { in snd_midi_process_event() 131 ops->note_off(drv, ev->data.note.note, 0, chan); in snd_midi_process_event() 133 chan->note[ev->data.note.note] = SNDRV_MIDI_NOTE_ON; in snd_midi_process_event() 135 ops->note_on(drv, ev->data.note.note, ev->data.note.velocity, chan); in snd_midi_process_event() 138 if (! (chan->note[ev->data.note.note] & SNDRV_MIDI_NOTE_ON)) in snd_midi_process_event() 141 note_off(ops, drv, chan, ev->data.note.note, ev->data.note.velocity); in snd_midi_process_event() [all …]
|
D | seq_midi_event.c | 314 ev->data.note.channel = dev->buf[0] & 0x0f; in note_event() 315 ev->data.note.note = dev->buf[1]; in note_event() 316 ev->data.note.velocity = dev->buf[2]; in note_event() 380 cmd = 0x80 | (type << 4) | (ev->data.note.channel & 0x0f); in snd_midi_event_decode() 416 buf[0] = ev->data.note.note & 0x7f; in note_decode() 417 buf[1] = ev->data.note.velocity & 0x7f; in note_decode()
|
D | seq_prioq.c | 357 if (ev->data.note.channel != info->channel) in prioq_remove_match()
|
D | seq_clientmgr.c | 885 ev->time.tick += ev->data.note.duration; in snd_seq_dispatch_event() 889 ev->time.time.tv_nsec += 1000000 * (ev->data.note.duration % 1000); in snd_seq_dispatch_event() 890 ev->time.time.tv_sec += ev->data.note.duration / 1000 + in snd_seq_dispatch_event() 895 ev->data.note.velocity = ev->data.note.off_velocity; in snd_seq_dispatch_event()
|
/sound/core/seq/oss/ |
D | seq_oss_event.c | 40 static int note_on_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd… 41 static int note_off_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct sn… 42 static int set_note_event(struct seq_oss_devinfo *dp, int dev, int type, int ch, int note, int vel,… 111 return note_off_event(dp, 0, q->n.chn, q->n.note, q->n.vel, ev); in old_event() 114 return note_on_event(dp, 0, q->n.chn, q->n.note, q->n.vel, ev); in old_event() 122 q->n.chn, 0, q->n.note, ev); in old_event() 193 return note_on_event(dp, q->v.dev, q->v.chn, q->v.note, q->v.parm, ev); in chn_voice_event() 196 return note_off_event(dp, q->v.dev, q->v.chn, q->v.note, q->v.parm, ev); in chn_voice_event() 200 q->v.chn, q->v.note, q->v.parm, ev); in chn_voice_event() 286 note_on_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd_seq_event … in note_on_event() argument [all …]
|
D | seq_oss_event.h | 43 unsigned char note; member 80 unsigned char note, parm; member
|
D | seq_oss_midi.c | 580 ossev.v.note = ev->data.note.note; in send_synth_event() 581 ossev.v.parm = ev->data.note.velocity; in send_synth_event() 582 ossev.v.chn = ev->data.note.channel; in send_synth_event()
|
D | seq_oss_device.h | 61 int note, vel; member
|
D | seq_oss_synth.c | 388 info->ch[i].note = -1; in reset_channels()
|
/sound/drivers/opl3/ |
D | opl3_midi.c | 32 static void snd_opl3_note_off_unsafe(void *p, int note, int vel, 98 int note, struct snd_midi_channel *chan) in snd_opl3_calc_pitch() argument 100 int block = ((note / 12) & 0x07) - 1; in snd_opl3_calc_pitch() 101 int idx = (note % 12) + 2; in snd_opl3_calc_pitch() 252 snd_opl3_note_off_unsafe(opl3, vp->note, 0, in snd_opl3_timer_func() 295 void snd_opl3_note_on(void *p, int note, int vel, struct snd_midi_channel *chan) in snd_opl3_note_on() argument 315 int key = note; in snd_opl3_note_on() 327 chan->number, chan->midi_program, note, vel); in snd_opl3_note_on() 336 prg = note; in snd_opl3_note_on() 354 snd_opl3_drum_switch(opl3, note, vel, 1, chan); in snd_opl3_note_on() [all …]
|
D | opl3_voice.h | 31 void snd_opl3_note_on(void *p, int note, int vel, struct snd_midi_channel *chan); 32 void snd_opl3_note_off(void *p, int note, int vel, struct snd_midi_channel *chan); 33 void snd_opl3_key_press(void *p, int note, int vel, struct snd_midi_channel *chan); 34 void snd_opl3_terminate_note(void *p, int note, struct snd_midi_channel *chan); 44 void snd_opl3_drum_switch(struct snd_opl3 *opl3, int note, int on_off, int vel, struct snd_midi_cha…
|
D | opl3_synth.c | 72 static int snd_opl3_play_note(struct snd_opl3 * opl3, struct snd_dm_fm_note * note); 125 struct snd_dm_fm_note note; in snd_opl3_ioctl() local 126 if (copy_from_user(¬e, argp, sizeof(struct snd_dm_fm_note))) in snd_opl3_ioctl() 128 return snd_opl3_play_note(opl3, ¬e); in snd_opl3_ioctl() 400 static int snd_opl3_play_note(struct snd_opl3 * opl3, struct snd_dm_fm_note * note) in snd_opl3_play_note() argument 410 if (note->voice >= ((opl3->fm_mode == SNDRV_DM_FM_MODE_OPL3) ? in snd_opl3_play_note() 415 if (note->voice < MAX_OPL2_VOICES) { in snd_opl3_play_note() 418 voice_offset = note->voice; in snd_opl3_play_note() 422 voice_offset = note->voice - MAX_OPL2_VOICES; in snd_opl3_play_note() 426 reg_val = (unsigned char) note->fnum; in snd_opl3_play_note() [all …]
|
D | opl3_drums.c | 185 void snd_opl3_drum_switch(struct snd_opl3 *opl3, int note, int vel, int on_off, in snd_opl3_drum_switch() argument 194 if ((note < 35) || (note > 81)) in snd_opl3_drum_switch() 196 drum_mask = snd_opl3_drum_table[note - 35]; in snd_opl3_drum_switch()
|
/sound/drivers/opl4/ |
D | opl4_synth.c | 312 static void snd_opl4_do_for_note(struct snd_opl4 *opl4, int note, struct snd_midi_channel *chan, in snd_opl4_do_for_note() argument 322 if (voice->chan == chan && voice->note == note) { in snd_opl4_do_for_note() 423 int note, pitch, octave; in snd_opl4_update_pitch() local 425 note = chan->drum_channel ? 60 : voice->note; in snd_opl4_update_pitch() 430 pitch = ((note - 60) << 7) * voice->sound->key_scaling / 100 + (60 << 7); in snd_opl4_update_pitch() 482 void snd_opl4_note_on(void *private_data, int note, int vel, struct snd_midi_channel *chan) in snd_opl4_note_on() argument 495 if (note >= regions->regions[i].key_min && in snd_opl4_note_on() 496 note <= regions->regions[i].key_max) { in snd_opl4_note_on() 509 voice[i]->note = note; in snd_opl4_note_on() 563 void snd_opl4_note_off(void *private_data, int note, int vel, struct snd_midi_channel *chan) in snd_opl4_note_off() argument [all …]
|
D | opl4_local.h | 163 int note; member 222 void snd_opl4_note_on(void *p, int note, int vel, struct snd_midi_channel *chan); 223 void snd_opl4_note_off(void *p, int note, int vel, struct snd_midi_channel *chan); 224 void snd_opl4_terminate_note(void *p, int note, struct snd_midi_channel *chan);
|
/sound/oss/ |
D | midi_synth.c | 283 midi_synth_kill_note(int dev, int channel, int note, int velocity) in midi_synth_kill_note() argument 288 if (note < 0 || note > 127) in midi_synth_kill_note() 306 if (!prefix_cmd(orig_dev, note)) in midi_synth_kill_note() 309 midi_outc(orig_dev, note); in midi_synth_kill_note() 329 midi_outc(orig_dev, note); in midi_synth_kill_note() 340 midi_outc(orig_dev, note); in midi_synth_kill_note() 373 midi_synth_start_note(int dev, int channel, int note, int velocity) in midi_synth_start_note() argument 378 if (note < 0 || note > 127) in midi_synth_start_note() 396 if (!prefix_cmd(orig_dev, note)) in midi_synth_start_note() 398 midi_outc(orig_dev, note); in midi_synth_start_note() [all …]
|
D | sequencer.c | 76 static int seq_queue(unsigned char *note, char nonblock); 327 static int seq_queue(unsigned char *note, char nonblock) in seq_queue() argument 352 memcpy(&queue[qtail * EV_SZ], note, EV_SZ); in seq_queue() 415 static int find_voice(int dev, int chn, int note) in find_voice() argument 420 key = (chn << 8) | (note + 1); in find_voice() 427 static int alloc_voice(int dev, int chn, int note) in alloc_voice() argument 432 key = (chn << 8) | (note + 1); in alloc_voice() 434 voice = synth_devs[dev]->alloc_voice(dev, chn, note, in alloc_voice() 447 #define note event_rec[4] in seq_chn_voice_event() macro 462 voice = find_voice(dev, chn, note); in seq_chn_voice_event() [all …]
|
D | midi_synth.h | 3 int midi_synth_kill_note (int dev, int channel, int note, int velocity); 5 int midi_synth_start_note (int dev, int channel, int note, int volume);
|
D | dev_table.h | 268 int (*kill_note) (int dev, int voice, int note, int velocity); 269 int (*start_note) (int dev, int voice, int note, int velocity); 280 int (*alloc_voice) (int dev, int chn, int note, struct voice_alloc_info *alloc);
|
D | opl3.c | 85 static int opl3_kill_note(int dev, int voice, int note, int velocity); 268 static int opl3_kill_note (int devno, int voice, int note, int velocity) in opl3_kill_note() argument 457 static int opl3_start_note (int dev, int voice, int note, int volume) in opl3_start_note() argument 473 if (note == 255) /* in opl3_start_note() 647 freq = devc->voc[voice].orig_freq = note_to_freq(note) / 1000; in opl3_start_note() 998 static int opl3_alloc_voice(int dev, int chn, int note, struct voice_alloc_info *alloc) in opl3_alloc_voice() argument
|
D | Kconfig | 13 note that CONFIG_KGDB should not be enabled at the same
|
/sound/synth/emux/ |
D | emux_voice.h | 47 void snd_emux_note_on(void *p, int note, int vel, struct snd_midi_channel *chan); 48 void snd_emux_note_off(void *p, int note, int vel, struct snd_midi_channel *chan); 49 void snd_emux_key_press(void *p, int note, int vel, struct snd_midi_channel *chan); 50 void snd_emux_terminate_note(void *p, int note, struct snd_midi_channel *chan);
|
D | emux_synth.c | 44 static void terminate_note1(struct snd_emux *emu, int note, 60 snd_emux_note_on(void *p, int note, int vel, struct snd_midi_channel *chan) in snd_emux_note_on() argument 77 key = note; /* remember the original note */ in snd_emux_note_on() 78 nvoices = get_zone(emu, port, ¬e, vel, chan, table); in snd_emux_note_on() 113 vp->note = note; in snd_emux_note_on() 159 snd_emux_note_off(void *p, int note, int vel, struct snd_midi_channel *chan) in snd_emux_note_off() argument 179 vp->chan == chan && vp->key == note) { in snd_emux_note_off() 238 snd_emux_key_press(void *p, int note, int vel, struct snd_midi_channel *chan) in snd_emux_key_press() argument 258 vp->chan == chan && vp->key == note) { in snd_emux_key_press() 380 terminate_note1(struct snd_emux *emu, int note, struct snd_midi_channel *chan, int free) in terminate_note1() argument [all …]
|
D | soundfont.c | 956 int note, sample_id; in load_guspatch() local 1035 note = freq_to_note(patch.base_note); in load_guspatch() 1036 zone->v.root = note / 100; in load_guspatch() 1037 zone->v.tune = -(note % 100); in load_guspatch()
|