Skip to contentSkip to conversation

Real-time per-note attenuation on single MIDI channel in emu10k1

DISCUSSION William 2 participants 3 messages Dec 8, 2004 – Dec 10, 2004

lore
Share & tools
lore

William

author
#0 lore raw

Does the emu10k1 driver have any way of doing real-time attenuation for notes that are already playing at particular pitches on one MIDI channel? Using MIDI Expression Controller #11 affects all playing notes on one channel. I'd like to be able to attenuate in real-time a subset of the already playing notes on a single channel by specifying their pitches. Calling these two functions sequentially from inside the kernel

snd_emux_send_effect(port, chan, EMUX_FX_ATTEN, value, EMUX_FX_FLAG_ADD) snd_emux_update_channel(port, chan, SNDRV_EMUX_UPDATE_VOLUME);

changes the attenuation in real-time on {port,chan} but it attenuates all of the currently playing notes equally at all pitches, i.e. you cannot choose which pitches are attenuated.

If it's not yet possible to do it, how feasible would it be to write a new function, e.g. snd_emux_attenuate_note(port,chan,note,value) for attenuating in real-time a particular note pitch?

William

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/

#1 lore raw
Quoted 2 lines · William

Does the emu10k1 driver have any way of doing real-time attenuation for notes that are already playing at particular pitches on one MIDI channel?

The MIDI Aftertouch command should do what you want. See the snd_emux_key_press function.

HTH
Clemens

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/

author
#2 lore raw
Quoted 7 lines · Clemens Ladisch
Quoted 2 lines · William

Does the emu10k1 driver have any way of doing real-time attenuation for notes that are already playing at particular pitches on one MIDI channel?

The MIDI Aftertouch command should do what you want. See the snd_emux_key_press function.

That does exactly what I want (in kernel-space). Thanks!

William

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/