60 #ifndef INCLUDE_SHARC_H
61 #define INCLUDE_SHARC_H
66 #define MAX_PARTIALS 128
67 #define MAX_SPECTRA 64
68 #define MAX_INSTRUMENTS 40
87 SHARCSpectrum(
char * folder,
char * name,
unsigned m_key,
float n_pitch,
float a_pitch,
88 unsigned m_amp,
unsigned n_partials);
static void loadDefault()
unsigned count_partials()
unsigned * spectrum_keys()
bool read_from_directory(char *name)
AdditiveInstrument.h – Sum-of-sines synthesis instrument class.
static SHARCInstrument * instrument(char *instr)
char ** instrument_names()
float * spectrum_frequencies()
SHARCSpectrum ** _spectra
static SHARCLibrary * library()
unsigned _num_instruments
bool read_from_TOC(char *folder, char *name)
SHARCInstrument * instrument_named(const char *name)
static SHARCSpectrum * spectrum(const char *instr, char *note)
Struct for partial overtones.
unsigned count_partials()
SHARCSpectrum * spectrum_with_frequency(float freq)
SHARCSpectrum(char *folder, char *name, unsigned m_key, float n_pitch, float a_pitch, unsigned m_amp, unsigned n_partials)
SHARCInstrument(char *folder, char *name)
static SHARCLibrary * sSHARCLib
The protected single instance of the HRTF Database.
bool read_from_file(char *folder, char *name)
SHARCInstrument ** _instruments
SHARCSpectrum * spectrum_named(char *name)
SHARCSpectrum * spectrum_named(const char *inst, char *spect)
SHARCSpectrum * spectrum_with_key(unsigned key)