#include <SHARC.h>
Public Member Functions | |
| SHARCSpectrum (char *folder, char *name, unsigned m_key, float n_pitch, float a_pitch, unsigned m_amp, unsigned n_partials) | |
| ~SHARCSpectrum () | |
| bool | read_from_file (char *folder, char *name) |
| unsigned | count_partials () |
| void | dump_example () |
Public Attributes | |
| char * | _note_name |
| unsigned | _midi_key |
| float | _nom_pitch |
| float | _actual_pitch |
| unsigned | _max_amp |
| unsigned | _num_partials |
| Partial ** | _partials |
| SHARCSpectrum::SHARCSpectrum | ( | char * | folder, | |
| char * | name, | |||
| unsigned | m_key, | |||
| float | n_pitch, | |||
| float | a_pitch, | |||
| unsigned | m_amp, | |||
| unsigned | n_partials | |||
| ) |
References _note_name, _partials, and read_from_file().
| SHARCSpectrum::~SHARCSpectrum | ( | ) |
References _note_name, and _partials.
| bool csl::SHARCSpectrum::read_from_file | ( | char * | folder, | |
| char * | name | |||
| ) |
Referenced by SHARCSpectrum().
| unsigned SHARCSpectrum::count_partials | ( | ) |
| void SHARCSpectrum::dump_example | ( | ) |
References _num_partials, _partials, csl::Partial::amplitude, csl::Partial::number, and csl::Partial::phase.
Referenced by csl::SHARCInstrument::dump_example().
| unsigned csl::SHARCSpectrum::_midi_key |
Referenced by csl::SHARCInstrument::spectrum_keys().
Referenced by csl::SHARCInstrument::spectrum_frequencies().
| unsigned csl::SHARCSpectrum::_max_amp |
| unsigned csl::SHARCSpectrum::_num_partials |
Referenced by count_partials(), and dump_example().
Referenced by dump_example(), SHARCSpectrum(), and ~SHARCSpectrum().
1.5.8