oscColorNote
Hello,
I'm trying to change the colors of the notes of a score with OSC commands.
The command "/color-note tick pitch color" works fine with the first measure, but not for the others.
For example...
I have a score in 4/4, with two half notes in every measure.
When I send the command "/color-note 0 67 green" the first half note (G) change to green.
When I send the command "/color-note 960 69 orange" the second half note (A) change to orange.
But when I send the command "/color-note 1920 71 green" the third half note (B) (in the second measure) doesn't change, and happens the same to the others notes.
Why it happens?
How can I change the colors of the others notes?
Comments
It works here. Are you sure the B is not a B flat?
In reply to It works here. Are you sure by [DELETED] 5
No, it isn't.
I have the same problem in other scores, I find this problem when there is a measure change.
An other example of another score is the next:
I have three quarters and then two eighth notes (in the same measure) and I can change the color of the first three quarters but not the two eighth notes.
I'm lost... :(
In reply to No, it isn't. I have the same by anna.
Can you share the score and your exact osc message? Also which version of MuseScore are you using?
In reply to Can you share the score and by [DELETED] 5
I'm using Musescore 2.0 (1514034)
/color-note 0 69 blue -> works
/color-note 480 71 orange -> works
/color-note 960 72 red -> works
/color-note 1440 74 red -> doesn't work
/color-note 1920 77 blue -> doesn't work
Thank you very much!
In reply to I'm using Musescore 2.0 by anna.
Try to upgrade to a more recent nighly, because it works for me using fd82ab6679
In reply to Try to upgrade to a more by [DELETED] 5
Thank you for your patience,
I've upgraded MuseScore to fd82ab6
But it still doesn't work... I've opened MuseScore with terminal to see what happens (I attached a screenshot) and looks like the command /color-note doesn't catch the two last arguments (pitch and color) when the second argument (tick) is a number with 4 digits.
Ups! I change my code (to send commands to MuseScore)
p << osc::BeginBundleImmediate
<< osc::BeginMessage("/color-note")<< 1920 << 77 << "blue" << osc::EndMessage
<< osc::EndBundle;
And now it works!
But when the code is this:
p << osc::BeginBundleImmediate
<< osc::BeginMessage("/color-note")<< argv[2] << argv[3] << argv[4] << osc::EndMessage
<< osc::EndBundle;
And run the code in the terminal "/color-note 1920 77 blue" it doesn't works...
So, the problem is with argv[]... How can I solve this?
In reply to Thank you for your by anna.
don't you need to start with argv[1]?
Maybe not, but when on cmd line, that number is passed as a string, in the code you're passing it as an int, I guess?
In reply to don't you need to start with by Jojo-Schmitz
Many thanks for your help!!!
I have a problem with the program that send the command, not with the OSC command of Musescore, sorry!