gabc gregoriocolor red notes?
  • probe
    Posts: 173
    Is it possible in gabc to colour the square notes rather than text red?
    fa <c>(f)</c> has no effect
    It might be a way in solfege teaching materials to highlight which notes are a half tone up or down from the previous note.
    Scales and Modes.png
    1486 x 650 - 65K
  • chonakchonak
    Posts: 9,283
    There is a way, but it requires hideous gabc coding with some low-level GregorioTeX macros inserted:

    %%
    (f3)DO(h)mi(h)n{e},(g[nv:\color{gregoriocolor}\GreGlyph{}{9}{\GreNextCustos{10}{}}{0}{}{}{}\color{black}])
    in(h) cæ(fe)lo(g)
    image

    And I don't claim to understand it, really.
    color-demo.jpg
    466 x 135 - 9K
    Thanked by 1probe
  • MatthewRoth
    Posts: 3,632
    It would be easier to make the semitone a punctum cavum and give the score a caption if necessary.
    Thanked by 1probe
  • joerg
    Posts: 144
    A hack like this would work:

    initial-style: 1;
    annotation: {\gdef\red{\pdfextension literal{1 0 0 rg}}\gdef\black{\pdfextension literal{0 0 0 rg}}};
    %%
    (c4) <v>\ </v>do(c) re(d) me(e) <v>{\red}</v>fa(f)<v>{\black}</v> so(g) la(h) ti(i) do(j)


    If you want just the note in red but not the text, the code would look like this:

    (c4) <v>\ </v>do(c) re(d) me(e) fa(f[nv:{\red}])<v>{\black}</v> so(g) la(h) ti(i) do(j)
    Thanked by 1probe
  • probe
    Posts: 173
    Thanks MatthewRoth, as I understand it that hollow shape is already used to mean a drone or tenor or chant tone held over more than one word so I don't want to give the learners the wrong idea. Same for my first idea of a diamond note.
    chonak offers a solution I'd need to be brave to try, so I might leave it at coloured lyrics.
    I've just seen joerg - I'll try that.
    Thanks all!

  • MatthewRoth
    Posts: 3,632
    I mean things can have two meanings. It’s not that big of a deal. It’s also clear in context and to a novice it looks like a white note.
  • Charles_Weaver
    Posts: 237
    I have used the hollow note for similar things in mode handouts precisely because gabc is not set up well for this. Joerg's solution looks pretty good though.

    Can I ask about the spelling of the solfège syllables though? I'm curious why you chose to spell them this way.
  • probe
    Posts: 173
    @Charles_Weaver I see it now - English getting in the way of Italian. I'll correct 'me' to 'mi'. Thanks!
  • Richard MixRichard Mix
    Posts: 2,992
    Not what was originally requested, but a more historical approach that also reinforces the idea of clefs was to use colored staff lines. Is this supported?
  • probe
    Posts: 173
    Going on from there, and picking up on Matthew's suggestion for white notes, this is what I have. I notice that gregorio creates a smaller gap after the half steps, causing uneven spacing. Can that be expanded? I tried two slashes but now it's too wide and it adds an unwanted hyphen.

    %%
    (c4).
    do(c) re(d) mi(e) fa (fr/) so(g) la(h) ti(i) do(jr) (;)
    do(j) ti (ir) la(h) so(g) fa(f) mi (er) re(d) do(c) (:)(z)
    do(c) re(d) mi(e) fa (fr//) so(g) la(h) ta (ixir) do(j) (;)
    do(j) ta(ixir) la (h) so(g) fa(f) mi (er) re(d) do(c) (::)(zz)



    Scales and Modes.png
    1384 x 538 - 60K