NoteWorthy Composer Forum

Forums => Tips & Tricks => User Tools => Topic started by: Opagust on 2020-04-30 09:05 pm

Title: AddRestMeasures
Post by: Opagust on 2020-04-30 09:05 pm
The reason I wrote this tool is this topic (https://forum.noteworthycomposer.com/?topic=10009.0).
This tool add 'rest measures' to every visible staff that has less measures then the active staff. Each 'rest measure' contains a copy of the corresponding measure in the active staff, replacing notes, chords and restchords with rests of the same duration.
Edit 03/05/2020: hidden staves remain unchanged
Installation: download the attached script, start NWC, open any file and drag anddrop the downloaded script onto the NWC window.
Title: Re: AddRestMeasures
Post by: Lawrie Pardy on 2020-05-01 12:28 am
This tool add 'rest measures' to every staff that has less measures then the active staff.
Does it affect ALL inactive staves, or only the visible ones?

I ask because I use templates that often have many more staves than I might use for any particular work and filling staves I'm not going to use would be something of a nuisance I reckon.
Title: Re: AddRestMeasures
Post by: RebeccaETripp on 2020-05-01 03:43 am
Thank you so much!  This is going to save me a lot of time!
Title: Re: AddRestMeasures
Post by: Opagust on 2020-05-01 06:44 am
Does it affect ALL inactive staves, or only the visible ones?

I ask because I use templates that often have many more staves than I might use for any particular work and filling staves I'm not going to use would be something of a nuisance I reckon.

Yes, it affects all inactive staves. May seem a nuisance, but who cares? Do you?
I could add a dialog to indicate the staves (not) to be affected, but that would make the tool less handy.
Title: Re: AddRestMeasures
Post by: Mike Shawaluk on 2020-05-01 11:21 am
Maybe just a single question whether to include hidden staves. Is there a way for a user tool to have a parameter passed in on the command line, so that the tool won't prompt for it when it is run? That would allow people to customize it so it doesn't ask questions that they will always answer the same.
Title: Re: AddRestMeasures
Post by: Opagust on 2020-05-01 12:16 pm
Maybe just a single question whether to include hidden staves. Is there a way for a user tool to have a parameter passed in on the command line, so that the tool won't prompt for it when it is run? That would allow people to customize it so it doesn't ask questions that they will always answer the same.
I think that's possible. I'll look into it.
Any suggestion for the command line parameter, something like 'hidden=no'?
Title: Re: AddRestMeasures
Post by: Rick G. on 2020-05-01 02:11 pm
IMO, the tool should only affect visible staves. A command line switch is not really needed.
Title: Re: AddRestMeasures
Post by: Opagust on 2020-05-01 03:24 pm
IMO, the tool should only affect visible staves. A command line switch is not really needed.
Any other opinions? ::)
Title: Re: AddRestMeasures
Post by: Opagust on 2020-05-03 11:55 am
OK, Rick, I follow. One can always unhide a staff, if needed.
New version in original post