shithub: pt2-clone

ref: fc625eb050e047e88da6cac4b3f897e89e482f2b
dir: /src/pt2_edit.h/

View raw version
#pragma once

#include <SDL2/SDL.h>
#include <stdint.h>
#include <stdbool.h>

void saveUndo(void);
void undoLastChange(void);
void copySampleTrack(void);
void delSampleTrack(void);
void exchSampleTrack(void);
void trackNoteUp(bool sampleAllFlag, uint8_t from, uint8_t to);
void trackNoteDown(bool sampleAllFlag, uint8_t from, uint8_t to);
void trackOctaUp(bool sampleAllFlag, uint8_t from, uint8_t to);
void trackOctaDown(bool sampleAllFlag, uint8_t from, uint8_t to);
void pattNoteUp(bool sampleAllFlag);
void pattNoteDown(bool sampleAllFlag);
void pattOctaUp(bool sampleAllFlag);
void pattOctaDown(bool sampleAllFlag);
void exitGetTextLine(bool updateValue);
void getTextLine(int16_t editObject);
void getNumLine(uint8_t type, int16_t editObject);
void handleEditKeys(SDL_Scancode scancode, bool normalMode);
uint8_t handleSpecialKeys(SDL_Scancode scancode);
int8_t keyToNote(SDL_Scancode scancode);
void updateTextObject(int16_t editObject);

void handleSampleJamming(SDL_Scancode scancode);