CSL  6.0
csl::SHARCInstrument Class Reference

SHARC instrument class. More...

#include <SHARC.h>

Public Member Functions

 SHARCInstrument (char *folder, char *name)
 
 ~SHARCInstrument ()
 
char ** spectrum_names ()
 
unsigned * spectrum_keys ()
 
float * spectrum_frequencies ()
 
SHARCSpectrumspectrum_named (char *name)
 
SHARCSpectrumspectrum_with_key (unsigned key)
 
SHARCSpectrumspectrum_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)
 

Detailed Description

SHARC instrument class.

Definition at line 100 of file SHARC.h.

Constructor & Destructor Documentation

SHARCInstrument::SHARCInstrument ( char *  folder,
char *  name 
)

Definition at line 99 of file SHARC.cpp.

References _num_spectra, _spectra, MAX_SPECTRA, and read_from_TOC().

SHARCInstrument::~SHARCInstrument ( )

Definition at line 105 of file SHARC.cpp.

References _spectra.

Member Function Documentation

char ** SHARCInstrument::spectrum_names ( )

Definition at line 144 of file SHARC.cpp.

References csl::SHARCSpectrum::_note_name, _num_spectra, and _spectra.

Referenced by csl::SHARCLibrary::dump().

unsigned * SHARCInstrument::spectrum_keys ( )

Definition at line 153 of file SHARC.cpp.

References csl::SHARCSpectrum::_midi_key, _num_spectra, and _spectra.

float * SHARCInstrument::spectrum_frequencies ( )

Definition at line 162 of file SHARC.cpp.

References csl::SHARCSpectrum::_actual_pitch, _num_spectra, and _spectra.

SHARCSpectrum * SHARCInstrument::spectrum_named ( char *  name)

Definition at line 171 of file SHARC.cpp.

References _num_spectra, and _spectra.

Referenced by csl::SHARCLibrary::spectrum(), and csl::SHARCLibrary::spectrum_named().

SHARCSpectrum * SHARCInstrument::spectrum_with_key ( unsigned  key)

Definition at line 180 of file SHARC.cpp.

References _num_spectra, and _spectra.

Referenced by csl::SHARCLibrary::spectrum().

SHARCSpectrum * SHARCInstrument::spectrum_with_frequency ( float  freq)

Definition at line 189 of file SHARC.cpp.

References _num_spectra, and _spectra.

unsigned SHARCInstrument::count_spectra ( )

Definition at line 200 of file SHARC.cpp.

References _num_spectra.

Referenced by csl::SHARCLibrary::dump_stats().

unsigned SHARCInstrument::count_partials ( )

Definition at line 204 of file SHARC.cpp.

References _num_spectra, _spectra, and csl::SHARCSpectrum::count_partials().

Referenced by csl::SHARCLibrary::dump_stats().

void SHARCInstrument::dump_example ( )
bool SHARCInstrument::read_from_TOC ( char *  folder,
char *  name 
)
private

Definition at line 111 of file SHARC.cpp.

References _name, _num_spectra, and _spectra.

Referenced by SHARCInstrument().

Member Data Documentation

char* csl::SHARCInstrument::_name

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