getVersion

Contents

getVersion#

csoundengine.csoundlib.getVersion(useApi=True)[source]#

Returns the csound version as tuple (major, minor, patch)

Parameters:

useApi – if True, the API is used to query the version. Otherwise the output of “csound –version” is parsed. Both versions might differ

Returns:

int, minor:int, patch:int|str)

Return type:

the versions as a tuple (major

Raises RuntimeError if csound is not present or its version can’t be parsed