Skip to main content
Topic: MarkupPage.rg (Read 10713 times) previous topic - next topic

MarkupPage.rg

This is a User Object for putting text on a page that is unrelated to the staves.
Titles, dedications, lyricists, copyrights, catalog numbers and the like.
Up to 9 markups can be defined from each object.
Setting the Class to StaffSig allows the markup to be repeated for subsequent pages.

An example, Danny Boy, is attached. You can view the source at: http://library.duke.edu/rubenstein/scriptorium/sheetmusic/a/a23/a2303/a2303-4-72dpi.html
Registered user since 1996

Re: MarkupPage.rg

Reply #1
Hi Rick,
as is usual with your offerings this looks interesting, but in this case I could use a little extra help understanding the settings.
E.G. in the markups you have defined they all start:
/f9.
now, I understand the /f defines the font, but what do the "9" and the numerals following the point actually do?  I tried several substitutions of the "9" but couldn't make much of the results.

Perhaps the instructional section could be a little more verbose, possibly with some examples?
I plays 'Bones, crumpets, coronets, floosgals, youfonymums 'n tubies.

Re: MarkupPage.rg

Reply #2
I understand the /f defines the font, but what do the "9" and the numerals following the point actually do?
9 is the ninth font in NWC's scheme of things. (User1 as it turns out). The digit after the decimal point is the Style, and additional digits affect the size.
Registered user since 1996

 

Re: MarkupPage.rg

Reply #3
9 is the ninth font in NWC's scheme of things. (User1 as it turns out). The digit after the decimal point is the Style, and additional digits affect the size.
Is there a reference for font numbers in "NWC's scheme of things"?
I plays 'Bones, crumpets, coronets, floosgals, youfonymums 'n tubies.


Re: MarkupPage.rg

Reply #5
Ahhhh, I was looking at the font list in Page Setup and came up short - the "Staff Symbols" and Staff Cue Symbols" aren't, of course, listed there - D'oh

Thanks mate
I plays 'Bones, crumpets, coronets, floosgals, youfonymums 'n tubies.

Re: MarkupPage.rg

Reply #6
Another innovative object to have available in your repertoire...the example does a great depiction of an existing work.

Re: MarkupPage.rg

Reply #7
Rick the magician was a genius, but cryptic and always very scarce of explications.
After a full immersion in the meanders of the NWC plugins with the help of Mike, I felt brave enough to delve into his opera.
I just did for MarkupPage.rg more or less (much "less" than "more"  :D ) what Harald did for Markup.rg.
Here is what I was able to discover. Part of it are Rick's words.

This is a plugin for putting text on a page that is unrelated to the staves: titles, dedications, lyricists, copyrights, catalog numbers and the like.
Up to 9 markups can be defined from each object.
Setting the Class to StaffSig allows the markup to be repeated for subsequent pages.

Markup commands are prefixed by '/'. Supported commands are:
 /a - angle
 /c - character[.repeat]
 /d - duplicate or transparent
 /f - font[.styleDigit[size]]
 /h - home[ x]
 /p - page[offset]
 /r - return[y]
 /x - add to horizontal position
 /y - set vertical position

/a is in degrees (°) counterclockwise
/h, /r, /x and /y are in points (1/72 inch, 0.353 mm), positive is upward
/c is the (unicode) char decimal code
/p prints the page number (adding the optional [offset] starting page number)
/d repeats the following item the specified number of times; if the number is negative then it doesn't print but updates the x position as if it had written
/r resets the x position and increments the y position by the amount specified

The vertical positions are relative to the plugin marker position.
All that is not a command is written verbatim.
Items are displayed using Staff Italic (3) unless preceeded by /f

In /f the integer part of the number is the font number in NWC's scheme of things:
 1 = Staff symbols
 2 = Staff small symbols
 3 = Staff italic
 4 = Staff bold
 5 = Staff lyric
 6 = Page title text
 7 = Page text
 8 = Page small text
 9 = User1
10 = User2
11 = User3
12 = User4
13 = User5
14 = User6

If the font number is negative (e.g. /f-9) then the whiteout mode is used: everything is drawn in the background color.

In /f the first digit after the decimal point (styleDigit) is the font style:
0 = as specified in the font number
1 = normal
2 = bold
3 = italic
4 = bold italic
5 = as specified in the font number but as contour
6 = contour normal
7 = contour bold
8 = contour italic
9 = contour bold italic

Additional digits specify the fraction of the size (always < 1), e.g., /f9.03 means 30% of the size, /f9.015 means 15%.

"Menu options" ("Opts:") is a list of options, one for each possible markup: 1 Type, 2 Type, …, 9 Type, 1 Page, 2 Page, …, 9 Page

Options set to their default values appear empty.
Empty values at the end of the list are removed.

"Type" and "Page" for each item can also be set by the Context Menu. (Right click on the object in the score, then select "object")

"Type" list
 1 - 'Top left' (default)
 2 - 'Top center'
 3 - 'Top right',
 4 - 'Bottom left'
 5 - 'Bottom center'
 6 - 'Bottom right'
 7 - 'Staff left'
 8 - 'Staff center'
 9 - 'Staff right'

"Page" list
 1 - 'All' (default)
 2 - 'Odd'
 3 - 'Odd (except 1)'
 4 - 'Even'

Items of the same "Type" need to be located with /y

How many (so far) undocumented features!
Quote
"It is easier to write a new code than to understand an old one." - John von Neumann

Re: MarkupPage.rg

Reply #8
This reminds me of something I wrote 2 years ago: Markup Composer

I don't have the time now to look at it, but I put it in my todo-list. So maybe one day (sooner are later)  Iwill write a 'MarkupPage Composer' tool.
But no promise.
Always look on the bright side of life!

Re: MarkupPage.rg

Reply #9
"Page" list
 1 - 'All' (default)
 2 - 'Odd'
 3 - 'Odd (except 1)'
 4 - 'Even'

I thought there was missing a choice for 'First'. But, after experimenting a bit, I found out it can be obtained by setting the Class
to 'Standard'  (The "Page" list values work only with Class = 'StaffSig').
For Rick that must have been obvious offcourse.
 
Always look on the bright side of life!