oscColorNote

• Nov 5, 2014 - 15:23

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

In reply to 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 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?

Attachment Size
Screenshot from 2014-11-07 13:20:42.png 80.83 KB

Do you still have an unanswered question? Please log in first to post your question.