Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wanted a simpler how-to for Arabic/Turkish score transcriptions #115

Open
topchyan opened this issue Nov 18, 2023 · 11 comments
Open

Wanted a simpler how-to for Arabic/Turkish score transcriptions #115

topchyan opened this issue Nov 18, 2023 · 11 comments

Comments

@topchyan
Copy link

I am working with transcriptions of classic ottoman music, which makes heavy use of microtone notation using EasyABC/abcm2ps in Linux. The problem I encounter is complexity of mapping accidentals to play properly in abc2midi as well. So far I found only what's mentioned on in abcmidi documentation. However when I reference this configuration even though notes may be displaying okay, they don't sound properly in MIDI. I am looking for a more simple how-to on how to use configuration settings. A cheat-sheet I found for microtones looks like this.

microtones

At least I would like to configure my scores to properly show and play my most common notes like what's shown there as g4+50, a4-50, g4+33, gs4-33, gs4+33,a4-33,a4+33, bb4+33

Thanks for any help.

@moinejf
Copy link
Collaborator

moinejf commented Nov 18, 2023

Some years ago (2020), we, Seymour Shlien (abcMIDI), Hudson Lacerda
(well-known musician in Brazil) and I (abcm2ps, abc2svg), had long
exchanges about the Turkish Makams Scales. Finally, we agreed in
common definitions. Here are the ones for abcMIDI and abcm2ps:

%--------------- header ---------------
I:abc-charset utf-8

% accidentals Arel - Ezgel
%%beginps
/sbar {M -4.0 6 RM 5.0 2 RL 1 SLW stroke}!
/hbar {M -3.0 -1.5 RM 7.0 3 RL 1.6 SLW stroke}!

/ft15156 {ft0}! % _60/53 - b5
/ft12084 {2 copy ft0 sbar}! % _48/53 - b4
/ft9012 {2 copy ft0 sbar}! % _36/53 - b3
/ft5940 {ft1}! % _24/53 - b2
/ft2868 {ft1}! % _12/53 - b1

/sh2868 {sh1}! % ^12/53 - #1
/sh5940 {sh1}! % ^24/53 - #2
/sh9012 {sh0}! % ^36/53 - #3
/sh12084 {sh0}! % ^48/53 - #4
/sh15156 {2 copy gsave T 0 0 1.2 dup scale sh1 grestore hbar}! % ^60/53 - #5
%%endps

%%MIDI temperamentequal 53 // 53-TET Turkish scale

%--------------- end header ---------------

Otherwise, abc2svg includes natively the Arel - Ezgel accidentals when
using

%%MIDI temperamentequal 53

In the ABC source, the accidentals are (as written in the PS
definitions):

_60/53 for b5
_48/53 for b4
_36/53 for b3
_24/53 for b2
_12/53 for b1
^12/53 for #1
^24/53 for #2
^36/53 for #3
^48/53 for #4

Here is a source example with abc2svg

http://moinejf.free.fr/abc/sipihr_pesrev.html

@topchyan
Copy link
Author

topchyan commented Nov 18, 2023 via email

@topchyan
Copy link
Author

I am trying to understand how the header code you mention co-relates with the individual accidentals from the score.

image

So far I have been using another set of codes for accidentals

image

My sample scale now looks like this

image

and it only starts showing up correctly when I disable this MIDI directive

%%MIDI temperamentequal 53 // 53-TET Turkish scale

image

All in all, I would like to stick with one modern and consistent markup for the music which is expected to last for a while.

Thanks for your replies and help!

@moinejf
Copy link
Collaborator

moinejf commented Nov 19, 2023

I added the correct PostScript definition of the turkish accidentals
in the %%MIDI documentation. In fact, all about the microtone
accidentals is in this page.

There are two ways for writing microtone accidentals in ABC (at least in
abcm2ps, abc2svg and txtmus).

The common way is to specify a fraction of a semi-tone before the
accidental, as "_23/44B". In this case, there is no notion of scale or
temperament.

The command "%%MIDI temperamentequal " divides the octave into
intervals. These intervals are mapped to the 12 notes of the
octave for the scale to be the closest to a well tempered scale.
In this case, as the microtone divider is known, only the numerator
appears in the accidentals like "_2B".

Mixing both ways is not a good idea! You may also note that, with
temperamentequal, an accidental without a numerator as "_B" is
ambiguous.

@topchyan
Copy link
Author

topchyan commented Nov 19, 2023 via email

@timmbo9
Copy link

timmbo9 commented Nov 19, 2023 via email

@moinejf
Copy link
Collaborator

moinejf commented Nov 20, 2023

You are right, in the documentation index, %%MIDI does not appear as being a abcm2ps parameter.
   http://moinejf.free.fr/abcm2ps-doc/MIDI.html

@topchyan
Copy link
Author

Jef could you please add an abc2svg equivalent of this? I am not sure how to define these in %%beginsvg..%%endsvg.
Thanks!

% abcm2ps PostScript definition of the Arel - Ezgel accidentals

%%beginps
/sbar {M -4 6 RM 5 2 RL 1 SLW stroke}!
/hbar {M -3 -1.5 RM 7 3 RL 1.6 SLW stroke}!
/num2 {M 2.0 6.0 RM /Times-Roman 10 selectfont (2) show}!
/num3 {M 4.0 6.0 RM /Times-Roman 10 selectfont (3) show}!

/ft15156 {ft0}! % _60/53 - _5
/ft12084 {2 copy ft0 sbar}! % _48/53 - _4
/ft9012 {2 copy ft0 2 copy num3 sbar}! % _36/53 - _3
/ft5940 {2 copy ft1 num2}! % _24/53 - _2
/ft2868 {ft1}! % _12/53 - _1

/sh2868 {sh1}! % ^12/53 - ^1
/sh5940 {2 copy sh1 num2}! % ^24/53 - ^2
/sh9012 {2 copy sh0 num3}! % ^36/53 - ^3
/sh12084 {sh0}! % ^48/53 - ^4
/sh15156 {2 copy gsave T 0 0 1.2 dup scale sh1 grestore hbar}! % ^60/53 - ^5
%%endps

X:3
%%MIDI temperamentequal 53
M:none
L:1/4
K:C
_B _5B _4B _3B _2B _1B =B | =c ^1c ^2c ^3c ^4c ^5c ^c |

@moinejf
Copy link
Collaborator

moinejf commented Dec 15, 2023

That's simple: just remove the %%beginps..%%endps sequence!
(the definition of the Arel - Ezgel accidentals are included by the command "%%MIDI temperamentequal 53" - I updated the documentation)

@topchyan
Copy link
Author

topchyan commented Oct 7, 2024

I'm working on this classical Turkish score by Armenian Ottoman composer Nigoğos Ağa Taşçıyan (1836-1885).
The PDF seems to render correctly. However, MIDI playback just doesn't sound right (I can't attach the MIDI file here because it is unsupported by GitHub).

Akşam olur güneş gider şimdi buradan - Hicâzkâr Şarkı.pdf

The abcnotation is as follows:

`%%beginps
/micronewps
/sbar {M -3.0 4.0 rmoveto 4.0 4.3 rlineto stroke}!
/hbar {M -3.0 -1.0 rmoveto 6.0 1.5 rlineto stroke}!
/sh2055 {2 copy ft1 hbar}! %_9/8
/ft1543 {2 copy ft0 sbar}! %_7/8
/ft515 {2 copy ft1543 }! %_3/4
/ft259 {2 copy ft3 }! %_2/4
/ft3 {gsave -1 1 scale exch neg exch ft0 grestore}! %^1/4
/sh3 {2 copy sh1 }! %^1/4
/sh259 {2 copy sh1 }! %^2/4
/sh515 {2 copy sh0 }! %^3/4
/sh1543 {2 copy sh0 sbar}! %^7/8
/sh2055 {2 copy sh1 hbar}! %^9/8
%%endps

X:93
T:Akşam olur güneş gider şimdi buradan
T:Hicâzkâr Şarkı
C:Nigoğos Ağa Taşçıyan (1836-1885)
F:https://www.youtube.com/watch?v=X9mfhSwMU2M
M:9/8
L:1/8
Q:1/8=210
R:Aksak
K:G _/B _3/4e _3/4A
%%MIDI tuningsystem comma53
%%%MIDI temperamentequal 53
S f2 g g g2 g3 | =a2 _b a gf _3/4ed c | d2 e d c2 _b=a g |
f g3 gf ed c | d2 e d c2 e/d/c c | c3 G _3/4AB c2 B/d/ |:
c2 d _2/4e =f2 g3 | d2 e>d cd BA G | d>c c>B B>A BA A/G/ |1
G =f2 _2/4e/d/ d/c/c/B/ c2 B/d/ :|2 G3 d/e/ d/c/c/B/ c2 B/d/ ||
c2 d e d/c/c/B c3 | D2 e {f}e/d/ d/c/c/B/ c3 | d2 e d c2 _b=a g |
f g3 gf ed c | d2 ed c2 gf e | c3 G AB c2 B/d/ |
c2 d _2/4e =f2 g3 | d2 e>d cd BA G | d>c c>B B>A BA A/G/ |1
G =f2 _2/4e/d/ d/c/c/B/ c2 B/d/ : |2 G3 d/e/ d/c/B/A/ G3 ||:
g/f/g/a/ g d e/d/e/f/ g/f/e/d/ c | g/f/g/a/ g d e/d/e/f/ g2 z | g/f/g/a/ g d e/d/e/f/ g/f/e/d/ c |1,3
B/c/d/e/ d/c/ c/B/ B/A/A/G/ G2 z :|2 B/c/d/e/ d/c/ c/B/ B/A/A/G/ Gd e/Sf/ ||
%
W:1.Akşam olur güneş gider şimdi buradan
W:Garip garip kaval çalar çoban dereden
W:Pek körpesin esirgesin seni yaradan
W:Sonra yârdan ayrılırsın, gel yavrucağım
W:
W:2.Dağları duman bürüdü, ağyar seçilmez
W:Avcı Yolda tuzak kurmuş, bir yâre geçirmez
W:Vefasızın Meclisinde Bade içilmez
W:Gir sürüye kurt kapmasın, gel yavrucağım`

My observations are such that microtone accidentals stated in key signature are not honored in MIDI playback , however when the accidentals are forced as in the note _3/4e in measure 2 and _3/4A in measure 6 then the playback is close to what's expected (although I would like to know how to tweak the pitches in the configuration to make them sound right).

Since I am using EasyABC which does not (and probably will not) support abc2svg and is limited to abcm2ps for the foreseeable future and a very large number of similar scores are in existance (SymbTr project), I guess the expectation is that abcm2ps should probably support these microtone accidentals when used as key signatures. I know that abcjs library already does that but it also lacks flexibility of rendering needed symbols -- postscript commands now seem the most viable option that exists.

Lastly, I attempted to MIDI temperamentequal 53 command in place of %%MIDI tuningsystem comma53 to see if this would enable the better rendering of the sound usign Arel-Ezgel, but then the score did not engrave at all.

Thank you for your attention!

@moinejf
Copy link
Collaborator

moinejf commented Oct 7, 2024

Hi Avetik,
abcm2ps is music typesetter. It does not play any music.
For playing, I think that EasyABC uses abcMIDI (https://abcmidi.sourceforge.io/).

About the MIDI commands in abcm2ps, only %%MIDI temperamentequal 53 is handled.
When this command is used, the accidentals in the source are in the form ^1 ^2 ^3 ... _1 _2 _3 ...
and, indeed, the definition of these accidentals must be present at generation time for correct rendering (see above in this github issue).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants