Deluge Firmware
1.3.0
Build date: 2026.08.23
Toggle main menu visibility
Loading...
Searching...
No Matches
transpose.h
1
/*
2
* Copyright (c) 2014-2023 Synthstrom Audible Limited
3
*
4
* This file is part of The Synthstrom Audible Deluge Firmware.
5
*
6
* The Synthstrom Audible Deluge Firmware is free software: you can redistribute it and/or modify it under the
7
* terms of the GNU General Public License as published by the Free Software Foundation,
8
* either version 3 of the License, or (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
11
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12
* See the GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License along with this program.
15
* If not, see <https://www.gnu.org/licenses/>.
16
*/
17
#pragma once
18
#include "gui/menu_item/transpose.h"
19
20
namespace
deluge::gui::menu_item::source {
21
class
Transpose :
public
menu_item::Transpose
{
22
public
:
23
Transpose(l10n::String newName, int32_t newP, uint8_t sourceId)
24
:
menu_item::Transpose
(newName, newP), source_id_(sourceId) {}
25
Transpose(l10n::String newName, l10n::String
title
, int32_t newP, uint8_t sourceId)
26
:
menu_item::Transpose
(newName,
title
, newP), source_id_(sourceId) {}
27
28
ParamDescriptor
getLearningThing()
final
{
29
ParamDescriptor
paramDescriptor{};
30
paramDescriptor.setToHaveParamOnly(getP());
31
return
paramDescriptor;
32
}
33
34
protected
:
35
uint8_t source_id_;
36
uint8_t getP()
final
{
return
p + source_id_; }
37
};
38
}
// namespace deluge::gui::menu_item::source
MenuItem::title
deluge::l10n::String title
Can get overridden by getTitle(). Actual max num chars for OLED display is 14.
Definition
menu_item.h:222
ParamDescriptor
Definition
param_descriptor.h:27
deluge::gui::menu_item::Transpose
Definition
transpose.h:26