VISR  0.11.8
Versatile Interactive Scene Renderer
visr::apps::matrix_convolver Namespace Reference

Classes

class  Options
 

Functions

template<typename DataType >
void initFilterMatrix (std::string const &filterList, std::size_t maxFilterLength, std::size_t maxFilterEntries, rbbl::IndexSequence const &indexOffsets, efl::BasicMatrix< DataType > &matrix)
 
template void initFilterMatrix< float > (std::string const &, std::size_t, std::size_t, rbbl::IndexSequence const &, efl::BasicMatrix< float > &)
 
template void initFilterMatrix< double > (std::string const &, std::size_t, std::size_t, rbbl::IndexSequence const &, efl::BasicMatrix< double > &)
 

Function Documentation

template<typename DataType >
void visr::apps::matrix_convolver::initFilterMatrix ( std::string const &  filterList,
std::size_t  maxFilterLength,
std::size_t  maxFilterEntries,
rbbl::IndexSequence const &  indexOffsets,
efl::BasicMatrix< DataType > &  matrix 
)

Initialise the matrix of impulse responses from a set of parameters.

Parameters
filterListA comma-separated string containing the filter files(WAVs) to be read. Empty or blank if no files are to be loaded.
maxFilterLengthThe length of the filters. If provided, the WAV files are checked against this value, and padded with zeros. To ignore this value, use std::numeric_limits<std::size_t>::max(). In this case, the filter length is set to the length of the longest WAV file.
maxFilterEntriesThe number of filters in the returned matrix. An error is generated if the highest filter index exceeds this value. Use std::numeric_limits<std::size_t>::max() to ignore this parameter. In this case, the number of filters is determined from the highest position index of the impulse responses.
indexOffsetsStarting indices for the irs from the WAV files. If specified, it must has the same number of values as the number of files in filterList. To ignore, pass an empty sequence. In this case, the IRs care stored consecutively in the output matrix.
[out]matrixThe resized and filled impulse reesponse matrix.
Exceptions
std::invalid_argumentIn case of inconsistent parameters.
template void visr::apps::matrix_convolver::initFilterMatrix< double > ( std::string const &  ,
std::size_t  ,
std::size_t  ,
rbbl::IndexSequence const &  ,
efl::BasicMatrix< double > &   
)
template void visr::apps::matrix_convolver::initFilterMatrix< float > ( std::string const &  ,
std::size_t  ,
std::size_t  ,
rbbl::IndexSequence const &  ,
efl::BasicMatrix< float > &   
)