wave | R Documentation |
This function represents an object as class "wave".
Under the hood, "wave" objects are numeric vectors
describing displacement as a function of time.
The sample rate can be accessed using the sample_rate
accessor.
wave(x, ...)
## Default S3 method:
wave(
x,
length_sec = 1,
sample_rate = 44100,
rise_length = 0,
fade_length = 0,
...
)
## S3 method for class 'sparse_fr_spectrum'
wave(
x,
length_sec = 1,
sample_rate = 44100,
rise_length = 0,
fade_length = 0,
phase = 0,
...
)
x |
Input object. |
... |
Arguments passed on to
|
length_sec |
(Numeric scalar) Length of the output wave, in seconds. |
sample_rate |
(Integerish scalar) The desired sample rate. |
rise_length |
(Numeric scalar) Chord fade-in time (seconds). |
fade_length |
(Numeric scalar) Chord fade-out time (seconds). |
phase |
(Numeric scalar) Single number specifying the phase of the underlying sine waves to be used. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.