All of lore.kernel.org
 help / color / mirror / Atom feed
From: William <walsac3@orthoset.com>
To: alsa-devel@lists.sourceforge.net
Subject: Real-time per-note attenuation on single MIDI channel in emu10k1
Date: Wed, 8 Dec 2004 11:27:40 GMT	[thread overview]
Message-ID: <200412081127.LAA01444@orthoset.com> (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/

             reply	other threads:[~2004-12-08 11:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-08 11:27 William [this message]
2004-12-08 18:13 ` Real-time per-note attenuation on single MIDI channel in emu10k1 Clemens Ladisch
2004-12-10 16:11   ` William

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200412081127.LAA01444@orthoset.com \
    --to=walsac3@orthoset.com \
    --cc=alsa-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.