mirror of
https://github.com/thestk/stk
synced 2026-01-11 20:11:52 +00:00
37 lines
1.0 KiB
C++
37 lines
1.0 KiB
C++
/******************************************/
|
|
/* Algorithm 6 (TX81Z) Subclass of */
|
|
/* 4 Operator FM Synth */
|
|
/* by Perry R. Cook, 1995-96 */
|
|
/* This connection topology is three */
|
|
/* Carriers and a common Modulator */
|
|
/* */
|
|
/* /->1 -\ */
|
|
/* 4-|-->2 - +-> Out */
|
|
/* \->3 -/ */
|
|
/* */
|
|
/* Controls: control1 = vowel */
|
|
/* control2 = spectral tilt */
|
|
/* control3 = LFO speed */
|
|
/* modWheel = LFO amount */
|
|
/* */
|
|
/******************************************/
|
|
|
|
#if !defined(__FM4Alg6_h)
|
|
#define __FM4Alg6_h
|
|
|
|
#include "FM4Op.h"
|
|
|
|
class FM4Alg6 : public FM4Op
|
|
{
|
|
protected:
|
|
MY_FLOAT tilt[3];
|
|
MY_FLOAT mods[3];
|
|
public:
|
|
FM4Alg6();
|
|
virtual ~FM4Alg6();
|
|
MY_FLOAT tick();
|
|
virtual void controlChange(int number, MY_FLOAT value);
|
|
};
|
|
|
|
#endif
|