NoteWorthy Composer Forum

Forums => General Discussion => Topic started by: Jaynern on 2018-12-03 01:37 am

Title: text position
Post by: Jaynern on 2018-12-03 01:37 am
I'm new to User Tools.  I'm thrilled to find "Transpose Chords" tool, which transposes all my text chord names.  But sometimes when I transpose a song, I need all the chord names to move 1 or 2 positions higher or lower.  Before I reinvent the wheel, does a user tool exist that would let me input the position I'd like the chord names to end up in?
Title: Re: text position
Post by: Lawrie Pardy on 2018-12-03 03:11 am
Yup, I use the one called "Global_Mod" to do this all the time.

In the Group ".Starter Tools" you will find "Global Modification (adp)".
If you run this tool you'll get a dialogue box that asks you to "Enter your global modification expression:" and there will be a default "help" highlighted in the box.

Change this to:
Text,Font==font_name Pos+=2
Where font_name is the font you're using (as shown in the Name column of the Fonts tab of the page setup dialogue) - I always set "SwingChord" as User6 so for me the expression would be:
Text,Font==User6 Pos+=2
The Pos+=2 will move every instance UP 2 positions.

You could use other numbers instead of 2 if you want.  Also, Pos=-2 will move them DOWN 2 positions.  Or you could use, say, Pos=14 to set ALL of them to Pos 14

NOTE there is a space between the font name and the "Pos" directive - these commands are case sensitive too.

For more information on using user tools see my guide:
https://nwc-scriptorium.org/nwc2scripts/invocationinstructions.pdf

Also see:
https://nwc-scriptorium.org/nwc2scripts.html
for other user tools and their instructions.  This section hasn't seen much change for a while as most user tools etc are revealed in the "User Tools" section of the "Tips & Tricks" main forum these days:
https://forum.noteworthycomposer.com/?board=7.0
Title: Re: text position
Post by: William Ashworth on 2018-12-03 05:58 am
What Lawrie said, plus this: if you don't want to have to work out the proper command syntax, use GlobalMod.og instead. It'll walk you through designing the command using a set of easily-understood queries.
Title: Re: text position
Post by: Flurmy on 2018-12-03 08:26 pm
... or use the filtered properties.
Title: Re: text position
Post by: Jaynern on 2018-12-05 02:47 pm
THANK YOU!  I saw the Global Modification and thought that was my answer, but could never get the syntax right.  Got it now!  Thanks so much, guys!
Title: Re: text position
Post by: Jaynern on 2018-12-05 03:02 pm
By the way, where would I find the GlobalMod.og?
Title: Re: text position
Post by: Mike Shawaluk on 2018-12-05 03:17 pm
By the way, where would I find the GlobalMod.og?
I had a hard time finding it also, until I realized it is actually named GlobMod.og (https://forum.noteworthycomposer.com/?topic=9383.msg67062#msg67062).
Title: Re: text position
Post by: William Ashworth on 2018-12-05 03:28 pm
I had a hard time finding it also, until I realized it is actually named GlobMod.og (https://forum.noteworthycomposer.com/?topic=9383.msg67062#msg67062).
Interesting. My copy of it is named GlobalMod.og. Opagust....?
Title: Re: text position
Post by: Mike Shawaluk on 2018-12-05 03:44 pm
Interesting. My copy of it is named GlobalMod.og. Opagust....?
Actually, I guess we are both right. The forum post has "GlobMod.og" in the title, but the attached file is named "GlobalMod.og".  Unfortunately, when you do a forum search on "GlobalMod.og", the only hits you get are you & I arguing about the name :)   The search function doesn't find the attached file name.

Perhaps @Opagust should edit the forum post title so its name agrees with the attachment, in case other people are trying to find it in the future.
Title: Re: text position
Post by: Opagust on 2018-12-05 05:37 pm
Perhaps @Opagust should edit the forum post title so its name agrees with the attachment, in case other people are trying to find it in the future.

Done :-[
Thanks, Mike, I humbly apologize.