R Under development (unstable) (2025-12-18 r89199) -- "Unsuffered Consequences" Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. Natural language support but running in an English locale R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > pkgname <- "ReVAMP" > source(file.path(R.home("share"), "R", "examples-header.R")) > options(warn = 1) > library('ReVAMP') vamp-sdk/RealTime.cpp:84:54: runtime error: signed integer overflow: -2147483648 - 1 cannot be represented in type 'int' #0 0x7f4967e5522f in _VampHost::Vamp::RealTime::RealTime(int, int) /data/gannet/ripley/R/packages/tests-clang-UBSAN/ReVAMP/src/./vamp-sdk/RealTime.cpp:84:54 #1 0x7f4976ccd536 in call_init /usr/src/debug/glibc-2.41-6.fc42.x86_64/elf/dl-init.c:74:3 #2 0x7f4976ccd536 in call_init /usr/src/debug/glibc-2.41-6.fc42.x86_64/elf/dl-init.c:26:1 #3 0x7f4976ccd60c in _dl_init /usr/src/debug/glibc-2.41-6.fc42.x86_64/elf/dl-init.c:121:5 #4 0x7f4976cca7b4 in _dl_catch_exception /usr/src/debug/glibc-2.41-6.fc42.x86_64/elf/dl-catch.c:215:7 #5 0x7f4976cd4348 in dl_open_worker /usr/src/debug/glibc-2.41-6.fc42.x86_64/elf/dl-open.c:799:3 #6 0x7f4976cca715 in _dl_catch_exception /usr/src/debug/glibc-2.41-6.fc42.x86_64/elf/dl-catch.c:241:8 #7 0x7f4976cd475d in _dl_open /usr/src/debug/glibc-2.41-6.fc42.x86_64/elf/dl-open.c:874:17 #8 0x7f4975e7b553 in dlopen_doit (/lib64/libc.so.6+0x6d553) (BuildId: a1dda014206b55b07f58fe8db80121b752dc3d03) #9 0x7f4976cca715 in _dl_catch_exception /usr/src/debug/glibc-2.41-6.fc42.x86_64/elf/dl-catch.c:241:8 #10 0x7f4976cca868 in _dl_catch_error /usr/src/debug/glibc-2.41-6.fc42.x86_64/elf/dl-catch.c:260:19 #11 0x7f4975e7b042 in _dlerror_run (/lib64/libc.so.6+0x6d042) (BuildId: a1dda014206b55b07f58fe8db80121b752dc3d03) #12 0x7f4975e7b60a in dlopen@@GLIBC_2.34 (/lib64/libc.so.6+0x6d60a) (BuildId: a1dda014206b55b07f58fe8db80121b752dc3d03) #13 0x55ec8a6756b4 in AddDLL Rdynload.c #14 0x55ec8a675569 in do_dynload (/data/gannet/ripley/R/R-clang/bin/exec/R+0x4569) #15 0x55ec8a73f10a in bcEval_loop eval.c #16 0x55ec8a73750b in bcEval eval.c #17 0x55ec8a736c94 in Rf_eval (/data/gannet/ripley/R/R-clang/bin/exec/R+0xc5c94) #18 0x55ec8a754088 in R_execClosure eval.c #19 0x55ec8a75358b in applyClosure_core eval.c #20 0x55ec8a7370e5 in Rf_eval (/data/gannet/ripley/R/R-clang/bin/exec/R+0xc60e5) #21 0x55ec8a789037 in Rf_ReplIteration (/data/gannet/ripley/R/R-clang/bin/exec/R+0x118037) #22 0x55ec8a78ab3e in run_Rmainloop (/data/gannet/ripley/R/R-clang/bin/exec/R+0x119b3e) #23 0x55ec8a78abaa in Rf_mainloop (/data/gannet/ripley/R/R-clang/bin/exec/R+0x119baa) #24 0x55ec8a672da7 in main (/data/gannet/ripley/R/R-clang/bin/exec/R+0x1da7) #25 0x7f4975e115f4 in __libc_start_call_main (/lib64/libc.so.6+0x35f4) (BuildId: a1dda014206b55b07f58fe8db80121b752dc3d03) #26 0x7f4975e116a7 in __libc_start_main@GLIBC_2.2.5 (/lib64/libc.so.6+0x36a7) (BuildId: a1dda014206b55b07f58fe8db80121b752dc3d03) #27 0x55ec8a672cc4 in _start (/data/gannet/ripley/R/R-clang/bin/exec/R+0x1cc4) SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior vamp-sdk/RealTime.cpp:84:54 > > base::assign(".oldSearch", base::search(), pos = 'CheckExEnv') > base::assign(".old_wd", base::getwd(), pos = 'CheckExEnv') > cleanEx() > nameEx("ReVAMP-package") > ### * ReVAMP-package > > flush(stderr()); flush(stdout()) > > ### Name: ReVAMP-package > ### Title: R Interface to Vamp Audio Analysis Plugins > ### Aliases: ReVAMP-package ReVAMP > ### Keywords: package > > ### ** Examples > > ## Not run: > ##D # List available plugins > ##D plugins <- vampPlugins() > ##D head(plugins) > ##D > ##D # Get plugin search paths > ##D vampPaths() > ##D > ##D # Get info about a specific plugin > ##D params <- vampParams("vamp-example-plugins:amplitudefollower") > ##D > ##D # Get SDK version information > ##D vampInfo() > ## End(Not run) > > > > cleanEx() > nameEx("runPlugin") > ### * runPlugin > > flush(stderr()); flush(stdout()) > > ### Name: runPlugin > ### Title: Run a Vamp Plugin on Audio Data > ### Aliases: runPlugin > > ### ** Examples > > ## Not run: > ##D library(tuneR) > ##D > ##D # Load audio file > ##D audio <- readWave("myaudio.wav") > ##D > ##D # Run amplitude follower plugin - returns list with one output > ##D result <- runPlugin( > ##D wave = audio, > ##D key = "vamp-example-plugins:amplitudefollower" > ##D ) > ##D > ##D # Access the amplitude output > ##D amplitude_data <- result$amplitude > ##D head(amplitude_data) > ##D > ##D # Run onset detection - may return multiple outputs > ##D result <- runPlugin( > ##D wave = audio, > ##D key = "vamp-aubio-plugins:aubioonset" > ##D ) > ##D > ##D # See what outputs were produced > ##D names(result) > ##D > ##D # Access specific outputs > ##D onsets <- result$onsets > ##D detection_fn <- result$detection_function > ##D > ##D # Run plugin with custom parameters > ##D # First check what parameters are available > ##D params_info <- vampPluginParams("vamp-aubio-plugins:aubioonset") > ##D print(params_info) > ##D > ##D # Set specific parameter values > ##D result <- runPlugin( > ##D wave = audio, > ##D key = "vamp-aubio-plugins:aubioonset", > ##D params = list(threshold = 0.5, silence = -70) > ##D ) > ##D > ##D # Run with custom block and step sizes for better time resolution > ##D result <- runPlugin( > ##D wave = audio, > ##D key = "vamp-aubio-plugins:aubioonset", > ##D blockSize = 512, # Smaller blocks for better time resolution > ##D stepSize = 128 # 75% overlap for smoother detection > ##D ) > ##D > ##D # Run frequency domain plugin with larger FFT for better frequency resolution > ##D result <- runPlugin( > ##D wave = audio, > ##D key = "qm-vamp-plugins:qm-chromagram", > ##D blockSize = 4096, # Larger FFT for better frequency resolution > ##D stepSize = 2048 # 50% overlap (typical for frequency domain) > ##D ) > ## End(Not run) > > > > cleanEx() > nameEx("vampInfo") > ### * vampInfo > > flush(stderr()); flush(stdout()) > > ### Name: vampInfo > ### Title: Get Vamp API and SDK Version Information > ### Aliases: vampInfo > > ### ** Examples > > ## Not run: > ##D # Get version information > ##D vampInfo() > ## End(Not run) > > > > cleanEx() > nameEx("vampPaths") > ### * vampPaths > > flush(stderr()); flush(stdout()) > > ### Name: vampPaths > ### Title: Get Vamp Plugin Search Paths > ### Aliases: vampPaths > > ### ** Examples > > ## Not run: > ##D # List plugin search paths > ##D vampPaths() > ## End(Not run) > > > > cleanEx() > nameEx("vampPluginParams") > ### * vampPluginParams > > flush(stderr()); flush(stdout()) > > ### Name: vampPluginParams > ### Title: Get Parameters for a Specific Vamp Plugin > ### Aliases: vampPluginParams > > ### ** Examples > > ## Not run: > ##D # Get parameters for aubio onset detector > ##D params <- vampPluginParams("vamp-aubio-plugins:aubioonset") > ## End(Not run) > > > > cleanEx() > nameEx("vampPlugins") > ### * vampPlugins > > flush(stderr()); flush(stdout()) > > ### Name: vampPlugins > ### Title: List All Available Vamp Plugins > ### Aliases: vampPlugins > > ### ** Examples > > ## Not run: > ##D # List all installed plugins > ##D plugins <- vampPlugins() > ##D > ##D # Filter for specific library > ##D aubio_plugins <- plugins[plugins$library == "vamp-aubio-plugins", ] > ## End(Not run) > > > > ### *