1 /* vi:set ts=4 sts=4 sw=4 noexpandtab: */
30 void normalmode(int c
);
31 void cmdlinemode(void);
32 void insertmode(void);
33 void jammermode(void);
34 void visualmode(void);
35 void visuallinemode(void);
45 volatile struct oscillator
{
61 struct trackline line
[TRACKLEN
];
71 struct instrline line
[256];
79 struct instrument instrument
[256], iclip
[256];
80 struct track track
[256], tclip
[256];
81 struct songline song
[256];
83 int songlen
, tracklen
;
86 u8
interrupthandler(void);
88 void readsong(int pos
, int ch
, u8
*dest
);
89 void readtrack(int num
, int pos
, struct trackline
*tl
);
90 void readinstr(int num
, int pos
, u8
*il
);
93 void iedplonk(int, int);
100 void startplaysong(int);
101 void startplaytrack(int);
103 void parsecmd(char cmd
[]);
105 // just some poorly-named variables for hackin together the repeat command
112 /*typedef struct list_node{
114 struct list_node *next;
117 NODE *list_create(void *e);
118 NODE *list_contains(NODE *n, int(*func)(void *, void *), void *match);
119 int findu8(void *a, void *b);
121 NODE *highlightlines;*/
123 /* lines to be highlighted in visual line mode */
124 int highlight_firstline
, highlight_lastline
, highlight_lineamount
;
126 /* lines to be highlighted in visual mode */
127 int highlight_firstx
, highlight_firsty
, highlight_lasty
, highlight_lastx
;
130 void act_bigmvdown(void);
131 void act_bigmvup(void);
132 void act_mvbottom(void);
133 void act_mvtop(void);
134 void act_clritall(void);
135 void act_clronething(void);
136 void act_clrinsongtab(int y
);
137 void act_clrintracktab(int t
, int y
);
138 void act_clrininstrtab(int instr
, int y
);
139 void act_fxdec(void);
140 void act_fxinc(void);
141 void act_instrdec(void);
142 void act_instrinc(void);
143 void act_mvdown(void);
144 void act_mvleft(void);
145 void act_mvright(void);
147 void act_notedec(void);
148 void act_noteinc(void);
149 void act_octavedec(void);
150 void act_octaveinc(void);
151 void act_paramdec(void);
152 void act_paraminc(void);
153 void act_trackdec(void);
154 void act_trackinc(void);
155 void act_transpdec(void);
156 void act_transpinc(void);
158 void act_viewinstrdec(void);
159 void act_viewinstrinc(void);
160 void act_viewtrackdec(void);
161 void act_viewtrackinc(void);
169 #endif /* PINEAPPLE_H */