1
Fork 0
epichord/src/uihelper.h

97 lines
2.1 KiB
C

#ifndef uihelper_h
#define uihelper_h
/*
Epichord - a midi sequencer
Copyright (C) 2008 Evan Rinehart
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
*/
struct conf{
int beats_per_minute;
int beats_per_measure;
int measures_per_phrase;
int measures_until_record;
int alwayscopy;
int autotrackname;
int passthru;
int playinsert;
int recordonchan;
int playmove;
int follow;
int recordmode;
int robmode;
int defaultvelocity;
int trackinit;
};
void load_config();
void save_config();
void start_monitor();
void press_stop();
void press_panic();
void press_play();
void set_quant(int q);
void set_songtool(int i);
void set_trip(int v);
void turnonscope();
void turnoffscope();
void scope_print(const char* text);
void update_config_gui();
void set_beats_per_measure(int n);
void set_measures_per_phrase(int n);
void set_measures_until_record(int n);
void set_beats_per_minute(int n);
void set_alwayscopy(int v);
void set_autotrackname(int v);
void set_passthru(int v);
void set_playinsert(int v);
void set_recordonchan(int v);
void set_playmove(int v);
void set_follow(int v);
void set_recordmode(int n);
void set_robmode(int n);
void set_defaultvelocity(int n);
void set_trackinit(int n);
void show_song_edit();
void show_pattern_edit();
void toggle_tool();
void reset_song();
void add_track(track* t);
void remove_track(int n);
void dump_pattern();
void init_gui();
void shutdown_gui();
#endif