|
|
MakeMusic Forum > Public Forums > Finale - Macintosh - FORUM HAS MOVED! > Changing measure numbering regions in one go | Forum Quick Jump
|
      |  Charles Lawrence Registered Member

       Date Joined Dec 2009 Total Posts : 3638 | Posted 3/10/2015 8:09 AM (GMT -6) |   |
Vaughan,
I'm sure this can be done using JW Lua. If Jari sees this, maybe he will provide a script snippet. I will work on it when I get a chance. Maybe I can come up with a solution.
PS: [UPDATE] I have been looking at this project in JW Lua, and it turns out to be relatively easy to accomplish. The most time consuming part is the UI and I am working out the details of it now. It will ask what at measure number you want to insert measures and how many. The script will then insert the given number of measures before after the given insert measure number, and then appropriately set all affected measure number regions.
"Anything is possible if you don't know what you are talking about!"
Intel(R) Core(TM) i7-5930K CPU with 6 dual core processors @ 3.50 GHz (12 threads)
Realtek High Definition on board audio NVIDIA GeForce GTX 980 GPU with 4GB ram
512 GB SSD
Four 4TB and one 1TB internal SATA HD's Microsoft Windows 8.1 Professional with Media Center x64 Edition, (06.03.9600.00) Finale versions: 2011b.r2, 2012c.r13, 2014d.v5030
GPO4.02
Cakewalk SONAR X3
"There is a world of difference between a person who has a big problem and a person who makes a problem big." – John Maxwell
Post Edited (Charles Lawrence) : 3/10/2015 10:20:53 AM (GMT-5) | Back to Top | |
  |  Charles Lawrence Registered Member

       Date Joined Dec 2009 Total Posts : 3638 | Posted 3/10/2015 4:18 PM (GMT -6) |   |
Vaughan et al,
Attached is my JW Lua script to do what you request. Download it and save it somewhere on your computer.
To use it, you must have installed the JWLua plug-in for your platform. Get it here. http://finaletips.nu/index.php/download/category/28-beta-version
With your document open, invoke the JW Lua plug-in. Click on the "Development" tab at the top of the JW Lua window. Click on the "open" button and navigate to the script file you downloaded and open the script in the editor window pane. Click on the "Run script" button. A dialog box will explain the script. A second dialog will ask you to enter the number of measures to insert, and the measure number before which to insert. Sorry, I was confusing myself earlier as to whether it was before/after.
Enjoy! If something does not look right after running the script, you can always undo immediately. If you see something you want added, let me know. It only inserts measures for now. I will work on deleting measures later.
PS: There is a way to put a script in the Finale Plug-ins Menu, so you do not have to open the JW Lua window to run the script. Look here: http://jwmusic.nu/jwplugins/wiki/doku.php?id=jwlua:user_faq
PPS: Attachment removed due to flawed operation. See below for temporary workaround.
"Anything is possible if you don't know what you are talking about!"
Intel(R) Core(TM) i7-5930K CPU with 6 dual core processors @ 3.50 GHz (12 threads)
Realtek High Definition on board audio NVIDIA GeForce GTX 980 GPU with 4GB ram
512 GB SSD
Four 4TB and one 1TB internal SATA HD's Microsoft Windows 8.1 Professional with Media Center x64 Edition, (06.03.9600.00) Finale versions: 2011b.r2, 2012c.r13, 2014d.v5030
GPO4.02
Cakewalk SONAR X3
"There is a world of difference between a person who has a big problem and a person who makes a problem big." – John Maxwell
Post Edited (Charles Lawrence) : 3/11/2015 11:08:34 AM (GMT-5) | Back to Top | |
  |  Vaughan Registered Member
        Date Joined Jun 1999 Total Posts : 4984 | Posted 3/11/2015 5:18 AM (GMT -6) |   | I can see why MM hasn't tried to implement something like this. It's more complicated than it seems. Invoking the lua script does indeed insert measures and extend the measure numbering regions although, strangely, the regions after the insertion point all begin with an offset instead of by 1. In addition, all of the measure attributes have stayed put: alternative barlines and, especially, key and time signature changes have remained in their old positions but the music has been pushed to the right, with disastrous results. I'm afraid that for the time being I'll have to go back to inserting the measures in the old way (which offsets all attributes) and just change the number regions by hand. Vaughan
Finale 3.2 - 2014d, Sibelius 4 - 7 Tobias Giesen's plugins, full version, Robert Patterson plugins, Dolet 6 plugin MacOS 10.10.2 MacPro 6GB, MacBookPro (2011) 8GB
Amsterdam | Back to Top | |
 |  Charles Lawrence Registered Member

       Date Joined Dec 2009 Total Posts : 3638 | Posted 3/11/2015 8:50 AM (GMT -6) |   | Thanks Vaughan. This is the kind of feedback I needed. Of course, in my testing everything worked, but I did not have a very complicated document. I will look into these anomalies you describe as soon as I can. Sorry it doesn't work, first attempts seldom do.
I certainly did not give this a thorough review in testing. I had not included TS's and KS's scattered throughout the measure number regions. Clef changes seem to be OK. I hopefully have fixed the problem of the starting number being offset. I am still investigating the problem of TS's and KS's not moving with the insert.
In the mean time here is a workaround. Please test it with your complex score.
Use either the Select Tool or Measure Tool and select the measure stack where the insert will be. Right click and manually insert a measure stack of the appropriate number of measures. This method shifts all things correctly. Invoke the attached revised temporary script and enter the correct number of measures and starting point. The script will not do the insert, but will adjust the measure number regions correctly now, I hope. I will revise the script when I have worked out the problem with the insert. Thanks for bearing with me. Report any problems.
PS: script file has been deleted. See below for latest and greatest version 2.1.
"Anything is possible if you don't know what you are talking about!"
Intel(R) Core(TM) i7-5930K CPU with 6 dual core processors @ 3.50 GHz (12 threads)
Realtek High Definition on board audio NVIDIA GeForce GTX 980 GPU with 4GB ram
512 GB SSD
Four 4TB and one 1TB internal SATA HD's Microsoft Windows 8.1 Professional with Media Center x64 Edition, (06.03.9600.00) Finale versions: 2011b.r2, 2012c.r13, 2014d.v5030
GPO4.02
Cakewalk SONAR X3
"There is a world of difference between a person who has a big problem and a person who makes a problem big." – John Maxwell
Post Edited (Charles Lawrence) : 3/25/2015 10:14:58 AM (GMT-5) | Back to Top | |
 |  Charles Lawrence Registered Member

       Date Joined Dec 2009 Total Posts : 3638 | Posted 3/11/2015 11:38 AM (GMT -6) |   | Try the workaround posted above. Thanks.
"Anything is possible if you don't know what you are talking about!"
Intel(R) Core(TM) i7-5930K CPU with 6 dual core processors @ 3.50 GHz (12 threads)
Realtek High Definition on board audio NVIDIA GeForce GTX 980 GPU with 4GB ram
512 GB SSD
Four 4TB and one 1TB internal SATA HD's Microsoft Windows 8.1 Professional with Media Center x64 Edition, (06.03.9600.00) Finale versions: 2011b.r2, 2012c.r13, 2014d.v5030
GPO4.02
Cakewalk SONAR X3
"There is a world of difference between a person who has a big problem and a person who makes a problem big." – John Maxwell
| Back to Top | |
  |  Charles Lawrence Registered Member

       Date Joined Dec 2009 Total Posts : 3638 | Posted 3/14/2015 9:01 AM (GMT -6) |   | Vaughan,
I'm glad to hear that it worked OK after manually inserting the measures. I don't know why the JW Lua does not handle that operation correctly. I have a question in on Jari's site to address this. In the mean time, if you need it again, just do the insert manually.
I will work on a script to delete measures as well.
"Anything is possible if you don't know what you are talking about!"
Intel(R) Core(TM) i7-5930K CPU with 6 dual core processors @ 3.50 GHz (12 threads)
Realtek High Definition on board audio NVIDIA GeForce GTX 980 GPU with 4GB ram
512 GB SSD
Four 4TB and one 1TB internal SATA HD's Microsoft Windows 8.1 Professional with Media Center x64 Edition, (06.03.9600.00) Finale versions: 2011b.r2, 2012c.r13, 2014d.v5030
GPO4.02
Cakewalk SONAR X3
"There is a world of difference between a person who has a big problem and a person who makes a problem big." – John Maxwell
| Back to Top | |
  |  Motet Isorhythmic

       Date Joined Dec 2002 Total Posts : 12849 | Posted 3/15/2015 2:18 AM (GMT -6) |   | |
 |  Charles Lawrence Registered Member

       Date Joined Dec 2009 Total Posts : 3638 | Posted 3/16/2015 4:44 PM (GMT -6) |   | As a heads up, I apologize for taking so long to get the delete measure script to work. I have not been able to put a lot of time into it lately, but I can report that deleting is much more complex than adding, especially if the delete starts in one region and the delete measure count spans over into one or more downstream regions. I am working on it, and am confident that I will eventually design the correct algorithm. I am also combining both insert and delete into one script. You decide whether to insert or delete the measures. I will report back.
"Anything is possible if you don't know what you are talking about!"
Intel(R) Core(TM) i7-5930K CPU with 6 dual core processors @ 3.50 GHz (12 threads)
Realtek High Definition on board audio NVIDIA GeForce GTX 980 GPU with 4GB ram
512 GB SSD
Four 4TB and one 1TB internal SATA HD's Microsoft Windows 8.1 Professional with Media Center x64 Edition, (06.03.9600.00) Finale versions: 2011b.r2, 2012c.r13, 2014d.v5030
GPO4.02
Cakewalk SONAR X3
"There is a world of difference between a person who has a big problem and a person who makes a problem big." – John Maxwell
| Back to Top | |
  |  Charles Lawrence Registered Member

       Date Joined Dec 2009 Total Posts : 3638 | Posted 3/20/2015 8:17 AM (GMT -6) |   | Yes, the delete functionality would be much easier to implement if the delete span was contained within a region, but I don't think this artificial restriction should be imposed. I want it to be complete.
[Progress Report] I now have it so that the script will correctly insert and delete measures and appropriately move the other measures either downstream or upstream. I was so close to having the delete worked out, even across region boundaries, but now my code for some reason is causing Finale to lock up busy with no control left. Darn it! The only recourse is to close down Finale, wait a few minutes, and restart Finale. This situation is very frustrating since JW Lua does not as yet have a debugger, and I haven't been able to pin down the culprit. I am hell bent on getting this thing completed!
BTW, would an option to perform note spacing after the insert/delete be useful. In my testing, sometimes the score is left in a state where note spacing will clean it up. I know that some users prefer to postpone such actions until the last step in their workflow.
More to come.
"Anything is possible if you don't know what you are talking about!"
Intel(R) Core(TM) i7-5930K CPU with 6 dual core processors @ 3.50 GHz (12 threads)
Realtek High Definition on board audio NVIDIA GeForce GTX 980 GPU with 4GB ram
512 GB SSD
Four 4TB and one 1TB internal SATA HD's Microsoft Windows 8.1 Professional with Media Center x64 Edition, (06.03.9600.00) Finale versions: 2011b.r2, 2012c.r13, 2014d.v5030
GPO4.02
Cakewalk SONAR X3
"There is a world of difference between a person who has a big problem and a person who makes a problem big." – John Maxwell
| Back to Top | |
 |  Motet Isorhythmic

       Date Joined Dec 2002 Total Posts : 12849 | Posted 3/20/2015 11:02 AM (GMT -6) |   | Charles, thanks for tackling this. I look forward to the final version.
If you do have the script perform note spacing or other post-processing perhaps make it an option rather than an unspoken side-effect. Not only do some users prefer to postpone such actions, but some deliberately turn it off to avoid undoing manual tweaking.
The use I have for this is that I set up the scaffolding of all the measure regions, key- and time-signature changes, piece numbers, etc., before entering any music. But if when then entering music I discover I had miscounted, I need to add or remove measures. This is always going to be within a single region, never spanning two. One could always do it in two chunks if it did span. Finale 2011b, 2005, TGTools Windows 7, MIDI input Finale Transposition Chart | Back to Top | |
 |  Vaughan Registered Member
        Date Joined Jun 1999 Total Posts : 4984 | Posted 3/20/2015 6:09 PM (GMT -6) |   | I have the same. I don't need to delete measures across two measure numbering regions and, while I can understand your desire to design a script which works in all situations, I would prefer to have the limitation of removing measures only within regions than not at all. Besides, as Motet said, one could easily perform the action twice, once within each region. I also agree with Motet in not needing the Luca script to respace, or at least to present it as an option. Often I've already done spacing (and tweaking) and Finale's default spacing would screw that up. Interesting that just deleting measures the 'old fashioned' way usually doesn't affect the spacing of the measures after that. Once again, thank you Charles for putting so much time and effort into this! Vaughan
Finale 3.2 - 2014d, Sibelius 4 - 7 Tobias Giesen's plugins, full version, Robert Patterson plugins, Dolet 6 plugin MacOS 10.10.2 MacPro 6GB, MacBookPro (2011) 8GB
Amsterdam | Back to Top | |
 |  Charles Lawrence Registered Member

       Date Joined Dec 2009 Total Posts : 3638 | Posted 3/22/2015 11:09 AM (GMT -6) |   | Thanks Vaughan and Motet for your feedback. It is very helpful. I have reconsidered, and will now concentrate on deleting measures only within any existing measure number region. I will give a warning if the delete span crosses a measure number region boundary and set the end measure in the user input dialog box to the region end boundary. As you have pointed out, if more measures need to be deleted in another region, the script can be run again. Of course, any post operation note spacing will be as a user option.
I have been away for the past several days and will now get back on this project.
"Anything is possible if you don't know what you are talking about!"
Intel(R) Core(TM) i7-5930K CPU with 6 dual core processors @ 3.50 GHz (12 threads)
Realtek High Definition on board audio NVIDIA GeForce GTX 980 GPU with 4GB ram
512 GB SSD
Four 4TB and one 1TB internal SATA HD's Microsoft Windows 8.1 Professional with Media Center x64 Edition, (06.03.9600.00) Finale versions: 2011b.r2, 2012c.r13, 2014d.v5030
GPO4.02
Cakewalk SONAR X3
"There is a world of difference between a person who has a big problem and a person who makes a problem big." – John Maxwell
| Back to Top | |
   | 40 posts in this thread. Viewing Page : 1 2 | Forum Information | Currently it is Monday, December 4, 2023 12:13 PM (GMT -6) There are a total of 403,820 posts in 58,165 threads. In the last 3 days there were 0 new threads and 0 reply posts. View Active Threads
|
Forum powered by dotNetBB v2.42EC SP3 dotNetBB © 2000-2023 |
|
|