[Contents] · [Home] · [Mail]

SALIERI Language - expand

Type:
expand: segment x integer x integer -> segment
expand: sequence x integer x integer -> sequence

Call syntax:
expand(segm, i, k)
expand(seq, i, k)

Description:
Returns the segment obtained from segm by multiplying all relative note (and rest) durations by i/ k. expand can also be applied to note sequences.

Error conditions:
Error conditions occur, if i or k are negative or zero.

Example:
> C_DUR := [ c1/8 d/17 e/12 f*3/8 g*7/5 h ]
> expand(C_DUR, 3, 4)
Result= [ c1*3/32 d1*3/68 e1/16 f1*9/32 g1*21/20 h1*21/20 ]
> expand(C_DUR, 4, 3)
Result= [ c1/6 d1*4/51 e1/9 f1/2 g1*28/15 h1*28/15 ]
> expand(C_DUR, 1, 2)
Result= [ c1/16 d1/34 e1/24 f1*3/16 g1*7/10 h1*7/10 ]
> expand(C_DUR, 1, 1)
Result= [ c1/8 d1/17 e1/12 f1*3/8 g1*7/5 h1*7/5 ]
> expand(C_DUR, 2, 1)
Result= [ c1/4 d1*2/17 e1/6 f1*3/4 g1*14/5 h1*14/5 ]

See also: accel.


[Contents] · [Home] · [Mail]
© sic!systems, page frame designed by hh; this page has been automatically generated from the SALIERI Documentation Database.