Create a Dynamic object to represent a dynamic marking.
Usage
Dynamic(marking, i, to = NULL, velocity = NULL, above = NULL)
Value
A list of class Dynamic.
Arguments
marking
A single character, which represents the dynamic symbol on
the score. If marking is on the list in the Details section, and
velocity is not specified, the corresponding velocity on the list will
be used. Otherwise, velocity must be specified, or the Dynamic will
have no sound effect.
i
A single positive integer, which represents the position
of the Dynamic object in a musical line.
to
Optional. A single character or a single positive integer,
which indicates the musical line where to add the Dynamic.
velocity
Optional. A single integer between 0 and 127,
which indicates the loudness of the Dynamic.
above
Optional. A single logical, which indicates whether the
dynamic symbol should appear above or below the staff.
Details
Common used dynamic markings and their velocities in MuseScore:
pppppp: 1
ppppp: 5
pppp: 10
ppp: 16
pp: 33
p: 49
mp: 64
mf: 80
f: 96
ff: 112
fff: 126
ffff: 127
fffff: 127
ffffff: 127
fp: 96
pf: 49
sf: 112
sfz: 112
sff: 126
sffz: 126
sfp: 112
sfpp: 112
rfz: 112
rf: 112
fz: 112
m: 96
r: 112
s: 112
z: 80
n: 49
See Also
+.Music() for adding an Dynamic to a Music object.
# Create a `Dynamic`f <- Dynamic("f", 1)
f
# Add it to a `Music`music <- Music() + Meter(4, 4) + Line(c("C4", "D4")) + f
music
# Generate the music scoreif (interactive()) {
show(music)
}