| /sound/core/seq/ |
| A D | seq_midi_emul.c | 112 if (ev->data.note.note >= 128) in snd_midi_process_event() 118 if (chan->note[ev->data.note.note] & SNDRV_MIDI_NOTE_ON) { in snd_midi_process_event() 122 chan->note[ev->data.note.note] = SNDRV_MIDI_NOTE_ON; in snd_midi_process_event() 124 ops->note_on(drv, ev->data.note.note, ev->data.note.velocity, chan); in snd_midi_process_event() 127 if (! (chan->note[ev->data.note.note] & SNDRV_MIDI_NOTE_ON)) in snd_midi_process_event() 130 note_off(ops, drv, chan, ev->data.note.note, ev->data.note.velocity); in snd_midi_process_event() 134 ops->key_press(drv, ev->data.note.note, ev->data.note.velocity, chan); in snd_midi_process_event() 241 chan->note[note] |= SNDRV_MIDI_NOTE_RELEASED; in note_off() 245 chan->note[note] |= SNDRV_MIDI_NOTE_RELEASED; in note_off() 247 chan->note[note] = 0; in note_off() [all …]
|
| A D | seq_ump_convert.c | 85 ev->data.note.channel = val->note.channel; in ump_midi1_to_note_ev() 86 ev->data.note.note = val->note.note; in ump_midi1_to_note_ev() 87 ev->data.note.velocity = val->note.velocity; in ump_midi1_to_note_ev() 207 ev->data.note.note = val->note.note; in ump_midi2_to_note_ev() 383 midi2->note.note = midi1->note.note; in cvt_ump_midi1_to_midi2() 387 midi2->paf.note = midi1->paf.note; in cvt_ump_midi1_to_midi2() 454 midi1->note.note = midi2->note.note; in cvt_ump_midi2_to_midi1() 458 midi1->paf.note = midi2->paf.note; in cvt_ump_midi2_to_midi1() 638 data->note.note = event->data.note.note & 0x7f; in note_ev_to_ump_midi1() 775 data->note.note = event->data.note.note & 0x7f; in note_ev_to_ump_midi2() [all …]
|
| A D | seq_midi_event.c | 239 ev->data.note.channel = dev->buf[0] & 0x0f; in note_event() 240 ev->data.note.note = dev->buf[1]; in note_event() 241 ev->data.note.velocity = dev->buf[2]; in note_event() 305 cmd = 0x80 | (type << 4) | (ev->data.note.channel & 0x0f); in snd_midi_event_decode() 342 buf[0] = ev->data.note.note & 0x7f; in note_decode() 343 buf[1] = ev->data.note.velocity & 0x7f; in note_decode()
|
| A D | seq_prioq.c | 352 if (ev->data.note.channel != info->channel) in prioq_remove_match()
|
| A D | seq_clientmgr.c | 904 cell->event.time.tick += ev->data.note.duration; in snd_seq_dispatch_event() 908 ev->time.time.tv_nsec += 1000000 * (ev->data.note.duration % 1000); in snd_seq_dispatch_event() 909 ev->time.time.tv_sec += ev->data.note.duration / 1000 + in snd_seq_dispatch_event() 914 ev->data.note.velocity = ev->data.note.off_velocity; in snd_seq_dispatch_event()
|
| /sound/core/seq/oss/ |
| A D | seq_oss_event.c | 110 q->n.chn, 0, q->n.note, ev); in old_event() 290 if (note == 255 && info->ch[ch].note >= 0) { in note_on_event() 303 } else if (note >= 128) in note_on_event() 306 if (note != info->ch[ch].note && info->ch[ch].note >= 0) in note_on_event() 310 info->ch[ch].note = note; in note_on_event() 349 if (info->ch[ch].note >= 0) { in note_off_event() 350 note = info->ch[ch].note; in note_off_event() 352 info->ch[ch].note = -1; in note_off_event() 377 ev->data.note.channel = ch; in set_note_event() 378 ev->data.note.note = note; in set_note_event() [all …]
|
| A D | seq_oss_event.h | 30 unsigned char note; member 67 unsigned char note, parm; member
|
| A D | seq_oss_midi.c | 581 ossev.v.note = ev->data.note.note; in send_synth_event() 582 ossev.v.parm = ev->data.note.velocity; in send_synth_event() 583 ossev.v.chn = ev->data.note.channel; in send_synth_event()
|
| A D | seq_oss_device.h | 49 int note, vel; member
|
| A D | seq_oss_synth.c | 369 info->ch[i].note = -1; in reset_channels()
|
| /sound/drivers/opl3/ |
| A D | opl3_midi.c | 87 int note, struct snd_midi_channel *chan) in snd_opl3_calc_pitch() argument 89 int block = ((note / 12) & 0x07) - 1; in snd_opl3_calc_pitch() 90 int idx = (note % 12) + 2; in snd_opl3_calc_pitch() 306 int key = note; in snd_opl3_note_on() 325 prg = note; in snd_opl3_note_on() 525 note = fm->fix_key; in snd_opl3_note_on() 530 note += (fm->trnsps - 64); in snd_opl3_note_on() 562 vp->note = key; in snd_opl3_note_on() 570 vp2->note = key; in snd_opl3_note_on() 661 chan->number, chan->midi_program, note); in snd_opl3_note_off_unsafe() [all …]
|
| A D | opl3_voice.h | 18 void snd_opl3_note_on(void *p, int note, int vel, struct snd_midi_channel *chan); 19 void snd_opl3_note_off(void *p, int note, int vel, struct snd_midi_channel *chan); 20 void snd_opl3_key_press(void *p, int note, int vel, struct snd_midi_channel *chan); 21 void snd_opl3_terminate_note(void *p, int note, struct snd_midi_channel *chan); 31 void snd_opl3_drum_switch(struct snd_opl3 *opl3, int note, int vel, int on_off, struct snd_midi_cha…
|
| A D | opl3_synth.c | 115 struct snd_dm_fm_note note; in snd_opl3_ioctl() local 116 if (copy_from_user(¬e, argp, sizeof(struct snd_dm_fm_note))) in snd_opl3_ioctl() 118 return snd_opl3_play_note(opl3, ¬e); in snd_opl3_ioctl() 398 if (note->voice >= ((opl3->fm_mode == SNDRV_DM_FM_MODE_OPL3) ? in snd_opl3_play_note() 403 if (note->voice < MAX_OPL2_VOICES) { in snd_opl3_play_note() 406 voice_offset = note->voice; in snd_opl3_play_note() 410 voice_offset = note->voice - MAX_OPL2_VOICES; in snd_opl3_play_note() 414 reg_val = (unsigned char) note->fnum; in snd_opl3_play_note() 420 if (note->key_on) in snd_opl3_play_note() 423 reg_val |= (note->octave << 2) & OPL3_BLOCKNUM_MASK; in snd_opl3_play_note() [all …]
|
| A D | opl3_drums.c | 169 void snd_opl3_drum_switch(struct snd_opl3 *opl3, int note, int vel, int on_off, in snd_opl3_drum_switch() argument 178 if ((note < 35) || (note > 81)) in snd_opl3_drum_switch() 180 drum_mask = snd_opl3_drum_table[note - 35]; in snd_opl3_drum_switch()
|
| /sound/drivers/opl4/ |
| A D | opl4_synth.c | 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() 567 snd_opl4_do_for_note(opl4, note, chan, snd_opl4_voice_off); in snd_opl4_note_off() 578 void snd_opl4_terminate_note(void *private_data, int note, struct snd_midi_channel *chan) in snd_opl4_terminate_note() argument [all …]
|
| A D | opl4_local.h | 163 int note; member 225 void snd_opl4_note_on(void *p, int note, int vel, struct snd_midi_channel *chan); 226 void snd_opl4_note_off(void *p, int note, int vel, struct snd_midi_channel *chan); 227 void snd_opl4_terminate_note(void *p, int note, struct snd_midi_channel *chan);
|
| /sound/core/ |
| A D | ump_convert.c | 105 unsigned char status = midi2->note.status; in cvt_ump_midi2_to_legacy() 106 unsigned char channel = midi2->note.channel; in cvt_ump_midi2_to_legacy() 113 buf[1] = midi2->note.note; in cvt_ump_midi2_to_legacy() 114 buf[2] = downscale_16_to_7bit(midi2->note.velocity); in cvt_ump_midi2_to_legacy() 119 buf[1] = midi2->paf.note; in cvt_ump_midi2_to_legacy() 369 midi2->note.note = buf[1]; in cvt_legacy_cmd_to_ump() 370 midi2->note.velocity = upscale_7_to_16bit(buf[2]); in cvt_legacy_cmd_to_ump() 373 midi2->paf.note = buf[1]; in cvt_legacy_cmd_to_ump()
|
| /sound/synth/emux/ |
| A D | emux_voice.h | 34 void snd_emux_note_on(void *p, int note, int vel, struct snd_midi_channel *chan); 35 void snd_emux_note_off(void *p, int note, int vel, struct snd_midi_channel *chan); 36 void snd_emux_key_press(void *p, int note, int vel, struct snd_midi_channel *chan); 37 void snd_emux_terminate_note(void *p, int note, struct snd_midi_channel *chan);
|
| A D | emux_synth.c | 30 static void terminate_note1(struct snd_emux *emu, int note, 46 snd_emux_note_on(void *p, int note, int vel, struct snd_midi_channel *chan) in snd_emux_note_on() argument 63 key = note; /* remember the original note */ in snd_emux_note_on() 64 nvoices = get_zone(emu, port, ¬e, vel, chan, table); in snd_emux_note_on() 99 vp->note = note; in snd_emux_note_on() 165 vp->chan == chan && vp->key == note) { in snd_emux_note_off() 242 vp->chan == chan && vp->key == note) { in snd_emux_key_press() 374 vp->key == note) in terminate_note1() 385 snd_emux_terminate_note(void *p, int note, struct snd_midi_channel *chan) in snd_emux_terminate_note() argument 398 terminate_note1(emu, note, chan, 1); in snd_emux_terminate_note() [all …]
|
| A D | soundfont.c | 987 int note, sample_id; in load_guspatch() local 1075 note = freq_to_note(patch.base_note); in load_guspatch() 1076 zone->v.root = note / 100; in load_guspatch() 1077 zone->v.tune = -(note % 100); in load_guspatch()
|
| /sound/soc/ |
| A D | Kconfig | 64 Do note that it creates fake playback devices which do not interact
|