[Contents] · [Home] · [Mail]

SALIERI Language - isRest

sequence x integer -> boolean
sequence -> boolean

Call syntax:
isRest(seq, i)

isRest returns TRUE if the note on index position i of sequence seq is a rest, FALSE otherwise. If no index position is specified, i=1 is assumed, i.e., isRest returns TRUE if and only if the first note of seq is a rest. Index positions are counted starting with 1.

Error conditions:
If i is not a valid index position, i.e., i < 1 or i > length(seq), FALSE is returned.

> sq := [g0/8 _ c _]
> isRest(sq)
Result= FALSE
> isRest(sq,2)
Result= TRUE
> isRest(sq,0)
Result= FALSE
> isRest(sq,5)
Result= FALSE
> isRest([_/4])
Result= TRUE

See also: getPitch, length.

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