mirror of
https://github.com/thestk/stk
synced 2026-01-20 07:51:53 +00:00
Merge pull request #49 from sonoro1234/removealert_branch
add removeSampleRateAlert to ADSR and Asymp
This commit is contained in:
@@ -32,6 +32,7 @@ ADSR :: ADSR( void )
|
||||
|
||||
ADSR :: ~ADSR( void )
|
||||
{
|
||||
Stk::removeSampleRateAlert( this );
|
||||
}
|
||||
|
||||
void ADSR :: sampleRateChanged( StkFloat newRate, StkFloat oldRate )
|
||||
|
||||
@@ -40,6 +40,7 @@ Asymp :: Asymp( void )
|
||||
|
||||
Asymp :: ~Asymp( void )
|
||||
{
|
||||
Stk::removeSampleRateAlert( this );
|
||||
}
|
||||
|
||||
void Asymp :: sampleRateChanged( StkFloat newRate, StkFloat oldRate )
|
||||
|
||||
@@ -131,7 +131,7 @@ void VoicForm :: controlChange( int number, StkFloat value )
|
||||
{
|
||||
#if defined(_STK_DEBUG_)
|
||||
if ( Stk::inRange( value, 0.0, 128.0 ) == false ) {
|
||||
oStream_ << "Clarinet::controlChange: value (" << value << ") is out of range!";
|
||||
oStream_ << "VoicForm::controlChange: value (" << value << ") is out of range!";
|
||||
handleError( StkError::WARNING ); return;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user