libpsynth 0.2.1
Public Member Functions | Protected Member Functions | Protected Attributes
psynth::graph::core::oscillator< Generator, Output > Class Template Reference

Oscillator node. More...

#include <oscillator.hpp>

Inheritance diagram for psynth::graph::core::oscillator< Generator, Output >:
Inheritance graph
[legend]
Collaboration diagram for psynth::graph::core::oscillator< Generator, Output >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 oscillator ()

Protected Member Functions

void rt_on_context_update (rt_process_context &ctx)
void rt_do_process (rt_process_context &ctx)

Protected Attributes

Output _out_output
soft_sample_in_port _in_modulator
in_control< float > _ctl_frequency
in_control< float > _ctl_amplitude
in_control< int > _ctl_modulator
synth::oscillator< Generator > _osc

Detailed Description

template<class Generator, class Output>
class psynth::graph::core::oscillator< Generator, Output >

Oscillator node.

Output: "output" : Output

Input: "modulator" : sample_buffer

Params: "frequency" : float "amplitude" : float "modulator" : int (0 : am, 1 : fm, 2 : pm)

Todo:
The audio/sample kind of input difference should finish with automagic buffer conversion.

Constructor & Destructor Documentation

template<class G , class O >
psynth::graph::core::oscillator< G, O >::oscillator ( )

Member Function Documentation

template<class G , class O >
void psynth::graph::core::oscillator< G, O >::rt_do_process ( rt_process_context ctx) [protected, virtual]

Reimplemented from psynth::graph::node.

template<class G , class O >
void psynth::graph::core::oscillator< G, O >::rt_on_context_update ( rt_process_context ctx) [protected, virtual]

Reimplemented from psynth::graph::node.


Member Data Documentation

template<class Generator , class Output >
in_control<float> psynth::graph::core::oscillator< Generator, Output >::_ctl_amplitude [protected]
template<class Generator , class Output >
in_control<float> psynth::graph::core::oscillator< Generator, Output >::_ctl_frequency [protected]
template<class Generator , class Output >
in_control<int> psynth::graph::core::oscillator< Generator, Output >::_ctl_modulator [protected]
template<class Generator , class Output >
soft_sample_in_port psynth::graph::core::oscillator< Generator, Output >::_in_modulator [protected]
template<class Generator , class Output >
synth::oscillator<Generator> psynth::graph::core::oscillator< Generator, Output >::_osc [protected]
template<class Generator , class Output >
Output psynth::graph::core::oscillator< Generator, Output >::_out_output [protected]

The documentation for this class was generated from the following files: