Re: [LAU] Adjusting velocity curve for individual MIDI keys?

From: Len Ovens <len@email-addr-hidden>
Date: Thu Dec 26 2019 - 20:37:05 EET

On Thu, 26 Dec 2019, S. wrote:

> Hi, sorry for the very slow reply. I finally found time to play with Chris's
> LUA script for Moony.
>
> The thing that I still don't understand in this general concept is how to
> adjust the velocity for *specific* keys, not ranges. Everything thus far
> seems to only work for ranges. But how would I apply a filter to just a few
> keys, let's say MIDI keys # 2,17,19,21,23 ?

That would be five filters, One for each note with a range of one. If you
have control of the filtering program/plugin/script (and if it is LUA it
sounds as if you do) then instead of using > and < to set a range, use a
lookup table instead. You only have 127 notes, so set up a table of 128
bits and if bit[note] then apply processing. (probably not LUA style I've
shown but the concept works) It is ok to use 128 words if that is
easier/faster/all that is available.

Initialization would includ resetting all bits/words to 0/false and then
setting notes to filter to 1/true.

The only purpose for this I can see is for processing drums or other
one off sound effects.

--
Len Ovens
www.ovenwerks.net
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@lists.linuxaudio.org
https://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Wed Jan 1 02:17:07 2020

This archive was generated by hypermail 2.1.8 : Wed Jan 01 2020 - 02:17:07 EET