snip | R Documentation |
Select a subsection of a sound or spectrogram object.
snip (object, show = TRUE)
object |
A 'sound' or 'spectrogram' object to be truncated. |
show |
If TRUE, the selected subsection is displayed, resulting in zoom functionality. |
The input object is plotted and the user must click on two points on the plot. If show = TRUE, this function allows the user to zoom in on a subsection of the object. If the output is assigned to a variable, a new object is created and returned that contains only the data in between the two designated points.
A 'sound' or 'spectrogram' object which interacts with several functions included in this package.
Santiago Barreda <sbarreda@ucdavis.edu>
#data (sound)
## the example below is commented because examples cannot
## require user interaction. simply uncomment the lines below
## and select two points on the plot.
# clipped = snipsound (sound)
# spectrogram (clipped)
# spectralslice (clipped)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.