setCsoundLibrary: Get and set the Csound shared library for accessing Csound's...

Description Usage Arguments Details Value

View source: R/setCsoundLibrary.R

Description

Functions to get and set the option "csoundlibrary", which is used by all the functions in the package to actually access the functionality of Csound.

Usage

1
2
3
4
5

Arguments

path

A character string containing the path to the Csound shared library.

Details

The csound package attempts to find the library file automatically on startup and warns if it fails. In this case, you need to find the path to Csound's shared library (often a .so or .dll, depending on the system. setCsoundLibrary will only actually set the option if it successfully locates and links to the library; if it fails to link it, it stops with an error.

Hopefully these options won't need to be accessed by most users, but they are provided as a backup.

Value

getCsoundLibrary() returns a pointer to the Csound library, with the path to the library passed as an attribute.

csoundGetVersion() returns the version of Csound that is linked to.


csound documentation built on May 2, 2019, 5:46 p.m.