| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- #pragma once
- #include <notification/notification_messages.h>
- #include <stdio.h>
- #include <furi.h>
- #include <gui/gui.h>
- #include <input/input.h>
- #include <u8g2_glue.h>
- #include "flizzer_tracker_hal.h"
- #include "sound_engine/freqs.h"
- #include "sound_engine/sound_engine_filter.h"
- #include "sound_engine/sound_engine_defs.h"
- #include "tracker_engine/tracker_engine_defs.h"
- #define MIDDLE_C (12 * 4)
- #define MAX_NOTE (12 * 7 + 11)
- typedef enum
- {
- EventTypeInput,
- } EventType;
- typedef struct
- {
- EventType type;
- InputEvent input;
- uint32_t period;
- } FlizzerTrackerEvent;
- typedef enum
- {
- PATTERN_VIEW,
- INST_EDITOR_VIEW,
- EXPORT_WAV_VIEW,
- } TrackerMode;
- typedef enum
- {
- EDIT_PATTERN,
- EDIT_SEQUENCE,
- EDIT_SONGINFO,
- EDIT_INSTRUMENT,
- EDIT_PROGRAM,
- } TrackerFocus;
- typedef struct
- {
- NotificationApp* notification;
- FuriMessageQueue* event_queue;
- bool was_it_back_keypress;
- uint32_t current_time;
- uint32_t period;
- SoundEngine sound_engine;
- TrackerEngine tracker_engine;
- TrackerSong song;
- uint8_t selected_param;
- uint8_t mode, focus;
- uint8_t patternx, current_channel, current_digit, program_step, current_instrument, current_note;
- bool editing;
- bool was_editing;
- bool quit;
- } FlizzerTrackerApp;
|