* Real-time per-note attenuation on single MIDI channel in emu10k1
@ 2004-12-08 11:27 William
2004-12-08 18:13 ` Clemens Ladisch
0 siblings, 1 reply; 3+ messages in thread
From: William @ 2004-12-08 11:27 UTC (permalink / raw)
To: alsa-devel
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/
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: Real-time per-note attenuation on single MIDI channel in emu10k1
2004-12-08 11:27 Real-time per-note attenuation on single MIDI channel in emu10k1 William
@ 2004-12-08 18:13 ` Clemens Ladisch
2004-12-10 16:11 ` William
0 siblings, 1 reply; 3+ messages in thread
From: Clemens Ladisch @ 2004-12-08 18:13 UTC (permalink / raw)
To: William; +Cc: alsa-devel
William wrote:
> 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/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Real-time per-note attenuation on single MIDI channel in emu10k1
2004-12-08 18:13 ` Clemens Ladisch
@ 2004-12-10 16:11 ` William
0 siblings, 0 replies; 3+ messages in thread
From: William @ 2004-12-10 16:11 UTC (permalink / raw)
To: Clemens Ladisch; +Cc: alsa-devel
Clemens Ladisch wrote:
>
> William wrote:
>> 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/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-12-10 16:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-08 11:27 Real-time per-note attenuation on single MIDI channel in emu10k1 William
2004-12-08 18:13 ` Clemens Ladisch
2004-12-10 16:11 ` William
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.