Page 1 of 1

change rests

Posted: Thu Aug 15, 2019 2:34 pm
by Jetcopy
I've got a piece in 6/8, which is filled with a quarter rest then an eighth rest. I'd like to change them all to a dotted quarter. I thought there was a plugin that did this, but I can't seem to find it. Can anyone point me in the right direction?

JT

Re: change rests

Posted: Thu Aug 15, 2019 2:58 pm
by michelp
First, make sure your time signature is 6/8 defined as 2 dotted quarter notes.
Then, Midi/Audio menu - > Quantization Settings -> More Settings -> Allow Dotted Rests in Compound Meters.
Then, select the region, and apply Retranscribe (Midi/Audio menu).

Re: change rests

Posted: Thu Aug 15, 2019 3:43 pm
by zuill
That's what I thought, but I couldn't get the dotted rests doing that.

I used Jari's JW Meter and Rhythm plugin, in the Rhythm Transformation/Rests page.

Zuill

Re: change rests

Posted: Thu Aug 15, 2019 5:47 pm
by Peter Thomsen
Jetcopy wrote:I've got a piece in 6/8, which is filled with a quarter rest then an eighth rest. I'd like to change them all to a dotted quarter …
The sum of {1/4 rest + 1/8 rest} is only 3/8.
If the time signature is 6/8, then there must be more entries in the measure.
You probably mean that the measure is filled, and it ends with a quarter rest + an eighth rest (and the measure probably begins with a dotted quarter note) - right?
michelp wrote:First, make sure your time signature is 6/8 defined as 2 dotted quarter notes.
Then, Midi/Audio menu - > Quantization Settings -> More Settings -> Allow Dotted Rests in Compound Meters.
Then, select the region, and apply Retranscribe (Midi/Audio menu).
Instead of the last step I used
Utilities menu > Rebar > Rebar Music
It worked for me; I got the dotted rests.

Re: change rests

Posted: Thu Aug 15, 2019 5:54 pm
by zuill
I was testing with quarter rest eighth rest quarter rest eighth rest. Retranscribe left it untouched. Rebar changed it into a default whole rest. However, if there was a dotted quarter on either side of the measure, rebar or retranscribe combined the quarter rest eighth rest into a dotted quarter rest.

Zuill

Re: change rests

Posted: Thu Aug 15, 2019 6:52 pm
by Jetcopy
Thank you all for replying. Nothing worked as I had hoped.

Retranscribe correctly combined the rests into a single dotted quarter rest, but it also deleted any articulations that were attached to the notes.

Rebar music also combined them correctly, but interfered entries in other layers. I had the same problem with Jari's plugin.

I think the safest thing for me to do is to eyeball each occurence and change them manually with a macro.

Thank you all for your help.

Jeff

Re: change rests

Posted: Thu Aug 15, 2019 6:57 pm
by zuill
Did you use the filter in Jari's plugin? You can affect just 1 layer if needed.

Zuill

P.S.: Forget that. No filter. Instead, use Show Active Layer Only in the Document Menu.

Re: change rests

Posted: Thu Aug 15, 2019 8:37 pm
by Jetcopy
Zuill,

Show active layer worked, but in addition to consolidating the dotted quarter rests, it was changing some other rhythms that I didn't want changed.

This is one of those things that I might spend an hour searching for the perfect shortcut, and if I had just started manually changing them, it would be done by now. That's what I did, took 20 minutes total but at least I know I didn't change anything else by accident.

Thanks for your help.

Re: change rests

Posted: Thu Aug 15, 2019 9:09 pm
by HaraldS
Jetcopy wrote:Nothing worked as I had hoped. [...]I think the safest thing for me to do is to eyeball each occurence and change them manually with a macro.
Not necessary; this JWLua code searches for occurences of a quarter rest followed by an eighth rest, replaces the quarter rest with a dotted one and removes the eighth rest:

Code: Select all

for m, s in eachcell(finenv.Region()) do
   local noteentrycell = finale.FCNoteEntryCell(m, s)
   noteentrycell:Load()
   for e in eachbackwards(noteentrycell) do
        local f = e:Next()
        if f and e:IsRest() and e.Duration == finale.QUARTER_NOTE 
             and f:IsRest() and f.Duration == finale.EIGHTH_NOTE then
                    e.Duration = finale.QUARTER_NOTE  + finale.EIGHTH_NOTE
                    f.Duration = 0
        end
    noteentrycell:DeleteAllNullEntries()
   end
end

Re: change rests

Posted: Thu Aug 15, 2019 10:33 pm
by michelp
Great script, thank you, Harald.