quantize {tuneR} | R Documentation |
Functions for the quantization of notes
Description
These functions apply (static) quantization of notes in order to produce sheet music by pressing the notes into bars.
Usage
quantize(notes, energy, parts)
quantMerge(notes, minlength, barsize, bars)
Arguments
notes |
Series of notes, a vector of integers such as returned by |
energy |
Series of energy values, a vector of numerics such as corresponding components of a
|
parts |
Number of outcoming parts. The |
minlength |
1/(length of the shortest note). |
barsize |
One bar contains |
bars |
We expect |
Value
quantize
returns a list with components:
notes |
Vector of length |
energy |
Same as |
quantMerge
returns a data.frame with components:
note |
integer representation of a note (see Arguments). |
duration |
1/duration of a note (see |
punctuation |
Whether the note should be punctuated. If |
slur |
currently always |
Author(s)
Uwe Ligges ligges@statistik.tu-dortmund.de
See Also
to get the input: noteFromFF
,
for plotting: quantplot
,
for further processing: lilyinput
,
to get notenames: notenames
;
for an example, see the help in tuneR.