Clear rests?
Moderators: Peter Thomsen, miker
- John Ruggero
- Posts: 827
- Joined: Tue Dec 06, 2016 11:41 am
- Finale Version: Finale 25.5
- Operating System: Mac
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."
www.cantilenapress.com
"The better the composer, the better the notation."
- N Grossingink
- Posts: 1788
- Joined: Mon Dec 19, 2016 2:50 pm
- Finale Version: 27.3
- Operating System: Mac
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.
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
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
- John Ruggero
- Posts: 827
- Joined: Tue Dec 06, 2016 11:41 am
- Finale Version: Finale 25.5
- Operating System: Mac
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."
www.cantilenapress.com
"The better the composer, the better the notation."
I just hacked together this quick and short JWLua code. Does it do what you need?
Harald
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
Finale 3.0-25.5, German edition, Windows 7
trombonist, pianist, conductor / Recklinghausen, Germany
trombonist, pianist, conductor / Recklinghausen, Germany
- John Ruggero
- Posts: 827
- Joined: Tue Dec 06, 2016 11:41 am
- Finale Version: Finale 25.5
- Operating System: Mac
Thank you very much, HaraldS. Knowing you, it probably works perfectly, but I don't know how to install it or check it.HaraldS wrote:I just hacked together this quick and short JWLua code. Does it do what you need?
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."
www.cantilenapress.com
"The better the composer, the better the notation."
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.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.
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.motet wrote:I wonder if changing the font for rests would work. You'd need some all-blank font, I guess.
Harald
Finale 3.0-25.5, German edition, Windows 7
trombonist, pianist, conductor / Recklinghausen, Germany
trombonist, pianist, conductor / Recklinghausen, Germany
- N Grossingink
- Posts: 1788
- Joined: Mon Dec 19, 2016 2:50 pm
- Finale Version: 27.3
- Operating System: Mac
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.
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
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
- John Ruggero
- Posts: 827
- Joined: Tue Dec 06, 2016 11:41 am
- Finale Version: Finale 25.5
- Operating System: Mac
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.
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."
www.cantilenapress.com
"The better the composer, the better the notation."
Thanks, you're welcome!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.
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
trombonist, pianist, conductor / Recklinghausen, Germany
- John Ruggero
- Posts: 827
- Joined: Tue Dec 06, 2016 11:41 am
- Finale Version: Finale 25.5
- Operating System: Mac
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."
www.cantilenapress.com
"The better the composer, the better the notation."