Another Superscript Question

• Apr 2, 2018 - 12:49

I wonder if it is possible to keep the "7" as regular size and change just the "13" to superscript. I understand that if I type 713, according to the script line (see screenshot), everything that is between the m:0:-7 xxx m:0:7 will be rendered as superscript. Is there anything I can do to keep the 7 out of this alteration?

Attachment Size
C7(13).PNG 2.46 KB

Comments

Sure, just put the "7" before the position adjustment. So, "7 m:0:-7 13 m:0:7" or whatever. Again, probably you also want the 13 smaller, so consider define an "s13" for that purpose.

In reply to by Marc Sabatella

It works! Thanks Marc, you are the man. Regarding the "s13", see the picture below. That's the part I have scratched my head in order to understand its interaction with the rest of the script. I know that it has something to do with superscript but I have no idea how it works. Notice that 6, 7 and 9 have comment marks so every time I need to type a chord like "C7", it will show exactly like you see here.

Attachment Size
Superscript.PNG 32.14 KB

In reply to by Toninho Zemuner

I'm not quite sure what you are asking. Seems like what you are showing should work. This shows most numbers being defined at 75% scaling (mag = 0.75), so most numbers will render small. The exceptions are the ones you have commented out - 6, 7, and 9 - which will thus appear full size. So that should mean if you have a render statement that includes 7 and (9) - which is distinct from regular 9 - the 7 will appear full size, the (9) small, and all you need to do is use the "m" commands to position the (9) higher. So this approach should indeed work.

But for the record, that's not how I do it in chords_jazz.xml. Instead, I let the regular numbers be full size, and define smaller versions I call "s9" et al. That way I can use full or regular size versions of each number as needed. Because MuseJazz has these smaller versions already predefined, I don't define s9 as just a smaller "9", I use an explicit reference to the character code for the small 9 within MuseJazz. But I do define small parens and other symbols - see the definitions for "s(", "s)", and others with a mag of 0.85.

The structure of chords_jazz.xml is very generalized so that I don't need to define rendering rules for each chord individually as you are doing. But that approach does work, and is probably simpler if you have just a handful you want to define. It is not so viable when there are potentially hundreds.

Do you still have an unanswered question? Please log in first to post your question.