Threaded build nominally working
This commit is contained in:
parent
96152fd3ed
commit
f9527898df
26 changed files with 1237 additions and 1090 deletions
24
reverb.h
24
reverb.h
|
|
@ -14,7 +14,7 @@ protected:
|
|||
unsigned char model[2];
|
||||
unsigned char slot;
|
||||
|
||||
int continuous_control( int parm5, int parm6, int parm7, int value );
|
||||
int continuous_control( int parm5, int parm6, int parm7, int value, unsigned char *cmd );
|
||||
|
||||
public:
|
||||
ReverbCC( Mustang * theAmp, const unsigned char *model, const unsigned char theSlot ) :
|
||||
|
|
@ -24,21 +24,21 @@ public:
|
|||
memcpy( this->model, model, 2 );
|
||||
}
|
||||
|
||||
int dispatch( int cc, int value );
|
||||
int dispatch( int cc, int value, unsigned char *cmd );
|
||||
const unsigned char *getModel( void ) { return model;}
|
||||
const unsigned char getSlot( void ) { return slot;}
|
||||
|
||||
private:
|
||||
// Level
|
||||
int cc59( int value ) { return continuous_control( 0x00, 0x00, 0x0b, value );}
|
||||
int cc59( int value, unsigned char *cmd ) { return continuous_control( 0x00, 0x00, 0x0b, value, cmd );}
|
||||
// Decay
|
||||
int cc60( int value ) { return continuous_control( 0x01, 0x01, 0x0b, value );}
|
||||
int cc60( int value, unsigned char *cmd ) { return continuous_control( 0x01, 0x01, 0x0b, value, cmd );}
|
||||
// Dwell
|
||||
int cc61( int value ) { return continuous_control( 0x02, 0x02, 0x0b, value );}
|
||||
int cc61( int value, unsigned char *cmd ) { return continuous_control( 0x02, 0x02, 0x0b, value, cmd );}
|
||||
// Diffusion
|
||||
int cc62( int value ) { return continuous_control( 0x03, 0x03, 0x0b, value );}
|
||||
int cc62( int value, unsigned char *cmd ) { return continuous_control( 0x03, 0x03, 0x0b, value, cmd );}
|
||||
// Tone
|
||||
int cc63( int value ) { return continuous_control( 0x04, 0x04, 0x0b, value );}
|
||||
int cc63( int value, unsigned char *cmd ) { return continuous_control( 0x04, 0x04, 0x0b, value, cmd );}
|
||||
};
|
||||
|
||||
|
||||
|
|
@ -46,11 +46,11 @@ class NullReverbCC : public ReverbCC {
|
|||
public:
|
||||
NullReverbCC( Mustang * theAmp, const unsigned char *model, const unsigned char theSlot ) : ReverbCC(theAmp,model,theSlot) {}
|
||||
private:
|
||||
int cc59( int value ) { return 0;}
|
||||
int cc60( int value ) { return 0;}
|
||||
int cc61( int value ) { return 0;}
|
||||
int cc62( int value ) { return 0;}
|
||||
int cc63( int value ) { return 0;}
|
||||
int cc59( int value, unsigned char *cmd ) { return -1;}
|
||||
int cc60( int value, unsigned char *cmd ) { return -1;}
|
||||
int cc61( int value, unsigned char *cmd ) { return -1;}
|
||||
int cc62( int value, unsigned char *cmd ) { return -1;}
|
||||
int cc63( int value, unsigned char *cmd ) { return -1;}
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue