Next: , Previous: Grace Notes (File), Up: `.fms' File Examples


6.9 Tuplets

6.9.1 Tuplet Durations

You can set the minimum and maximum duration a tuplet is allowed to span with min-tupletdur and max-tupletdur. They are set here as part of the measure definitions because they can't be set at the note level.

time 0 dur 4 |min-tupletdur 2|
duration 1/3
time 0 pitch 64 ;
time 1/3 pitch 60 ;
time 2/3 pitch 61 ;
time 1 pitch 68 ;
time 1+1/3 pitch 60 ;
time 1+2/3 pitch 60 ;
time 2 pitch 69 ;
time 2+1/3 pitch 65 ;
time 2+2/3 pitch 69 ;
time 3 pitch 64 ;
time 3+1/3 pitch 62 ;
time 3+2/3 pitch 64 ;

time 4 dur 4 |max-tupletdur 1|
duration 1/3
time 4 pitch 62 ;
time 4+1/3 pitch 72 ;
time 4+2/3 pitch 60 ;
time 5 pitch 69 ;
time 5+1/3 pitch 71 ;
time 5+2/3 pitch 70 ;
time 6 pitch 63 ;
time 6+1/3 pitch 72 ;
time 6+2/3 pitch 71 ;
time 7 pitch 66 ;
time 7+1/3 pitch 64 ;
time 7+2/3 pitch 61 ;

ex070.png

Figure 6.48: Minimum and Maximum Tuplet Durations

6.9.2 Forcing Tuplets

The tup.. and ..tup marks force FOMUS to begin and end a tuplet at those locations, even if it breaks FOMUS's rules determining where tuplets are allowed to occur. The example below uses begin marks to force FOMUS to only begin tuplets at those locations.

duration 1/3
tupletdur 2 {
time 0 pitch 64 [tup..] ;
time 1/3 pitch 60 ;
time 2/3 pitch 61 ;
time 1 pitch 68 ;
time 1+1/3 pitch 60 ;
time 1+2/3 pitch 60 ;
time 2 pitch 69 [tup..] ;
time 2+1/3 pitch 65 ;
time 2+2/3 pitch 69 ;
time 3 pitch 64 ;
time 3+1/3 pitch 62 ;
time 3+2/3 pitch 64 ;
}

time 4 pitch 62 [tup..] ;
time 4+1/3 pitch 72 ;
time 4+2/3 pitch 60 ;
time 5 pitch 69 [tup..] ;
time 5+1/3 pitch 71 ;
time 5+2/3 pitch 70 ;
time 6 pitch 63 [tup..] ;
time 6+1/3 pitch 72 ;
time 6+2/3 pitch 71 ;
time 7 pitch 66 [tup..] ;
time 7+1/3 pitch 64 ;
time 7+2/3 pitch 61 ;

ex034.png

Figure 6.49: Tuplet Begin and End Marks

You can also use the tupletdur and tupletrat settings to fix the duration or ratio of the tuplet:

duration 1/3
tupletdur 1 {
time 0 pitch 67 ;
time 1/3 pitch 70 ;
time 2/3 pitch 60 ;
time 1 pitch 64 ;
time 1+1/3 pitch 63 ;
time 1+2/3 pitch 68 ;
time 2 pitch 72 ;
time 2+1/3 pitch 67 ;
time 2+2/3 pitch 72 ;
time 3 pitch 64 ;
time 3+1/3 pitch 71 ;
time 3+2/3 pitch 63 ;
}
tupletdur 2 {
time 4 pitch 72 ;
time 4+1/3 pitch 66 ;
time 4+2/3 pitch 65 ;
time 5 pitch 70 ;
time 5+1/3 pitch 60 ;
time 5+2/3 pitch 61 ;
tupletrat 3 {
time 6 pitch 70 ;
time 6+1/3 pitch 62 ;
time 6+2/3 pitch 65 ;
time 7 pitch 70 ;
time 7+1/3 pitch 61 ;
time 7+2/3 pitch 61 ;
} }

ex033.png

Figure 6.50: Tuplet Durations

It's best to include tupletdur and tupletrat in all note events that might fall underneath the tuplets. Specifying these settings in only a single event, for example, might cause FOMUS to overlook them.

This example shows tuplets being explicitly defined using the marks and settings introduced above:

duration 1/3
tupletdur 1 tupletrat 3/2 {
time 0 pitch 64 [tup..];
time 1/3 pitch 60 ;
time 2/3 pitch 61 [..tup]; }
tupletdur 2 tupletrat 6/4 {
time 1 pitch 68 [tup..];
time 1+1/3 pitch 60 ;
time 1+2/3 pitch 60 ;
time 2 pitch 69 ;
time 2+1/3 pitch 65 ;
time 2+2/3 pitch 69 [..tup]; }
tupletdur 1 tupletrat 3/2 {
time 3 pitch 64 [tup..];
time 3+1/3 pitch 62 ;
time 3+2/3 pitch 64 [..tup]; }

duration 1/5
tupletdur 2 tupletrat 5/4 {
time 4 pitch 62 [tup..] ;
time 4+1/5 pitch 72 ;
time 4+2/5 pitch 60 ;
time 4+3/5 pitch 62 ;
time 4+4/5 pitch 64 ;
time 5 pitch 69 ;
time 5+1/5 pitch 71 ;
time 5+2/5 pitch 70 ;
time 5+3/5 pitch 62 ;
time 5+4/5 pitch 64 [..tup] ; }
duration 1/7
tupletdur 2 tupletrat 7/4 {
time 6 pitch 63 [tup..] ;
time 6+1/7 pitch 72 ;
time 6+2/7 pitch 71 ;
time 6+3/7 pitch 62 ;
time 6+4/7 pitch 64 ;
time 6+5/7 pitch 72 ;
time 6+6/7 pitch 71 ;
time 7 pitch 66 ;
time 7+1/7 pitch 64 ;
time 7+2/7 pitch 61 ;
time 7+3/7 pitch 62 ;
time 7+4/7 pitch 64 ;
time 7+5/7 pitch 64 ;
time 7+6/7 pitch 61 [..tup] ; }

ex071.png

Figure 6.51: Explicitly Defined Tuplets