Clear rests?

General notation questions, including advanced notation, formatting, etc., go here.

Moderators: Peter Thomsen, miker

Post Reply
User avatar
John Ruggero
Posts: 827
Joined: Tue Dec 06, 2016 11:41 am
Finale Version: Finale 25.5
Operating System: Mac

Post by John Ruggero » Tue May 23, 2017 4:13 pm

Is there a way to clear (not hide) all rests from a selected area?
2020 M1 Mac mini (OS 12.6) Finale 25.5, Dorico, Affinity Publisher, SmartScore 64 Pro, JW Plug-ins, TG Tools, Keyboard Maestro
www.cantilenapress.com

"The better the composer, the better the notation."


User avatar
N Grossingink
Posts: 1788
Joined: Mon Dec 19, 2016 2:50 pm
Finale Version: 27.3
Operating System: Mac

Post by N Grossingink » Tue May 23, 2017 4:30 pm

Clearing the rests will cause any note values present to shift towards the left. Perhaps a screenshot of a portion of the file where you want rests cleared will help others, especially me, to understand what you want to accomplish.

N.
N. Grossingink
Educational Band, Orchestra and Jazz Ensemble a specialty
Sample: https://drive.google.com/file/d/1pFF5OeJDeLFGHMRyXrubFqZWXBubErw4/view?usp=share_link


Mac Mini 2014 2.6 Ghz, 8Gb RAM
OSX 10.15.7
Finale 2012c, 25.5, 26.3, 27.3

User avatar
John Ruggero
Posts: 827
Joined: Tue Dec 06, 2016 11:41 am
Finale Version: Finale 25.5
Operating System: Mac

Post by John Ruggero » Tue May 23, 2017 4:39 pm

Sorry if that was cryptic, N. I have a large area of music in which I want to clear all the rests and just leave the notes behind. I can't find a plugin that will do that. It isn't a problem that the notes will move to the left, as always, when a rest is deleted.
2020 M1 Mac mini (OS 12.6) Finale 25.5, Dorico, Affinity Publisher, SmartScore 64 Pro, JW Plug-ins, TG Tools, Keyboard Maestro
www.cantilenapress.com

"The better the composer, the better the notation."

BuonTempi
Posts: 1306
Joined: Fri Aug 20, 2010 8:59 am
Finale Version: Finale 27
Operating System: Mac

Post by BuonTempi » Tue May 23, 2017 5:33 pm

Do you mean "Not Hide", or "Remove Manual Adjustments"?


For the former, there's a Show Rests plug-in. For the latter, does JW Change have nothing?

User avatar
HaraldS
Posts: 229
Joined: Mon Dec 19, 2016 11:46 am
Finale Version: 25.5
Operating System: Windows

Post by HaraldS » Tue May 23, 2017 5:52 pm

I just hacked together this quick and short JWLua code. Does it do what you need?

Code: Select all

-- set all rests's durations in the selected region to 0
for e in eachentrysaved(finenv.Region()) do
    if  e:IsRest() then e.Duration = 0 end
end

-- delete all entries with a duration of 0
for m, s in eachcell(finenv.Region()) do
   local noteentrycell = finale.FCNoteEntryCell(m, s)
   noteentrycell:Load()
   local myBooleanResult = noteentrycell:DeleteAllNullEntries()
end
Harald
Finale 3.0-25.5, German edition, Windows 7
trombonist, pianist, conductor / Recklinghausen, Germany

User avatar
John Ruggero
Posts: 827
Joined: Tue Dec 06, 2016 11:41 am
Finale Version: Finale 25.5
Operating System: Mac

Post by John Ruggero » Tue May 23, 2017 6:20 pm

HaraldS wrote:I just hacked together this quick and short JWLua code. Does it do what you need?
Thank you very much, HaraldS. Knowing you, it probably works perfectly, but I don't know how to install it or check it.
2020 M1 Mac mini (OS 12.6) Finale 25.5, Dorico, Affinity Publisher, SmartScore 64 Pro, JW Plug-ins, TG Tools, Keyboard Maestro
www.cantilenapress.com

"The better the composer, the better the notation."

User avatar
motet
Posts: 8270
Joined: Tue Dec 06, 2016 8:33 pm
Finale Version: 2014.5,2011,2005,27
Operating System: Windows

Post by motet » Tue May 23, 2017 6:43 pm

Set the font for rests to 1 pt. Maestro and they will disappear.
Last edited by motet on Tue May 23, 2017 6:49 pm, edited 1 time in total.

User avatar
HaraldS
Posts: 229
Joined: Mon Dec 19, 2016 11:46 am
Finale Version: 25.5
Operating System: Windows

Post by HaraldS » Tue May 23, 2017 6:48 pm

John Ruggero wrote:Thank you very much, HaraldS. Knowing you, it probably works perfectly, but I don't know how to install it or check it.
Can you open the JWLua plugin window? If yes, select the "Development" tab and copy&paste the code into it. Then select a region in your document and hit the "Run Script" button in the lower right area of the JWLua window. Then all rests should be removed. Works for me in 2014.5 ... if it doesn't work for you, tell me, please.
motet wrote:I wonder if changing the font for rests would work. You'd need some all-blank font, I guess.
That would leave the entries intact, e.g. you could still access them via the edit frame dialog in speedy. It would be the same like hiding the rests, they would still be taken into account for layout. I think, John wants them deleted, not just hidden, so that's what the script does.

Harald
Finale 3.0-25.5, German edition, Windows 7
trombonist, pianist, conductor / Recklinghausen, Germany

User avatar
motet
Posts: 8270
Joined: Tue Dec 06, 2016 8:33 pm
Finale Version: 2014.5,2011,2005,27
Operating System: Windows

Post by motet » Tue May 23, 2017 6:52 pm

I amended my posting. Setting the rest font to 1pt will work, if that's what he wants, but it looks like I indeed misunderstood.

User avatar
N Grossingink
Posts: 1788
Joined: Mon Dec 19, 2016 2:50 pm
Finale Version: 27.3
Operating System: Mac

Post by N Grossingink » Tue May 23, 2017 7:29 pm

I tried Harald's Lua script. It does what he intended except that (from what I can see) longer note values will not travel leftwards across a barline. For example, a quarter rest on beat 4 and whole note on beat 1 of the next measure - the rest is removed but the whole note stays where it is.

Perhaps the entire region to be stripped of rests needs to be changed into 1 long measure with the appropriate time signature and then the plugin applied. Then, rebarred back to the original meter.

N.
N. Grossingink
Educational Band, Orchestra and Jazz Ensemble a specialty
Sample: https://drive.google.com/file/d/1pFF5OeJDeLFGHMRyXrubFqZWXBubErw4/view?usp=share_link


Mac Mini 2014 2.6 Ghz, 8Gb RAM
OSX 10.15.7
Finale 2012c, 25.5, 26.3, 27.3

User avatar
John Ruggero
Posts: 827
Joined: Tue Dec 06, 2016 11:41 am
Finale Version: Finale 25.5
Operating System: Mac

Post by John Ruggero » Tue May 23, 2017 9:01 pm

Harald, I just tried it and it does indeed do exactly what was needed. Can you put into a format that will install? Or maybe this is something that I can do already but don't know how? This is a capability that I don't think has been addressed, and I would love to add it to my plugin collection.

N. I wanted the notes to stay strictly within their current measures, so Harald's script is perfect. Your system would work well if this was not wanted.
2020 M1 Mac mini (OS 12.6) Finale 25.5, Dorico, Affinity Publisher, SmartScore 64 Pro, JW Plug-ins, TG Tools, Keyboard Maestro
www.cantilenapress.com

"The better the composer, the better the notation."

User avatar
HaraldS
Posts: 229
Joined: Mon Dec 19, 2016 11:46 am
Finale Version: 25.5
Operating System: Windows

Post by HaraldS » Thu May 25, 2017 11:48 am

John Ruggero wrote:Harald, I just tried it and it does indeed do exactly what was needed. Can you put into a format that will install? Or maybe this is something that I can do already but don't know how? This is a capability that I don't think has been addressed, and I would love to add it to my plugin collection.
Thanks, you're welcome!
I added the file "Delete Rests.lua" in the zip folder below, as .lua doesn't seem to be an allowed file type for direct upload into this forum.

Harald
Attachments
Delete Rests.zip
(557 Bytes) Downloaded 163 times
Finale 3.0-25.5, German edition, Windows 7
trombonist, pianist, conductor / Recklinghausen, Germany

User avatar
John Ruggero
Posts: 827
Joined: Tue Dec 06, 2016 11:41 am
Finale Version: Finale 25.5
Operating System: Mac

Post by John Ruggero » Sat May 27, 2017 11:49 am

Thanks so much, HaraldS!
2020 M1 Mac mini (OS 12.6) Finale 25.5, Dorico, Affinity Publisher, SmartScore 64 Pro, JW Plug-ins, TG Tools, Keyboard Maestro
www.cantilenapress.com

"The better the composer, the better the notation."

Post Reply