< Back to IRCAM Forum

Musical Analysis - Note color change systemically based on position or pitch

Hello everyone, in OM7.6, it is possible to change the color of notes in all classes/score objects. I need (for the purposes of musical analysis using OM) a function that allows me to change the color of selected notes systemically based on a) specifying the position (posn-match) or b) specifying the pitch in MIDI cents. At the same time, I need to be able to mark one note or group of notes with one color, another group with another color, etc. The ideal solution would be something like posn-match, where I enter the pitch or position in one slot and the color in another slot, all in a tree list structure. Can you think of a solution?

CODE_color-note.txt (670 Bytes)

I used AI to create the attached code, but it doesn’t work.
Does anyone have any ideas?

Dear Petrh,

Hopefully, AI didn’t yet replace humans :slight_smile:
Here is a solution:

The patch:
Patch 12.omp (8.6 KB)

Best
K

Here a version which automatically include tied notes:
notecolors.zip (3.3 KB)

(unzip then import the folder in the workspace)

Best
K