NoteWorthy Composer Forum

Forums => Tips & Tricks => Object Plugins => Topic started by: hmmueller on 2021-12-29 07:24 pm

Title: BreathMark.hmm (0.3)
Post by: hmmueller on 2021-12-29 07:24 pm
There are more breath mark symbols than the "comma" provided by NWC: At least some sorts of V-shaped symbols and tiny vertical bars are also used in vocal and brass scores. Because I don't want to search all the time for the necessary characters in some text fonts, I have assembled a very simple object that draws some of these forms.

The vertical position of the symbols is such that objects at staff position 0 put the symbols (hopefully) at the most useful, standard position, also for staff with more or less than 5 lines.  The small vertical bars are always on the top or bottom line of the staff (even if the object is moved up and down).

H.M.
Title: Re: BreathMark.hmm (0.1)
Post by: Mike Shawaluk on 2021-12-29 10:36 pm
For the "English" version of the V, which looks like a "tick mark", I have used the "square root" symbol - this is not correct (see attached example from a Rutter score), but I'm right now too lazy to rebuild this with some sort of lines or beziers or whatever.
That sounds very much like a gauntlet being thrown. Let me take a look at that (I used beziers in my Arpeggio and Brace objects)
Edit: Might not have to resort to beziers after all. There is a Unicode check mark symbol that appears to be present in Times New Roman.  I'm attaching a snippet with the symbol inserted as text. Unicode character U+2713
Title: Re: BreathMark.hmm (0.2)
Post by: hmmueller on 2021-12-30 08:43 am
Thanks a lot - I modified the object accordingly!

(However, I don't really understand what's going on: Neither NWC's nor Windows's character map show this symbol - and many more - in Times Roman on my Win10 installation; but the symbol is obviously available, i.e. it shows up in my NWC score ... hm.
Edit: The answer is font fallback and font linking, as remarked by Mike in this posting (https://forum.noteworthycomposer.com/?topic=9657.msg68995#msg68995) from 2017 - thanks!).

H.M.
Title: Re: BreathMark.hmm (0.2)
Post by: Mike Shawaluk on 2021-12-30 12:02 pm
as remarked by Mike in this posting (https://forum.noteworthycomposer.com/?topic=9657.msg68995#msg68995) from 2017
There are two signs that you are growing old. One of them is loss of memory, and I can't recall what the other one is.

I really don't remember that specific posting, although I do remember using Arial Unicode MS for certain characters that Times New Roman doesn't have.

Side note: I found the Unicode check mark character by googling "unicode check mark", so I wasn't aware that Charmap or NWC didn't show it.
Title: Re: BreathMark.hmm (0.2)
Post by: Flurmy on 2021-12-30 01:00 pm
Welcome, Mike!  :D
Title: Re: BreathMark.hmm (0.2)
Post by: Lawrie Pardy on 2021-12-30 01:01 pm
<snip>
Side note: I found the Unicode check mark character by googling "unicode check mark", so I wasn't aware that Charmap or NWC didn't show it.
</snip>
Both Win 10 Charmap and NWC charmap will show it, but it takes a bit of hunting down.  Ask me how I know...  ;)
Title: Re: BreathMark.hmm (0.2)
Post by: Mike Shawaluk on 2021-12-30 01:09 pm
The small vertical bars cannot be moved to a different place - they are always at the top or bottom staff line (which makes them only usable for 5-line staffs, I guess).
Although it's unlikely that people will use these objects with number of staff lines other than 5, you can make the following code changes to make them independent of staff line count:
Code: (lua) [Select · Download]
    local sl = nwcdraw.getStaffProp('Lines')
--Dash
    nwcdraw.moveTo(-0.7, math.floor((sl+1)/2)*2-3-nwc.drawpos:staffPos())
--Lower Dash
    nwcdraw.moveTo(-0.7, -1-math.floor(sl/2)*2-nwc.drawpos:staffPos())
Title: Re: BreathMark.hmm (0.3)
Post by: hmmueller on 2021-12-30 05:33 pm
Modified code for non-5-line staves according to Mike's suggestion; I use this to place all symbols at a "useful position".

H.M.