The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
ReVAMP provides an R interface to the Vamp audio analysis plugin system developed by Queen Mary University of London’s Centre for Digital Music. Vamp plugins are widely used for Music Information Retrieval (MIR) tasks including:
ReVAMP requires Vamp plugins to be installed separately. Popular plugin collections include:
See the Vamp Paths vignette for details on plugin installation and search paths.
First, check what plugins are available on your system:
# List all available plugins
plugins <- vampPlugins()
head(plugins)
# View plugin information
str(plugins)The dataframe contains:
library - The plugin library nameid - The plugin identifiername - Human-readable plugin namedescription - Plugin descriptionmaker - Plugin authorcategory - Plugin categoryThe main function is runPlugin(), which executes a
plugin on audio data and returns results as a named list of data
frames.
# Load audio file
audio <- readWave("path/to/audio.wav")
# Run amplitude follower plugin
result <- runPlugin(
key = "vamp-example-plugins:amplitudefollower",
wave = audio,
params = NULL, # Use default parameters
useFrames = FALSE # Return timestamps in seconds
)
# Result is a named list of data frames (one per output)
names(result)
str(result[[1]])Each output data frame contains:
timestamp - Time of the feature (in seconds or
frames)duration - Duration of the feature (if applicable)value - Feature value(s) as a list columnlabel - Text label (if provided by plugin)Many plugins accept parameters to customize their behavior.
# Get parameters for a plugin
params_df <- vampPluginParams("vamp-aubio:aubiopitch")
print(params_df)The parameters dataframe shows:
identifier - Parameter name for use in codename - Human-readable namedescription - What the parameter controlsunit - Unit of measurementminValue, maxValue - Valid rangedefaultValue - Default settingisQuantized - Whether it has discrete valuesquantizeStep - Step size for quantized parametersvalueNames - Named values (for quantized
parameters)Pass parameters as a named list:
?ReVAMP,
?runPluginvampPlugins(),
vampPluginParams()These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.