- constify

- refactored MidiCC
- JaySynthSound is not MidiCC, but has MidiCC
- refactored xml import export for patches and banks
This commit is contained in:
2023-04-28 12:32:26 +02:00
parent 5850ab5d46
commit b4add9e530
7 changed files with 153 additions and 119 deletions
+5 -3
View File
@@ -15,7 +15,7 @@
//==============================================================================
/** A synth sound that's just a bunch of parameters that makes an incredible sound.. */
class JaySynthSound : public SynthesiserSound, public JaySynthMidiCC
class JaySynthSound : public SynthesiserSound
{
public:
synth_float_t parameter[SYNTH_NUM_PARAMS];
@@ -24,10 +24,12 @@ public:
JaySynthSound();
~JaySynthSound();
JaySynthMidiCC m_midiCC;
const JaySynthMidiCC* getMidiCC() const;
void setName(String ProgramName);
String getName(void);
String getName(void) const;
void setParameter(int index, synth_float_t param);
synth_float_t getParameter(int index);
synth_float_t getParameter(int index) const;
void initParameter(int index, synth_float_t param);
bool appliesToNote (const int /*midiNoteNumber*/) { return true; }
bool appliesToChannel (const int /*midiChannel*/) { return true; }