MIN/MAX-INTERVAL

[FUNCTION]


Cluster-Rules
Function Reference
ARGUMENTS:
&key
 
  - voices    
  - min-interval    
  - max-interval    
  - n    
  - rule-type    
  - weight    

Description:

Limit the minimum/maximum melodic interval for the given voice.

Args:
voices (int or list of ints): the number of the voice(s) to constrain.

key-args:
min-interval (number, fenv or NIL): minimum interval in semitones. Ignored if NIL. Implicitly disallows repetition if >= 1. If a fenv, then the fenv specifies how the min interval changes over n notes (i.e., fenv specifies n-1 intervals).
max-interval (number, fenv or NIL): maximum interval in semitones. Ignored if NIL. If a fenv, then the fenv specifies how the max interval changes over n notes.
n (int): The first n notes are affected. If 0, then n is disregarded. NOTE: if any fenv is set then make sure n is greater than 0.

Args rule-type and weight inherited from r-pitches-one-voice.



Auto doc generation by OpenMusic 7.4 © 2024 IRCAM