HomeProductsDownloadOrderSupportSearch
  
Myriad Forum « Removing triplets »
 Welcome, Guest.
 You can read all messages, but to be able to post,
 please Login or Register.
May 23rd, 2025, 12:35am 
   Myriad Forum
   MyrScript Language
(Moderator: Forum Administrator)
   Removing triplets
« Previous topic | Next topic »
Pages: 1  Reply | Notify of replies | Print
   Author  Topic: Removing triplets  (Read 116 times)
Tony Deff
Board Master
*****





   
Email

Gender: male
Posts: 1786
Removing triplets   Sticky_triplets.png
« on: May 10th, 2025, 11:50am »
Quote | Modify

When a score has many triplets, it could be simplified by multiplying all note durations by 3 and dividing by 2 (or 4), adjusting the tempo to suit.
 
However, H.A. holds-onto a tuplet status ("sticky triplets")
 
In bar 5, when a quarter note is untied from a triplet (bar 4) it is converted to a "dotted quarter-note triplet".  
 
In bar 3, after multiplying by 3, each note retains its triplet alias.
 
Could a script remove the triplet status
offline


Anglophone, HA 64 Win.10

Создавайте музыку, а не в
bubu42
Board Master
*****





   


Gender: male
Posts: 10660
Re: Removing triplets  
« Reply #1 on: May 10th, 2025, 1:08pm »
Quote | Modify

This could probably done this way for the triplet numbers (selecting first the notes/rests to process)
Code:
Include "MsDefine"
myscore=FrontScore()
if myscore~=nil then  
      mystaff=myscore.FirstStaff
      while mystaff~=nil do
            mysymbol=mystaff.FirstSymbol
            while mysymbol~=nil do
            if mysymbol.IsSelected== true or mysymbol.IsSelectedIndividually==true then
                  mysymbol.IsTupletDontDisplayNumber=true
            end
            mysymbol=mysymbol.Next
            end
      mystaff=mystaff.Next
      end
end

As for bar #5, it probably depends whether the notes are "tied" or "slurred".
« Last Edit: May 10th, 2025, 1:13pm by bubu42 » offline

Harmony Assistant 32 bits - Ubuntu + Wine et Windows XP sur machine virtuelle. VS, OMeR, PDF2M
ANdre_B
Board Master
*****





   
Email

Gender: male
Posts: 3215
Re: Removing triplets  
« Reply #2 on: May 10th, 2025, 2:15pm »
Quote | Modify

No, this would simply hide the tuplet numbers: the triplet dotted quarter of bar would show up as a dotted quarter, when it really should become a plain quarter.  
 
I think that - on a selection - Edit/Quantize/Apply should do the trick.
 
Don't forget to change, not only the tempo, but also the time signature: a 4:4 should probably become a 12:8, so that a bar remains a bar.
offline

André Baeck, de retour en Belgique après 12 ans passés dans le Gard.
Windows 11, HA 999 (et précédents)
Sylvain Machefert
Administrator
*****






   
WWW |

Gender: male
Posts: 7486
Re: Removing triplets  
« Reply #3 on: May 10th, 2025, 5:28pm »
Quote | Modify

I don't like changing time signature, note durations and tempo.
I always use the "hide tuplet" that may be applied only on repetitive pattern.
 
Examples I have in mind:
- Bach's Cantate 147 written in 3/4 with tuplets of 8ths, and sometimes two 8ths not in tuplet. Writting in 9/8 implies write these 8ths in duolets.
- Beethoven's Moonlight sonata, in 4/4 with tuplets, and also dotted 8th+16th. A nightmare to write and understand in 12/8, never seen in 12/8.
offline

HA+HQ+VS+PdfToM, Reaper+Audiveris+Transcribe, Win10+Focusrite Scarlet 4i4+Nord Electro 3
Linktree: VS languages, my scripts, my bands, my performances...
JP
Board Master
*****






   
WWW | Email

Gender: male
Posts: 3488
Re: Removing triplets   Bach-147.png
« Reply #4 on: May 10th, 2025, 7:38pm »
Quote | Modify

Original manuscript Cantate 147
It clearly shows that Bach wrote 9/8 on the first staff and 3/4 on the other staves.
offline

Sylvain Machefert
Administrator
*****






   
WWW |

Gender: male
Posts: 7486
Re: Removing triplets  
« Reply #5 on: May 10th, 2025, 8:06pm »
Quote | Modify

And now, write a reduced version for piano on two staves
 
@bubu42: il faudrait ajouter IsTupletBracket = false.
J'ai ajouté les propriétés des tuplets dans le couteau suisse > Sélection (pour une future version) pour appliquer en masse sur une sélection de notes
offline

HA+HQ+VS+PdfToM, Reaper+Audiveris+Transcribe, Win10+Focusrite Scarlet 4i4+Nord Electro 3
Linktree: VS languages, my scripts, my bands, my performances...
Tony Deff
Board Master
*****





   
Email

Gender: male
Posts: 1786
Re: Removing triplets   Quantised_rests_missing.png
« Reply #6 on: May 11th, 2025, 7:53am »
Quote | Modify

@bubu,  Thank you for your response.
 
As implied by ANdre, to be visually correct the dots would have to be hidden at the same time.  
Would this be as simple as adding one line to your script ?  
 
 
@ANdre,  thank you for this suggestion.
 
Quantisation is something that would not have thought of — (I've never had much success using this).
 
It worked best at "Minimum", but some triplets remained.
The rests were not processed ; if I inserted them manually, the time-signature change needed was not what I expected!  
offline


Anglophone, HA 64 Win.10

Создавайте музыку, а не в
ANdre_B
Board Master
*****





   
Email

Gender: male
Posts: 3215
Re: Removing triplets  
« Reply #7 on: May 11th, 2025, 10:43am »
Quote | Modify

One way to make a quantize, forgotting all earlier attributes, is to save the score as MIDI and to reopen it.  
Otherwise, there is a kind of undocumented "tuplet" flag, which Quantize does not get rid of. Perhaps deleting the note and reinserting it, I'll have a try.  
 
However, one cannot say that the rest disappears. It is actually translated into a pressure time of 88 (for 87.5).  
Consider that, without a PT remaining at 100, the first note of this example should be a half note + a dotted half + a 16th, and the rest a dotted eight.  
offline

André Baeck, de retour en Belgique après 12 ans passés dans le Gard.
Windows 11, HA 999 (et précédents)
ANdre_B
Board Master
*****





   
Email

Gender: male
Posts: 3215
Re: Removing triplets  
« Reply #8 on: May 11th, 2025, 10:45am »
Quote | Modify

on May 11th, 2025, 10:43am, ANdre_B wrote:
One way to make a quantize, forgotting all earlier attributes, is to save the score as MIDI and to reopen it.  
Otherwise, there is a kind of undocumented "tuplet" flag, which Quantize does not get rid of. Perhaps deleting the note and reinserting it, I'll have a try.  
 
However, one cannot say that the rest disappears. It is actually translated into a pressure time of 88 (for 87.5).  
Consider that, without a PT remaining at 100, the first note of this example should be a half note + a dotted half + a 16th, and the rest a dotted eight.  
 
BTW, I would use a TS of 9:4 not 5:4

offline

André Baeck, de retour en Belgique après 12 ans passés dans le Gard.
Windows 11, HA 999 (et précédents)
Tony Deff
Board Master
*****





   
Email

Gender: male
Posts: 1786
Re: Removing triplets  
« Reply #9 on: May 11th, 2025, 1:04pm »
Quote | Modify

Quote:
BTW, I would use a TS of 9:4 not 5:4

Oh, of course — bar-line position is not sacrosanct !
 
How lucky you are that you have not yet lost half your brain-power!
offline

Anglophone, HA 64 Win.10

Создавайте музыку, а не в
bubu42
Board Master
*****





   


Gender: male
Posts: 10660
Re: Removing triplets  
« Reply #10 on: May 11th, 2025, 8:46pm »
Quote | Modify

on May 10th, 2025, 8:06pm, Sylvain Machefert wrote:
@bubu42: il faudrait ajouter IsTupletBracket = false.
Oui, il y a en fait pas mal de valeurs disponibles mais, comme je n'avais pas entièrement compris la question, j'en étais resté au chiffre... Enfait, le problème est beaucoup plus subtil.
offline

Harmony Assistant 32 bits - Ubuntu + Wine et Windows XP sur machine virtuelle. VS, OMeR, PDF2M
ANdre_B
Board Master
*****





   
Email

Gender: male
Posts: 3215
Re: Removing triplets  
« Reply #11 on: May 12th, 2025, 4:29pm »
Quote | Modify

Si on veut éviter une incongruité comme une noire pointée en triolet, on peut agir en mettant les valeurs Symbol.TupletMult et Symbol.TupletDiv à 1.  
 
Cela étant, si j'admets que certaines pièces en 4:4 avec beaucoup de triolets peuvent très bien s'écrire en 12:8, je crois qu'il ne faut pas oublier qu'un triolet est bien pratique pour se rappeler qu'on est en ternaire.  
 
Dans l'exemple de Tony, passer en 9:4  ne me semble pas trop indiqué: d'une part, ce serait masquer le ternaire (ou plus exactement le swing); d'autre part, ce serait rendre la partition totalement illisible. On n'y coupera pas de faire appel à des duolets ou des notes pointées.
offline

André Baeck, de retour en Belgique après 12 ans passés dans le Gard.
Windows 11, HA 999 (et précédents)
Pages: 1  Reply | Notify of replies | Print

« Previous topic | Next topic »

« Myriad Forum » Powered by YaBB 1 Gold - SP 1.1!
YaBB © 2000-2002,
Xnull. All Rights Reserved.

Top of page
Legal information Cookies Last update:  (c) Myriad