mirror of
https://github.com/thestk/stk
synced 2026-01-11 20:11:52 +00:00
Version 4.0
This commit is contained in:
committed by
Stephen Sinclair
parent
3f126af4e5
commit
81475b04c5
52
include/HevyMetl.h
Normal file
52
include/HevyMetl.h
Normal file
@@ -0,0 +1,52 @@
|
||||
/***************************************************/
|
||||
/*! \class HevyMetl
|
||||
\brief STK heavy metal FM synthesis instrument.
|
||||
|
||||
This class implements 3 cascade operators with
|
||||
feedback modulation, also referred to as
|
||||
algorithm 3 of the TX81Z.
|
||||
|
||||
\code
|
||||
Algorithm 3 is : 4--\
|
||||
3-->2-- + -->1-->Out
|
||||
\endcode
|
||||
|
||||
Control Change Numbers:
|
||||
- Total Modulator Index = 2
|
||||
- Modulator Crossfade = 4
|
||||
- LFO Speed = 11
|
||||
- LFO Depth = 1
|
||||
- ADSR 2 & 4 Target = 128
|
||||
|
||||
The basic Chowning/Stanford FM patent expired
|
||||
in 1995, but there exist follow-on patents,
|
||||
mostly assigned to Yamaha. If you are of the
|
||||
type who should worry about this (making
|
||||
money) worry away.
|
||||
|
||||
by Perry R. Cook and Gary P. Scavone, 1995 - 2002.
|
||||
*/
|
||||
/***************************************************/
|
||||
|
||||
#if !defined(__HEVYMETL_H)
|
||||
#define __HEVYMETL_H
|
||||
|
||||
#include "FM.h"
|
||||
|
||||
class HevyMetl : public FM
|
||||
{
|
||||
public:
|
||||
//! Class constructor.
|
||||
HevyMetl();
|
||||
|
||||
//! Class destructor.
|
||||
~HevyMetl();
|
||||
|
||||
//! Start a note with the given frequency and amplitude.
|
||||
void noteOn(MY_FLOAT frequency, MY_FLOAT amplitude);
|
||||
|
||||
//! Compute one output sample.
|
||||
MY_FLOAT tick();
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user