-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMultiPart.cpp
More file actions
43 lines (38 loc) · 1.33 KB
/
Copy pathMultiPart.cpp
File metadata and controls
43 lines (38 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Copyright (C) 2022-2024 Theo Niessink <theo@taletn.com>
// This work is free. You can redistribute it and/or modify it under the
// terms of the Do What The Fuck You Want To Public License, Version 2,
// as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
#include "MultiPart.h"
#include <string.h>
namespace TG101 {
void MultiPart::Init()
{
static const unsigned char tbl[24] =
{
0x38, // SetVoiceBank(56);
0x00, // SetProgram(0);
0x10, // SetMidiChannel(kMidiChannelOff);
0x01, // SetPolyMode(true);
0x08, 0x00, // SetDetune(128);
0x40, // SetNoteShift(64);
0x64, // SetVolume(100);
0x08, // SetVelocitySense(8);
0x08, // SetPan(kPanVoice);
0x00, // SetNoteLimitLow(0);
0x7F, // SetNoteLimitHigh(127);
0x04, // SetReverbSendDepth(4);
0x40, // SetLFOSpeed(64);
0x40, // SetLFODepth(64);
0x40, // SetLFODelay(64);
0x40, // SetEGAttackRate(64);
0x40, // SetEGReleaseRate(64);
0x02, // SetPitchBendRange(2);
0x0F, // SetModLFOPitchDepth(15);
0x00, // DontCare();
0x40, // SetAftertouchPitchControl(64);
0x00, // SetAftertouchLFOPitchDepth(0);
0x00 // DontCare();
};
memcpy(&mBuf, tbl, 24);
}
} // namespace TG101