2020-10-24 20:15:18 -06:00
|
|
|
// "Factory" patches
|
2020-10-11 20:29:04 -06:00
|
|
|
|
2020-10-24 20:15:18 -06:00
|
|
|
#pragma once
|
2020-10-25 11:36:58 -06:00
|
|
|
#include "algorithms.h"
|
2020-11-11 20:20:21 -07:00
|
|
|
#include "synth.h"
|
2020-10-11 20:29:04 -06:00
|
|
|
|
2020-10-24 20:15:18 -06:00
|
|
|
// Waveform, offset, multiplier, delay, attack, holdAmp, hold, decay, sustainAmp, release
|
|
|
|
FMPatch Bank[] = {
|
2020-10-25 19:20:18 -06:00
|
|
|
{
|
|
|
|
"Pumpkin",
|
|
|
|
ALG_OPL2_1(0.3),
|
|
|
|
{
|
|
|
|
// Waveform offs mult dely attk hldA hld decy susA rels
|
|
|
|
{WAVEFORM_SAWTOOTH, 0, 1.00, 0, 10.5, 0.8, 10.5, 10, 0.50, 5},
|
|
|
|
{WAVEFORM_SINE, 0, 2.00, 0, 10.5, 0.4, 10.5, 10, 0.01, 5},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"Sawtooth",
|
|
|
|
ALG_SIMPLE,
|
|
|
|
{
|
|
|
|
// Waveform offs mult dely attk hldA hld decy susA rels
|
|
|
|
{WAVEFORM_SAWTOOTH, 0, 1.00, 0, 10.5, 0.8, 10.5, 10, 0.50, 5},
|
|
|
|
},
|
|
|
|
},
|
2020-10-11 20:29:04 -06:00
|
|
|
{
|
2020-10-25 11:36:58 -06:00
|
|
|
"Square",
|
|
|
|
ALG_SIMPLE,
|
2020-10-11 20:29:04 -06:00
|
|
|
{
|
2020-10-25 11:36:58 -06:00
|
|
|
// Waveform offs mult dely attk hldA hld decy susA rels
|
|
|
|
{WAVEFORM_SQUARE, 0, 1.00, 0, 10.5, 0.8, 10.5, 10, 0.50, 5},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"Tubey",
|
|
|
|
ALG_OPL2_1(0),
|
|
|
|
{
|
|
|
|
// Waveform offs mult dely attk hldA hld decy susA rels
|
|
|
|
{WAVEFORM_SINE, 0, 1.00, 0, 10.5, 1.0, 10.5, 10, 0.80, 5},
|
|
|
|
{WAVEFORM_SINE, 0, 8.00, 0, 10.5, 0.2, 10.5, 10, 0.10, 5},
|
2020-10-11 20:29:04 -06:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"IWantPizza",
|
2020-10-25 11:36:58 -06:00
|
|
|
ALG_DX9_1(0),
|
2020-10-11 20:29:04 -06:00
|
|
|
{
|
2020-10-25 11:36:58 -06:00
|
|
|
{WAVEFORM_SINE, 0, 4.00, 0, 10.5, 1.0, 10.5, 0, 0.35, 20},
|
|
|
|
{WAVEFORM_SINE, 0, 1.00, 0, 10.5, 1.0, 10.5, 0, 0.30, 20},
|
|
|
|
{WAVEFORM_SINE, 0, 8.00, 0, 10.5, 1.0, 10.5, 0, 0.50, 20},
|
|
|
|
{WAVEFORM_SINE, 0, 16.00, 0, 10.5, 1.0, 50, 0, 0.25, 20},
|
2020-10-11 20:29:04 -06:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"Ray Gun",
|
2020-10-25 11:36:58 -06:00
|
|
|
ALG_DX9_1(0),
|
2020-10-11 20:29:04 -06:00
|
|
|
{
|
2020-10-25 11:36:58 -06:00
|
|
|
{WAVEFORM_SINE, 0, 1.00, 0, 10.5, 1.0, 10.5, 0, 0.35, 20},
|
|
|
|
{WAVEFORM_SINE, 0, 1.00, 0, 10.5, 1.0, 10.5, 0, 0.30, 20},
|
|
|
|
{WAVEFORM_SINE, 0, 9.00, 0, 10.5, 1.0, 10.5, 0, 0.00, 20},
|
|
|
|
{WAVEFORM_SINE, 0, 1.00, 0, 10.5, 1.0, 50, 0, 0.25, 8},
|
2020-10-11 20:29:04 -06:00
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
2020-11-25 17:13:54 -07:00
|
|
|
|
|
|
|
const int PATCH_MAX = sizeof(Bank) / sizeof(Bank[0]);
|