print.sonify {playitbyr} | R Documentation |
sonify
objectsPrinting a sonify object renders it to sound (analogously
to how printing ggplot
objects renders them to
screen in the ggplot2
package).
## S3 method for class 'sonify' print(x, ...)
x |
A |
... |
Additional optional arguments:
|
In interactive use, you can simply type the name of the
sonify
object to sonify it. In loops, functions,
and source
-ing use, however, you need to
explicitly call print by using print(x)
to print
the object x
.
print.sonify
is called for its side-effect, which
is to actually render the object to a sound. It invisibly
returns the length of the resulting sonification.
By default, a rendering is saved to a file and then
immediately played for compatibility with slower systems.
If you have a faster computer and want to play the
sonification as you render it, you can set
options("render_real_time" = TRUE)
. (It is
FALSE
by default.)
sonify
for the creation of these objects,
sonsave
for a convenience function that
saves a sound file, sonopts
for advanced
and low-level rendering options