mirror of
https://github.com/thestk/stk
synced 2026-04-23 15:48:37 +00:00
Merge pull request #24 from gperciva/master
add clear() to abstract Instrumnt.h
This commit is contained in:
@@ -22,6 +22,12 @@ class Instrmnt : public Stk
|
|||||||
//! Class constructor.
|
//! Class constructor.
|
||||||
Instrmnt( void ) { lastFrame_.resize( 1, 1, 0.0 ); };
|
Instrmnt( void ) { lastFrame_.resize( 1, 1, 0.0 ); };
|
||||||
|
|
||||||
|
//! Reset and clear all internal state (for subclasses).
|
||||||
|
/*!
|
||||||
|
Not all subclasses implement a clear() function.
|
||||||
|
*/
|
||||||
|
virtual void clear( void ) {};
|
||||||
|
|
||||||
//! Start a note with the given frequency and amplitude.
|
//! Start a note with the given frequency and amplitude.
|
||||||
virtual void noteOn( StkFloat frequency, StkFloat amplitude ) = 0;
|
virtual void noteOn( StkFloat frequency, StkFloat amplitude ) = 0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user