BigAl2121
2008-12-11 23:29:57
I am trying hook up a midi keyboard to my computer workstation so I can hear the output on my computer speakers. The problem is that if I don't strike my piano keys hard enough, it sounds really quite (barely audible). When I hit the keys hard it is way too loud. The keyboard itself (with headphones on) has a more realistic feel compared to my computer rig. When running through Bome's Mouse Keyboard it sounds as if there are only 3 or 4 different volumes, instead of a logarithm ... or x/y function.
I want a nice sliding-scale for key-strike velocity, relative to volume. I know that I need to create rule(s) within the Midi Translator to adjust the output on my computer. I have the Midi Translator hooked into the Mouse Keyboard properly.
Can you give me clue what type of rules I should add? Here is a rough example of something I would do in an emacs scripting language.
// Returns a number between 1 and 100.
var volumePercentage = getKeyStrokeVelocity();
if( volumePercentage < 10){
volumePercentage += 15;
}
else if( volumePercentage < 20){
volumePercentage += 10;
}
else if( volumePercentage < 30){
volumePercentage += 5;
}
// Takes a number between 0 and 100
setMasterVolume(volumePercentage);
I want a nice sliding-scale for key-strike velocity, relative to volume. I know that I need to create rule(s) within the Midi Translator to adjust the output on my computer. I have the Midi Translator hooked into the Mouse Keyboard properly.
Can you give me clue what type of rules I should add? Here is a rough example of something I would do in an emacs scripting language.
// Returns a number between 1 and 100.
var volumePercentage = getKeyStrokeVelocity();
if( volumePercentage < 10){
volumePercentage += 15;
}
else if( volumePercentage < 20){
volumePercentage += 10;
}
else if( volumePercentage < 30){
volumePercentage += 5;
}
// Takes a number between 0 and 100
setMasterVolume(volumePercentage);