fillSilences¶
- maelzel.scoring.fillSilences(notations, mingap=Fraction(1, 64), offset=None)[source]¶
Return a list of Notations filled with rests
- Parameters:
notations (
list
[Notation
]) – the notes to fillmingap – min. gap between two notes. If any notes differ by less than this, the first note absorvs the gap
offset (
Union
[float
,int
,Fraction
,None
]) – if given, marks the start time to fill. If notations start after this offset a rest will be crated from this offset to the start of the first notation
- Return type:
list
[Notation
]- Returns:
a list of new Notations