Functions for the quantization of notes
These functions apply (static) quantization of notes in order to produce sheet music by pressing the notes into bars.
quantize(notes, energy, parts) quantMerge(notes, minlength, barsize, bars)
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 |
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 |
Uwe Ligges ligges@statistik.tu-dortmund.de
to get the input: noteFromFF
,
for plotting: quantplot
,
for further processing: lilyinput
,
to get notenames: notenames
;
for an example, see the help in tuneR.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.