aboutsummaryrefslogtreecommitdiff
path: root/stksitar~/sitar.h
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2011-07-30 20:40:34 +0000
committerIOhannes m zmölnig <zmoelnig@iem.at>2015-10-14 15:23:30 +0200
commit2ae5d551c7b67fe5ff413e85d1e68eb1a063993a (patch)
treea0eb54d184ebbbf98b4a9cd9f00861108b3bc5a9 /stksitar~/sitar.h
parent66aa65d08587324b679556b7b50f5db434b8167c (diff)
added template-style README and LICENSE and purged cruft in prep for porting to the library template
svn path=/trunk/externals/unauthorized/; revision=15171
Diffstat (limited to 'stksitar~/sitar.h')
-rw-r--r--stksitar~/sitar.h43
1 files changed, 0 insertions, 43 deletions
diff --git a/stksitar~/sitar.h b/stksitar~/sitar.h
deleted file mode 100644
index 1144c86..0000000
--- a/stksitar~/sitar.h
+++ /dev/null
@@ -1,43 +0,0 @@
-/******************************************/
-/* Karplus-Strong Sitar1 string model */
-/* by Perry Cook, 1995-96 */
-/* */
-/* There exist at least two patents, */
-/* assigned to Stanford, bearing the */
-/* names of Karplus and/or Strong. */
-/******************************************/
-
-#if !defined(__sitar_h)
-#define __sitar_h
-
-#include "Instrmnt.h"
-#include "DelayA.h"
-#include "OneZero.h"
-#include "Noise.h"
-#include "ADSR.h"
-
-class sitar : public Instrmnt
-{
-protected:
- DelayA *delayLine;
- OneZero *loopFilt;
- ADSR *envelope;
- Noise *noise;
- long length;
- StkFloat loopGain;
- StkFloat amPluck;
- StkFloat delay;
- StkFloat delayTarg;
-public:
- sitar(StkFloat lowestFreq);
- ~sitar();
- void clear();
- virtual void setFreq(StkFloat frequency);
- void pluck(StkFloat amplitude);
- virtual void noteOn(StkFloat freq, StkFloat amp);
- virtual void noteOff(StkFloat amp);
- virtual StkFloat tick();
-};
-
-#endif
-