1#ifndef YAZE_EDITOR_MUSIC_INSTRUMENT_EDITOR_VIEW_H
2#define YAZE_EDITOR_MUSIC_INSTRUMENT_EDITOR_VIEW_H
Editor for SNES instruments (ADSR, Gain, Samples).
void SetOnEditCallback(std::function< void()> callback)
Set callback for when edits occur (to trigger undo save).
void DrawInstrumentList(MusicBank &bank)
int selected_instrument_index_
void DrawAdsrGraph(const MusicInstrument &instrument)
std::vector< float > plot_y_
void Draw(MusicBank &bank)
Draw the instrument editor.
~InstrumentEditorView()=default
std::vector< float > plot_x_
std::function< void(int)> on_preview_
void DrawProperties(MusicInstrument &instrument, MusicBank &bank)
std::function< void()> on_edit_
InstrumentEditorView()=default
void SetOnPreviewCallback(std::function< void(int)> callback)
Set callback for instrument preview.
Manages the collection of songs, instruments, and samples from a ROM.
Contains classes and functions for handling music data in Zelda 3.
An instrument definition with ADSR envelope.