csoundOptionsForOutputFormat#
- csoundengine.csoundlib.csoundOptionsForOutputFormat(fmt='wav', encoding='')[source]#
Returns the command-line options for the given format+encoding
- Parameters:
fmt – the format of the output file (‘wav’, ‘flac’, ‘aif’, etc)
encoding – the encoding (‘pcm16’, ‘pcm24’, ‘float32’, etc). If not given, the best encoding for the given format is chosen
- Return type:
list
[str
]- Returns:
a tuple of two strings holding the command-line options for the given sample format/encoding
Example
>>> csoundOptionsForOutputFormat('flac') ('--format=flac', '--format=24bit') >>> csoundOptionsForOutputFormat('wav', 'float32') ('--format=wav', '--format=float') >>> csoundOptionsForOutputFormat('aif', 'pcm16') ('--format=aiff', '--format=short')
See also