gregorio-project / gregorio

The Gregorio Project
http://gregorio-project.github.io
Other
155 stars 43 forks source link

Staff with two lines of F and C cleffs #1561

Open fstirpe opened 2 years ago

fstirpe commented 2 years ago

Hi All. I'm trying to draw a staff with the two cleff lines (F in red and C in yellow). Does exist a way with Gregorio or with LaTex for doing it? In attachment you can find a B&W example of what i'm looking for. I wonder if you could help me.

Two lines

Thanks and regards. Fabio.

rpspringuel commented 2 years ago

There is no way for different lines within the same set of staff lines to be different colors within Gregorio. Different scores can have different color lines and it's probably feasible to change the color of the lines between lines within a score, but that's about it.

Of course, LaTeX will allow you to draw arbitrary lines with arbitrary colors (with the right packages), but they won't be Gregorio scores.

fstirpe commented 2 years ago

Hi Mr. Springuel and thanks for your answer.

How Gregorio and/or GregorioTex generate the staff? In your opinion is it possible to slightly work inside the staff generation mechanism to have the two lines-staff with red and yellow?

Thanks and regards for your help. Fabio.

Il giorno lun 14 feb 2022 alle ore 22:23 Br. Samuel Springuel < @.***> ha scritto:

There is no way for different lines within the same set of staff lines to be different colors within Gregorio. Different scores can have different color lines and it's probably feasible to change the color of the lines between lines within a score, but that's about it.

Of course, LaTeX will allow you to draw arbitrary lines with arbitrary colors (with the right packages), but they won't be Gregorio scores.

— Reply to this email directly, view it on GitHub https://github.com/gregorio-project/gregorio/issues/1561#issuecomment-1039576846, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWXW2KFHYOY52ZG6ELKA7ODU3FXGRANCNFSM5OMQ47LQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

rpspringuel commented 2 years ago

The function which generates the lines is \gre@generatelines. If you redefine that function in your document, then you might be able to achieve what you want.