-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.c
63 lines (53 loc) · 3.11 KB
/
header.c
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
/**
* @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_masterfx, // target platform and module for this unit
.api = UNIT_API_VERSION, // logue sdk API version against which unit was built
.dev_id = 0x0U, // developer id
.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 = "poutoushaper", // Name for this unit, will be displayed on device
.num_presets = 0, // Number of internal presets this unit has
.num_params = 2, // 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
// percent param with .5 precision e.g.: "25.0%", "50.5%"
{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, {""}},
// Page 2
{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 3
{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 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, {""}}}};