|
@@ -23,16 +23,18 @@ |
|
|
|
|
|
|
|
|
==============================================================================
|
|
|
==============================================================================
|
|
|
*/
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
/**
|
|
|
Applies a gain to audio samples as single samples or AudioBlocks.
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
Generates a signal based on a user-supplied function.
|
|
|
|
|
|
*/
|
|
|
template <typename SampleType>
|
|
|
template <typename SampleType>
|
|
|
class Oscillator
|
|
|
class Oscillator
|
|
|
{
|
|
|
{
|
|
|
public:
|
|
|
public:
|
|
|
/** The NumericType is the underlying primitive type used by the SampleType (which
|
|
|
/** The NumericType is the underlying primitive type used by the SampleType (which
|
|
|
could be either a primitive or vector)
|
|
|
could be either a primitive or vector)
|
|
|
*/
|
|
|
|
|
|
|
|
|
*/
|
|
|
using NumericType = typename SampleTypeHelpers::ElementType<SampleType>::Type;
|
|
|
using NumericType = typename SampleTypeHelpers::ElementType<SampleType>::Type;
|
|
|
|
|
|
|
|
|
/** Creates an oscillator with a periodic input function (-pi..pi).
|
|
|
/** Creates an oscillator with a periodic input function (-pi..pi).
|
|
|