-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.c
More file actions
66 lines (56 loc) · 3.38 KB
/
Copy pathheader.c
File metadata and controls
66 lines (56 loc) · 3.38 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/**
* @file header.c
* @brief drumlogue SDK unit header
*
* Copyright (c) 2020-2022 KORG Inc. All rights reserved.
*
*/
#include "unit.h" // Note: Include common definitions for all units
// ---- Unit header definition --------------------------------------------------------------------
const __unit_header unit_header_t unit_header = {
.header_size = sizeof(unit_header_t), // leave as is, size of this header
.target = UNIT_TARGET_PLATFORM | k_unit_module_synth, // target platform and module for this unit
.api = UNIT_API_VERSION, // logue sdk API version against which unit was built
.dev_id = 0x0U, // developer identifier
.unit_id = 0x0U, // Id for this unit, should be unique within the scope of a given dev_id
.version = 0x00010000U, // This unit's version: major.minor.patch (major<<16 minor<<8 patch).
.name = "maxisnare", // Name for this unit, will be displayed on device
.num_presets = 0, // Number of internal presets this unit has
.num_params = 12, // Number of parameters for this unit, max 24
.params = {
// Format: min, max, center, default, type, fractional, frac. type, <reserved>, name
// See common/runtime.h for type enum and unit_param_t structure
// Page 1
{0, 127, 60, 60, k_unit_param_type_midi_note, 0, 0, 0, {"Note"}},
{0, 2000, 0, 0, k_unit_param_type_msec, 0, 0, 0, {"Decay"}},
{0, 3, 0, 0, k_unit_param_type_strings, 0, 0, 0, {"Wave"}},
{0, 100, 0, 100, k_unit_param_type_percent, 0, 0, 0, {"Osc/Nse"}},
// Page 2
{0, 2000, 0, 0, k_unit_param_type_msec, 0, 0, 0, {"PitchDecay"}},
{-100, 100, 0, 0, k_unit_param_type_percent, 0, 0, 0, {">Pitch"}},
// {0, 3, 0, 0, k_unit_param_type_strings, 0, 0, 0, {"Wave"}},
{0, 2, 0, 0, k_unit_param_type_strings, 0, 0, 0, {"Shape"}},
{-15, 30, 0, 0, k_unit_param_type_db, 0, 0, 0, {"Gain"}},
// {0, 0, 0, 0, k_unit_param_type_none, 0, 0, 0, {""}},
// {0, 0, 0, 0, k_unit_param_type_none, 0, 0, 0, {""}},
// {0, 0, 0, 0, k_unit_param_type_none, 0, 0, 0, {""}},
// Page 3
{-15, 30, 0, 0, k_unit_param_type_db, 0, 0, 0, {"Gain"}},
{0, 100, 0, 100, k_unit_param_type_percent, 0, 0, 0, {"Cutoff"}},
{-128, 128, 0, 16, k_unit_param_type_none, 5, 0, 0, {"Reso"}},
{0, 2, 0, 0, k_unit_param_type_strings, 0, 0, 0, {"EQ Sh"}},
// Page 4
{0, 0, 0, 0, k_unit_param_type_none, 0, 0, 0, {""}},
{0, 0, 0, 0, k_unit_param_type_none, 0, 0, 0, {""}},
{0, 0, 0, 0, k_unit_param_type_none, 0, 0, 0, {""}},
{0, 0, 0, 0, k_unit_param_type_none, 0, 0, 0, {""}},
// Page 5
{0, 0, 0, 0, k_unit_param_type_none, 0, 0, 0, {""}},
{0, 0, 0, 0, k_unit_param_type_none, 0, 0, 0, {""}},
{0, 0, 0, 0, k_unit_param_type_none, 0, 0, 0, {""}},
{0, 0, 0, 0, k_unit_param_type_none, 0, 0, 0, {""}},
// Page 6
{0, 0, 0, 0, k_unit_param_type_none, 0, 0, 0, {""}},
{0, 0, 0, 0, k_unit_param_type_none, 0, 0, 0, {""}},
{0, 0, 0, 0, k_unit_param_type_none, 0, 0, 0, {""}},
{0, 0, 0, 0, k_unit_param_type_none, 0, 0, 0, {""}}}};