5

Can somebody help me with writing Persian (Iranian) music accidentals including “Koron” and “Sori” in LaTeX?

enter image description here

Mehdi
  • 51

2 Answers2

9

Without the context provided by a minimum working example, it is hard to say how this would be implemented in the OP's context. However, constructing a koron is straightforward, by stacking a | and a >.

This MWE derives from Writing musical pitches

\documentclass{article}
\usepackage{stackengine}
\newcommand\koron{\kern-.7pt\raisebox{-1pt}{\ensurestackMath{%
  \stackengine{2.1pt}{\scriptstyle|}{\mkern.7mu\scriptscriptstyle
  >}{O}{l}{F}{F}{L}}}\kern-.7pt}
\newcommand\note[1]{\xnote[#1]}
\def\xnote[#1#2#3]{#1\ifx b#2$\flat_#3$\else\ifx#2##$\sharp_#3$\else
  \ifx#2\koron\koron$_#3$\else$_#2$\fi\fi\fi}
\begin{document}
\note{Eb3}
\note{A2}
\note{F#4}
\note{F\koron2}
\rlap{\rule[2pt]{20pt}{.4pt}}
$\flat\sharp\koron$
\end{document}

enter image description here

  • 1
    Most kind Steven, hi. I have finded the link of the image of the user: https://latex.org/forum/viewtopic.php?t=27479 – Sebastiano Oct 17 '19 at 11:33
  • 1
    Thanks for supplying such a nice trick to write quarter tones in MUSIXTEX environment. – Mehdi Oct 18 '19 at 11:11
  • 1
    @Mehdi If this answer is wholly satisfactory, such that you don't need to wait upon other possible answers, you could, if you wish, click the check mark to the left of my question, which will indicate to other readers that, of the several possible answers given, this one you found best answered your question. – Steven B. Segletes Oct 18 '19 at 12:18
1

If you use LilyPond (e.g., via \usepackage{lyluatex}), then there are some solutions on the web. For instance, a simple idea here: koron symbol in LilyPond

If you are interested in more elaborate (automated) approaches, here is another attempt: persian.ly by Kees van den Doel

Also I know of a Unicode font in which the koron and sori symbols are incorporated: Standard Music Font Layout (SMuFL)

Hadi S
  • 11