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 track tclip
[256];
82 //struct songline song[256];
88 u8
interrupthandler(void);
90 void readsong(int pos
, int ch
, u8
*dest
);
91 void readtrack(int num
, int pos
, struct trackline
*tl
);
92 void readinstr(int num
, int pos
, u8
*il
);
95 void lft_iedplonk(int, int);
102 int hexdigit(char c
);
103 int nextfreetrack(void);
104 int nextfreeinstr(void);
106 void startplaysong(int);
107 void startplaytrack(int);
109 void parsecmd(char cmd
[]);
111 // just some poorly-named variables for hackin together the repeat command
117 /* lines to be highlighted in visual line mode */
118 int highlight_firstline
, highlight_lastline
, highlight_lineamount
;
120 /* lines to be highlighted in visual mode */
121 int highlight_firstx
, highlight_firsty
, highlight_lasty
, highlight_lastx
;
124 void act_bigmvdown(void);
125 void act_bigmvup(void);
126 void act_mvbottom(void);
127 void act_mvtop(void);
128 void act_clritall(void);
129 void act_clronething(void);
130 void act_clrinsongtab(int y
);
131 void act_clrintracktab(int t
, int y
);
132 void act_clrininstrtab(int instr
, int y
);
133 void act_fxdec(void);
134 void act_fxinc(void);
135 void act_instrdec(void);
136 void act_instrinc(void);
137 void act_mvdown(void);
138 void act_mvleft(void);
139 void act_mvright(void);
141 void act_notedec(void);
142 void act_noteinc(void);
143 void act_octavedec(void);
144 void act_octaveinc(void);
145 void act_paramdec(void);
146 void act_paraminc(void);
147 void act_trackdec(void);
148 void act_trackinc(void);
149 void act_transpdec(void);
150 void act_transpinc(void);
152 void act_viewinstrdec(void);
153 void act_viewinstrinc(void);
154 void act_viewtrackdec(void);
155 void act_viewtrackinc(void);
156 void act_addline(void);
157 void act_delline(void);
165 struct config_params
{
174 void lftSdlCallback(void *userdata
, u8
*buf
, int len
);
175 u8
lft_sdl_init(void);
176 //u8 (*audioInit)(void); //function that changes depending on which audiodriver is specified
178 void (*sdlCallback
)(void); //function that changes depending on which type of file is loaded
179 //void hvlSdlCallBack(struct hvl_tune *ht, uint8 *stream, int length);
186 typedef struct _pineapple_tune
{
187 int type
; // LFT, AHX
190 u8 callbacktime
; //ht_SpeedMultiplier
191 u16 tempo
; //ht_Tempo
193 struct oscillator osc
[4];
194 struct instrument instr
[256]; //struct hvl_instrument *ht_Instruments
195 struct track trk
[256]; //struct hvl_step ht_Tracks[256][64]
196 struct songline sng
[256]; //struct hvl_position *ht_Positions
197 int songlen
; //ht_PositionNr
198 int songpos
; //ht_PosNr
200 int tracklen
; //ht_TrackLength
201 int trackNum
; //number of tracks that are used, ht_TrackNr
202 int instrx
, instry
, instroffs
;
203 int songx
, songy
, songoffs
;
204 int trackx
, tracky
, trackoffs
;
205 int currtrack
, currinstr
;
209 void (*iedplonk
)(int note
, int instr
);
212 pineapple_tune
*tune
;
214 u8
hvl_sdl_init(void);
216 #endif /* PINEAPPLE_H */