Type:
ambitus: sequence -> integer
Call syntax:
ambitus(seq)
Description:
ambitus returns the ambitus, i.e., the number of
halftone steps between the lowest and the highest note of
seq.
The ambitus of an empty or one tone sequence is defined as 0;
rests are ignored when computing the ambitus of a sequence.
Example:
> ambitus([e2/4 c/4])
Result= 4
> ambitus([c1/2 a0/4 _/4 f2#/4 g/2])
Result= 22
> ambitus([fis1/4])
Result= 0
> ambitus([])
Result= 0