#include <SHARC.h>
Public Member Functions | |
| SHARCInstrument (char *folder, char *name) | |
| ~SHARCInstrument () | |
| char ** | spectrum_names () |
| unsigned * | spectrum_keys () |
| float * | spectrum_frequencies () |
| SHARCSpectrum * | spectrum_named (char *name) |
| SHARCSpectrum * | spectrum_with_key (unsigned key) |
| SHARCSpectrum * | spectrum_with_frequency (float freq) |
| unsigned | count_spectra () |
| unsigned | count_partials () |
| void | dump_example () |
Public Attributes | |
| char * | _name |
| unsigned | _num_spectra |
| SHARCSpectrum ** | _spectra |
Private Member Functions | |
| bool | read_from_TOC (char *folder, char *name) |
| SHARCInstrument::SHARCInstrument | ( | char * | folder, | |
| char * | name | |||
| ) |
References _num_spectra, _spectra, MAX_SPECTRA, and read_from_TOC().
| SHARCInstrument::~SHARCInstrument | ( | ) |
References _spectra.
| char ** SHARCInstrument::spectrum_names | ( | ) |
| unsigned * SHARCInstrument::spectrum_keys | ( | ) |
References csl::SHARCSpectrum::_midi_key, _num_spectra, and _spectra.
| float * SHARCInstrument::spectrum_frequencies | ( | ) |
References csl::SHARCSpectrum::_actual_pitch, _num_spectra, and _spectra.
| SHARCSpectrum * SHARCInstrument::spectrum_named | ( | char * | name | ) |
| SHARCSpectrum * SHARCInstrument::spectrum_with_key | ( | unsigned | key | ) |
References _num_spectra, and _spectra.
| SHARCSpectrum * SHARCInstrument::spectrum_with_frequency | ( | float | freq | ) |
References _num_spectra, and _spectra.
| unsigned SHARCInstrument::count_spectra | ( | ) |
| unsigned SHARCInstrument::count_partials | ( | ) |
References _num_spectra, _spectra, and csl::SHARCSpectrum::count_partials().
Referenced by csl::SHARCLibrary::dump_stats().
| void SHARCInstrument::dump_example | ( | ) |
References _name, csl::SHARCSpectrum::_note_name, _spectra, and csl::SHARCSpectrum::dump_example().
Referenced by csl::SHARCLibrary::dump_example().
| bool SHARCInstrument::read_from_TOC | ( | char * | folder, | |
| char * | name | |||
| ) | [private] |
Referenced by dump_example(), csl::SHARCLibrary::instrument_names(), read_from_TOC(), and test_SHARC().
| unsigned csl::SHARCInstrument::_num_spectra |
1.5.8