yogi
(yogi)
January 5, 2011, 5:29pm
1
Hi,
I’m experiencing a problem with the velocity argument when I trigger notes through OSC:
a value between -1 & 129 does nothing ( I know it’s supposed to be 0 - 127 )
under - 1 & above 129 nothing is triggered at all.
What am I doing wrong ?
Cheers
Conner_Bw
(Conner_Bw)
January 5, 2011, 5:51pm
2
How are you triggering notes? And what are you expecting?
It works for me using this PHP class .
Example:
require 'OSC.php';
$c = new OSCClient();
$c->set_destination("127.0.0.1", 8000);
$m = new OSCMessage("/renoise/trigger/note_on", array(
-1, 0, 100, 60
));
$c->send($m);
$m = new OSCMessage("/renoise/trigger/note_on", array(
-1, 1, 101, 80
));
$c->send($m);
$m = new OSCMessage("/renoise/trigger/note_on", array(
-1, 2, 102, -10
));
$c->send($m);
$m = new OSCMessage("/renoise/trigger/note_on", array(
-1, 3, 103, 200
));
$c->send($m);
$m = new OSCMessage("/renoise/trigger/note_on", array(
-1, 4, 104, 128
));
$c->send($m);
Invalid data rejected, the rest is fine?
yogi
(yogi)
January 6, 2011, 2:21am
3
I send this : /renoise/trigger/note_on 1 0 60 90
then it plays the right instrument on the right track at the right pitch, but the velocity isn’t received.
(the server in renoise shows “/trigger/note_on with 4 arguments” & the first 3 arguments are fine so I assume
my message is received correctly)
Could that possibly come from any global setting that could interfere ?
satobox
(satobox)
January 6, 2011, 4:24am
4
Maybe, aren’t you unchecking the “Velocities” in the MIDI Preferences panel??
yogi
(yogi)
January 6, 2011, 2:22pm
5
oh!
That was it, I forgot about that midi preferences panel…
Cheers.