67 static void noteOn(tsf* f,
int presetId,
int key,
float vel);
68 static void noteOff(tsf* f,
int presetId,
int key);
69 static int presetIndex(
const tsf* f,
int bank,
int presetNum);
70 static void renderFloat(tsf* f,
float* buffer,
int samples,
int flag);
72 static void setOutput(tsf* f,
int samplerate,
float gain);
75 void toTsf (tsf_hydra& out);
76 bool validate(
const tsf_hydra& tsf)
const;
78 std::vector<tsf_hydra_phdr>
phdr;
79 std::vector<tsf_hydra_pbag>
pbag;
80 std::vector<tsf_hydra_pmod>
pmod;
81 std::vector<tsf_hydra_pgen>
pgen;
82 std::vector<tsf_hydra_inst>
inst;
83 std::vector<tsf_hydra_ibag>
ibag;
84 std::vector<tsf_hydra_imod>
imod;
85 std::vector<tsf_hydra_igen>
igen;
86 std::vector<tsf_hydra_shdr>
shdr;
92 static uint16_t mkGeneratorOp(uint16_t usDestination);
93 std::unique_ptr<float[]> allocSamples(
const std::vector<Dx8::Wave>& wave, std::vector<tsf_hydra_shdr> &samples,
size_t &count);
std::vector< tsf_hydra_igen > igen
static void renderFloat(tsf *f, float *buffer, int samples, int flag)
bool validate(const tsf_hydra &tsf) const
static void setOutput(tsf *f, int samplerate, float gain)
std::vector< tsf_hydra_pbag > pbag
std::vector< tsf_hydra_ibag > ibag
std::vector< tsf_hydra_pgen > pgen
std::vector< tsf_hydra_phdr > phdr
static int presetIndex(const tsf *f, int bank, int presetNum)
static bool hasNotes(tsf *tsf)
static void noteOn(tsf *f, int presetId, int key, float vel)
static int channelSetPan(tsf *f, int channel, float pan)
std::vector< tsf_hydra_pmod > pmod
static void finalize(tsf *tsf)
std::vector< tsf_hydra_inst > inst
std::unique_ptr< float[]> wdata
static void noteOff(tsf *f, int presetId, int key)
std::vector< tsf_hydra_shdr > shdr
std::vector< tsf_hydra_imod > imod