CSL 5.2

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

Classes | Namespaces | Macros
Instrument.h File Reference
`#include "CSL_Includes.h"`
`#include "Accessor.h"`

Go to the source code of this file.

## Classes
class | csl::Instrument
| Instrument class (abstract) More...

## Namespaces
namespace | csl
| AdditiveInstrument.h – Sum-of-sines synthesis instrument class.

## Macros
#define | set_duration_f 100
| Instrument.h – The CSL pluggable instrument class. See the copyright notice and acknowledgment of authors in the file COPYRIGHT.
#define | set_amplitude_f 101
#define | set_frequency_f 102
#define | set_position_f 103
#define | set_position_p 104
#define | set_attack_f 105
#define | set_decay_f 106
#define | set_sustain_f 107
#define | set_release_f 108
#define | set_iattack_f 110
#define | set_idecay_f 111
#define | set_isustain_f 112
#define | set_irelease_f 113
#define | set_index_f 114
#define | set_c_freq_f 115
#define | set_m_freq_f 116
#define | set_vib_depth_f 120
#define | set_chiff_amt_f 121
#define | set_chiff_time_f 122
#define | set_rate_f 125
#define | set_file_f 126
#define | set_start_f 127
#define | set_stop_f 128
#define | set_partial_f 130
#define | set_partials_f 131

## Macro Definition Documentation

#define set_duration_f 100

Instrument.h – The CSL pluggable instrument class. See the copyright notice and acknowledgment of authors in the file COPYRIGHT.

Instrument are reflective objects that hold onto a DSP graph (a UnitGen), a name, and a list of "plugs" (Accessors, mapped to MIDI or OSC messages) for external control. Instruments can be registered with MIDI voicers or in the OSC address space. Keys for setParameter selector (default parameters for all notes)

Definition at line 19 of file Instrument.h.

Referenced by csl::FMInstrument::FMInstrument(), csl::WhiteNoiseInstrument::get_accessors(), csl::AdditiveInstrument::init(), csl::WhiteNoiseInstrument::set_parameter(), csl::AdditiveInstrument::setParameter(), csl::FMInstrument::setParameter(), csl::FancyFMInstrument::setParameter(), testFancyFMInstrument(), and testFMInstrument().

#define set_amplitude_f 101

Definition at line 20 of file Instrument.h.

Referenced by csl::FMInstrument::FMInstrument(), csl::WhiteNoiseInstrument::get_accessors(), csl::AdditiveInstrument::init(), csl::SndFileInstrument::initialize(), csl::WhiteNoiseInstrument::set_parameter(), csl::AdditiveInstrument::setParameter(), csl::SndFileInstrument::setParameter(), and csl::FMInstrument::setParameter().

#define set_frequency_f 102

Definition at line 21 of file Instrument.h.

Referenced by csl::AdditiveInstrument::init(), and csl::AdditiveInstrument::setParameter().

#define set_position_f 103

Definition at line 22 of file Instrument.h.

Referenced by csl::FMInstrument::FMInstrument(), csl::AdditiveInstrument::init(), csl::SndFileInstrument::initialize(), csl::AdditiveInstrument::setParameter(), csl::FMInstrument::setParameter(), csl::SndFileInstrument::setParameter(), and csl::MIDIPlayer::start().

#define set_position_p 104

Definition at line 23 of file Instrument.h.

#define set_attack_f 105

Definition at line 25 of file Instrument.h.

Referenced by csl::FMInstrument::FMInstrument(), csl::WhiteNoiseInstrument::get_accessors(), csl::AdditiveInstrument::init(), csl::SndFileInstrument::initialize(), csl::WhiteNoiseInstrument::set_parameter(), csl::AdditiveInstrument::setParameter(), csl::SndFileInstrument::setParameter(), and csl::FMInstrument::setParameter().

#define set_decay_f 106

Definition at line 26 of file Instrument.h.

Referenced by csl::FMInstrument::FMInstrument(), csl::WhiteNoiseInstrument::get_accessors(), csl::AdditiveInstrument::init(), csl::SndFileInstrument::initialize(), csl::WhiteNoiseInstrument::set_parameter(), csl::AdditiveInstrument::setParameter(), csl::SndFileInstrument::setParameter(), and csl::FMInstrument::setParameter().

#define set_sustain_f 107

Definition at line 27 of file Instrument.h.

Referenced by csl::FMInstrument::FMInstrument(), csl::WhiteNoiseInstrument::get_accessors(), csl::AdditiveInstrument::init(), csl::WhiteNoiseInstrument::set_parameter(), csl::AdditiveInstrument::setParameter(), and csl::FMInstrument::setParameter().

#define set_release_f 108

Definition at line 28 of file Instrument.h.

Referenced by csl::FMInstrument::FMInstrument(), csl::WhiteNoiseInstrument::get_accessors(), csl::AdditiveInstrument::init(), csl::WhiteNoiseInstrument::set_parameter(), csl::AdditiveInstrument::setParameter(), and csl::FMInstrument::setParameter().

#define set_iattack_f 110

Definition at line 30 of file Instrument.h.

Referenced by csl::FMInstrument::FMInstrument(), and csl::FMInstrument::setParameter().

#define set_idecay_f 111

Definition at line 31 of file Instrument.h.

Referenced by csl::FMInstrument::FMInstrument(), and csl::FMInstrument::setParameter().

#define set_isustain_f 112

Definition at line 32 of file Instrument.h.

Referenced by csl::FMInstrument::FMInstrument(), and csl::FMInstrument::setParameter().

#define set_irelease_f 113

Definition at line 33 of file Instrument.h.

Referenced by csl::FMInstrument::FMInstrument(), and csl::FMInstrument::setParameter().

#define set_index_f 114

Definition at line 35 of file Instrument.h.

Referenced by csl::FMInstrument::FMInstrument(), and csl::FMInstrument::setParameter().

#define set_c_freq_f 115

Definition at line 36 of file Instrument.h.

Referenced by csl::FMInstrument::FMInstrument(), csl::WhiteNoiseInstrument::get_accessors(), csl::WhiteNoiseInstrument::set_parameter(), csl::FMInstrument::setParameter(), csl::FancyFMInstrument::setParameter(), and testFancyFMInstrument().

#define set_m_freq_f 116

Definition at line 37 of file Instrument.h.

Referenced by csl::FMInstrument::FMInstrument(), and csl::FMInstrument::setParameter().

#define set_vib_depth_f 120

Definition at line 39 of file Instrument.h.

Referenced by csl::FancyFMInstrument::setParameter().

#define set_chiff_amt_f 121

Definition at line 40 of file Instrument.h.

Referenced by csl::FancyFMInstrument::setParameter().

#define set_chiff_time_f 122

Definition at line 41 of file Instrument.h.

#define set_rate_f 125

Definition at line 43 of file Instrument.h.

Referenced by csl::SndFileInstrument::initialize(), and csl::SndFileInstrument::setParameter().

#define set_file_f 126

Definition at line 44 of file Instrument.h.

Referenced by csl::SndFileInstrument::initialize(), and csl::SndFileInstrument::setParameter().

#define set_start_f 127

Definition at line 45 of file Instrument.h.

Referenced by csl::SndFileInstrument::initialize(), and csl::SndFileInstrument::setParameter().

#define set_stop_f 128

Definition at line 46 of file Instrument.h.

Referenced by csl::SndFileInstrument::initialize(), and csl::SndFileInstrument::setParameter().

#define set_partial_f 130

Definition at line 48 of file Instrument.h.

Referenced by csl::AdditiveInstrument::init(), and csl::AdditiveInstrument::setParameter().

#define set_partials_f 131

Definition at line 49 of file Instrument.h.

Referenced by csl::AdditiveInstrument::init(), and csl::AdditiveInstrument::setParameter().