All of lore.kernel.org
 help / color / mirror / Atom feed
* MIDI velocity rewriting
@ 2003-10-08  4:21 Ryan Underwood
  2003-10-08 12:44 ` Manuel Jander
       [not found] ` <NDBBLGIKBJENLAMOLFHGOENODHAB.mknecht@controlnet.com>
  0 siblings, 2 replies; 4+ messages in thread
From: Ryan Underwood @ 2003-10-08  4:21 UTC (permalink / raw)
  To: alsa-devel


Hi,

A problem that I have on some MIDI keyboards is that the velocity
information sent by the keyboard is just too low.  Banging on the
keyboard only results in a velocity of 90 for instance, instead of 127.
I can fix this in MIDI that I have captured by scanning for note-on
messages and adding either a fixed amount to them, or using a curve so
that notes closer to the max are only increased a little, where ones
that are very low get increased a lot.

The question is, does anyone know of any other way to make a MIDI louder
besides setting the master volume of the performer to highest, and doing
this rewriting of velocity information?  If not, I also had the idea
that perhaps this would be a useful thing to do in the ALSA MIDI layer.
For example, if the user specified to do so, the ALSA layer would
automatically increase velocity in the desired way for each note-on
message that comes from a given channel into the computer.

Of course there are probably things I haven't thought about, but
comments would be appreciated.

-- 
Ryan Underwood, <nemesis at icequake.net>, icq=10317253


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: MIDI velocity rewriting
  2003-10-08  4:21 MIDI velocity rewriting Ryan Underwood
@ 2003-10-08 12:44 ` Manuel Jander
  2003-10-08 13:03   ` Takashi Iwai
       [not found] ` <NDBBLGIKBJENLAMOLFHGOENODHAB.mknecht@controlnet.com>
  1 sibling, 1 reply; 4+ messages in thread
From: Manuel Jander @ 2003-10-08 12:44 UTC (permalink / raw)
  To: Ryan Underwood; +Cc: Alsa Devel list

Hi Ryan,

I encountered this same problem time ago on Windows using CakeWalk
Proaudio. But in this case, CakeWalk Proaudio provides a function to add
a offset to all MIDI notes on a given track. This isn't the best
solution since you loose dynamic range. Scaling would be better.
Having a solution like this in the library level, common for all
applications sounds reasonable to me. Many keyboards don't use the full
7 bit scale, so that could be considered as a "Hardware configuration
parameter".

I suggest: write a patch, and show it to Takashi and Jaroslav. They are
the boss around here :D 

Best Regards

Manuel

On Wed, 2003-10-08 at 00:21, Ryan Underwood wrote:
> Hi,
> 
> A problem that I have on some MIDI keyboards is that the velocity
> information sent by the keyboard is just too low.  Banging on the
> keyboard only results in a velocity of 90 for instance, instead of 127.
> I can fix this in MIDI that I have captured by scanning for note-on
> messages and adding either a fixed amount to them, or using a curve so
> that notes closer to the max are only increased a little, where ones
> that are very low get increased a lot.
> 
> The question is, does anyone know of any other way to make a MIDI louder
> besides setting the master volume of the performer to highest, and doing
> this rewriting of velocity information?  If not, I also had the idea
> that perhaps this would be a useful thing to do in the ALSA MIDI layer.
> For example, if the user specified to do so, the ALSA layer would
> automatically increase velocity in the desired way for each note-on
> message that comes from a given channel into the computer.
> 
> Of course there are probably things I haven't thought about, but
> comments would be appreciated.



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: MIDI velocity rewriting
  2003-10-08 12:44 ` Manuel Jander
@ 2003-10-08 13:03   ` Takashi Iwai
  0 siblings, 0 replies; 4+ messages in thread
From: Takashi Iwai @ 2003-10-08 13:03 UTC (permalink / raw)
  To: manuel.jander; +Cc: alsa-devel

At Wed, 08 Oct 2003 08:44:59 -0400,
Manuel Jander wrote:
> 
> Hi Ryan,
> 
> I encountered this same problem time ago on Windows using CakeWalk
> Proaudio. But in this case, CakeWalk Proaudio provides a function to add
> a offset to all MIDI notes on a given track. This isn't the best
> solution since you loose dynamic range. Scaling would be better.
> Having a solution like this in the library level, common for all
> applications sounds reasonable to me. Many keyboards don't use the full
> 7 bit scale, so that could be considered as a "Hardware configuration
> parameter".
 
an easy way is to write a program working as an ALSA sequencer client,
which just does as described above.  running it with SCHED_FIFO, you
don't have delay.  if you need a MIDI device to access, you can
connect it/from the virmidi device.

although....

> I suggest: write a patch, and show it to Takashi and Jaroslav. They are
> the boss around here :D 

... a patch is always welcome :)


Takashi


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: MIDI velocity rewriting
       [not found] ` <NDBBLGIKBJENLAMOLFHGOENODHAB.mknecht@controlnet.com>
@ 2003-10-15 21:42   ` Ryan Underwood
  0 siblings, 0 replies; 4+ messages in thread
From: Ryan Underwood @ 2003-10-15 21:42 UTC (permalink / raw)
  To: Mark Knecht; +Cc: alsa-devel


Mark,

On Wed, Oct 15, 2003 at 09:16:52AM -0700, Mark Knecht wrote:
> Note the end of the description. Possibly something like this would work?
> 
> http://tse3.sourceforge.net/doc/api/TSE3__MidiFilter.html
> 
> Or possibly
> 
> http://www.musickit.org/MusicKitConcepts/waveshapingparameters.html
> 
> I just googled on MIDI velocity scaling. There's lots of info out there. I
> believe there are some Windows key switch tools that will do this also. I've
> seen people talk about them in the Northern Sounds forums.

Excellent.  I was looking for a good term to describe what I was trying
to do, and the best I could come up with was "rewriting".  "Velocity
scaling", however, produces tons of results to sift through.  I'm sure
at least one of these will produce a satisfactory solution.

Thanks much!

-- 
Ryan Underwood, <nemesis at icequake.net>, icq=10317253


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-10-15 21:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-08  4:21 MIDI velocity rewriting Ryan Underwood
2003-10-08 12:44 ` Manuel Jander
2003-10-08 13:03   ` Takashi Iwai
     [not found] ` <NDBBLGIKBJENLAMOLFHGOENODHAB.mknecht@controlnet.com>
2003-10-15 21:42   ` Ryan Underwood

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.