2022-02-15 03:12:20 +00:00
|
|
|
/**
|
|
|
|
* Furnace Tracker - multi-system chiptune tracker
|
|
|
|
* Copyright (C) 2021-2022 tildearrow and contributors
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*/
|
|
|
|
|
2022-03-21 22:34:43 +00:00
|
|
|
#ifndef _FUR_GUI_H
|
|
|
|
#define _FUR_GUI_H
|
|
|
|
|
2021-12-11 07:10:09 +00:00
|
|
|
#include "../engine/engine.h"
|
2022-05-21 23:36:15 +00:00
|
|
|
#include "../engine/waveSynth.h"
|
2021-12-11 08:11:40 +00:00
|
|
|
#include "imgui.h"
|
|
|
|
#include "imgui_impl_sdl.h"
|
|
|
|
#include "imgui_impl_sdlrenderer.h"
|
|
|
|
#include <SDL.h>
|
2022-05-31 08:24:29 +00:00
|
|
|
#include <fftw3.h>
|
2021-12-24 23:27:55 +00:00
|
|
|
#include <deque>
|
2022-03-02 07:22:51 +00:00
|
|
|
#include <initializer_list>
|
2021-12-14 22:45:37 +00:00
|
|
|
#include <map>
|
2022-03-21 19:11:28 +00:00
|
|
|
#include <future>
|
2022-06-21 23:01:53 +00:00
|
|
|
#include <memory>
|
2022-03-21 19:11:28 +00:00
|
|
|
#include <mutex>
|
2022-06-06 00:04:41 +00:00
|
|
|
#include <tuple>
|
2022-02-16 21:11:15 +00:00
|
|
|
#include <vector>
|
2021-12-11 07:10:09 +00:00
|
|
|
|
2022-03-13 23:32:35 +00:00
|
|
|
#include "fileDialog.h"
|
|
|
|
|
2022-03-01 03:42:52 +00:00
|
|
|
#define rightClickable if (ImGui::IsItemClicked(ImGuiMouseButton_Right)) ImGui::SetKeyboardFocusHere(-1);
|
2022-04-02 05:11:44 +00:00
|
|
|
#define ctrlWheeling ((ImGui::IsKeyDown(ImGuiKey_LeftCtrl) || ImGui::IsKeyDown(ImGuiKey_RightCtrl)) && wheelY!=0)
|
2022-03-01 03:42:52 +00:00
|
|
|
|
2022-03-05 07:13:15 +00:00
|
|
|
#define handleUnimportant if (settings.insFocusesPattern && patternOpen) {nextWindow=GUI_WINDOW_PATTERN;}
|
|
|
|
#define unimportant(x) if (x) {handleUnimportant}
|
|
|
|
|
2022-03-21 21:17:51 +00:00
|
|
|
#define MARK_MODIFIED modified=true;
|
2022-04-16 23:35:25 +00:00
|
|
|
#define WAKE_UP drawHalt=16;
|
2022-03-21 21:17:51 +00:00
|
|
|
|
2022-09-18 03:55:58 +00:00
|
|
|
#define RESET_WAVE_MACRO_ZOOM \
|
|
|
|
for (DivInstrument* _wi: e->song.ins) { \
|
|
|
|
_wi->std.waveMacro.vZoom=-1; \
|
|
|
|
_wi->std.waveMacro.vScroll=-1; \
|
|
|
|
}
|
|
|
|
|
2022-12-03 05:51:57 +00:00
|
|
|
#define CHECK_LONG_HOLD (mobileUI && ImGui::GetIO().MouseDown[ImGuiMouseButton_Left] && ImGui::GetIO().MouseDownDuration[ImGuiMouseButton_Left]>=longThreshold && ImGui::GetIO().MouseDownDurationPrev[ImGuiMouseButton_Left]<longThreshold && ImGui::GetIO().MouseDragMaxDistanceSqr[ImGuiMouseButton_Left]<=ImGui::GetIO().ConfigInertialScrollToleranceSqr)
|
2022-12-07 03:40:23 +00:00
|
|
|
#define CHECK_BUTTON_LONG_HOLD (mobileUI && ImGui::GetIO().MouseDown[ImGuiMouseButton_Left] && ImGui::GetIO().MouseDownDuration[ImGuiMouseButton_Left]>=buttonLongThreshold && ImGui::GetIO().MouseDownDurationPrev[ImGuiMouseButton_Left]<buttonLongThreshold)
|
2022-12-02 09:13:26 +00:00
|
|
|
// for now
|
2022-12-02 21:52:47 +00:00
|
|
|
#define NOTIFY_LONG_HOLD \
|
|
|
|
if (vibrator && vibratorAvailable) { \
|
|
|
|
if (SDL_HapticRumblePlay(vibrator,0.5f,20)!=0) { \
|
|
|
|
logV("could not vibrate: %s!",SDL_GetError()); \
|
|
|
|
} \
|
2022-12-03 03:59:52 +00:00
|
|
|
} else { \
|
|
|
|
fputc(7,stderr); /* bell */ \
|
2022-12-03 05:51:57 +00:00
|
|
|
logI("beep!"); \
|
2022-12-02 21:52:47 +00:00
|
|
|
}
|
2022-12-02 09:13:26 +00:00
|
|
|
|
2022-03-22 23:05:32 +00:00
|
|
|
#define BIND_FOR(x) getKeyName(actionKeys[x],true).c_str()
|
|
|
|
|
2022-04-11 23:12:05 +00:00
|
|
|
// TODO:
|
|
|
|
// - add colors for FM envelope and waveform
|
|
|
|
// - maybe add "alternate" color for FM modulators/carriers (a bit difficult)
|
2021-12-13 22:09:46 +00:00
|
|
|
enum FurnaceGUIColors {
|
|
|
|
GUI_COLOR_BACKGROUND=0,
|
|
|
|
GUI_COLOR_FRAME_BACKGROUND,
|
2022-01-29 19:20:30 +00:00
|
|
|
GUI_COLOR_MODAL_BACKDROP,
|
2021-12-13 22:09:46 +00:00
|
|
|
GUI_COLOR_HEADER,
|
2022-01-22 06:50:52 +00:00
|
|
|
GUI_COLOR_TEXT,
|
|
|
|
GUI_COLOR_ACCENT_PRIMARY,
|
|
|
|
GUI_COLOR_ACCENT_SECONDARY,
|
2022-04-06 05:34:26 +00:00
|
|
|
GUI_COLOR_BORDER,
|
|
|
|
GUI_COLOR_BORDER_SHADOW,
|
2022-03-22 06:57:06 +00:00
|
|
|
GUI_COLOR_TOGGLE_OFF,
|
|
|
|
GUI_COLOR_TOGGLE_ON,
|
2022-01-19 23:10:42 +00:00
|
|
|
GUI_COLOR_EDITING,
|
2022-01-27 06:04:26 +00:00
|
|
|
GUI_COLOR_SONG_LOOP,
|
2022-03-18 04:28:01 +00:00
|
|
|
|
|
|
|
GUI_COLOR_FILE_DIR,
|
|
|
|
GUI_COLOR_FILE_SONG_NATIVE,
|
|
|
|
GUI_COLOR_FILE_SONG_IMPORT,
|
|
|
|
GUI_COLOR_FILE_INSTR,
|
|
|
|
GUI_COLOR_FILE_AUDIO,
|
|
|
|
GUI_COLOR_FILE_WAVE,
|
|
|
|
GUI_COLOR_FILE_VGM,
|
2022-05-26 05:24:21 +00:00
|
|
|
GUI_COLOR_FILE_ZSM,
|
2022-03-18 04:28:01 +00:00
|
|
|
GUI_COLOR_FILE_FONT,
|
|
|
|
GUI_COLOR_FILE_OTHER,
|
|
|
|
|
2022-04-09 10:02:24 +00:00
|
|
|
GUI_COLOR_OSC_BG1,
|
|
|
|
GUI_COLOR_OSC_BG2,
|
|
|
|
GUI_COLOR_OSC_BG3,
|
|
|
|
GUI_COLOR_OSC_BG4,
|
|
|
|
GUI_COLOR_OSC_BORDER,
|
|
|
|
GUI_COLOR_OSC_WAVE,
|
|
|
|
GUI_COLOR_OSC_WAVE_PEAK,
|
|
|
|
GUI_COLOR_OSC_REF,
|
|
|
|
GUI_COLOR_OSC_GUIDE,
|
|
|
|
|
2022-01-29 23:56:08 +00:00
|
|
|
GUI_COLOR_VOLMETER_LOW,
|
|
|
|
GUI_COLOR_VOLMETER_HIGH,
|
|
|
|
GUI_COLOR_VOLMETER_PEAK,
|
2022-03-18 04:28:01 +00:00
|
|
|
|
|
|
|
GUI_COLOR_ORDER_ROW_INDEX,
|
|
|
|
GUI_COLOR_ORDER_ACTIVE,
|
|
|
|
GUI_COLOR_ORDER_SIMILAR,
|
|
|
|
GUI_COLOR_ORDER_INACTIVE,
|
|
|
|
|
2022-04-12 23:26:25 +00:00
|
|
|
GUI_COLOR_FM_ALG_BG,
|
|
|
|
GUI_COLOR_FM_ALG_LINE,
|
|
|
|
GUI_COLOR_FM_MOD,
|
|
|
|
GUI_COLOR_FM_PRIMARY_MOD,
|
|
|
|
GUI_COLOR_FM_SECONDARY_MOD,
|
|
|
|
GUI_COLOR_FM_BORDER_MOD,
|
|
|
|
GUI_COLOR_FM_BORDER_SHADOW_MOD,
|
|
|
|
GUI_COLOR_FM_CAR,
|
|
|
|
GUI_COLOR_FM_PRIMARY_CAR,
|
|
|
|
GUI_COLOR_FM_SECONDARY_CAR,
|
|
|
|
GUI_COLOR_FM_BORDER_CAR,
|
|
|
|
GUI_COLOR_FM_BORDER_SHADOW_CAR,
|
|
|
|
|
|
|
|
GUI_COLOR_FM_ENVELOPE,
|
|
|
|
GUI_COLOR_FM_ENVELOPE_SUS_GUIDE,
|
|
|
|
GUI_COLOR_FM_ENVELOPE_RELEASE,
|
|
|
|
GUI_COLOR_FM_SSG,
|
|
|
|
GUI_COLOR_FM_WAVE,
|
|
|
|
|
2022-01-22 06:50:52 +00:00
|
|
|
GUI_COLOR_MACRO_VOLUME,
|
|
|
|
GUI_COLOR_MACRO_PITCH,
|
|
|
|
GUI_COLOR_MACRO_OTHER,
|
|
|
|
GUI_COLOR_MACRO_WAVE,
|
2022-03-18 04:28:01 +00:00
|
|
|
|
2021-12-29 04:10:30 +00:00
|
|
|
GUI_COLOR_INSTR_STD,
|
2022-04-13 02:30:12 +00:00
|
|
|
GUI_COLOR_INSTR_FM,
|
2022-01-09 22:48:09 +00:00
|
|
|
GUI_COLOR_INSTR_GB,
|
|
|
|
GUI_COLOR_INSTR_C64,
|
|
|
|
GUI_COLOR_INSTR_AMIGA,
|
2022-01-14 01:44:45 +00:00
|
|
|
GUI_COLOR_INSTR_PCE,
|
|
|
|
GUI_COLOR_INSTR_AY,
|
2022-01-14 05:02:10 +00:00
|
|
|
GUI_COLOR_INSTR_AY8930,
|
2022-01-14 20:21:57 +00:00
|
|
|
GUI_COLOR_INSTR_TIA,
|
2022-01-15 04:26:22 +00:00
|
|
|
GUI_COLOR_INSTR_SAA1099,
|
2022-02-19 08:37:47 +00:00
|
|
|
GUI_COLOR_INSTR_VIC,
|
|
|
|
GUI_COLOR_INSTR_PET,
|
|
|
|
GUI_COLOR_INSTR_VRC6,
|
|
|
|
GUI_COLOR_INSTR_OPLL,
|
|
|
|
GUI_COLOR_INSTR_OPL,
|
|
|
|
GUI_COLOR_INSTR_FDS,
|
|
|
|
GUI_COLOR_INSTR_VBOY,
|
|
|
|
GUI_COLOR_INSTR_N163,
|
|
|
|
GUI_COLOR_INSTR_SCC,
|
|
|
|
GUI_COLOR_INSTR_OPZ,
|
|
|
|
GUI_COLOR_INSTR_POKEY,
|
|
|
|
GUI_COLOR_INSTR_BEEPER,
|
|
|
|
GUI_COLOR_INSTR_SWAN,
|
2022-02-20 17:15:15 +00:00
|
|
|
GUI_COLOR_INSTR_MIKEY,
|
2022-03-10 22:46:40 +00:00
|
|
|
GUI_COLOR_INSTR_VERA,
|
2022-03-06 17:31:03 +00:00
|
|
|
GUI_COLOR_INSTR_X1_010,
|
2022-04-13 02:30:12 +00:00
|
|
|
GUI_COLOR_INSTR_VRC6_SAW,
|
2022-04-27 05:56:15 +00:00
|
|
|
GUI_COLOR_INSTR_ES5506,
|
|
|
|
GUI_COLOR_INSTR_MULTIPCM,
|
|
|
|
GUI_COLOR_INSTR_SNES,
|
|
|
|
GUI_COLOR_INSTR_SU,
|
2022-05-20 07:43:39 +00:00
|
|
|
GUI_COLOR_INSTR_NAMCO,
|
2022-05-30 23:37:07 +00:00
|
|
|
GUI_COLOR_INSTR_OPL_DRUMS,
|
2022-09-23 08:41:38 +00:00
|
|
|
GUI_COLOR_INSTR_OPM,
|
|
|
|
GUI_COLOR_INSTR_NES,
|
Prepare for split sample chip instrument
(MSM6258, MSM6295, QSound, Sega PCM, ADPCM-A, ADPCM-B, YMZ280B, RF5C68)
Instrument color and icons are placeholder.
different volume range, hard panned/soft panned and/or independent volume per output, chip-dependent features (global volume, echo, etc)
Allow use sample in instrument tab for chip with sample support
Prepare to support X1-010 Seta 2 style bankswitch behavior
Prepare to support AY89x0 PCM DAC
Support volume for PCE sample (DAC)
Fix Lynx, Y8950 sample pitch matches to sample preview
Support PCM DAC with backward and pingpong loop mode
Reduce some codes
Add Sega PCM, AY89x0, QSound, PCM DAC, Lynx per-channel debug support
2022-08-27 07:27:36 +00:00
|
|
|
GUI_COLOR_INSTR_MSM6258,
|
|
|
|
GUI_COLOR_INSTR_MSM6295,
|
|
|
|
GUI_COLOR_INSTR_ADPCMA,
|
|
|
|
GUI_COLOR_INSTR_ADPCMB,
|
|
|
|
GUI_COLOR_INSTR_SEGAPCM,
|
|
|
|
GUI_COLOR_INSTR_QSOUND,
|
|
|
|
GUI_COLOR_INSTR_YMZ280B,
|
|
|
|
GUI_COLOR_INSTR_RF5C68,
|
2022-10-01 08:15:40 +00:00
|
|
|
GUI_COLOR_INSTR_MSM5232,
|
2022-10-12 05:46:33 +00:00
|
|
|
GUI_COLOR_INSTR_T6W28,
|
2022-12-08 05:18:22 +00:00
|
|
|
GUI_COLOR_INSTR_K007232,
|
2022-12-15 05:47:46 +00:00
|
|
|
GUI_COLOR_INSTR_GA20,
|
|
|
|
GUI_COLOR_INSTR_POKEMINI,
|
2022-01-09 22:48:09 +00:00
|
|
|
GUI_COLOR_INSTR_UNKNOWN,
|
2022-03-18 04:28:01 +00:00
|
|
|
|
2022-09-18 08:51:10 +00:00
|
|
|
GUI_COLOR_CHANNEL_BG,
|
|
|
|
GUI_COLOR_CHANNEL_FG,
|
2021-12-23 16:29:11 +00:00
|
|
|
GUI_COLOR_CHANNEL_FM,
|
|
|
|
GUI_COLOR_CHANNEL_PULSE,
|
|
|
|
GUI_COLOR_CHANNEL_NOISE,
|
|
|
|
GUI_COLOR_CHANNEL_WAVE,
|
|
|
|
GUI_COLOR_CHANNEL_PCM,
|
2021-12-23 22:09:33 +00:00
|
|
|
GUI_COLOR_CHANNEL_OP,
|
|
|
|
GUI_COLOR_CHANNEL_MUTED,
|
2022-03-18 04:28:01 +00:00
|
|
|
|
2022-04-02 05:41:52 +00:00
|
|
|
GUI_COLOR_PATTERN_PLAY_HEAD,
|
2021-12-23 16:29:11 +00:00
|
|
|
GUI_COLOR_PATTERN_CURSOR,
|
|
|
|
GUI_COLOR_PATTERN_CURSOR_HOVER,
|
|
|
|
GUI_COLOR_PATTERN_CURSOR_ACTIVE,
|
|
|
|
GUI_COLOR_PATTERN_SELECTION,
|
|
|
|
GUI_COLOR_PATTERN_SELECTION_HOVER,
|
|
|
|
GUI_COLOR_PATTERN_SELECTION_ACTIVE,
|
2021-12-13 22:09:46 +00:00
|
|
|
GUI_COLOR_PATTERN_HI_1,
|
|
|
|
GUI_COLOR_PATTERN_HI_2,
|
|
|
|
GUI_COLOR_PATTERN_ROW_INDEX,
|
2022-04-07 07:24:54 +00:00
|
|
|
GUI_COLOR_PATTERN_ROW_INDEX_HI1,
|
|
|
|
GUI_COLOR_PATTERN_ROW_INDEX_HI2,
|
2021-12-13 22:09:46 +00:00
|
|
|
GUI_COLOR_PATTERN_ACTIVE,
|
|
|
|
GUI_COLOR_PATTERN_INACTIVE,
|
2022-04-07 07:24:54 +00:00
|
|
|
GUI_COLOR_PATTERN_ACTIVE_HI1,
|
|
|
|
GUI_COLOR_PATTERN_INACTIVE_HI1,
|
|
|
|
GUI_COLOR_PATTERN_ACTIVE_HI2,
|
|
|
|
GUI_COLOR_PATTERN_INACTIVE_HI2,
|
2021-12-13 22:09:46 +00:00
|
|
|
GUI_COLOR_PATTERN_INS,
|
2022-04-05 04:38:38 +00:00
|
|
|
GUI_COLOR_PATTERN_INS_WARN,
|
|
|
|
GUI_COLOR_PATTERN_INS_ERROR,
|
2021-12-13 22:09:46 +00:00
|
|
|
GUI_COLOR_PATTERN_VOLUME_MAX,
|
|
|
|
GUI_COLOR_PATTERN_VOLUME_HALF,
|
|
|
|
GUI_COLOR_PATTERN_VOLUME_MIN,
|
|
|
|
GUI_COLOR_PATTERN_EFFECT_INVALID,
|
|
|
|
GUI_COLOR_PATTERN_EFFECT_PITCH,
|
|
|
|
GUI_COLOR_PATTERN_EFFECT_VOLUME,
|
|
|
|
GUI_COLOR_PATTERN_EFFECT_PANNING,
|
|
|
|
GUI_COLOR_PATTERN_EFFECT_SONG,
|
|
|
|
GUI_COLOR_PATTERN_EFFECT_TIME,
|
|
|
|
GUI_COLOR_PATTERN_EFFECT_SPEED,
|
|
|
|
GUI_COLOR_PATTERN_EFFECT_SYS_PRIMARY,
|
|
|
|
GUI_COLOR_PATTERN_EFFECT_SYS_SECONDARY,
|
|
|
|
GUI_COLOR_PATTERN_EFFECT_MISC,
|
2022-03-18 04:28:01 +00:00
|
|
|
|
2022-09-30 23:24:20 +00:00
|
|
|
GUI_COLOR_SAMPLE_BG,
|
|
|
|
GUI_COLOR_SAMPLE_FG,
|
|
|
|
GUI_COLOR_SAMPLE_LOOP,
|
|
|
|
GUI_COLOR_SAMPLE_CENTER,
|
|
|
|
GUI_COLOR_SAMPLE_GRID,
|
|
|
|
GUI_COLOR_SAMPLE_SEL,
|
|
|
|
GUI_COLOR_SAMPLE_SEL_POINT,
|
|
|
|
GUI_COLOR_SAMPLE_NEEDLE,
|
2022-11-26 23:44:04 +00:00
|
|
|
GUI_COLOR_SAMPLE_NEEDLE_PLAYING,
|
|
|
|
GUI_COLOR_SAMPLE_LOOP_POINT,
|
|
|
|
GUI_COLOR_SAMPLE_TIME_BG,
|
|
|
|
GUI_COLOR_SAMPLE_TIME_FG,
|
|
|
|
GUI_COLOR_SAMPLE_CHIP_DISABLED,
|
|
|
|
GUI_COLOR_SAMPLE_CHIP_ENABLED,
|
|
|
|
GUI_COLOR_SAMPLE_CHIP_WARNING,
|
2022-09-30 23:24:20 +00:00
|
|
|
|
2022-08-16 09:19:00 +00:00
|
|
|
GUI_COLOR_PAT_MANAGER_NULL,
|
|
|
|
GUI_COLOR_PAT_MANAGER_USED,
|
|
|
|
GUI_COLOR_PAT_MANAGER_OVERUSED,
|
|
|
|
GUI_COLOR_PAT_MANAGER_EXTREMELY_OVERUSED,
|
|
|
|
GUI_COLOR_PAT_MANAGER_COMBO_BREAKER,
|
|
|
|
GUI_COLOR_PAT_MANAGER_UNUSED,
|
|
|
|
|
2022-05-17 20:20:56 +00:00
|
|
|
GUI_COLOR_PIANO_BACKGROUND,
|
|
|
|
GUI_COLOR_PIANO_KEY_BOTTOM,
|
|
|
|
GUI_COLOR_PIANO_KEY_TOP,
|
|
|
|
GUI_COLOR_PIANO_KEY_BOTTOM_HIT,
|
|
|
|
GUI_COLOR_PIANO_KEY_TOP_HIT,
|
|
|
|
GUI_COLOR_PIANO_KEY_BOTTOM_ACTIVE,
|
|
|
|
GUI_COLOR_PIANO_KEY_TOP_ACTIVE,
|
|
|
|
|
2022-11-10 06:26:59 +00:00
|
|
|
GUI_COLOR_CLOCK_TEXT,
|
|
|
|
GUI_COLOR_CLOCK_BEAT_LOW,
|
|
|
|
GUI_COLOR_CLOCK_BEAT_HIGH,
|
|
|
|
|
2022-04-11 03:12:02 +00:00
|
|
|
GUI_COLOR_LOGLEVEL_ERROR,
|
|
|
|
GUI_COLOR_LOGLEVEL_WARNING,
|
|
|
|
GUI_COLOR_LOGLEVEL_INFO,
|
|
|
|
GUI_COLOR_LOGLEVEL_DEBUG,
|
|
|
|
GUI_COLOR_LOGLEVEL_TRACE,
|
|
|
|
|
2021-12-21 00:46:49 +00:00
|
|
|
GUI_COLOR_EE_VALUE,
|
2021-12-21 07:30:09 +00:00
|
|
|
GUI_COLOR_PLAYBACK_STAT,
|
2021-12-13 22:09:46 +00:00
|
|
|
GUI_COLOR_MAX
|
|
|
|
};
|
|
|
|
|
2021-12-14 22:45:37 +00:00
|
|
|
enum FurnaceGUIWindows {
|
|
|
|
GUI_WINDOW_NOTHING=0,
|
2021-12-15 22:32:08 +00:00
|
|
|
GUI_WINDOW_EDIT_CONTROLS,
|
2021-12-14 22:45:37 +00:00
|
|
|
GUI_WINDOW_SONG_INFO,
|
|
|
|
GUI_WINDOW_ORDERS,
|
|
|
|
GUI_WINDOW_INS_LIST,
|
|
|
|
GUI_WINDOW_PATTERN,
|
2021-12-16 08:09:18 +00:00
|
|
|
GUI_WINDOW_INS_EDIT,
|
|
|
|
GUI_WINDOW_WAVE_LIST,
|
|
|
|
GUI_WINDOW_WAVE_EDIT,
|
|
|
|
GUI_WINDOW_SAMPLE_LIST,
|
2022-01-13 06:03:57 +00:00
|
|
|
GUI_WINDOW_SAMPLE_EDIT,
|
2022-02-11 23:20:39 +00:00
|
|
|
GUI_WINDOW_MIXER,
|
|
|
|
GUI_WINDOW_ABOUT,
|
|
|
|
GUI_WINDOW_SETTINGS,
|
|
|
|
GUI_WINDOW_DEBUG,
|
2022-02-12 07:14:25 +00:00
|
|
|
GUI_WINDOW_OSCILLOSCOPE,
|
2022-02-11 23:20:39 +00:00
|
|
|
GUI_WINDOW_VOL_METER,
|
|
|
|
GUI_WINDOW_STATS,
|
|
|
|
GUI_WINDOW_COMPAT_FLAGS,
|
|
|
|
GUI_WINDOW_PIANO,
|
|
|
|
GUI_WINDOW_NOTES,
|
|
|
|
GUI_WINDOW_CHANNELS,
|
2022-08-16 08:42:17 +00:00
|
|
|
GUI_WINDOW_PAT_MANAGER,
|
2022-08-19 09:41:45 +00:00
|
|
|
GUI_WINDOW_SYS_MANAGER,
|
2022-04-11 03:12:02 +00:00
|
|
|
GUI_WINDOW_REGISTER_VIEW,
|
2022-04-19 23:44:05 +00:00
|
|
|
GUI_WINDOW_LOG,
|
2022-04-30 08:58:30 +00:00
|
|
|
GUI_WINDOW_EFFECT_LIST,
|
2022-05-15 06:42:49 +00:00
|
|
|
GUI_WINDOW_CHAN_OSC,
|
2022-06-06 10:03:19 +00:00
|
|
|
GUI_WINDOW_SUBSONGS,
|
2022-06-20 20:20:02 +00:00
|
|
|
GUI_WINDOW_FIND,
|
2022-11-10 06:26:59 +00:00
|
|
|
GUI_WINDOW_CLOCK,
|
2022-06-20 20:20:02 +00:00
|
|
|
GUI_WINDOW_SPOILER
|
2021-12-14 22:45:37 +00:00
|
|
|
};
|
|
|
|
|
2022-09-09 04:20:33 +00:00
|
|
|
enum FurnaceGUIMobileScenes {
|
|
|
|
GUI_SCENE_PATTERN,
|
|
|
|
GUI_SCENE_ORDERS,
|
|
|
|
GUI_SCENE_INSTRUMENT,
|
|
|
|
GUI_SCENE_WAVETABLE,
|
2022-09-10 00:23:53 +00:00
|
|
|
GUI_SCENE_SAMPLE,
|
|
|
|
GUI_SCENE_SONG,
|
|
|
|
GUI_SCENE_CHANNELS,
|
|
|
|
GUI_SCENE_CHIPS,
|
|
|
|
GUI_SCENE_OTHER,
|
2022-09-09 04:20:33 +00:00
|
|
|
};
|
|
|
|
|
2021-12-17 08:33:12 +00:00
|
|
|
enum FurnaceGUIFileDialogs {
|
|
|
|
GUI_FILE_OPEN,
|
|
|
|
GUI_FILE_SAVE,
|
2022-09-04 07:26:29 +00:00
|
|
|
GUI_FILE_SAVE_DMF,
|
2022-02-20 08:18:20 +00:00
|
|
|
GUI_FILE_SAVE_DMF_LEGACY,
|
2022-01-19 08:15:20 +00:00
|
|
|
GUI_FILE_INS_OPEN,
|
2022-05-05 03:55:11 +00:00
|
|
|
GUI_FILE_INS_OPEN_REPLACE,
|
2022-01-19 08:15:20 +00:00
|
|
|
GUI_FILE_INS_SAVE,
|
2022-11-21 00:19:24 +00:00
|
|
|
GUI_FILE_INS_SAVE_OLD,
|
2022-09-04 07:26:29 +00:00
|
|
|
GUI_FILE_INS_SAVE_DMP,
|
2022-01-19 08:15:20 +00:00
|
|
|
GUI_FILE_WAVE_OPEN,
|
2022-08-13 09:17:32 +00:00
|
|
|
GUI_FILE_WAVE_OPEN_REPLACE,
|
2022-01-19 08:15:20 +00:00
|
|
|
GUI_FILE_WAVE_SAVE,
|
2022-09-04 07:26:29 +00:00
|
|
|
GUI_FILE_WAVE_SAVE_DMW,
|
|
|
|
GUI_FILE_WAVE_SAVE_RAW,
|
2021-12-17 08:33:12 +00:00
|
|
|
GUI_FILE_SAMPLE_OPEN,
|
2022-08-13 09:17:32 +00:00
|
|
|
GUI_FILE_SAMPLE_OPEN_RAW,
|
|
|
|
GUI_FILE_SAMPLE_OPEN_REPLACE,
|
|
|
|
GUI_FILE_SAMPLE_OPEN_REPLACE_RAW,
|
2022-01-18 04:34:29 +00:00
|
|
|
GUI_FILE_SAMPLE_SAVE,
|
|
|
|
GUI_FILE_EXPORT_AUDIO_ONE,
|
|
|
|
GUI_FILE_EXPORT_AUDIO_PER_SYS,
|
|
|
|
GUI_FILE_EXPORT_AUDIO_PER_CHANNEL,
|
|
|
|
GUI_FILE_EXPORT_VGM,
|
2022-05-26 05:24:21 +00:00
|
|
|
GUI_FILE_EXPORT_ZSM,
|
2022-08-04 05:51:47 +00:00
|
|
|
GUI_FILE_EXPORT_CMDSTREAM,
|
2022-02-14 23:18:30 +00:00
|
|
|
GUI_FILE_EXPORT_ROM,
|
|
|
|
GUI_FILE_LOAD_MAIN_FONT,
|
2022-04-06 18:53:39 +00:00
|
|
|
GUI_FILE_LOAD_PAT_FONT,
|
|
|
|
GUI_FILE_IMPORT_COLORS,
|
|
|
|
GUI_FILE_IMPORT_KEYBINDS,
|
|
|
|
GUI_FILE_IMPORT_LAYOUT,
|
|
|
|
GUI_FILE_EXPORT_COLORS,
|
|
|
|
GUI_FILE_EXPORT_KEYBINDS,
|
2022-05-11 21:39:36 +00:00
|
|
|
GUI_FILE_EXPORT_LAYOUT,
|
|
|
|
GUI_FILE_YRW801_ROM_OPEN,
|
|
|
|
GUI_FILE_TG100_ROM_OPEN,
|
2022-07-15 07:23:16 +00:00
|
|
|
GUI_FILE_MU5_ROM_OPEN,
|
|
|
|
|
|
|
|
GUI_FILE_TEST_OPEN,
|
|
|
|
GUI_FILE_TEST_OPEN_MULTI,
|
|
|
|
GUI_FILE_TEST_SAVE
|
2021-12-17 08:33:12 +00:00
|
|
|
};
|
|
|
|
|
2021-12-30 23:52:36 +00:00
|
|
|
enum FurnaceGUIWarnings {
|
|
|
|
GUI_WARN_QUIT,
|
|
|
|
GUI_WARN_NEW,
|
2022-01-29 06:22:32 +00:00
|
|
|
GUI_WARN_OPEN,
|
2022-03-21 19:32:33 +00:00
|
|
|
GUI_WARN_OPEN_BACKUP,
|
2022-02-01 08:09:53 +00:00
|
|
|
GUI_WARN_OPEN_DROP,
|
2022-03-02 04:46:04 +00:00
|
|
|
GUI_WARN_RESET_LAYOUT,
|
2022-04-06 18:53:39 +00:00
|
|
|
GUI_WARN_RESET_COLORS,
|
|
|
|
GUI_WARN_RESET_KEYBINDS,
|
2022-04-13 07:09:59 +00:00
|
|
|
GUI_WARN_CLOSE_SETTINGS,
|
2022-04-24 21:57:58 +00:00
|
|
|
GUI_WARN_CLEAR,
|
2022-05-17 22:21:29 +00:00
|
|
|
GUI_WARN_SUBSONG_DEL,
|
2022-08-26 23:51:17 +00:00
|
|
|
GUI_WARN_SYSTEM_DEL,
|
2022-10-02 06:36:37 +00:00
|
|
|
GUI_WARN_CLEAR_HISTORY,
|
2022-04-01 10:20:00 +00:00
|
|
|
GUI_WARN_GENERIC
|
2021-12-30 23:52:36 +00:00
|
|
|
};
|
|
|
|
|
2022-02-10 06:45:26 +00:00
|
|
|
enum FurnaceGUIFMAlgs {
|
|
|
|
FM_ALGS_4OP,
|
|
|
|
FM_ALGS_2OP_OPL,
|
|
|
|
FM_ALGS_4OP_OPL
|
|
|
|
};
|
|
|
|
|
2022-02-10 21:37:17 +00:00
|
|
|
enum FurnaceGUIActions {
|
2022-02-11 06:56:59 +00:00
|
|
|
GUI_ACTION_GLOBAL_MIN=0,
|
|
|
|
GUI_ACTION_OPEN,
|
2022-03-21 19:32:33 +00:00
|
|
|
GUI_ACTION_OPEN_BACKUP,
|
2022-02-10 21:37:17 +00:00
|
|
|
GUI_ACTION_SAVE,
|
2022-02-11 19:44:08 +00:00
|
|
|
GUI_ACTION_SAVE_AS,
|
2022-02-10 21:37:17 +00:00
|
|
|
GUI_ACTION_UNDO,
|
|
|
|
GUI_ACTION_REDO,
|
|
|
|
GUI_ACTION_PLAY_TOGGLE,
|
|
|
|
GUI_ACTION_PLAY,
|
|
|
|
GUI_ACTION_STOP,
|
2022-06-06 06:28:46 +00:00
|
|
|
GUI_ACTION_PLAY_START,
|
2022-02-10 21:37:17 +00:00
|
|
|
GUI_ACTION_PLAY_REPEAT,
|
|
|
|
GUI_ACTION_PLAY_CURSOR,
|
|
|
|
GUI_ACTION_STEP_ONE,
|
|
|
|
GUI_ACTION_OCTAVE_UP,
|
|
|
|
GUI_ACTION_OCTAVE_DOWN,
|
|
|
|
GUI_ACTION_INS_UP,
|
|
|
|
GUI_ACTION_INS_DOWN,
|
|
|
|
GUI_ACTION_STEP_UP,
|
|
|
|
GUI_ACTION_STEP_DOWN,
|
|
|
|
GUI_ACTION_TOGGLE_EDIT,
|
|
|
|
GUI_ACTION_METRONOME,
|
|
|
|
GUI_ACTION_REPEAT_PATTERN,
|
|
|
|
GUI_ACTION_FOLLOW_ORDERS,
|
|
|
|
GUI_ACTION_FOLLOW_PATTERN,
|
2022-04-17 06:57:50 +00:00
|
|
|
GUI_ACTION_FULLSCREEN,
|
2022-05-09 18:20:44 +00:00
|
|
|
GUI_ACTION_TX81Z_REQUEST,
|
2022-02-10 21:37:17 +00:00
|
|
|
GUI_ACTION_PANIC,
|
2022-12-11 17:36:41 +00:00
|
|
|
GUI_ACTION_CLEAR,
|
2022-02-10 21:37:17 +00:00
|
|
|
|
|
|
|
GUI_ACTION_WINDOW_EDIT_CONTROLS,
|
|
|
|
GUI_ACTION_WINDOW_ORDERS,
|
|
|
|
GUI_ACTION_WINDOW_INS_LIST,
|
|
|
|
GUI_ACTION_WINDOW_INS_EDIT,
|
|
|
|
GUI_ACTION_WINDOW_SONG_INFO,
|
|
|
|
GUI_ACTION_WINDOW_PATTERN,
|
|
|
|
GUI_ACTION_WINDOW_WAVE_LIST,
|
|
|
|
GUI_ACTION_WINDOW_WAVE_EDIT,
|
|
|
|
GUI_ACTION_WINDOW_SAMPLE_LIST,
|
|
|
|
GUI_ACTION_WINDOW_SAMPLE_EDIT,
|
|
|
|
GUI_ACTION_WINDOW_ABOUT,
|
|
|
|
GUI_ACTION_WINDOW_SETTINGS,
|
|
|
|
GUI_ACTION_WINDOW_MIXER,
|
|
|
|
GUI_ACTION_WINDOW_DEBUG,
|
2022-02-12 07:14:25 +00:00
|
|
|
GUI_ACTION_WINDOW_OSCILLOSCOPE,
|
2022-02-10 21:37:17 +00:00
|
|
|
GUI_ACTION_WINDOW_VOL_METER,
|
|
|
|
GUI_ACTION_WINDOW_STATS,
|
|
|
|
GUI_ACTION_WINDOW_COMPAT_FLAGS,
|
|
|
|
GUI_ACTION_WINDOW_PIANO,
|
|
|
|
GUI_ACTION_WINDOW_NOTES,
|
|
|
|
GUI_ACTION_WINDOW_CHANNELS,
|
2022-08-16 08:42:17 +00:00
|
|
|
GUI_ACTION_WINDOW_PAT_MANAGER,
|
2022-08-19 09:41:45 +00:00
|
|
|
GUI_ACTION_WINDOW_SYS_MANAGER,
|
2022-02-22 03:31:27 +00:00
|
|
|
GUI_ACTION_WINDOW_REGISTER_VIEW,
|
2022-04-11 03:12:02 +00:00
|
|
|
GUI_ACTION_WINDOW_LOG,
|
2022-04-19 23:44:05 +00:00
|
|
|
GUI_ACTION_WINDOW_EFFECT_LIST,
|
2022-04-30 08:58:30 +00:00
|
|
|
GUI_ACTION_WINDOW_CHAN_OSC,
|
2022-05-15 06:42:49 +00:00
|
|
|
GUI_ACTION_WINDOW_SUBSONGS,
|
2022-06-06 10:03:19 +00:00
|
|
|
GUI_ACTION_WINDOW_FIND,
|
2022-11-10 06:26:59 +00:00
|
|
|
GUI_ACTION_WINDOW_CLOCK,
|
2022-02-10 21:37:17 +00:00
|
|
|
|
|
|
|
GUI_ACTION_COLLAPSE_WINDOW,
|
|
|
|
GUI_ACTION_CLOSE_WINDOW,
|
2022-02-11 06:56:59 +00:00
|
|
|
GUI_ACTION_GLOBAL_MAX,
|
2022-02-10 21:37:17 +00:00
|
|
|
|
2022-02-11 06:56:59 +00:00
|
|
|
GUI_ACTION_PAT_MIN,
|
2022-02-10 21:37:17 +00:00
|
|
|
GUI_ACTION_PAT_NOTE_UP,
|
|
|
|
GUI_ACTION_PAT_NOTE_DOWN,
|
|
|
|
GUI_ACTION_PAT_OCTAVE_UP,
|
|
|
|
GUI_ACTION_PAT_OCTAVE_DOWN,
|
2022-04-21 22:32:28 +00:00
|
|
|
GUI_ACTION_PAT_VALUE_UP,
|
|
|
|
GUI_ACTION_PAT_VALUE_DOWN,
|
|
|
|
GUI_ACTION_PAT_VALUE_UP_COARSE,
|
|
|
|
GUI_ACTION_PAT_VALUE_DOWN_COARSE,
|
2022-02-10 21:37:17 +00:00
|
|
|
GUI_ACTION_PAT_SELECT_ALL,
|
|
|
|
GUI_ACTION_PAT_CUT,
|
|
|
|
GUI_ACTION_PAT_COPY,
|
|
|
|
GUI_ACTION_PAT_PASTE,
|
2022-03-09 23:03:15 +00:00
|
|
|
GUI_ACTION_PAT_PASTE_MIX,
|
|
|
|
GUI_ACTION_PAT_PASTE_MIX_BG,
|
|
|
|
GUI_ACTION_PAT_PASTE_FLOOD,
|
|
|
|
GUI_ACTION_PAT_PASTE_OVERFLOW,
|
2022-02-10 21:37:17 +00:00
|
|
|
GUI_ACTION_PAT_CURSOR_UP,
|
|
|
|
GUI_ACTION_PAT_CURSOR_DOWN,
|
|
|
|
GUI_ACTION_PAT_CURSOR_LEFT,
|
|
|
|
GUI_ACTION_PAT_CURSOR_RIGHT,
|
|
|
|
GUI_ACTION_PAT_CURSOR_UP_ONE,
|
|
|
|
GUI_ACTION_PAT_CURSOR_DOWN_ONE,
|
|
|
|
GUI_ACTION_PAT_CURSOR_LEFT_CHANNEL,
|
|
|
|
GUI_ACTION_PAT_CURSOR_RIGHT_CHANNEL,
|
|
|
|
GUI_ACTION_PAT_CURSOR_NEXT_CHANNEL,
|
|
|
|
GUI_ACTION_PAT_CURSOR_PREVIOUS_CHANNEL,
|
|
|
|
GUI_ACTION_PAT_CURSOR_BEGIN,
|
|
|
|
GUI_ACTION_PAT_CURSOR_END,
|
|
|
|
GUI_ACTION_PAT_CURSOR_UP_COARSE,
|
|
|
|
GUI_ACTION_PAT_CURSOR_DOWN_COARSE,
|
|
|
|
GUI_ACTION_PAT_SELECTION_UP,
|
|
|
|
GUI_ACTION_PAT_SELECTION_DOWN,
|
|
|
|
GUI_ACTION_PAT_SELECTION_LEFT,
|
|
|
|
GUI_ACTION_PAT_SELECTION_RIGHT,
|
|
|
|
GUI_ACTION_PAT_SELECTION_UP_ONE,
|
|
|
|
GUI_ACTION_PAT_SELECTION_DOWN_ONE,
|
|
|
|
GUI_ACTION_PAT_SELECTION_BEGIN,
|
|
|
|
GUI_ACTION_PAT_SELECTION_END,
|
|
|
|
GUI_ACTION_PAT_SELECTION_UP_COARSE,
|
|
|
|
GUI_ACTION_PAT_SELECTION_DOWN_COARSE,
|
|
|
|
GUI_ACTION_PAT_DELETE,
|
|
|
|
GUI_ACTION_PAT_PULL_DELETE,
|
|
|
|
GUI_ACTION_PAT_INSERT,
|
|
|
|
GUI_ACTION_PAT_MUTE_CURSOR,
|
|
|
|
GUI_ACTION_PAT_SOLO_CURSOR,
|
2022-02-11 06:56:59 +00:00
|
|
|
GUI_ACTION_PAT_UNMUTE_ALL,
|
2022-02-10 21:37:17 +00:00
|
|
|
GUI_ACTION_PAT_NEXT_ORDER,
|
|
|
|
GUI_ACTION_PAT_PREV_ORDER,
|
|
|
|
GUI_ACTION_PAT_COLLAPSE,
|
|
|
|
GUI_ACTION_PAT_INCREASE_COLUMNS,
|
|
|
|
GUI_ACTION_PAT_DECREASE_COLUMNS,
|
2022-03-09 23:03:15 +00:00
|
|
|
GUI_ACTION_PAT_INTERPOLATE,
|
2022-03-12 08:04:34 +00:00
|
|
|
GUI_ACTION_PAT_FADE,
|
2022-03-09 23:03:15 +00:00
|
|
|
GUI_ACTION_PAT_INVERT_VALUES,
|
|
|
|
GUI_ACTION_PAT_FLIP_SELECTION,
|
|
|
|
GUI_ACTION_PAT_COLLAPSE_ROWS,
|
|
|
|
GUI_ACTION_PAT_EXPAND_ROWS,
|
|
|
|
GUI_ACTION_PAT_COLLAPSE_PAT,
|
|
|
|
GUI_ACTION_PAT_EXPAND_PAT,
|
|
|
|
GUI_ACTION_PAT_COLLAPSE_SONG,
|
|
|
|
GUI_ACTION_PAT_EXPAND_SONG,
|
|
|
|
GUI_ACTION_PAT_LATCH,
|
2022-12-11 17:36:41 +00:00
|
|
|
GUI_ACTION_PAT_SCROLL_MODE,
|
|
|
|
GUI_ACTION_PAT_CLEAR_LATCH,
|
2022-02-11 06:56:59 +00:00
|
|
|
GUI_ACTION_PAT_MAX,
|
2022-02-10 21:37:17 +00:00
|
|
|
|
2022-02-11 06:56:59 +00:00
|
|
|
GUI_ACTION_INS_LIST_MIN,
|
2022-02-10 21:37:17 +00:00
|
|
|
GUI_ACTION_INS_LIST_ADD,
|
|
|
|
GUI_ACTION_INS_LIST_DUPLICATE,
|
|
|
|
GUI_ACTION_INS_LIST_OPEN,
|
2022-05-05 03:55:11 +00:00
|
|
|
GUI_ACTION_INS_LIST_OPEN_REPLACE,
|
2022-02-10 21:37:17 +00:00
|
|
|
GUI_ACTION_INS_LIST_SAVE,
|
2022-11-21 00:19:24 +00:00
|
|
|
GUI_ACTION_INS_LIST_SAVE_OLD,
|
2022-09-04 07:26:29 +00:00
|
|
|
GUI_ACTION_INS_LIST_SAVE_DMP,
|
2022-02-10 21:37:17 +00:00
|
|
|
GUI_ACTION_INS_LIST_MOVE_UP,
|
|
|
|
GUI_ACTION_INS_LIST_MOVE_DOWN,
|
|
|
|
GUI_ACTION_INS_LIST_DELETE,
|
|
|
|
GUI_ACTION_INS_LIST_EDIT,
|
|
|
|
GUI_ACTION_INS_LIST_UP,
|
|
|
|
GUI_ACTION_INS_LIST_DOWN,
|
2022-02-11 06:56:59 +00:00
|
|
|
GUI_ACTION_INS_LIST_MAX,
|
2022-02-10 21:37:17 +00:00
|
|
|
|
2022-02-11 06:56:59 +00:00
|
|
|
GUI_ACTION_WAVE_LIST_MIN,
|
2022-02-10 21:37:17 +00:00
|
|
|
GUI_ACTION_WAVE_LIST_ADD,
|
|
|
|
GUI_ACTION_WAVE_LIST_DUPLICATE,
|
|
|
|
GUI_ACTION_WAVE_LIST_OPEN,
|
2022-08-13 09:17:32 +00:00
|
|
|
GUI_ACTION_WAVE_LIST_OPEN_REPLACE,
|
2022-02-10 21:37:17 +00:00
|
|
|
GUI_ACTION_WAVE_LIST_SAVE,
|
2022-09-04 07:26:29 +00:00
|
|
|
GUI_ACTION_WAVE_LIST_SAVE_DMW,
|
|
|
|
GUI_ACTION_WAVE_LIST_SAVE_RAW,
|
2022-02-10 21:37:17 +00:00
|
|
|
GUI_ACTION_WAVE_LIST_MOVE_UP,
|
|
|
|
GUI_ACTION_WAVE_LIST_MOVE_DOWN,
|
|
|
|
GUI_ACTION_WAVE_LIST_DELETE,
|
|
|
|
GUI_ACTION_WAVE_LIST_EDIT,
|
|
|
|
GUI_ACTION_WAVE_LIST_UP,
|
|
|
|
GUI_ACTION_WAVE_LIST_DOWN,
|
2022-02-11 06:56:59 +00:00
|
|
|
GUI_ACTION_WAVE_LIST_MAX,
|
2022-02-10 21:37:17 +00:00
|
|
|
|
2022-02-11 06:56:59 +00:00
|
|
|
GUI_ACTION_SAMPLE_LIST_MIN,
|
2022-02-10 21:37:17 +00:00
|
|
|
GUI_ACTION_SAMPLE_LIST_ADD,
|
|
|
|
GUI_ACTION_SAMPLE_LIST_DUPLICATE,
|
|
|
|
GUI_ACTION_SAMPLE_LIST_OPEN,
|
2022-08-13 09:17:32 +00:00
|
|
|
GUI_ACTION_SAMPLE_LIST_OPEN_REPLACE,
|
|
|
|
GUI_ACTION_SAMPLE_LIST_OPEN_RAW,
|
|
|
|
GUI_ACTION_SAMPLE_LIST_OPEN_REPLACE_RAW,
|
2022-02-10 21:37:17 +00:00
|
|
|
GUI_ACTION_SAMPLE_LIST_SAVE,
|
|
|
|
GUI_ACTION_SAMPLE_LIST_MOVE_UP,
|
|
|
|
GUI_ACTION_SAMPLE_LIST_MOVE_DOWN,
|
|
|
|
GUI_ACTION_SAMPLE_LIST_DELETE,
|
|
|
|
GUI_ACTION_SAMPLE_LIST_EDIT,
|
|
|
|
GUI_ACTION_SAMPLE_LIST_UP,
|
|
|
|
GUI_ACTION_SAMPLE_LIST_DOWN,
|
|
|
|
GUI_ACTION_SAMPLE_LIST_PREVIEW,
|
|
|
|
GUI_ACTION_SAMPLE_LIST_STOP_PREVIEW,
|
2022-02-11 06:56:59 +00:00
|
|
|
GUI_ACTION_SAMPLE_LIST_MAX,
|
2022-02-10 21:37:17 +00:00
|
|
|
|
2022-03-22 09:54:01 +00:00
|
|
|
GUI_ACTION_SAMPLE_MIN,
|
|
|
|
GUI_ACTION_SAMPLE_SELECT,
|
|
|
|
GUI_ACTION_SAMPLE_DRAW,
|
|
|
|
GUI_ACTION_SAMPLE_CUT,
|
|
|
|
GUI_ACTION_SAMPLE_COPY,
|
|
|
|
GUI_ACTION_SAMPLE_PASTE,
|
|
|
|
GUI_ACTION_SAMPLE_PASTE_REPLACE,
|
|
|
|
GUI_ACTION_SAMPLE_PASTE_MIX,
|
|
|
|
GUI_ACTION_SAMPLE_SELECT_ALL,
|
|
|
|
GUI_ACTION_SAMPLE_RESIZE,
|
|
|
|
GUI_ACTION_SAMPLE_RESAMPLE,
|
|
|
|
GUI_ACTION_SAMPLE_AMPLIFY,
|
|
|
|
GUI_ACTION_SAMPLE_NORMALIZE,
|
|
|
|
GUI_ACTION_SAMPLE_FADE_IN,
|
|
|
|
GUI_ACTION_SAMPLE_FADE_OUT,
|
|
|
|
GUI_ACTION_SAMPLE_SILENCE,
|
2022-03-22 22:01:06 +00:00
|
|
|
GUI_ACTION_SAMPLE_INSERT,
|
2022-03-22 09:54:01 +00:00
|
|
|
GUI_ACTION_SAMPLE_DELETE,
|
|
|
|
GUI_ACTION_SAMPLE_TRIM,
|
|
|
|
GUI_ACTION_SAMPLE_REVERSE,
|
|
|
|
GUI_ACTION_SAMPLE_INVERT,
|
|
|
|
GUI_ACTION_SAMPLE_SIGN,
|
|
|
|
GUI_ACTION_SAMPLE_FILTER,
|
|
|
|
GUI_ACTION_SAMPLE_PREVIEW,
|
|
|
|
GUI_ACTION_SAMPLE_STOP_PREVIEW,
|
|
|
|
GUI_ACTION_SAMPLE_ZOOM_IN,
|
|
|
|
GUI_ACTION_SAMPLE_ZOOM_OUT,
|
|
|
|
GUI_ACTION_SAMPLE_ZOOM_AUTO,
|
2022-04-12 08:00:57 +00:00
|
|
|
GUI_ACTION_SAMPLE_MAKE_INS,
|
2022-05-28 23:37:49 +00:00
|
|
|
GUI_ACTION_SAMPLE_SET_LOOP,
|
2022-08-31 08:34:13 +00:00
|
|
|
GUI_ACTION_SAMPLE_CREATE_WAVE,
|
2022-03-22 09:54:01 +00:00
|
|
|
GUI_ACTION_SAMPLE_MAX,
|
|
|
|
|
2022-02-11 06:56:59 +00:00
|
|
|
GUI_ACTION_ORDERS_MIN,
|
2022-02-10 21:37:17 +00:00
|
|
|
GUI_ACTION_ORDERS_UP,
|
|
|
|
GUI_ACTION_ORDERS_DOWN,
|
|
|
|
GUI_ACTION_ORDERS_LEFT,
|
|
|
|
GUI_ACTION_ORDERS_RIGHT,
|
|
|
|
GUI_ACTION_ORDERS_INCREASE,
|
|
|
|
GUI_ACTION_ORDERS_DECREASE,
|
|
|
|
GUI_ACTION_ORDERS_EDIT_MODE,
|
|
|
|
GUI_ACTION_ORDERS_LINK,
|
|
|
|
GUI_ACTION_ORDERS_ADD,
|
|
|
|
GUI_ACTION_ORDERS_DUPLICATE,
|
|
|
|
GUI_ACTION_ORDERS_DEEP_CLONE,
|
|
|
|
GUI_ACTION_ORDERS_DUPLICATE_END,
|
|
|
|
GUI_ACTION_ORDERS_DEEP_CLONE_END,
|
|
|
|
GUI_ACTION_ORDERS_REMOVE,
|
|
|
|
GUI_ACTION_ORDERS_MOVE_UP,
|
|
|
|
GUI_ACTION_ORDERS_MOVE_DOWN,
|
|
|
|
GUI_ACTION_ORDERS_REPLAY,
|
2022-02-11 06:56:59 +00:00
|
|
|
GUI_ACTION_ORDERS_MAX,
|
2022-02-10 22:44:27 +00:00
|
|
|
|
|
|
|
GUI_ACTION_MAX
|
2022-02-10 21:37:17 +00:00
|
|
|
};
|
|
|
|
|
2022-06-22 20:10:53 +00:00
|
|
|
enum FurnaceGUIChanOscRef {
|
|
|
|
GUI_OSCREF_NONE=0,
|
|
|
|
GUI_OSCREF_CENTER,
|
|
|
|
GUI_OSCREF_FULL,
|
|
|
|
|
|
|
|
GUI_OSCREF_FREQUENCY,
|
|
|
|
GUI_OSCREF_VOLUME,
|
|
|
|
GUI_OSCREF_CHANNEL,
|
|
|
|
GUI_OSCREF_BRIGHT,
|
|
|
|
|
|
|
|
GUI_OSCREF_NOTE_TRIGGER,
|
|
|
|
|
|
|
|
GUI_OSCREF_MAX
|
|
|
|
};
|
|
|
|
|
2022-03-09 23:03:15 +00:00
|
|
|
enum PasteMode {
|
|
|
|
GUI_PASTE_MODE_NORMAL=0,
|
|
|
|
GUI_PASTE_MODE_MIX_FG,
|
|
|
|
GUI_PASTE_MODE_MIX_BG,
|
|
|
|
GUI_PASTE_MODE_FLOOD,
|
2022-09-22 03:59:53 +00:00
|
|
|
GUI_PASTE_MODE_OVERFLOW,
|
|
|
|
GUI_PASTE_MODE_INS_FG,
|
|
|
|
GUI_PASTE_MODE_INS_BG
|
2022-03-09 23:03:15 +00:00
|
|
|
};
|
|
|
|
|
2022-12-10 19:32:51 +00:00
|
|
|
enum NoteCtrl {
|
|
|
|
GUI_NOTE_OFF=100,
|
|
|
|
GUI_NOTE_OFF_RELEASE=101,
|
|
|
|
GUI_NOTE_RELEASE=102
|
|
|
|
};
|
|
|
|
|
2022-04-15 06:29:29 +00:00
|
|
|
#define FURKMOD_CTRL (1U<<31)
|
2022-02-11 06:56:59 +00:00
|
|
|
#define FURKMOD_SHIFT (1<<29)
|
|
|
|
#define FURKMOD_META (1<<28)
|
|
|
|
#define FURKMOD_ALT (1<<27)
|
2022-02-12 06:57:55 +00:00
|
|
|
#define FURK_MASK 0x40ffffff
|
2022-02-11 06:56:59 +00:00
|
|
|
|
2022-04-06 06:52:58 +00:00
|
|
|
#ifdef __APPLE__
|
|
|
|
#define FURKMOD_CMD FURKMOD_META
|
|
|
|
#else
|
|
|
|
#define FURKMOD_CMD FURKMOD_CTRL
|
|
|
|
#endif
|
|
|
|
|
2021-12-14 09:45:44 +00:00
|
|
|
struct SelectionPoint {
|
|
|
|
int xCoarse, xFine;
|
|
|
|
int y;
|
2021-12-14 22:45:37 +00:00
|
|
|
SelectionPoint():
|
|
|
|
xCoarse(0), xFine(0), y(0) {}
|
2021-12-14 09:45:44 +00:00
|
|
|
};
|
|
|
|
|
2021-12-22 22:59:19 +00:00
|
|
|
enum ActionType {
|
2022-02-10 21:37:17 +00:00
|
|
|
GUI_UNDO_CHANGE_ORDER,
|
|
|
|
GUI_UNDO_PATTERN_EDIT,
|
|
|
|
GUI_UNDO_PATTERN_DELETE,
|
|
|
|
GUI_UNDO_PATTERN_PULL,
|
|
|
|
GUI_UNDO_PATTERN_PUSH,
|
|
|
|
GUI_UNDO_PATTERN_CUT,
|
2022-03-11 06:31:21 +00:00
|
|
|
GUI_UNDO_PATTERN_PASTE,
|
|
|
|
GUI_UNDO_PATTERN_CHANGE_INS,
|
|
|
|
GUI_UNDO_PATTERN_INTERPOLATE,
|
2022-03-12 08:04:34 +00:00
|
|
|
GUI_UNDO_PATTERN_FADE,
|
2022-03-11 06:31:21 +00:00
|
|
|
GUI_UNDO_PATTERN_SCALE,
|
|
|
|
GUI_UNDO_PATTERN_RANDOMIZE,
|
|
|
|
GUI_UNDO_PATTERN_INVERT_VAL,
|
|
|
|
GUI_UNDO_PATTERN_FLIP,
|
|
|
|
GUI_UNDO_PATTERN_COLLAPSE,
|
2022-06-16 06:26:19 +00:00
|
|
|
GUI_UNDO_PATTERN_EXPAND,
|
2022-06-19 04:18:34 +00:00
|
|
|
GUI_UNDO_PATTERN_DRAG,
|
2022-06-16 06:26:19 +00:00
|
|
|
GUI_UNDO_REPLACE
|
2021-12-22 22:59:19 +00:00
|
|
|
};
|
|
|
|
|
2021-12-26 23:05:18 +00:00
|
|
|
struct UndoPatternData {
|
2022-05-15 06:42:49 +00:00
|
|
|
int subSong, chan, pat, row, col;
|
2021-12-26 23:05:18 +00:00
|
|
|
short oldVal, newVal;
|
2022-05-15 06:42:49 +00:00
|
|
|
UndoPatternData(int s, int c, int p, int r, int co, short v1, short v2):
|
|
|
|
subSong(s),
|
2021-12-26 23:05:18 +00:00
|
|
|
chan(c),
|
|
|
|
pat(p),
|
|
|
|
row(r),
|
2021-12-26 23:28:06 +00:00
|
|
|
col(co),
|
2021-12-26 23:05:18 +00:00
|
|
|
oldVal(v1),
|
|
|
|
newVal(v2) {}
|
|
|
|
};
|
|
|
|
|
|
|
|
struct UndoOrderData {
|
2022-05-15 06:42:49 +00:00
|
|
|
int subSong, chan, ord;
|
2021-12-26 23:05:18 +00:00
|
|
|
unsigned char oldVal, newVal;
|
2022-05-15 06:42:49 +00:00
|
|
|
UndoOrderData(int s, int c, int o, unsigned char v1, unsigned char v2):
|
|
|
|
subSong(s),
|
2021-12-26 23:05:18 +00:00
|
|
|
chan(c),
|
|
|
|
ord(o),
|
|
|
|
oldVal(v1),
|
|
|
|
newVal(v2) {}
|
2021-12-22 22:59:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct UndoStep {
|
|
|
|
ActionType type;
|
2021-12-26 23:05:18 +00:00
|
|
|
SelectionPoint cursor, selStart, selEnd;
|
|
|
|
int order;
|
|
|
|
bool nibble;
|
|
|
|
int oldOrdersLen, newOrdersLen;
|
|
|
|
int oldPatLen, newPatLen;
|
|
|
|
std::vector<UndoOrderData> ord;
|
|
|
|
std::vector<UndoPatternData> pat;
|
2021-12-22 22:59:19 +00:00
|
|
|
};
|
|
|
|
|
2022-03-29 21:09:15 +00:00
|
|
|
// -1 = any
|
2022-03-28 23:19:47 +00:00
|
|
|
struct MIDIBind {
|
|
|
|
int type, channel, data1, data2;
|
2022-03-29 21:09:15 +00:00
|
|
|
int action;
|
|
|
|
MIDIBind():
|
2022-03-29 22:38:30 +00:00
|
|
|
type(0),
|
|
|
|
channel(16),
|
|
|
|
data1(128),
|
|
|
|
data2(128),
|
2022-03-29 21:09:15 +00:00
|
|
|
action(0) {}
|
2022-03-28 23:19:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct MIDIMap {
|
2022-03-29 21:09:15 +00:00
|
|
|
// access method: map[type][channel][data1][data2];
|
|
|
|
// channel 16 = any
|
|
|
|
// data1 128 = any
|
|
|
|
// data2 128 = any
|
|
|
|
int**** map;
|
2022-03-28 23:19:47 +00:00
|
|
|
std::vector<MIDIBind> binds;
|
2022-03-29 21:09:15 +00:00
|
|
|
|
2022-05-08 07:07:58 +00:00
|
|
|
bool noteInput, volInput, rawVolume, polyInput, directChannel, programChange, midiClock, midiTimeCode, yamahaFMResponse;
|
2022-03-29 21:09:15 +00:00
|
|
|
// 0: disabled
|
|
|
|
//
|
|
|
|
// 1: C- C# D- D# E- F- F# G- G# A- A# B-
|
|
|
|
// o1 1 3 6 8 A
|
|
|
|
// 0 2 4 5 7 9 B
|
|
|
|
// C- C# D- D# E- F- F# G- G# A- A# B-
|
|
|
|
// o2 D F
|
|
|
|
// C E
|
|
|
|
//
|
|
|
|
// 2: C- C# D- D# E- F- F# G- G# A- A# B-
|
|
|
|
// o1 1 3 6 8 A
|
|
|
|
// 0 2 4 5 7 9 B
|
|
|
|
// C- C# D- D# E- F- F# G- G# A- A# B-
|
|
|
|
// o2 D F 2 4 6
|
|
|
|
// C E 0 1 3 5 7
|
|
|
|
//
|
|
|
|
// 3: C- C# D- D# E- F- F# G- G# A- A# B-
|
|
|
|
// o1 A B C D E
|
|
|
|
// 0 1 2 3 4 5 6
|
|
|
|
// C- C# D- D# E- F- F# G- G# A- A# B-
|
|
|
|
// o2 F
|
|
|
|
// 7 8 9
|
|
|
|
//
|
|
|
|
// 4: use dual CC for value input (nibble)
|
|
|
|
// 5: use 14-bit CC for value input (MSB/LSB)
|
2022-04-01 06:50:01 +00:00
|
|
|
// 6: use single CC for value input (may be imprecise)
|
2022-03-29 21:09:15 +00:00
|
|
|
int valueInputStyle;
|
|
|
|
int valueInputControlMSB; // on 4
|
|
|
|
int valueInputControlLSB; // on 4
|
2022-04-01 06:50:01 +00:00
|
|
|
int valueInputControlSingle;
|
|
|
|
|
|
|
|
// 0: disabled
|
|
|
|
// 1: use dual CC (nibble)
|
|
|
|
// 2: use 14-bit CC (MSB/LSB)
|
|
|
|
// 3: use single CC (may be imprecise)
|
|
|
|
int valueInputSpecificStyle[18];
|
|
|
|
int valueInputSpecificMSB[18];
|
|
|
|
int valueInputSpecificLSB[18];
|
|
|
|
int valueInputSpecificSingle[18];
|
2022-03-29 21:09:15 +00:00
|
|
|
float volExp;
|
|
|
|
|
2022-04-01 06:50:01 +00:00
|
|
|
int valueInputCurMSB, valueInputCurLSB, valueInputCurSingle;
|
|
|
|
int valueInputCurMSBS[18];
|
|
|
|
int valueInputCurLSBS[18];
|
|
|
|
int valueInputCurSingleS[18];
|
|
|
|
|
2022-03-29 21:09:15 +00:00
|
|
|
void compile();
|
|
|
|
void deinit();
|
2022-03-29 22:38:30 +00:00
|
|
|
int at(const TAMidiMessage& where);
|
2022-03-29 21:09:15 +00:00
|
|
|
bool read(String path);
|
|
|
|
bool write(String path);
|
|
|
|
MIDIMap():
|
|
|
|
map(NULL),
|
|
|
|
noteInput(true),
|
|
|
|
volInput(false),
|
|
|
|
rawVolume(false),
|
|
|
|
polyInput(false),
|
|
|
|
directChannel(false),
|
|
|
|
programChange(true),
|
|
|
|
midiClock(false),
|
|
|
|
midiTimeCode(false),
|
2022-05-08 07:07:58 +00:00
|
|
|
yamahaFMResponse(false),
|
2022-03-29 21:09:15 +00:00
|
|
|
valueInputStyle(1),
|
2022-04-14 23:25:59 +00:00
|
|
|
valueInputControlMSB(0),
|
|
|
|
valueInputControlLSB(0),
|
|
|
|
valueInputControlSingle(0),
|
2022-04-01 06:50:01 +00:00
|
|
|
volExp(1.0f),
|
|
|
|
valueInputCurMSB(0),
|
|
|
|
valueInputCurLSB(0),
|
|
|
|
valueInputCurSingle(0) {
|
|
|
|
memset(valueInputSpecificStyle,0,18*sizeof(int));
|
|
|
|
memset(valueInputSpecificMSB,0,18*sizeof(int));
|
|
|
|
memset(valueInputSpecificLSB,0,18*sizeof(int));
|
|
|
|
memset(valueInputSpecificSingle,0,18*sizeof(int));
|
|
|
|
|
|
|
|
memset(valueInputCurMSBS,0,18*sizeof(int));
|
|
|
|
memset(valueInputCurLSBS,0,18*sizeof(int));
|
|
|
|
memset(valueInputCurSingleS,0,18*sizeof(int));
|
|
|
|
}
|
2022-03-28 23:19:47 +00:00
|
|
|
};
|
|
|
|
|
2022-02-15 23:52:12 +00:00
|
|
|
struct Particle {
|
|
|
|
ImU32* colors;
|
|
|
|
const char* type;
|
|
|
|
ImVec2 pos, speed;
|
|
|
|
float gravity, friction, life, lifeSpeed;
|
2022-03-02 05:38:32 +00:00
|
|
|
bool update(float frameTime);
|
2022-02-15 23:52:12 +00:00
|
|
|
Particle(ImU32* color, const char* ty, float x, float y, float sX, float sY, float g, float fr, float l, float lS):
|
|
|
|
colors(color),
|
|
|
|
type(ty),
|
|
|
|
pos(x,y),
|
|
|
|
speed(sX,sY),
|
|
|
|
gravity(g),
|
|
|
|
friction(fr),
|
|
|
|
life(l),
|
|
|
|
lifeSpeed(lS) {}
|
|
|
|
};
|
|
|
|
|
2022-04-21 08:45:06 +00:00
|
|
|
struct OperationMask {
|
|
|
|
bool note, ins, vol, effect, effectVal;
|
|
|
|
OperationMask():
|
|
|
|
note(true),
|
|
|
|
ins(true),
|
|
|
|
vol(true),
|
|
|
|
effect(true),
|
|
|
|
effectVal(true) {}
|
|
|
|
};
|
|
|
|
|
2022-05-17 17:46:52 +00:00
|
|
|
struct TouchPoint {
|
|
|
|
// an ID of -1 represents the mouse cursor.
|
|
|
|
int id;
|
|
|
|
float x, y, z;
|
|
|
|
TouchPoint():
|
|
|
|
id(-1),
|
|
|
|
x(0.0f),
|
|
|
|
y(0.0f),
|
|
|
|
z(1.0f) {}
|
|
|
|
TouchPoint(float xp, float yp):
|
|
|
|
id(-1),
|
|
|
|
x(xp),
|
|
|
|
y(yp),
|
|
|
|
z(1.0f) {}
|
|
|
|
TouchPoint(int ident, float xp, float yp, float pressure=1.0f):
|
|
|
|
id(ident),
|
|
|
|
x(xp),
|
|
|
|
y(yp),
|
|
|
|
z(pressure) {}
|
|
|
|
};
|
|
|
|
|
2022-06-21 23:01:53 +00:00
|
|
|
struct Gradient2DPoint {
|
|
|
|
ImVec4 color;
|
2022-06-22 20:10:53 +00:00
|
|
|
float x, y, prevX, prevY;
|
2022-06-21 23:01:53 +00:00
|
|
|
float spread, distance;
|
|
|
|
bool selected, grab;
|
|
|
|
Gradient2DPoint(float xPos, float yPos):
|
|
|
|
color(1,1,1,1),
|
|
|
|
x(xPos),
|
|
|
|
y(yPos),
|
2022-06-22 20:10:53 +00:00
|
|
|
prevX(0.0f),
|
|
|
|
prevY(0.0f),
|
2022-06-21 23:01:53 +00:00
|
|
|
spread(0.0f),
|
|
|
|
distance(0.5f),
|
|
|
|
selected(false),
|
|
|
|
grab(false) {}
|
|
|
|
Gradient2DPoint():
|
|
|
|
color(1,1,1,1),
|
|
|
|
x(0.0f),
|
|
|
|
y(0.0f),
|
|
|
|
spread(0.0f),
|
|
|
|
distance(0.5f),
|
|
|
|
selected(false),
|
|
|
|
grab(false) {}
|
|
|
|
};
|
|
|
|
|
|
|
|
struct Gradient2D {
|
|
|
|
ImVec4 bgColor;
|
|
|
|
std::vector<Gradient2DPoint> points;
|
|
|
|
std::unique_ptr<ImU32[]> grad;
|
|
|
|
size_t width, height;
|
|
|
|
|
2022-06-23 09:02:41 +00:00
|
|
|
String toString();
|
|
|
|
bool fromString(String val);
|
2022-06-21 23:01:53 +00:00
|
|
|
void render();
|
|
|
|
ImU32 get(float x, float y);
|
|
|
|
Gradient2D(size_t w, size_t h):
|
|
|
|
bgColor(0.0f,0.0f,0.0f,0.0f),
|
|
|
|
width(w),
|
|
|
|
height(h) {
|
|
|
|
grad=std::make_unique<ImU32[]>(width*height);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2022-11-13 20:41:40 +00:00
|
|
|
struct FurnaceGUISysDefChip {
|
|
|
|
DivSystem sys;
|
|
|
|
int vol, pan;
|
|
|
|
const char* flags;
|
|
|
|
FurnaceGUISysDefChip(DivSystem s, int v, int p, const char* f):
|
|
|
|
sys(s),
|
|
|
|
vol(v),
|
|
|
|
pan(p),
|
|
|
|
flags(f) {}
|
|
|
|
};
|
|
|
|
|
2022-03-01 22:19:52 +00:00
|
|
|
struct FurnaceGUISysDef {
|
|
|
|
const char* name;
|
2022-12-04 04:04:58 +00:00
|
|
|
const char* extra;
|
2022-11-13 20:41:40 +00:00
|
|
|
String definition;
|
2022-12-22 18:10:08 +00:00
|
|
|
std::vector<FurnaceGUISysDefChip> orig;
|
2022-12-04 04:04:58 +00:00
|
|
|
FurnaceGUISysDef(const char* n, std::initializer_list<FurnaceGUISysDefChip> def, const char* e=NULL);
|
2022-03-01 22:19:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct FurnaceGUISysCategory {
|
|
|
|
const char* name;
|
2022-05-14 09:05:29 +00:00
|
|
|
const char* description;
|
2022-03-01 22:19:52 +00:00
|
|
|
std::vector<FurnaceGUISysDef> systems;
|
2022-05-14 09:05:29 +00:00
|
|
|
FurnaceGUISysCategory(const char* n, const char* d):
|
|
|
|
name(n),
|
|
|
|
description(d) {}
|
2022-03-01 22:19:52 +00:00
|
|
|
FurnaceGUISysCategory():
|
2022-05-14 09:05:29 +00:00
|
|
|
name(NULL),
|
|
|
|
description(NULL) {}
|
2022-03-01 22:19:52 +00:00
|
|
|
};
|
|
|
|
|
2022-05-07 04:52:26 +00:00
|
|
|
struct FurnaceGUIMacroDesc {
|
|
|
|
DivInstrumentMacro* macro;
|
|
|
|
int min, max;
|
|
|
|
float height;
|
|
|
|
const char* displayName;
|
|
|
|
const char** bitfieldBits;
|
|
|
|
const char* modeName;
|
|
|
|
ImVec4 color;
|
|
|
|
unsigned int bitOffset;
|
2022-08-22 20:59:45 +00:00
|
|
|
bool isBitfield, blockMode, bit30;
|
2022-09-09 21:41:00 +00:00
|
|
|
String (*hoverFunc)(int,float,void*);
|
|
|
|
void* hoverFuncUser;
|
2022-05-07 04:52:26 +00:00
|
|
|
|
2022-09-09 21:41:00 +00:00
|
|
|
FurnaceGUIMacroDesc(const char* name, DivInstrumentMacro* m, int macroMin, int macroMax, float macroHeight, ImVec4 col=ImVec4(1.0f,1.0f,1.0f,1.0f), bool block=false, const char* mName=NULL, String (*hf)(int,float,void*)=NULL, bool bitfield=false, const char** bfVal=NULL, unsigned int bitOff=0, bool bit30Special=false, void* hfu=NULL):
|
2022-05-07 04:52:26 +00:00
|
|
|
macro(m),
|
|
|
|
height(macroHeight),
|
|
|
|
displayName(name),
|
|
|
|
bitfieldBits(bfVal),
|
|
|
|
modeName(mName),
|
|
|
|
color(col),
|
|
|
|
bitOffset(bitOff),
|
|
|
|
isBitfield(bitfield),
|
|
|
|
blockMode(block),
|
2022-08-22 20:59:45 +00:00
|
|
|
bit30(bit30Special),
|
2022-09-09 21:41:00 +00:00
|
|
|
hoverFunc(hf),
|
|
|
|
hoverFuncUser(hfu) {
|
2022-05-07 05:08:38 +00:00
|
|
|
// MSVC -> hell
|
|
|
|
this->min=macroMin;
|
|
|
|
this->max=macroMax;
|
2022-05-07 04:52:26 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2022-11-11 05:46:39 +00:00
|
|
|
struct FurnaceGUIMacroEditState {
|
|
|
|
int selectedMacro;
|
|
|
|
FurnaceGUIMacroEditState():
|
|
|
|
selectedMacro(0) {}
|
|
|
|
};
|
|
|
|
|
2022-06-07 18:49:12 +00:00
|
|
|
enum FurnaceGUIFindQueryModes {
|
|
|
|
GUI_QUERY_IGNORE=0,
|
|
|
|
GUI_QUERY_MATCH,
|
|
|
|
GUI_QUERY_MATCH_NOT,
|
|
|
|
GUI_QUERY_RANGE,
|
|
|
|
GUI_QUERY_RANGE_NOT,
|
|
|
|
GUI_QUERY_ANY,
|
|
|
|
GUI_QUERY_NONE,
|
|
|
|
|
|
|
|
GUI_QUERY_MAX
|
|
|
|
};
|
|
|
|
|
2022-06-07 23:51:18 +00:00
|
|
|
enum FurnaceGUIFindQueryReplaceModes {
|
|
|
|
GUI_QUERY_REPLACE_SET=0,
|
|
|
|
GUI_QUERY_REPLACE_ADD,
|
2022-06-09 21:41:54 +00:00
|
|
|
GUI_QUERY_REPLACE_ADD_OVERFLOW,
|
2022-07-25 23:32:26 +00:00
|
|
|
GUI_QUERY_REPLACE_SCALE,
|
2022-06-07 23:51:18 +00:00
|
|
|
GUI_QUERY_REPLACE_CLEAR,
|
|
|
|
|
|
|
|
GUI_QUERY_REPLACE_MAX
|
|
|
|
};
|
|
|
|
|
2022-06-07 18:49:12 +00:00
|
|
|
struct FurnaceGUIFindQuery {
|
|
|
|
int noteMode, insMode, volMode, effectCount;
|
|
|
|
int effectMode[8];
|
|
|
|
int effectValMode[8];
|
|
|
|
int note, noteMax;
|
|
|
|
unsigned char ins, insMax;
|
|
|
|
unsigned char vol, volMax;
|
|
|
|
unsigned char effect[8];
|
|
|
|
unsigned char effectMax[8];
|
|
|
|
unsigned char effectVal[8];
|
|
|
|
unsigned char effectValMax[8];
|
|
|
|
|
|
|
|
FurnaceGUIFindQuery():
|
|
|
|
noteMode(GUI_QUERY_IGNORE),
|
|
|
|
insMode(GUI_QUERY_IGNORE),
|
|
|
|
volMode(GUI_QUERY_IGNORE),
|
|
|
|
effectCount(0),
|
|
|
|
note(0),
|
|
|
|
noteMax(0),
|
|
|
|
ins(0),
|
|
|
|
insMax(0),
|
|
|
|
vol(0),
|
|
|
|
volMax(0) {
|
|
|
|
memset(effectMode,0,8*sizeof(int));
|
|
|
|
memset(effectValMode,0,8*sizeof(int));
|
|
|
|
memset(effect,0,8);
|
|
|
|
memset(effectMax,0,8);
|
|
|
|
memset(effectVal,0,8);
|
|
|
|
memset(effectValMax,0,8);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2022-06-10 23:27:47 +00:00
|
|
|
struct FurnaceGUIQueryResult {
|
|
|
|
int subsong, order, x, y;
|
|
|
|
FurnaceGUIQueryResult():
|
|
|
|
subsong(0),
|
|
|
|
order(0),
|
|
|
|
x(0),
|
|
|
|
y(0) {}
|
|
|
|
FurnaceGUIQueryResult(int ss, int o, int xPos, int yPos):
|
|
|
|
subsong(ss),
|
|
|
|
order(o),
|
|
|
|
x(xPos),
|
|
|
|
y(yPos) {}
|
|
|
|
};
|
|
|
|
|
2021-12-11 07:10:09 +00:00
|
|
|
class FurnaceGUI {
|
|
|
|
DivEngine* e;
|
|
|
|
|
2021-12-11 08:11:40 +00:00
|
|
|
SDL_Window* sdlWin;
|
|
|
|
SDL_Renderer* sdlRend;
|
2022-12-02 21:52:47 +00:00
|
|
|
SDL_Haptic* vibrator;
|
|
|
|
bool vibratorAvailable;
|
2021-12-11 08:11:40 +00:00
|
|
|
|
2022-03-17 08:43:02 +00:00
|
|
|
SDL_Texture* sampleTex;
|
|
|
|
int sampleTexW, sampleTexH;
|
|
|
|
bool updateSampleTex;
|
|
|
|
|
2022-08-27 05:14:17 +00:00
|
|
|
String workingDir, fileName, clipboard, warnString, errorString, lastError, curFileName, nextFile, sysSearchQuery, newSongQuery;
|
2022-08-04 05:51:47 +00:00
|
|
|
String workingDirSong, workingDirIns, workingDirWave, workingDirSample, workingDirAudioExport;
|
2022-08-16 16:24:18 +00:00
|
|
|
String workingDirVGMExport, workingDirZSMExport, workingDirROMExport, workingDirFont, workingDirColors, workingDirKeybinds;
|
2022-08-04 05:51:47 +00:00
|
|
|
String workingDirLayout, workingDirROM, workingDirTest;
|
2022-05-18 23:42:59 +00:00
|
|
|
String mmlString[32];
|
2022-11-03 07:59:37 +00:00
|
|
|
String mmlStringW, mmlStringSNES;
|
2021-12-15 05:37:27 +00:00
|
|
|
|
2022-08-27 00:30:13 +00:00
|
|
|
std::vector<DivSystem> sysSearchResults;
|
2022-08-27 05:14:17 +00:00
|
|
|
std::vector<FurnaceGUISysDef> newSongSearchResults;
|
2022-09-10 23:53:27 +00:00
|
|
|
std::deque<String> recentFile;
|
2022-11-13 23:29:37 +00:00
|
|
|
std::vector<DivInstrumentType> makeInsTypeList;
|
|
|
|
|
2022-08-27 00:30:13 +00:00
|
|
|
|
2022-08-16 16:24:18 +00:00
|
|
|
bool quit, warnQuit, willCommit, edit, modified, displayError, displayExporting, vgmExportLoop, zsmExportLoop, vgmExportPatternHints;
|
2022-11-13 23:29:37 +00:00
|
|
|
bool vgmExportDirectStream, displayInsTypeList;
|
2022-11-05 23:17:54 +00:00
|
|
|
bool portrait, injectBackUp, mobileMenuOpen;
|
2022-08-04 05:51:47 +00:00
|
|
|
bool wantCaptureKeyboard, oldWantCaptureKeyboard, displayMacroMenu;
|
2022-06-03 23:05:07 +00:00
|
|
|
bool displayNew, fullScreen, preserveChanPos, wantScrollList, noteInputPoly;
|
2022-11-03 08:22:25 +00:00
|
|
|
bool displayPendingIns, pendingInsSingle, displayPendingRawSample, snesFilterHex;
|
2022-12-08 23:04:18 +00:00
|
|
|
bool mobileEdit;
|
2022-12-09 05:30:27 +00:00
|
|
|
bool willExport[DIV_MAX_CHIPS];
|
2022-04-02 02:40:32 +00:00
|
|
|
int vgmExportVersion;
|
2022-04-16 23:35:25 +00:00
|
|
|
int drawHalt;
|
2022-05-26 05:24:21 +00:00
|
|
|
int zsmExportTickRate;
|
2022-04-29 10:39:18 +00:00
|
|
|
int macroPointSize;
|
2022-07-21 07:49:19 +00:00
|
|
|
int waveEditStyle;
|
2022-11-13 23:29:37 +00:00
|
|
|
int displayInsTypeListMakeInsSample;
|
2022-12-11 17:36:41 +00:00
|
|
|
int mobileEditPage;
|
2022-12-08 23:04:18 +00:00
|
|
|
float mobileMenuPos, autoButtonSize, mobileEditAnim;
|
|
|
|
ImVec2 mobileEditButtonPos, mobileEditButtonSize;
|
2022-08-27 04:35:16 +00:00
|
|
|
const int* curSysSection;
|
2022-11-15 22:51:43 +00:00
|
|
|
DivInstrumentFM opllPreview;
|
2021-12-17 08:33:12 +00:00
|
|
|
|
2022-08-13 09:17:32 +00:00
|
|
|
String pendingRawSample;
|
2022-08-13 10:50:36 +00:00
|
|
|
int pendingRawSampleDepth, pendingRawSampleChannels;
|
2022-12-18 03:45:08 +00:00
|
|
|
bool pendingRawSampleUnsigned, pendingRawSampleBigEndian, pendingRawSampleSwapNibbles;
|
2021-12-17 08:33:12 +00:00
|
|
|
|
2022-05-19 21:35:00 +00:00
|
|
|
ImGuiWindowFlags globalWinFlags;
|
|
|
|
|
2021-12-17 08:33:12 +00:00
|
|
|
FurnaceGUIFileDialogs curFileDialog;
|
2021-12-30 23:52:36 +00:00
|
|
|
FurnaceGUIWarnings warnAction;
|
2022-04-13 07:09:59 +00:00
|
|
|
FurnaceGUIWarnings postWarnAction;
|
2022-09-09 04:20:33 +00:00
|
|
|
FurnaceGUIMobileScenes mobScene;
|
2021-12-11 08:11:40 +00:00
|
|
|
|
2022-03-13 23:32:35 +00:00
|
|
|
FurnaceGUIFileDialog* fileDialog;
|
|
|
|
|
2022-10-20 06:49:33 +00:00
|
|
|
int scrW, scrH, scrConfW, scrConfH, canvasW, canvasH;
|
2022-08-22 00:47:00 +00:00
|
|
|
int scrX, scrY, scrConfX, scrConfY;
|
2022-10-19 20:33:20 +00:00
|
|
|
bool scrMax, sysManagedScale;
|
2021-12-11 08:11:40 +00:00
|
|
|
|
|
|
|
double dpiScale;
|
|
|
|
|
2022-02-20 09:26:35 +00:00
|
|
|
double aboutScroll, aboutSin;
|
2021-12-19 04:03:50 +00:00
|
|
|
float aboutHue;
|
|
|
|
|
2022-05-16 08:09:59 +00:00
|
|
|
std::atomic<double> backupTimer;
|
2022-03-21 19:11:28 +00:00
|
|
|
std::future<bool> backupTask;
|
|
|
|
std::mutex backupLock;
|
|
|
|
String backupPath;
|
|
|
|
|
2022-03-28 23:19:47 +00:00
|
|
|
std::mutex midiLock;
|
|
|
|
std::queue<TAMidiMessage> midiQueue;
|
2022-03-29 21:09:15 +00:00
|
|
|
MIDIMap midiMap;
|
2022-03-31 23:39:01 +00:00
|
|
|
int learning;
|
2022-03-28 23:19:47 +00:00
|
|
|
|
2021-12-11 08:11:40 +00:00
|
|
|
ImFont* mainFont;
|
2021-12-21 05:30:55 +00:00
|
|
|
ImFont* iconFont;
|
2021-12-11 08:11:40 +00:00
|
|
|
ImFont* patFont;
|
2021-12-19 04:03:50 +00:00
|
|
|
ImFont* bigFont;
|
2022-03-22 04:36:17 +00:00
|
|
|
ImWchar* fontRange;
|
2021-12-13 22:09:46 +00:00
|
|
|
ImVec4 uiColors[GUI_COLOR_MAX];
|
|
|
|
ImVec4 volColors[128];
|
2022-02-16 21:11:15 +00:00
|
|
|
ImU32 pitchGrad[256];
|
|
|
|
ImU32 volGrad[256];
|
|
|
|
ImU32 noteGrad[256];
|
|
|
|
ImU32 panGrad[256];
|
|
|
|
ImU32 insGrad[256];
|
|
|
|
ImU32 sysCmd1Grad[256];
|
|
|
|
ImU32 sysCmd2Grad[256];
|
2021-12-11 08:11:40 +00:00
|
|
|
|
2022-08-13 23:00:29 +00:00
|
|
|
char noteOffLabel[32];
|
|
|
|
char noteRelLabel[32];
|
|
|
|
char macroRelLabel[32];
|
|
|
|
char emptyLabel[32];
|
|
|
|
char emptyLabel2[32];
|
|
|
|
|
2022-01-16 22:25:43 +00:00
|
|
|
struct Settings {
|
|
|
|
int mainFontSize, patFontSize, iconSize;
|
|
|
|
int audioEngine;
|
2022-01-16 22:38:52 +00:00
|
|
|
int audioQuality;
|
2022-01-16 22:25:43 +00:00
|
|
|
int arcadeCore;
|
2022-02-03 04:08:45 +00:00
|
|
|
int ym2612Core;
|
2022-05-26 23:46:20 +00:00
|
|
|
int snCore;
|
2022-05-02 04:20:20 +00:00
|
|
|
int nesCore;
|
2022-05-02 21:53:55 +00:00
|
|
|
int fdsCore;
|
2022-08-28 20:10:16 +00:00
|
|
|
int c64Core;
|
2022-12-22 21:40:29 +00:00
|
|
|
int pokeyCore;
|
2022-12-24 07:29:37 +00:00
|
|
|
int opnCore;
|
2022-06-03 06:18:32 +00:00
|
|
|
int pcSpeakerOutMethod;
|
2022-05-11 21:39:36 +00:00
|
|
|
String yrw801Path;
|
|
|
|
String tg100Path;
|
|
|
|
String mu5Path;
|
2022-01-16 22:25:43 +00:00
|
|
|
int mainFont;
|
|
|
|
int patFont;
|
|
|
|
int audioRate;
|
|
|
|
int audioBufSize;
|
2022-01-19 23:04:07 +00:00
|
|
|
int patRowsBase;
|
|
|
|
int orderRowsBase;
|
2022-01-20 07:28:55 +00:00
|
|
|
int soloAction;
|
2022-01-20 07:53:59 +00:00
|
|
|
int pullDeleteBehavior;
|
2022-01-20 18:15:37 +00:00
|
|
|
int wrapHorizontal;
|
|
|
|
int wrapVertical;
|
2022-01-23 21:34:20 +00:00
|
|
|
int macroView;
|
2022-01-27 20:01:05 +00:00
|
|
|
int fmNames;
|
2022-01-28 06:26:26 +00:00
|
|
|
int allowEditDocking;
|
2022-01-28 08:17:35 +00:00
|
|
|
int chipNames;
|
2022-01-29 19:12:38 +00:00
|
|
|
int overflowHighlight;
|
2022-02-01 07:52:36 +00:00
|
|
|
int partyTime;
|
2022-02-03 19:40:09 +00:00
|
|
|
int germanNotation;
|
2022-02-04 05:03:30 +00:00
|
|
|
int stepOnDelete;
|
|
|
|
int scrollStep;
|
|
|
|
int sysSeparators;
|
2022-02-04 22:04:36 +00:00
|
|
|
int forceMono;
|
2022-02-05 04:21:00 +00:00
|
|
|
int controlLayout;
|
2022-02-07 22:24:26 +00:00
|
|
|
int restartOnFlagChange;
|
2022-02-15 06:46:03 +00:00
|
|
|
int statusDisplay;
|
2022-02-15 22:42:56 +00:00
|
|
|
float dpiScale;
|
2022-02-16 21:11:15 +00:00
|
|
|
int viewPrevPattern;
|
2022-03-03 17:44:29 +00:00
|
|
|
int guiColorsBase;
|
2022-05-24 08:49:52 +00:00
|
|
|
int guiColorsShading;
|
2022-03-04 07:40:42 +00:00
|
|
|
int avoidRaisingPattern;
|
2022-03-05 07:13:15 +00:00
|
|
|
int insFocusesPattern;
|
2022-03-12 07:32:02 +00:00
|
|
|
int stepOnInsert;
|
2022-03-13 22:30:43 +00:00
|
|
|
int unifiedDataView;
|
2022-03-13 23:32:35 +00:00
|
|
|
int sysFileDialog;
|
2022-03-21 05:52:38 +00:00
|
|
|
int roundedWindows;
|
|
|
|
int roundedButtons;
|
|
|
|
int roundedMenus;
|
2022-03-22 04:36:17 +00:00
|
|
|
int loadJapanese;
|
2022-05-14 01:52:33 +00:00
|
|
|
int loadChinese;
|
2022-08-25 23:49:08 +00:00
|
|
|
int loadChineseTraditional;
|
|
|
|
int loadKorean;
|
2022-03-25 23:16:47 +00:00
|
|
|
int fmLayout;
|
2022-04-12 01:27:23 +00:00
|
|
|
int sampleLayout;
|
2022-04-17 00:47:40 +00:00
|
|
|
int waveLayout;
|
2022-03-27 08:38:04 +00:00
|
|
|
int susPosition;
|
2022-04-04 00:20:30 +00:00
|
|
|
int effectCursorDir;
|
|
|
|
int cursorPastePos;
|
2022-04-04 18:25:38 +00:00
|
|
|
int titleBarInfo;
|
|
|
|
int titleBarSys;
|
2022-04-06 05:34:26 +00:00
|
|
|
int frameBorders;
|
2022-04-07 07:02:52 +00:00
|
|
|
int effectDeletionAltersValue;
|
2022-04-11 08:34:38 +00:00
|
|
|
int oscRoundedCorners;
|
|
|
|
int oscTakesEntireWindow;
|
|
|
|
int oscBorder;
|
2022-05-23 22:42:25 +00:00
|
|
|
int oscEscapesBoundary;
|
2022-04-12 23:26:25 +00:00
|
|
|
int separateFMColors;
|
2022-04-13 02:30:12 +00:00
|
|
|
int insEditColorize;
|
2022-04-13 07:29:07 +00:00
|
|
|
int metroVol;
|
2022-04-13 22:42:55 +00:00
|
|
|
int pushNibble;
|
2022-04-14 06:25:21 +00:00
|
|
|
int scrollChangesOrder;
|
2022-04-15 02:57:39 +00:00
|
|
|
int oplStandardWaveNames;
|
|
|
|
int cursorMoveNoScroll;
|
2022-04-15 10:37:23 +00:00
|
|
|
int lowLatency;
|
2022-04-16 18:13:19 +00:00
|
|
|
int notePreviewBehavior;
|
2022-04-16 23:35:25 +00:00
|
|
|
int powerSave;
|
2022-04-21 07:35:50 +00:00
|
|
|
int absorbInsInput;
|
2022-04-25 21:46:38 +00:00
|
|
|
int eventDelay;
|
|
|
|
int moveWindowTitle;
|
2022-04-26 20:24:45 +00:00
|
|
|
int hiddenSystems;
|
2022-05-05 05:52:15 +00:00
|
|
|
int horizontalDataView;
|
|
|
|
int noMultiSystem;
|
2022-05-12 08:29:34 +00:00
|
|
|
int oldMacroVSlider;
|
2022-05-20 07:43:39 +00:00
|
|
|
int displayAllInsTypes;
|
2022-05-27 03:26:44 +00:00
|
|
|
int noteCellSpacing;
|
|
|
|
int insCellSpacing;
|
|
|
|
int volCellSpacing;
|
|
|
|
int effectCellSpacing;
|
|
|
|
int effectValCellSpacing;
|
2022-05-31 00:02:24 +00:00
|
|
|
int doubleClickColumn;
|
2022-06-03 23:30:40 +00:00
|
|
|
int blankIns;
|
2022-06-18 08:52:03 +00:00
|
|
|
int dragMovesSelection;
|
2022-06-28 20:06:22 +00:00
|
|
|
int unsignedDetune;
|
2022-07-20 05:32:06 +00:00
|
|
|
int noThreadedInput;
|
2022-08-22 19:17:19 +00:00
|
|
|
int saveWindowPos;
|
2022-07-25 23:41:47 +00:00
|
|
|
int clampSamples;
|
2022-08-16 08:42:17 +00:00
|
|
|
int saveUnusedPatterns;
|
2022-08-16 18:53:51 +00:00
|
|
|
int channelColors;
|
|
|
|
int channelTextColors;
|
|
|
|
int channelStyle;
|
|
|
|
int channelVolStyle;
|
|
|
|
int channelFeedbackStyle;
|
2022-09-18 09:20:08 +00:00
|
|
|
int channelFont;
|
2022-09-21 00:07:17 +00:00
|
|
|
int channelTextCenter;
|
2022-09-26 06:27:36 +00:00
|
|
|
int midiOutClock;
|
|
|
|
int midiOutMode;
|
2022-09-10 23:53:27 +00:00
|
|
|
int maxRecentFile;
|
2022-10-04 00:22:24 +00:00
|
|
|
int centerPattern;
|
2022-11-05 21:22:15 +00:00
|
|
|
int ordersCursor;
|
2022-11-06 05:37:57 +00:00
|
|
|
int persistFadeOut;
|
|
|
|
int exportLoops;
|
|
|
|
double exportFadeOut;
|
2022-11-11 00:21:01 +00:00
|
|
|
int macroLayout;
|
2022-01-16 22:25:43 +00:00
|
|
|
unsigned int maxUndoSteps;
|
|
|
|
String mainFontPath;
|
|
|
|
String patFontPath;
|
2022-02-14 02:42:57 +00:00
|
|
|
String audioDevice;
|
2022-03-28 08:46:50 +00:00
|
|
|
String midiInDevice;
|
|
|
|
String midiOutDevice;
|
2022-07-21 20:21:29 +00:00
|
|
|
String c163Name;
|
2022-07-23 23:22:42 +00:00
|
|
|
String initialSysName;
|
2022-08-13 23:00:29 +00:00
|
|
|
String noteOffLabel;
|
|
|
|
String noteRelLabel;
|
|
|
|
String macroRelLabel;
|
|
|
|
String emptyLabel;
|
|
|
|
String emptyLabel2;
|
2022-09-30 05:26:54 +00:00
|
|
|
DivConfig initialSys;
|
2022-01-16 22:25:43 +00:00
|
|
|
|
|
|
|
Settings():
|
|
|
|
mainFontSize(18),
|
|
|
|
patFontSize(18),
|
|
|
|
iconSize(16),
|
|
|
|
audioEngine(DIV_AUDIO_SDL),
|
2022-01-16 22:38:52 +00:00
|
|
|
audioQuality(0),
|
2022-01-16 22:25:43 +00:00
|
|
|
arcadeCore(0),
|
2022-02-03 04:08:45 +00:00
|
|
|
ym2612Core(0),
|
2022-05-26 23:46:20 +00:00
|
|
|
snCore(0),
|
2022-05-02 04:20:20 +00:00
|
|
|
nesCore(0),
|
2022-05-02 21:53:55 +00:00
|
|
|
fdsCore(0),
|
2022-08-28 20:10:16 +00:00
|
|
|
c64Core(1),
|
2022-12-23 00:47:13 +00:00
|
|
|
pokeyCore(1),
|
2022-12-24 07:29:37 +00:00
|
|
|
opnCore(1),
|
2022-06-03 06:18:32 +00:00
|
|
|
pcSpeakerOutMethod(0),
|
2022-05-11 21:39:36 +00:00
|
|
|
yrw801Path(""),
|
|
|
|
tg100Path(""),
|
|
|
|
mu5Path(""),
|
2022-01-16 22:25:43 +00:00
|
|
|
mainFont(0),
|
|
|
|
patFont(0),
|
|
|
|
audioRate(44100),
|
|
|
|
audioBufSize(1024),
|
2022-01-19 23:04:07 +00:00
|
|
|
patRowsBase(0),
|
|
|
|
orderRowsBase(1),
|
2022-01-20 07:28:55 +00:00
|
|
|
soloAction(0),
|
2022-01-20 07:53:59 +00:00
|
|
|
pullDeleteBehavior(1),
|
2022-01-20 18:15:37 +00:00
|
|
|
wrapHorizontal(0),
|
|
|
|
wrapVertical(0),
|
2022-01-23 21:34:20 +00:00
|
|
|
macroView(0),
|
2022-01-27 20:01:05 +00:00
|
|
|
fmNames(0),
|
2022-11-06 18:26:50 +00:00
|
|
|
allowEditDocking(1),
|
2022-01-28 08:17:35 +00:00
|
|
|
chipNames(0),
|
2022-01-29 19:12:38 +00:00
|
|
|
overflowHighlight(0),
|
2022-02-01 07:52:36 +00:00
|
|
|
partyTime(0),
|
2022-02-03 19:40:09 +00:00
|
|
|
germanNotation(0),
|
2022-02-04 05:03:30 +00:00
|
|
|
stepOnDelete(0),
|
|
|
|
scrollStep(0),
|
|
|
|
sysSeparators(1),
|
2022-02-04 22:04:36 +00:00
|
|
|
forceMono(0),
|
2022-03-14 22:40:22 +00:00
|
|
|
controlLayout(3),
|
2022-02-07 22:24:26 +00:00
|
|
|
restartOnFlagChange(1),
|
2022-02-15 06:46:03 +00:00
|
|
|
statusDisplay(0),
|
2022-02-15 22:42:56 +00:00
|
|
|
dpiScale(0.0f),
|
2022-02-16 21:11:15 +00:00
|
|
|
viewPrevPattern(1),
|
2022-03-03 17:44:29 +00:00
|
|
|
guiColorsBase(0),
|
2022-05-24 08:49:52 +00:00
|
|
|
guiColorsShading(0),
|
2022-03-04 07:40:42 +00:00
|
|
|
avoidRaisingPattern(0),
|
2022-03-05 07:13:15 +00:00
|
|
|
insFocusesPattern(1),
|
2022-03-12 07:32:02 +00:00
|
|
|
stepOnInsert(0),
|
2022-03-13 23:32:35 +00:00
|
|
|
unifiedDataView(0),
|
2022-03-14 04:24:57 +00:00
|
|
|
sysFileDialog(1),
|
2022-03-21 05:52:38 +00:00
|
|
|
roundedWindows(1),
|
|
|
|
roundedButtons(1),
|
|
|
|
roundedMenus(0),
|
2022-03-22 04:36:17 +00:00
|
|
|
loadJapanese(0),
|
2022-05-14 01:52:33 +00:00
|
|
|
loadChinese(0),
|
2022-08-25 23:49:08 +00:00
|
|
|
loadChineseTraditional(0),
|
|
|
|
loadKorean(0),
|
2022-03-25 23:16:47 +00:00
|
|
|
fmLayout(0),
|
2022-04-12 01:27:23 +00:00
|
|
|
sampleLayout(0),
|
2022-04-17 00:47:40 +00:00
|
|
|
waveLayout(0),
|
2022-03-27 08:38:04 +00:00
|
|
|
susPosition(0),
|
2022-04-04 00:20:30 +00:00
|
|
|
effectCursorDir(1),
|
|
|
|
cursorPastePos(1),
|
2022-04-04 18:25:38 +00:00
|
|
|
titleBarInfo(1),
|
|
|
|
titleBarSys(1),
|
2022-04-06 05:34:26 +00:00
|
|
|
frameBorders(0),
|
2022-04-07 07:02:52 +00:00
|
|
|
effectDeletionAltersValue(1),
|
2022-04-11 08:34:38 +00:00
|
|
|
oscRoundedCorners(1),
|
|
|
|
oscTakesEntireWindow(0),
|
|
|
|
oscBorder(1),
|
2022-05-23 22:42:25 +00:00
|
|
|
oscEscapesBoundary(0),
|
2022-04-12 23:26:25 +00:00
|
|
|
separateFMColors(0),
|
2022-04-13 02:30:12 +00:00
|
|
|
insEditColorize(0),
|
2022-04-13 07:29:07 +00:00
|
|
|
metroVol(100),
|
2022-04-13 22:42:55 +00:00
|
|
|
pushNibble(0),
|
2022-04-14 06:25:21 +00:00
|
|
|
scrollChangesOrder(0),
|
2022-04-15 02:57:39 +00:00
|
|
|
oplStandardWaveNames(0),
|
|
|
|
cursorMoveNoScroll(0),
|
2022-04-15 10:37:23 +00:00
|
|
|
lowLatency(0),
|
2022-04-16 18:13:19 +00:00
|
|
|
notePreviewBehavior(1),
|
2022-04-16 23:35:25 +00:00
|
|
|
powerSave(1),
|
2022-04-21 07:35:50 +00:00
|
|
|
absorbInsInput(0),
|
2022-04-25 21:46:38 +00:00
|
|
|
eventDelay(0),
|
2022-05-10 21:19:49 +00:00
|
|
|
moveWindowTitle(1),
|
2022-04-26 20:24:45 +00:00
|
|
|
hiddenSystems(0),
|
2022-05-05 05:52:15 +00:00
|
|
|
horizontalDataView(0),
|
|
|
|
noMultiSystem(0),
|
2022-05-12 08:29:34 +00:00
|
|
|
oldMacroVSlider(0),
|
2022-05-20 07:43:39 +00:00
|
|
|
displayAllInsTypes(0),
|
2022-05-27 03:26:44 +00:00
|
|
|
noteCellSpacing(0),
|
|
|
|
insCellSpacing(0),
|
|
|
|
volCellSpacing(0),
|
|
|
|
effectCellSpacing(0),
|
|
|
|
effectValCellSpacing(0),
|
2022-05-31 00:02:24 +00:00
|
|
|
doubleClickColumn(1),
|
2022-06-03 23:30:40 +00:00
|
|
|
blankIns(0),
|
2022-06-18 08:52:03 +00:00
|
|
|
dragMovesSelection(1),
|
2022-06-28 20:06:22 +00:00
|
|
|
unsignedDetune(0),
|
2022-07-20 05:32:06 +00:00
|
|
|
noThreadedInput(0),
|
2022-07-25 23:41:47 +00:00
|
|
|
clampSamples(0),
|
2022-08-16 08:42:17 +00:00
|
|
|
saveUnusedPatterns(0),
|
2022-08-16 18:53:51 +00:00
|
|
|
channelColors(1),
|
|
|
|
channelTextColors(0),
|
2022-09-21 00:07:17 +00:00
|
|
|
channelStyle(1),
|
2022-08-16 18:53:51 +00:00
|
|
|
channelVolStyle(0),
|
|
|
|
channelFeedbackStyle(1),
|
2022-09-18 09:20:08 +00:00
|
|
|
channelFont(1),
|
2022-09-21 00:07:17 +00:00
|
|
|
channelTextCenter(1),
|
2022-09-26 06:27:36 +00:00
|
|
|
midiOutClock(0),
|
|
|
|
midiOutMode(1),
|
2022-09-10 23:53:27 +00:00
|
|
|
maxRecentFile(10),
|
2022-10-04 00:22:24 +00:00
|
|
|
centerPattern(0),
|
2022-11-05 21:22:15 +00:00
|
|
|
ordersCursor(1),
|
2022-11-06 05:37:57 +00:00
|
|
|
persistFadeOut(1),
|
|
|
|
exportLoops(0),
|
|
|
|
exportFadeOut(0.0),
|
2022-11-11 00:21:01 +00:00
|
|
|
macroLayout(0),
|
2022-01-16 22:25:43 +00:00
|
|
|
maxUndoSteps(100),
|
|
|
|
mainFontPath(""),
|
2022-02-14 02:42:57 +00:00
|
|
|
patFontPath(""),
|
2022-03-28 08:46:50 +00:00
|
|
|
audioDevice(""),
|
|
|
|
midiInDevice(""),
|
2022-07-21 20:21:29 +00:00
|
|
|
midiOutDevice(""),
|
2022-07-23 23:22:42 +00:00
|
|
|
c163Name(""),
|
2022-08-13 23:00:29 +00:00
|
|
|
initialSysName("Sega Genesis/Mega Drive"),
|
|
|
|
noteOffLabel("OFF"),
|
|
|
|
noteRelLabel("==="),
|
|
|
|
macroRelLabel("REL"),
|
|
|
|
emptyLabel("..."),
|
|
|
|
emptyLabel2("..") {}
|
2022-01-16 22:25:43 +00:00
|
|
|
} settings;
|
2021-12-20 03:51:02 +00:00
|
|
|
|
2021-12-19 21:01:24 +00:00
|
|
|
char finalLayoutPath[4096];
|
2021-12-19 08:16:24 +00:00
|
|
|
|
2022-05-05 03:55:11 +00:00
|
|
|
DivInstrument* prevInsData;
|
|
|
|
|
2022-04-26 06:07:28 +00:00
|
|
|
int curIns, curWave, curSample, curOctave, curOrder, prevIns, oldRow, oldOrder, oldOrder1, editStep, exportLoops, soloChan, soloTimeout, orderEditMode, orderCursor;
|
2022-04-21 23:10:59 +00:00
|
|
|
int loopOrder, loopRow, loopEnd, isClipping, extraChannelButtons, patNameTarget, newSongCategory, latchTarget;
|
2022-11-10 06:26:59 +00:00
|
|
|
int wheelX, wheelY, dragSourceX, dragSourceY, dragDestinationX, dragDestinationY, oldBeat, oldBar;
|
2022-04-02 20:07:47 +00:00
|
|
|
|
2022-06-06 08:05:55 +00:00
|
|
|
double exportFadeOut;
|
|
|
|
|
2021-12-15 22:32:08 +00:00
|
|
|
bool editControlsOpen, ordersOpen, insListOpen, songInfoOpen, patternOpen, insEditOpen;
|
2021-12-20 03:51:02 +00:00
|
|
|
bool waveListOpen, waveEditOpen, sampleListOpen, sampleEditOpen, aboutOpen, settingsOpen;
|
2022-03-21 05:52:38 +00:00
|
|
|
bool mixerOpen, debugOpen, inspectorOpen, oscOpen, volMeterOpen, statsOpen, compatFlagsOpen;
|
2022-04-30 08:58:30 +00:00
|
|
|
bool pianoOpen, notesOpen, channelsOpen, regViewOpen, logOpen, effectListOpen, chanOscOpen;
|
2022-11-10 06:26:59 +00:00
|
|
|
bool subSongsOpen, findOpen, spoilerOpen, patManagerOpen, sysManagerOpen, clockOpen;
|
|
|
|
|
|
|
|
bool clockShowReal, clockShowRow, clockShowBeat, clockShowMetro, clockShowTime;
|
|
|
|
float clockMetroTick[16];
|
2022-04-02 20:07:47 +00:00
|
|
|
|
2022-06-18 08:52:03 +00:00
|
|
|
SelectionPoint selStart, selEnd, cursor, cursorDrag, dragStart, dragEnd;
|
|
|
|
bool selecting, selectingFull, dragging, curNibble, orderNibble, followOrders, followPattern, changeAllOrders, mobileUI;
|
2022-09-11 03:35:21 +00:00
|
|
|
bool collapseWindow, demandScrollX, fancyPattern, wantPatName, firstFrame, tempoView, waveHex, waveSigned, waveGenVisible, lockLayout, editOptsVisible, latchNibble, nonLatchNibble;
|
2022-12-07 03:40:23 +00:00
|
|
|
bool keepLoopAlive, orderScrollLocked, orderScrollTolerance, dragMobileMenu, dragMobileEditButton;
|
2022-05-05 01:56:26 +00:00
|
|
|
FurnaceGUIWindows curWindow, nextWindow, curWindowLast;
|
2022-11-06 07:06:51 +00:00
|
|
|
std::atomic<FurnaceGUIWindows> curWindowThreadSafe;
|
2022-01-29 23:56:08 +00:00
|
|
|
float peak[2];
|
2022-02-15 18:38:59 +00:00
|
|
|
float patChanX[DIV_MAX_CHANS+1];
|
|
|
|
float patChanSlideY[DIV_MAX_CHANS+1];
|
2022-12-02 09:13:26 +00:00
|
|
|
float lastPatternWidth, longThreshold;
|
2022-12-07 03:40:23 +00:00
|
|
|
float buttonLongThreshold;
|
2022-11-13 20:41:40 +00:00
|
|
|
String nextDesc;
|
2022-07-23 22:02:03 +00:00
|
|
|
String nextDescName;
|
2021-12-14 22:45:37 +00:00
|
|
|
|
2022-04-21 22:32:28 +00:00
|
|
|
OperationMask opMaskDelete, opMaskPullDelete, opMaskInsert, opMaskPaste, opMaskTransposeNote, opMaskTransposeValue;
|
|
|
|
OperationMask opMaskInterpolate, opMaskFade, opMaskInvertVal, opMaskScale;
|
|
|
|
OperationMask opMaskRandomize, opMaskFlip, opMaskCollapseExpand;
|
2022-03-12 07:13:15 +00:00
|
|
|
short latchNote, latchIns, latchVol, latchEffect, latchEffectVal;
|
|
|
|
|
2022-05-21 23:36:15 +00:00
|
|
|
DivWaveSynth wavePreview;
|
|
|
|
int wavePreviewLen, wavePreviewHeight;
|
|
|
|
bool wavePreviewInit;
|
|
|
|
|
2022-02-11 06:56:59 +00:00
|
|
|
// bit 31: ctrl
|
|
|
|
// bit 30: reserved for SDL scancode mask
|
|
|
|
// bit 29: shift
|
|
|
|
// bit 28: meta (win)
|
|
|
|
// bit 27: alt
|
|
|
|
// bit 24-26: reserved
|
2022-02-10 22:44:27 +00:00
|
|
|
int actionKeys[GUI_ACTION_MAX];
|
|
|
|
|
2022-02-11 06:56:59 +00:00
|
|
|
std::map<int,int> actionMapGlobal;
|
|
|
|
std::map<int,int> actionMapPat;
|
|
|
|
std::map<int,int> actionMapOrders;
|
2022-03-22 09:54:01 +00:00
|
|
|
std::map<int,int> actionMapSample;
|
2022-02-11 06:56:59 +00:00
|
|
|
std::map<int,int> actionMapInsList;
|
|
|
|
std::map<int,int> actionMapWaveList;
|
|
|
|
std::map<int,int> actionMapSampleList;
|
2022-02-10 22:44:27 +00:00
|
|
|
|
2022-02-01 23:08:19 +00:00
|
|
|
std::vector<DivRegWrite> pgProgram;
|
|
|
|
int pgSys, pgAddr, pgVal;
|
|
|
|
|
2022-06-07 18:49:12 +00:00
|
|
|
std::vector<FurnaceGUIFindQuery> curQuery;
|
2022-06-10 23:27:47 +00:00
|
|
|
std::vector<FurnaceGUIQueryResult> curQueryResults;
|
2022-06-09 23:52:38 +00:00
|
|
|
bool curQueryRangeX, curQueryBackwards;
|
2022-06-07 23:51:18 +00:00
|
|
|
int curQueryRangeXMin, curQueryRangeXMax;
|
|
|
|
int curQueryRangeY;
|
2022-06-08 00:48:42 +00:00
|
|
|
int curQueryEffectPos;
|
2022-06-07 18:49:12 +00:00
|
|
|
|
2022-06-09 21:41:54 +00:00
|
|
|
int queryReplaceEffectCount;
|
|
|
|
int queryReplaceEffectPos;
|
|
|
|
int queryReplaceNoteMode;
|
|
|
|
int queryReplaceInsMode;
|
|
|
|
int queryReplaceVolMode;
|
|
|
|
int queryReplaceEffectMode[8];
|
|
|
|
int queryReplaceEffectValMode[8];
|
|
|
|
int queryReplaceNote;
|
|
|
|
int queryReplaceIns;
|
|
|
|
int queryReplaceVol;
|
|
|
|
int queryReplaceEffect[8];
|
|
|
|
int queryReplaceEffectVal[8];
|
|
|
|
bool queryReplaceNoteDo;
|
|
|
|
bool queryReplaceInsDo;
|
|
|
|
bool queryReplaceVolDo;
|
|
|
|
bool queryReplaceEffectDo[8];
|
|
|
|
bool queryReplaceEffectValDo[8];
|
2022-06-11 07:14:30 +00:00
|
|
|
bool queryViewingResults;
|
2022-06-09 21:41:54 +00:00
|
|
|
|
2022-01-20 06:32:16 +00:00
|
|
|
struct ActiveNote {
|
|
|
|
int chan;
|
|
|
|
int note;
|
|
|
|
ActiveNote(int c, int n):
|
|
|
|
chan(c),
|
|
|
|
note(n) {}
|
|
|
|
};
|
|
|
|
std::vector<ActiveNote> activeNotes;
|
2022-02-16 21:11:15 +00:00
|
|
|
std::vector<DivCommand> cmdStream;
|
2022-02-15 23:52:12 +00:00
|
|
|
std::vector<Particle> particles;
|
2022-06-06 00:04:41 +00:00
|
|
|
std::vector<std::pair<DivInstrument*,bool>> pendingIns;
|
2022-02-15 23:52:12 +00:00
|
|
|
|
2022-03-01 22:19:52 +00:00
|
|
|
std::vector<FurnaceGUISysCategory> sysCategories;
|
|
|
|
|
2022-01-20 05:07:53 +00:00
|
|
|
bool wavePreviewOn;
|
|
|
|
SDL_Scancode wavePreviewKey;
|
|
|
|
int wavePreviewNote;
|
|
|
|
|
2022-01-20 21:51:31 +00:00
|
|
|
bool samplePreviewOn;
|
|
|
|
SDL_Scancode samplePreviewKey;
|
|
|
|
int samplePreviewNote;
|
|
|
|
|
2022-02-18 18:11:41 +00:00
|
|
|
// SDL_Scancode,int
|
2022-02-21 23:01:41 +00:00
|
|
|
std::map<int,int> noteKeys;
|
2022-02-18 18:11:41 +00:00
|
|
|
// SDL_Keycode,int
|
2022-02-21 23:01:41 +00:00
|
|
|
std::map<int,int> valueKeys;
|
2021-12-11 21:44:02 +00:00
|
|
|
|
2022-05-17 17:46:52 +00:00
|
|
|
// currently active touch points
|
|
|
|
std::vector<TouchPoint> activePoints;
|
|
|
|
// one frame points
|
|
|
|
std::vector<TouchPoint> pressedPoints;
|
|
|
|
std::vector<TouchPoint> releasedPoints;
|
|
|
|
|
2021-12-12 23:19:43 +00:00
|
|
|
int arpMacroScroll;
|
2022-04-15 07:51:38 +00:00
|
|
|
int pitchMacroScroll;
|
2021-12-12 23:19:43 +00:00
|
|
|
|
2021-12-12 09:21:09 +00:00
|
|
|
ImVec2 macroDragStart;
|
|
|
|
ImVec2 macroDragAreaSize;
|
2022-01-21 07:54:52 +00:00
|
|
|
unsigned char* macroDragCTarget;
|
2021-12-12 09:21:09 +00:00
|
|
|
int* macroDragTarget;
|
|
|
|
int macroDragLen;
|
|
|
|
int macroDragMin, macroDragMax;
|
2022-01-21 06:56:30 +00:00
|
|
|
int macroDragLastX, macroDragLastY;
|
|
|
|
int macroDragBitOff;
|
2022-01-21 22:00:28 +00:00
|
|
|
int macroDragScroll;
|
2022-01-21 06:56:30 +00:00
|
|
|
bool macroDragBitMode;
|
|
|
|
bool macroDragInitialValueSet;
|
|
|
|
bool macroDragInitialValue;
|
2022-01-21 07:54:52 +00:00
|
|
|
bool macroDragChar;
|
2022-08-22 20:59:45 +00:00
|
|
|
bool macroDragBit30;
|
2022-08-23 08:57:21 +00:00
|
|
|
bool macroDragSettingBit30;
|
2022-04-13 04:03:20 +00:00
|
|
|
bool macroDragLineMode;
|
2022-05-08 23:32:16 +00:00
|
|
|
bool macroDragMouseMoved;
|
2022-04-13 04:03:20 +00:00
|
|
|
ImVec2 macroDragLineInitial;
|
2022-05-09 03:52:21 +00:00
|
|
|
ImVec2 macroDragLineInitialV;
|
2021-12-12 09:21:09 +00:00
|
|
|
bool macroDragActive;
|
2022-05-08 23:32:16 +00:00
|
|
|
FurnaceGUIMacroDesc lastMacroDesc;
|
|
|
|
int macroOffX, macroOffY;
|
|
|
|
float macroScaleX, macroScaleY;
|
2022-09-16 05:18:14 +00:00
|
|
|
int macroRandMin, macroRandMax;
|
2021-12-12 09:21:09 +00:00
|
|
|
|
|
|
|
ImVec2 macroLoopDragStart;
|
|
|
|
ImVec2 macroLoopDragAreaSize;
|
2022-08-22 07:13:33 +00:00
|
|
|
unsigned char* macroLoopDragTarget;
|
2021-12-12 09:21:09 +00:00
|
|
|
int macroLoopDragLen;
|
|
|
|
bool macroLoopDragActive;
|
|
|
|
|
2022-11-11 05:46:39 +00:00
|
|
|
FurnaceGUIMacroEditState macroEditStateFM, macroEditStateOP[4], macroEditStateMacros;
|
|
|
|
|
2021-12-18 22:54:26 +00:00
|
|
|
ImVec2 waveDragStart;
|
|
|
|
ImVec2 waveDragAreaSize;
|
|
|
|
int* waveDragTarget;
|
|
|
|
int waveDragLen;
|
|
|
|
int waveDragMin, waveDragMax;
|
|
|
|
bool waveDragActive;
|
|
|
|
|
2022-02-12 06:57:55 +00:00
|
|
|
int bindSetTarget, bindSetPrevValue;
|
|
|
|
bool bindSetActive, bindSetPending;
|
|
|
|
|
2022-11-30 22:20:04 +00:00
|
|
|
float nextScroll, nextAddScroll, orderScroll, orderScrollSlideOrigin;
|
2021-12-24 03:14:59 +00:00
|
|
|
|
2022-11-30 22:37:48 +00:00
|
|
|
ImVec2 orderScrollRealOrigin;
|
2022-12-04 22:19:21 +00:00
|
|
|
ImVec2 dragMobileMenuOrigin;
|
2022-11-30 22:37:48 +00:00
|
|
|
|
2022-05-27 05:19:10 +00:00
|
|
|
int layoutTimeBegin, layoutTimeEnd, layoutTimeDelta;
|
|
|
|
int renderTimeBegin, renderTimeEnd, renderTimeDelta;
|
|
|
|
int eventTimeBegin, eventTimeEnd, eventTimeDelta;
|
|
|
|
|
2022-09-11 04:20:22 +00:00
|
|
|
int chanToMove, sysToMove, sysToDelete, opToMove;
|
2022-05-27 06:04:12 +00:00
|
|
|
|
2021-12-24 03:14:59 +00:00
|
|
|
ImVec2 patWindowPos, patWindowSize;
|
2022-08-22 00:47:00 +00:00
|
|
|
|
2022-02-17 07:44:17 +00:00
|
|
|
// pattern view specific
|
2022-05-14 06:46:06 +00:00
|
|
|
ImVec2 fourChars, threeChars, twoChars;
|
2022-05-27 03:26:44 +00:00
|
|
|
ImVec2 noteCellSize, insCellSize, volCellSize, effectCellSize, effectValCellSize;
|
2022-02-17 07:44:17 +00:00
|
|
|
SelectionPoint sel1, sel2;
|
|
|
|
int dummyRows, demandX;
|
2022-03-12 08:04:34 +00:00
|
|
|
int transposeAmount, randomizeMin, randomizeMax, fadeMin, fadeMax;
|
2022-03-12 07:13:15 +00:00
|
|
|
float scaleMax;
|
2022-04-14 08:05:58 +00:00
|
|
|
bool fadeMode, randomMode, haveHitBounds, pendingStepUpdate;
|
2021-12-13 22:09:46 +00:00
|
|
|
|
2021-12-26 23:05:18 +00:00
|
|
|
int oldOrdersLen;
|
|
|
|
DivOrders oldOrders;
|
2022-04-08 22:21:36 +00:00
|
|
|
DivPattern* oldPat[DIV_MAX_CHANS];
|
2021-12-24 23:27:55 +00:00
|
|
|
std::deque<UndoStep> undoHist;
|
|
|
|
std::deque<UndoStep> redoHist;
|
|
|
|
|
2022-03-17 23:08:59 +00:00
|
|
|
// sample editor specific
|
|
|
|
double sampleZoom;
|
2022-03-21 05:41:18 +00:00
|
|
|
double prevSampleZoom;
|
2022-11-23 08:17:04 +00:00
|
|
|
double minSampleZoom;
|
2022-03-17 23:08:59 +00:00
|
|
|
int samplePos;
|
2022-03-22 22:01:06 +00:00
|
|
|
int resizeSize, silenceSize;
|
2022-03-19 08:42:44 +00:00
|
|
|
double resampleTarget;
|
|
|
|
int resampleStrat;
|
|
|
|
float amplifyVol;
|
|
|
|
int sampleSelStart, sampleSelEnd;
|
2022-12-08 08:32:20 +00:00
|
|
|
bool sampleInfo, sampleCompatRate;
|
2022-03-21 05:41:18 +00:00
|
|
|
bool sampleDragActive, sampleDragMode, sampleDrag16, sampleZoomAuto;
|
2022-03-19 21:14:11 +00:00
|
|
|
void* sampleDragTarget;
|
|
|
|
ImVec2 sampleDragStart;
|
|
|
|
ImVec2 sampleDragAreaSize;
|
2022-03-20 23:25:48 +00:00
|
|
|
unsigned int sampleDragLen;
|
2022-03-21 08:45:20 +00:00
|
|
|
float sampleFilterL, sampleFilterB, sampleFilterH, sampleFilterRes, sampleFilterCutStart, sampleFilterCutEnd;
|
|
|
|
unsigned char sampleFilterPower;
|
2022-03-22 09:54:01 +00:00
|
|
|
short* sampleClipboard;
|
2022-03-22 06:57:06 +00:00
|
|
|
size_t sampleClipboardLen;
|
2022-03-22 22:01:06 +00:00
|
|
|
bool openSampleResizeOpt, openSampleResampleOpt, openSampleAmplifyOpt, openSampleSilenceOpt, openSampleFilterOpt;
|
2022-03-17 23:08:59 +00:00
|
|
|
|
2022-04-09 07:42:58 +00:00
|
|
|
// oscilloscope
|
|
|
|
int oscTotal;
|
|
|
|
float oscValues[512];
|
2022-04-09 10:02:24 +00:00
|
|
|
float oscZoom;
|
2022-05-31 02:40:07 +00:00
|
|
|
float oscWindowSize;
|
2022-04-09 10:02:24 +00:00
|
|
|
bool oscZoomSlider;
|
2022-04-09 07:42:58 +00:00
|
|
|
|
2022-04-30 08:58:30 +00:00
|
|
|
// per-channel oscilloscope
|
2022-06-22 20:10:53 +00:00
|
|
|
int chanOscCols, chanOscColorX, chanOscColorY;
|
2022-05-01 23:29:16 +00:00
|
|
|
float chanOscWindowSize;
|
2022-06-22 20:10:53 +00:00
|
|
|
bool chanOscWaveCorr, chanOscOptions, updateChanOscGradTex, chanOscUseGrad;
|
|
|
|
ImVec4 chanOscColor;
|
2022-06-21 23:01:53 +00:00
|
|
|
Gradient2D chanOscGrad;
|
|
|
|
SDL_Texture* chanOscGradTex;
|
2022-05-01 23:29:16 +00:00
|
|
|
float chanOscLP0[DIV_MAX_CHANS];
|
|
|
|
float chanOscLP1[DIV_MAX_CHANS];
|
2022-06-22 20:10:53 +00:00
|
|
|
float chanOscVol[DIV_MAX_CHANS];
|
|
|
|
float chanOscPitch[DIV_MAX_CHANS];
|
|
|
|
float chanOscBright[DIV_MAX_CHANS];
|
2022-05-01 23:29:16 +00:00
|
|
|
unsigned short lastNeedlePos[DIV_MAX_CHANS];
|
|
|
|
unsigned short lastCorrPos[DIV_MAX_CHANS];
|
2022-05-31 08:24:29 +00:00
|
|
|
struct ChanOscStatus {
|
|
|
|
double* inBuf;
|
|
|
|
size_t inBufPos;
|
|
|
|
double inBufPosFrac;
|
|
|
|
unsigned short needle;
|
|
|
|
fftw_complex* outBuf;
|
|
|
|
fftw_plan plan;
|
|
|
|
ChanOscStatus():
|
|
|
|
inBuf(NULL),
|
|
|
|
inBufPos(0),
|
|
|
|
inBufPosFrac(0.0f),
|
|
|
|
needle(0),
|
|
|
|
outBuf(NULL),
|
|
|
|
plan(NULL) {}
|
|
|
|
} chanOscChan[DIV_MAX_CHANS];
|
2022-04-30 08:58:30 +00:00
|
|
|
|
2022-03-17 23:08:59 +00:00
|
|
|
// visualizer
|
2022-02-10 08:15:39 +00:00
|
|
|
float keyHit[DIV_MAX_CHANS];
|
2022-09-20 07:32:23 +00:00
|
|
|
float keyHit1[DIV_MAX_CHANS];
|
2022-02-22 05:13:32 +00:00
|
|
|
int lastIns[DIV_MAX_CHANS];
|
2022-08-22 00:47:00 +00:00
|
|
|
|
2022-04-11 04:01:55 +00:00
|
|
|
// log window
|
|
|
|
bool followLog;
|
2022-02-10 08:15:39 +00:00
|
|
|
|
2022-04-13 08:24:49 +00:00
|
|
|
// piano
|
2022-12-10 19:32:51 +00:00
|
|
|
enum PianoLayoutMode {
|
|
|
|
PIANO_LAYOUT_STANDARD = 0,
|
|
|
|
PIANO_LAYOUT_CONTINUOUS,
|
|
|
|
PIANO_LAYOUT_AUTOMATIC,
|
|
|
|
PIANO_LAYOUT_MAX
|
|
|
|
};
|
|
|
|
|
|
|
|
enum PianoInputPadMode {
|
|
|
|
PIANO_INPUT_PAD_DISABLE = 0,
|
|
|
|
PIANO_INPUT_PAD_REPLACE,
|
|
|
|
PIANO_INPUT_PAD_SPLIT_AUTO,
|
|
|
|
PIANO_INPUT_PAD_SPLIT_VISIBLE,
|
|
|
|
PIANO_INPUT_PAD_MAX
|
|
|
|
};
|
|
|
|
|
2022-05-17 17:46:52 +00:00
|
|
|
int pianoOctaves, pianoOctavesEdit;
|
2022-05-17 23:55:44 +00:00
|
|
|
bool pianoOptions, pianoSharePosition, pianoOptionsSet;
|
2022-04-13 08:24:49 +00:00
|
|
|
float pianoKeyHit[180];
|
2022-05-17 20:20:56 +00:00
|
|
|
bool pianoKeyPressed[180];
|
2022-05-17 17:46:52 +00:00
|
|
|
int pianoOffset, pianoOffsetEdit;
|
2022-05-17 20:48:37 +00:00
|
|
|
int pianoView, pianoInputPadMode;
|
2022-04-13 08:24:49 +00:00
|
|
|
|
2022-05-08 07:01:32 +00:00
|
|
|
// TX81Z
|
|
|
|
bool hasACED;
|
|
|
|
unsigned char acedData[23];
|
|
|
|
|
2022-07-26 23:23:01 +00:00
|
|
|
// wave generator
|
|
|
|
int waveGenBaseShape;
|
2022-10-03 17:42:52 +00:00
|
|
|
int waveInterpolation;
|
2022-07-27 07:23:29 +00:00
|
|
|
float waveGenDuty;
|
|
|
|
int waveGenPower;
|
|
|
|
float waveGenInvertPoint;
|
2022-07-26 23:23:01 +00:00
|
|
|
float waveGenAmp[16];
|
|
|
|
float waveGenPhase[16];
|
|
|
|
float waveGenTL[4];
|
2022-07-27 06:20:26 +00:00
|
|
|
int waveGenMult[4];
|
2022-09-09 08:23:18 +00:00
|
|
|
int waveGenFB[4];
|
2022-09-10 21:01:22 +00:00
|
|
|
int waveGenScaleX, waveGenScaleY, waveGenOffsetX, waveGenOffsetY, waveGenSmooth;
|
|
|
|
float waveGenAmplify;
|
2022-07-26 23:23:01 +00:00
|
|
|
bool waveGenFMCon1[4];
|
|
|
|
bool waveGenFMCon2[3];
|
|
|
|
bool waveGenFMCon3[2];
|
2022-07-27 06:20:26 +00:00
|
|
|
bool waveGenFM;
|
2022-07-26 23:23:01 +00:00
|
|
|
|
2022-03-27 08:29:45 +00:00
|
|
|
void drawSSGEnv(unsigned char type, const ImVec2& size);
|
|
|
|
void drawWaveform(unsigned char type, bool opz, const ImVec2& size);
|
2022-02-10 06:45:26 +00:00
|
|
|
void drawAlgorithm(unsigned char alg, FurnaceGUIFMAlgs algType, const ImVec2& size);
|
2022-09-29 00:33:16 +00:00
|
|
|
void drawFMEnv(unsigned char tl, unsigned char ar, unsigned char dr, unsigned char d2r, unsigned char rr, unsigned char sl, unsigned char sus, unsigned char egt, unsigned char algOrGlobalSus, float maxTl, float maxArDr, float maxRr, const ImVec2& size, unsigned short instType);
|
2022-04-17 04:58:29 +00:00
|
|
|
void drawGBEnv(unsigned char vol, unsigned char len, unsigned char sLen, bool dir, const ImVec2& size);
|
2022-09-30 07:14:54 +00:00
|
|
|
bool drawSysConf(int chan, DivSystem type, DivConfig& flags, bool modifyOnChange);
|
2022-09-22 06:18:41 +00:00
|
|
|
void kvsConfig(DivInstrument* ins);
|
2022-02-10 06:45:26 +00:00
|
|
|
|
2022-04-02 05:11:44 +00:00
|
|
|
// these ones offer ctrl-wheel fine value changes.
|
|
|
|
bool CWSliderScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format=NULL, ImGuiSliderFlags flags=0);
|
|
|
|
bool CWVSliderScalar(const char* label, const ImVec2& size, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format=NULL, ImGuiSliderFlags flags=0);
|
|
|
|
bool CWSliderInt(const char* label, int* v, int v_min, int v_max, const char* format="%d", ImGuiSliderFlags flags=0);
|
|
|
|
bool CWSliderFloat(const char* label, float* v, float v_min, float v_max, const char* format="%.3f", ImGuiSliderFlags flags=0);
|
|
|
|
bool CWVSliderInt(const char* label, const ImVec2& size, int* v, int v_min, int v_max, const char* format="%d", ImGuiSliderFlags flags=0);
|
|
|
|
|
2022-10-09 22:59:44 +00:00
|
|
|
// inverted checkbox
|
|
|
|
bool InvCheckbox(const char* label, bool* value);
|
|
|
|
|
2021-12-15 22:32:08 +00:00
|
|
|
void updateWindowTitle();
|
2022-09-22 00:27:42 +00:00
|
|
|
void autoDetectSystem();
|
2021-12-19 21:01:24 +00:00
|
|
|
void prepareLayout();
|
2022-09-18 08:51:10 +00:00
|
|
|
ImVec4 channelColor(int ch);
|
|
|
|
ImVec4 channelTextColor(int ch);
|
2021-12-15 22:32:08 +00:00
|
|
|
|
2022-04-09 07:42:58 +00:00
|
|
|
void readOsc();
|
2022-09-20 07:32:23 +00:00
|
|
|
void calcChanOsc();
|
2022-04-09 07:42:58 +00:00
|
|
|
|
2022-04-12 23:26:25 +00:00
|
|
|
void pushAccentColors(const ImVec4& one, const ImVec4& two, const ImVec4& border, const ImVec4& borderShadow);
|
|
|
|
void popAccentColors();
|
|
|
|
|
2022-05-18 05:05:25 +00:00
|
|
|
float calcBPM(int s1, int s2, float hz, int vN, int vD);
|
2022-03-16 04:30:15 +00:00
|
|
|
|
2022-04-20 20:29:07 +00:00
|
|
|
void patternRow(int i, bool isPlaying, float lineHeight, int chans, int ord, const DivPattern** patCache, bool inhibitSel);
|
2022-02-17 07:44:17 +00:00
|
|
|
|
2022-11-11 00:21:01 +00:00
|
|
|
void drawMacroEdit(FurnaceGUIMacroDesc& i, int totalFit, float availableWidth, int index);
|
2022-11-11 05:46:39 +00:00
|
|
|
void drawMacros(std::vector<FurnaceGUIMacroDesc>& macros, FurnaceGUIMacroEditState& state);
|
2022-05-07 04:52:26 +00:00
|
|
|
|
2022-03-14 05:26:27 +00:00
|
|
|
void actualWaveList();
|
|
|
|
void actualSampleList();
|
|
|
|
|
2022-05-18 23:42:59 +00:00
|
|
|
void toggleMobileUI(bool enable, bool force=false);
|
|
|
|
|
2022-09-11 04:50:53 +00:00
|
|
|
void pushToggleColors(bool status);
|
|
|
|
void popToggleColors();
|
|
|
|
|
2022-05-19 03:49:21 +00:00
|
|
|
void drawMobileControls();
|
2022-11-29 23:30:48 +00:00
|
|
|
void drawMobileOrderSel();
|
2021-12-15 22:32:08 +00:00
|
|
|
void drawEditControls();
|
2022-11-29 23:30:48 +00:00
|
|
|
void drawSongInfo(bool asChild=false);
|
2021-12-14 09:45:44 +00:00
|
|
|
void drawOrders();
|
|
|
|
void drawPattern();
|
2022-09-09 23:53:20 +00:00
|
|
|
void drawInsList(bool asChild=false);
|
2021-12-14 09:45:44 +00:00
|
|
|
void drawInsEdit();
|
2022-09-09 23:53:20 +00:00
|
|
|
void drawWaveList(bool asChild=false);
|
2021-12-16 08:09:18 +00:00
|
|
|
void drawWaveEdit();
|
2022-09-09 23:53:20 +00:00
|
|
|
void drawSampleList(bool asChild=false);
|
2021-12-16 08:09:18 +00:00
|
|
|
void drawSampleEdit();
|
2022-01-13 06:03:57 +00:00
|
|
|
void drawMixer();
|
2022-01-27 22:49:00 +00:00
|
|
|
void drawOsc();
|
2022-04-30 08:58:30 +00:00
|
|
|
void drawChanOsc();
|
2022-01-29 23:56:08 +00:00
|
|
|
void drawVolMeter();
|
2022-02-03 05:34:48 +00:00
|
|
|
void drawStats();
|
|
|
|
void drawCompatFlags();
|
|
|
|
void drawPiano();
|
|
|
|
void drawNotes();
|
2022-02-05 06:48:35 +00:00
|
|
|
void drawChannels();
|
2022-08-16 08:42:17 +00:00
|
|
|
void drawPatManager();
|
2022-08-19 09:41:45 +00:00
|
|
|
void drawSysManager();
|
2022-02-22 03:31:27 +00:00
|
|
|
void drawRegView();
|
2021-12-19 04:03:50 +00:00
|
|
|
void drawAbout();
|
2021-12-20 03:51:02 +00:00
|
|
|
void drawSettings();
|
2022-01-27 05:29:16 +00:00
|
|
|
void drawDebug();
|
2022-03-01 22:19:52 +00:00
|
|
|
void drawNewSong();
|
2022-04-11 03:12:02 +00:00
|
|
|
void drawLog();
|
2022-04-19 23:44:05 +00:00
|
|
|
void drawEffectList();
|
2022-05-15 06:42:49 +00:00
|
|
|
void drawSubSongs();
|
2022-06-06 10:03:19 +00:00
|
|
|
void drawFindReplace();
|
2022-06-20 20:20:02 +00:00
|
|
|
void drawSpoiler();
|
2022-11-10 06:26:59 +00:00
|
|
|
void drawClock();
|
2021-12-20 03:51:02 +00:00
|
|
|
|
2022-02-11 06:56:59 +00:00
|
|
|
void parseKeybinds();
|
2022-02-12 06:57:55 +00:00
|
|
|
void promptKey(int which);
|
2022-02-11 19:44:08 +00:00
|
|
|
void doAction(int what);
|
2022-02-11 06:56:59 +00:00
|
|
|
|
2022-04-06 18:53:39 +00:00
|
|
|
bool importColors(String path);
|
|
|
|
bool exportColors(String path);
|
|
|
|
bool importKeybinds(String path);
|
|
|
|
bool exportKeybinds(String path);
|
|
|
|
bool importLayout(String path);
|
|
|
|
bool exportLayout(String path);
|
|
|
|
|
2022-06-22 20:10:53 +00:00
|
|
|
float computeGradPos(int type, int chan);
|
|
|
|
|
2022-04-06 18:53:39 +00:00
|
|
|
void resetColors();
|
|
|
|
void resetKeybinds();
|
|
|
|
|
2022-01-16 22:25:43 +00:00
|
|
|
void syncSettings();
|
2021-12-20 03:51:02 +00:00
|
|
|
void commitSettings();
|
2022-11-10 21:47:53 +00:00
|
|
|
void commitState();
|
2021-12-24 03:58:43 +00:00
|
|
|
void processDrags(int dragX, int dragY);
|
2022-05-17 17:46:52 +00:00
|
|
|
void processPoint(SDL_Event& ev);
|
2021-12-14 09:45:44 +00:00
|
|
|
|
2022-05-14 06:46:06 +00:00
|
|
|
void startSelection(int xCoarse, int xFine, int y, bool fullRow=false);
|
|
|
|
void updateSelection(int xCoarse, int xFine, int y, bool fullRow=false);
|
2021-12-14 22:45:37 +00:00
|
|
|
void finishSelection();
|
2022-06-18 08:52:03 +00:00
|
|
|
void finishDrag();
|
2021-12-14 22:45:37 +00:00
|
|
|
|
2022-01-22 08:12:02 +00:00
|
|
|
void moveCursor(int x, int y, bool select);
|
2022-02-11 23:20:39 +00:00
|
|
|
void moveCursorPrevChannel(bool overflow);
|
|
|
|
void moveCursorNextChannel(bool overflow);
|
2022-02-12 07:42:47 +00:00
|
|
|
void moveCursorTop(bool select);
|
|
|
|
void moveCursorBottom(bool select);
|
2021-12-14 22:45:37 +00:00
|
|
|
void editAdvance();
|
2021-12-26 23:05:18 +00:00
|
|
|
void prepareUndo(ActionType action);
|
|
|
|
void makeUndo(ActionType action);
|
2021-12-29 05:50:00 +00:00
|
|
|
void doSelectAll();
|
2021-12-15 05:37:27 +00:00
|
|
|
void doDelete();
|
2021-12-19 07:12:19 +00:00
|
|
|
void doPullDelete();
|
|
|
|
void doInsert();
|
2022-04-21 22:32:28 +00:00
|
|
|
void doTranspose(int amount, OperationMask& mask);
|
2021-12-19 07:12:19 +00:00
|
|
|
void doCopy(bool cut);
|
2022-09-22 03:59:53 +00:00
|
|
|
void doPaste(PasteMode mode=GUI_PASTE_MODE_NORMAL, int arg=0);
|
2022-03-11 06:31:21 +00:00
|
|
|
void doChangeIns(int ins);
|
|
|
|
void doInterpolate();
|
2022-03-12 08:04:34 +00:00
|
|
|
void doFade(int p0, int p1, bool mode);
|
2022-03-11 06:31:21 +00:00
|
|
|
void doInvertValues();
|
2022-03-12 07:13:15 +00:00
|
|
|
void doScale(float top);
|
2022-03-12 08:40:56 +00:00
|
|
|
void doRandomize(int bottom, int top, bool mode);
|
2022-03-11 06:31:21 +00:00
|
|
|
void doFlip();
|
|
|
|
void doCollapse(int divider);
|
|
|
|
void doExpand(int multiplier);
|
2021-12-26 23:05:18 +00:00
|
|
|
void doUndo();
|
|
|
|
void doRedo();
|
2022-06-10 23:27:47 +00:00
|
|
|
void doFind();
|
2022-06-12 03:42:30 +00:00
|
|
|
void doReplace();
|
2022-06-18 08:52:03 +00:00
|
|
|
void doDrag();
|
2022-03-09 23:03:15 +00:00
|
|
|
void editOptions(bool topMenu);
|
2022-08-27 00:30:13 +00:00
|
|
|
DivSystem systemPicker();
|
2022-03-31 20:25:58 +00:00
|
|
|
void noteInput(int num, int key, int vol=-1);
|
2022-04-01 06:50:01 +00:00
|
|
|
void valueInput(int num, bool direct=false, int target=-1);
|
2021-12-14 22:45:37 +00:00
|
|
|
|
2022-07-27 06:20:26 +00:00
|
|
|
void doGenerateWave();
|
|
|
|
|
2022-03-23 05:42:59 +00:00
|
|
|
void doUndoSample();
|
|
|
|
void doRedoSample();
|
|
|
|
|
2022-02-06 05:07:35 +00:00
|
|
|
void play(int row=0);
|
2022-04-14 07:58:29 +00:00
|
|
|
void setOrder(unsigned char order, bool forced=false);
|
2022-01-20 06:32:16 +00:00
|
|
|
void stop();
|
|
|
|
|
2022-03-31 06:51:57 +00:00
|
|
|
void previewNote(int refChan, int note, bool autoNote=false);
|
|
|
|
void stopPreviewNote(SDL_Scancode scancode, bool autoNote=false);
|
2022-01-20 06:32:16 +00:00
|
|
|
|
2021-12-14 22:45:37 +00:00
|
|
|
void keyDown(SDL_Event& ev);
|
|
|
|
void keyUp(SDL_Event& ev);
|
|
|
|
|
2022-09-09 23:53:20 +00:00
|
|
|
void pointDown(int x, int y, int button);
|
|
|
|
void pointUp(int x, int y, int button);
|
|
|
|
void pointMotion(int x, int y, int xrel, int yrel);
|
|
|
|
|
2021-12-17 08:33:12 +00:00
|
|
|
void openFileDialog(FurnaceGUIFileDialogs type);
|
2022-02-20 08:18:20 +00:00
|
|
|
int save(String path, int dmfVersion);
|
2021-12-15 05:37:27 +00:00
|
|
|
int load(String path);
|
2022-09-10 23:53:27 +00:00
|
|
|
void pushRecentFile(String path);
|
2022-01-18 04:34:29 +00:00
|
|
|
void exportAudio(String path, DivAudioExportModes mode);
|
2021-12-15 05:37:27 +00:00
|
|
|
|
2022-05-08 07:01:32 +00:00
|
|
|
bool parseSysEx(unsigned char* data, size_t len);
|
|
|
|
|
2022-04-11 07:53:21 +00:00
|
|
|
void applyUISettings(bool updateFonts=true);
|
2022-03-21 22:34:43 +00:00
|
|
|
void initSystemPresets();
|
2022-01-22 06:50:52 +00:00
|
|
|
|
2022-08-22 20:59:45 +00:00
|
|
|
void encodeMMLStr(String& target, int* macro, int macroLen, int macroLoop, int macroRel, bool hex=false, bool bit30=false);
|
|
|
|
void decodeMMLStr(String& source, int* macro, unsigned char& macroLen, unsigned char& macroLoop, int macroMin, int macroMax, unsigned char& macroRel, bool bit30=false);
|
2022-09-11 03:35:21 +00:00
|
|
|
void decodeMMLStrW(String& source, int* macro, int& macroLen, int macroMin, int macroMax, bool hex=false);
|
2022-01-26 18:13:17 +00:00
|
|
|
|
2022-02-18 18:11:41 +00:00
|
|
|
String encodeKeyMap(std::map<int,int>& map);
|
|
|
|
void decodeKeyMap(std::map<int,int>& map, String source);
|
|
|
|
|
2022-01-28 08:17:35 +00:00
|
|
|
const char* getSystemName(DivSystem which);
|
|
|
|
|
2021-12-11 07:10:09 +00:00
|
|
|
public:
|
2022-02-06 04:48:56 +00:00
|
|
|
void showWarning(String what, FurnaceGUIWarnings type);
|
|
|
|
void showError(String what);
|
2022-10-02 21:12:02 +00:00
|
|
|
String getLastError();
|
2022-08-13 23:00:29 +00:00
|
|
|
const char* noteNameNormal(short note, short octave);
|
2021-12-13 07:03:36 +00:00
|
|
|
const char* noteName(short note, short octave);
|
2021-12-19 07:12:19 +00:00
|
|
|
bool decodeNote(const char* what, short& note, short& octave);
|
2021-12-11 07:10:09 +00:00
|
|
|
void bindEngine(DivEngine* eng);
|
2021-12-20 03:51:02 +00:00
|
|
|
void updateScroll(int amount);
|
2021-12-24 03:14:59 +00:00
|
|
|
void addScroll(int amount);
|
2022-02-02 06:14:21 +00:00
|
|
|
void setFileName(String name);
|
2022-03-21 19:11:28 +00:00
|
|
|
void runBackupThread();
|
2022-06-14 09:41:31 +00:00
|
|
|
void pushPartBlend();
|
|
|
|
void popPartBlend();
|
2022-08-22 19:05:16 +00:00
|
|
|
bool detectOutOfBoundsWindow();
|
2022-04-16 03:22:47 +00:00
|
|
|
int processEvent(SDL_Event* ev);
|
2021-12-11 08:11:40 +00:00
|
|
|
bool loop();
|
2021-12-19 21:01:24 +00:00
|
|
|
bool finish();
|
2021-12-11 08:11:40 +00:00
|
|
|
bool init();
|
2021-12-11 07:10:09 +00:00
|
|
|
FurnaceGUI();
|
2021-12-11 21:44:02 +00:00
|
|
|
};
|
2022-03-21 22:34:43 +00:00
|
|
|
|
2022-03-29 21:09:15 +00:00
|
|
|
#endif
|