playitbyr Getting Started Support--Help, Bugs, and Documentation GitHub Sonification Resources

sonsave {playitbyr}R Documentation

Save sonifications to an audio file

Description

Convenience function to save a sonify object to an audio (.wav) file

Usage

  sonsave(what, where, play = FALSE, out = "dac", ...)

Arguments

what

A sonify object

where

The path to the desired .wav output.

play

Play the resulting file after saving?

out

If playing, this gives the output channel. Usually users will want to leave this as "dac", the default (which plays to the default audio out).

...

other arguments to be passed onto the rendering.

Value

Returns the filename of the saved file.