Debian Codegraph @

common/nsmtracker.h

raw symbols SCIP
1 /* Copyright 2000 Kjetil S. Matheussen
2
3 This program is free software; you can redistribute it and/or
4 modify it under the terms of the GNU General Public License
5 as published by the Free Software Foundation; either version 2
6 of the License, or (at your option) any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12
13 You should have received a copy of the GNU General Public License
14 along with this program; if not, write to the Free Software
15 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
16
17
18
19
20
21 /******************************************************************
22 Main header file for the tracker. Each struct often has a source-
23 file with the same, or nearly the same, name.
24
25 Note, the file OS_Visual.h is OS spesific
26 and must be put into the OS directory it belongs te. The other
27 OS_*_proc.h files are not.
28 ******************************************************************/
29
30 #ifndef TRACKER_DEFINEcxx . . $ `common/nsmtracker.h:31:9`!
31 #define TRACKER_DEFINEcxx . . $ `common/nsmtracker.h:31:9`! 1
32
33 #ifdef __cpluspluscxx . . $ `<built-in>:472:9`!
34 # define LANGSPECcxx . . $ `common/nsmtracker.h:34:11`! "C"
35 #else
36 # define LANGSPEC
37 #endif
38
39
40 #ifndef DEBUGcxx . . $ `<built-in>:481:9`!
41 # error "Missing DEBUG option. Edit the Makefile."
42 #endif
43
44 #if !USE_GTK_VISUAL && !USE_GTK_REQTYPE && !USE_GTK_MENU
45 # define GTK_IS_USEDcxx . . $ `common/nsmtracker.h:45:11`! 0
46 #else
47 # define GTK_IS_USED 1
48 #endif
49
50 #include <stdio.h>
51 #include <stdlib.h>
52 #include <limits.h>
53 #include <stdint.h>
54 #include <stdbool.h>
55 #include "debug_proc.h"cxx . . $ `<file>/common/debug_proc.h`/
56 #include "memory_proc.h"cxx . . $ `<file>/common/memory_proc.h`/
57 #include "nsmtracker_events.h"cxx . . $ `<file>/common/nsmtracker_events.h`/
58 #include "OS_error_proc.h"cxx . . $ `<file>/common/OS_error_proc.h`/
59 #include "OS_Semaphores.h"cxx . . $ `<file>/common/OS_Semaphores.h`/
60
61
62 /* Unfortunately, AmigaOS has one absolute address that is legal to
63 read from; 4, which often makes MuForce not to report reading
64 from the wrong address (radiums fault, not MuFurces). By
65 inserting SDB at all 4 offsets, we never read from 4 if a pointer is NULL.
66 */
67 #ifdef SYSBASEDEBUG
68 # define SDB int sysbasedebug;
69 #else
70 # define SDBcxx . . $ `common/nsmtracker.h:70:11`!
71 #endif
72
73 /* Next two lines must be placed in its own OS_depend file later. */
74 typedef uint32_tcxx . . $ uint32_t# uint_32cxx . . $ uint_32#; /* A type that should be 64 bits, but may be 32 if 64 is _really_ slow or 64 is not available. */
75 /* uint_32 is allways loaded/saved as 64, and converted to 64 bit if uint_32 is 32 bit. */
76 #define MAX_UINT32cxx . . $ `common/nsmtracker.h:76:9`! 65534 /* Sqr(max(uint_32))-1 (rounded down)*/
77
78 //typedef int32_t STime; /* Time can be negative. */
79 typedef int64_t STimecxx . . $ STime#; /* Time can be negative. */
80 //typedef STime NInt;
81 typedef int32_t NIntcxx . . $ NInt#;
82 //#define PFREQ (48000*8) /* Subseconds for STime */ /* Replaced by samplerate */
83
84 //#define LATENCY (PFREQ/200)
85 #define LATENCYcxx . . $ `common/nsmtracker.h:85:9`! 0 // Dont need this when the player is called from the jack thread.
86
87 #define MAXBLOCKRELTIMEcxx . . $ `common/nsmtracker.h:87:9`! 6.0f
88 #define MINBLOCKRELTIMEcxx . . $ `common/nsmtracker.h:88:9`! 0.001f
89
90 // Higher than 255 is no point.
91 #define MAX_BRIGHTNESScxx . . $ `common/nsmtracker.h:91:9`! 63
92
93 enumcxx . . $ $anonymous_type_81d08dd71f47349e_0#{
94 PAINT_DIRECTLYcxx . . $ PAINT_DIRECTLY. = 0,
95 PAINT_BUFFERcxx . . $ PAINT_BUFFER. = 1
96 };
97
98 #include <OS_Visual.h>cxx . . $ `<file>/Qt/OS_Visual.h`/
99
100
101 #define R_MAXcxx . . $ `common/nsmtracker.h:101:9`!(a,b) (((a)>(b))?(a):(b))
102 #define R_MINcxx . . $ `common/nsmtracker.h:102:9`!(a,b) (((a)<(b))?(a):(b))
103 #define R_ABScxx . . $ `common/nsmtracker.h:103:9`!(a) ((a)<0?(-(a)):(a))
104 #define R_BOUNDARIEScxx . . $ `common/nsmtracker.h:104:9`!(a,b,c) (R_MINcxx . . $ `common/nsmtracker.h:102:9`!(R_MAXcxx . . $ `common/nsmtracker.h:101:9`!((a),(b)),(c)))
105
106 static inline double scale_doublecxx . . $ scale_double(3078559e8193abf4).(double x, double x1, double x2, double y1, double y2){
107 return y1 + ( ((x-x1)*(y2-y1))
108 /
109 (x2-x1)
110 );
111 }
112
113 static inline float scalecxx . . $ scale(a4708ef16e45b76e).(float x, float x1, float x2, float y1, float y2){
114 return y1 + ( ((x-x1)*(y2-y1))
115 /
116 (x2-x1)
117 );
118 }
119
120
121 /*********************************************************************
122 placement.h
123 *********************************************************************/
124
125
126
127 struct Placementcxx . . $ Placement#{
128 int linecxx . . $ Placement#line.;
129 SDBcxx . . $ `common/nsmtracker.h:70:11`!
130 uint_32cxx . . $ uint_32# countercxx . . $ Placement#counter.;
131 uint_32cxx . . $ uint_32# dividorcxx . . $ Placement#dividor.;
132 };
133 typedef struct Placementcxx . . $ Placement# Placecxx . . $ Place#;
134
135
136 /*********************************************************************
137 list.h
138 *********************************************************************/
139
140 struct ListHeader1cxx . . $ ListHeader1#{
141 struct ListHeader1cxx . . $ ListHeader1# *nextcxx . . $ ListHeader1#next.;
142 SDBcxx . . $ `common/nsmtracker.h:70:11`!
143 NIntcxx . . $ NInt# numcxx . . $ ListHeader1#num.;
144 };
145
146 struct ListHeader3cxx . . $ ListHeader3#{
147 struct ListHeader3cxx . . $ ListHeader3# *nextcxx . . $ ListHeader3#next.;
148 SDBcxx . . $ `common/nsmtracker.h:70:11`!
149 Placecxx . . $ Place# pcxx . . $ ListHeader3#p.;
150 };
151
152 #define Tlinecxx . . $ `common/nsmtracker.h:152:9`! l.p.line
153 #define Tcountercxx . . $ `common/nsmtracker.h:153:9`! l.p.counter
154 #define Tdividorcxx . . $ `common/nsmtracker.h:154:9`! l.p.dividor
155
156
157 struct ListHeaderPcxx . . $ ListHeaderP#{
158 struct ListHeaderPcxx . . $ ListHeaderP# *nextcxx . . $ ListHeaderP#next.;
159 SDBcxx . . $ `common/nsmtracker.h:70:11`!
160 STimecxx . . $ STime# timecxx . . $ ListHeaderP#time.;
161 };
162
163
164 /*********************************************************************
165 hashmap.h
166 *********************************************************************/
167
168 struct _hash_tcxx . . $ _hash_t#;
169 typedef struct _hash_tcxx . . $ _hash_t# hash_tcxx . . $ hash_t#;
170
171
172
173 /*********************************************************************
174 vector.h
175 *********************************************************************/
176
177 typedef structcxx . . $ $anonymous_type_81d08dd71f47349e_1#{
178 int num_elementscxx . . $ $anonymous_type_81d08dd71f47349e_1#num_elements.;
179 int num_elements_allocatedcxx . . $ $anonymous_type_81d08dd71f47349e_1#num_elements_allocated.;
180 void **elementscxx . . $ $anonymous_type_81d08dd71f47349e_1#elements.;
181 } vector_tcxx . . $ vector_t#;
182
183
184
185 /*********************************************************************
186 velocities.h
187 *********************************************************************/
188
189 #define MAX_VELOCITYcxx . . $ `common/nsmtracker.h:189:9`! (1<<16)
190
191 struct Velocitiescxx . . $ Velocities#{
192 struct ListHeader3cxx . . $ ListHeader3# lcxx . . $ Velocities#l.;
193
194 int velocitycxx . . $ Velocities#velocity.;
195 };
196 #define NextVelocitycxx . . $ `common/nsmtracker.h:196:9`!(a) ((struct Velocities *)((a)->l.next))
197
198
199
200 /*********************************************************************
201 notes.h
202 *********************************************************************/
203
204
205 struct Notescxx . . $ Notes#{
206 struct ListHeader3cxx . . $ ListHeader3# lcxx . . $ Notes#l.;
207
208 int notecxx . . $ Notes#note.;
209 int centscxx . . $ Notes#cents.;
210 int velocitycxx . . $ Notes#velocity.;
211
212 Placecxx . . $ Place# endcxx . . $ Notes#end.;
213 int velocity_endcxx . . $ Notes#velocity_end.;
214
215 struct Velocitiescxx . . $ Velocities# *velocitiescxx . . $ Notes#velocities.;
216
217 int noendcxx . . $ Notes#noend.;
218 };
219 #define NextNotecxx . . $ `common/nsmtracker.h:219:9`!(a) ((struct Notes *)((a)->l.next))
220
221
222
223 /*********************************************************************
224 patch.h
225 *********************************************************************/
226
227 struct Trackscxx . . $ Tracks#;
228
229 struct Instrumentscxx . . $ Instruments#;
230
231 union SuperTypecxx . . $ SuperType#{
232 void *pointercxx . . $ SuperType#pointer.;
233 int64_t int_numcxx . . $ SuperType#int_num.;
234 double float_numcxx . . $ SuperType#float_num.;
235 };
236
237 enum TimeFormatcxx . . $ TimeFormat#{
238 TIME_IN_BEATScxx . . $ TIME_IN_BEATS. = 0,
239 TIME_IN_MScxx . . $ TIME_IN_MS. = 1,
240 TIME_IN_Scxx . . $ TIME_IN_S. = 2
241 };
242
243 struct PatchVoicecxx . . $ PatchVoice#{
244 bool is_oncxx . . $ PatchVoice#is_on.;
245 int transposecxx . . $ PatchVoice#transpose.;
246 float volumecxx . . $ PatchVoice#volume.;
247 float startcxx . . $ PatchVoice#start.;
248 float lengthcxx . . $ PatchVoice#length.;
249 enum TimeFormatcxx . . $ TimeFormat# time_formatcxx . . $ PatchVoice#time_format.;
250 };
251
252 #define MAX_PATCH_VOICEScxx . . $ `common/nsmtracker.h:252:9`! 6
253
254 // Note that Patch objects are stored directly in undo/redo (not copied), so it must not be freed, reused for other purposes, or othervice manipulated when not available.
255 struct Patchcxx . . $ Patch#{
256 int idcxx . . $ Patch#id.;
257
258 const char *namecxx . . $ Patch#name.;
259
260 STimecxx . . $ STime# last_timecxx . . $ Patch#last_time.; // player lock must be held when setting this value.
261
262 void (*playnotecxx . . $ Patch#playnote.)(struct Patchcxx . . $ Patch# *patch,int notenum,int velocity,STimecxx . . $ STime# time,float pan);
263 void (*changevelocitycxx . . $ Patch#changevelocity.)(struct Patchcxx . . $ Patch# *patch,int notenum,int velocity,STimecxx . . $ STime# time);
264 void (*stopnotecxx . . $ Patch#stopnote.)(struct Patchcxx . . $ Patch# *patch,int notenum,int velocity,STimecxx . . $ STime# time);
265 void (*closePatchcxx . . $ Patch#closePatch.)(struct Patchcxx . . $ Patch# *patch);
266
267 struct Instrumentscxx . . $ Instruments# *instrumentcxx . . $ Patch#instrument.;
268
269 void *patchdatacxx . . $ Patch#patchdata.; // Free use by the instrument plug-in.
270
271 void (*changeTrackPancxx . . $ Patch#changeTrackPan.)(int newpan,struct Trackscxx . . $ Tracks# *track);
272
273 struct PatchVoicecxx . . $ PatchVoice# voicescxx . . $ Patch#voices.[MAX_PATCH_VOICEScxx . . $ `common/nsmtracker.h:252:9`!];
274
275 int num_onscxx . . $ Patch#num_ons.[128]; /* To keep track of how many times a voice has to be turned off. */
276 int notes_num_onscxx . . $ Patch#notes_num_ons.[128]; /* To keep track of which notes are playing. (Useful to avoid hanging notes when turning on and off voices)*/
277
278 bool peaks_are_dirtycxx . . $ Patch#peaks_are_dirty.; /* Can be set to true by any thread. */
279 };
280 #define PATCH_FAILEDcxx . . $ `common/nsmtracker.h:280:9`! 0
281 #define PATCH_SUCCESScxx . . $ `common/nsmtracker.h:281:9`! 1
282 #define NextPatchcxx . . $ `common/nsmtracker.h:282:9`!(a) ((struct Patch *)((a)->l.next))
283
284
285 /*********************************************************************
286 fx.h
287 *********************************************************************/
288
289 struct FXcxx . . $ FX#{
290 // struct ListHeader1 l; // The next field in 'l' is not used. FX objects are stored one by one in the FXs object.
291 int numcxx . . $ FX#num.;
292 const char *namecxx . . $ FX#name.;
293 int colorcxx . . $ FX#color.;
294 void (*configureFXcxx . . $ FX#configureFX.)(struct FXcxx . . $ FX# *fx,struct Trackscxx . . $ Tracks# *track);
295 int mincxx . . $ FX#min.;
296 int maxcxx . . $ FX#max.;
297
298 int effect_numcxx . . $ FX#effect_num.; // Set by the instrument plugin.
299
300 // Having pointers to variables in sliders is a bit strange, but letting sliders reference FX instead would cause bookkeeping of live and not alive FX objects.
301 // Not getting that bookkeeping correct would mean crashes that could be difficult to track.
302 // This, on the other hand, is safe, since sliders are always alive as long as the Patch is alive, and the patch always outlives an FX object.
303 // (The refactor to let Patch own FX hasn't been done yet. It didn't make sense when there were only MIDI instrument, but now it's too complicated to let FX live independently.
304 // However, when an instrument is deleted, all tracks are scanned, and FX are deleted when a patch is deleted. Same when changing patch for a track.)
305 float *slider_automation_valuecxx . . $ FX#slider_automation_value.; // Pointer to the float value showing automation in slider. Value is scaled between 0-1. May be NULL.
306 int *slider_automation_colorcxx . . $ FX#slider_automation_color.; // Pointer to the integer holding color number for showing automation in slider. May be NULL.
307
308 void (*treatFXcxx . . $ FX#treatFX.)(struct FXcxx . . $ FX# *fx,int val,struct Trackscxx . . $ Tracks# *track,STimecxx . . $ STime# time,int skip);
309
310 void (*closeFXcxx . . $ FX#closeFX.)(struct FXcxx . . $ FX# *fx,struct Trackscxx . . $ Tracks# *track);
311 void *fxdatacxx . . $ FX#fxdata.; //Free use for the instrument plug-in.
312 void (*SaveFXcxx . . $ FX#SaveFX.)(struct FXcxx . . $ FX# *fx,struct Trackscxx . . $ Tracks# *track);
313 };
314 #define FX_FAILEDcxx . . $ `common/nsmtracker.h:314:9`! 0
315 #define FX_SUCCESScxx . . $ `common/nsmtracker.h:315:9`! 1
316
317
318 /*********************************************************************
319 instruments.h
320 *********************************************************************/
321
322 // These constants are not only used internally, but they are also saved to disk.
323 enumcxx . . $ $anonymous_type_81d08dd71f47349e_2#{
324 NO_INSTRUMENT_TYPEcxx . . $ NO_INSTRUMENT_TYPE. = 0,
325 MIDI_INSTRUMENT_TYPEcxx . . $ MIDI_INSTRUMENT_TYPE.,
326 AUDIO_INSTRUMENT_TYPEcxx . . $ AUDIO_INSTRUMENT_TYPE.
327 };
328
329 struct Tracker_Windowscxx . . $ Tracker_Windows#;
330 struct Instrumentscxx . . $ Instruments#{
331 struct ListHeader1cxx . . $ ListHeader1# lcxx . . $ Instruments#l.;
332
333 const char *instrumentnamecxx . . $ Instruments#instrumentname.;
334
335 vector_tcxx . . $ vector_t# patchescxx . . $ Instruments#patches.; // Not safe to traverse from player thread.
336
337 int (*getMaxVelocitycxx . . $ Instruments#getMaxVelocity.)(struct Patchcxx . . $ Patch# *patch);
338
339 int (*getFXcxx . . $ Instruments#getFX.)(struct Tracker_Windowscxx . . $ Tracker_Windows# *window,struct Trackscxx . . $ Tracks# *track,struct FXcxx . . $ FX# *fx);
340 int (*getPatchcxx . . $ Instruments#getPatch.)(struct Tracker_Windowscxx . . $ Tracker_Windows# *window,ReqTypecxx . . $ ReqType# reqtype,struct Trackscxx . . $ Tracks# *track,struct Patchcxx . . $ Patch# *patch);
341 //void (*treatSpecialCommand)(char *command,struct Tracks *track);
342 void (*CloseInstrumentcxx . . $ Instruments#CloseInstrument.)(struct Instrumentscxx . . $ Instruments# *instrument);
343 void (*StopPlayingcxx . . $ Instruments#StopPlaying.)(struct Instrumentscxx . . $ Instruments# *instrument);
344 void (*PP_Updatecxx . . $ Instruments#PP_Update.)(struct Instrumentscxx . . $ Instruments# *instrument,struct Patchcxx . . $ Patch# *patch);
345 void *(*CopyInstrumentDatacxx . . $ Instruments#CopyInstrumentData.)(struct Trackscxx . . $ Tracks# *track); //Necesarry for undo.
346
347 void (*PlayFromStartHookcxx . . $ Instruments#PlayFromStartHook.)(struct Instrumentscxx . . $ Instruments# *instrument);
348
349 void *(*LoadFXcxx . . $ Instruments#LoadFX.)(struct FXcxx . . $ FX# *fx,struct Trackscxx . . $ Tracks# *track);
350
351 void (*handle_fx_when_theres_a_new_patch_for_trackcxx . . $ Instruments#handle_fx_when_theres_a_new_patch_for_track.)(struct Trackscxx . . $ Tracks# *track, struct Patchcxx . . $ Patch# *old_patch, struct Patchcxx . . $ Patch# *new_patch);
352 void (*remove_patchcxx . . $ Instruments#remove_patch.)(struct Patchcxx . . $ Patch# *patch);
353
354 void (*setPatchDatacxx . . $ Instruments#setPatchData.)(struct Patchcxx . . $ Patch# *patch, char *key, char *value);
355 char *(*getPatchDatacxx . . $ Instruments#getPatchData.)(struct Patchcxx . . $ Patch# *patch, char *key);
356 };
357 #define INSTRUMENT_FAILEDcxx . . $ `common/nsmtracker.h:357:9`! 0
358 #define INSTRUMENT_SUCCESScxx . . $ `common/nsmtracker.h:358:9`! 1
359 #define NextInstrumentcxx . . $ `common/nsmtracker.h:359:9`!(a) ((struct Instruments *)((a)->l.next))
360
361
362
363 /*********************************************************************
364 stops.h
365 *********************************************************************/
366
367
368 struct Stopscxx . . $ Stops#{
369 struct ListHeader3cxx . . $ ListHeader3# lcxx . . $ Stops#l.;
370 };
371 #define NextStopcxx . . $ `common/nsmtracker.h:371:9`!(a) ((struct Stops *)((a)->l.next))
372
373
374
375 /*********************************************************************
376 fxnodelines.h
377 *********************************************************************/
378
379
380 struct FXNodeLinescxx . . $ FXNodeLines#{
381 struct ListHeader3cxx . . $ ListHeader3# lcxx . . $ FXNodeLines#l.;
382 int valcxx . . $ FXNodeLines#val.;
383 };
384 #define NextFXNodeLinecxx . . $ `common/nsmtracker.h:384:9`!(a) ((struct FXNodeLines *)((a)->l.next))
385
386
387 struct FXscxx . . $ FXs#{
388 struct ListHeader1cxx . . $ ListHeader1# lcxx . . $ FXs#l.; /* l.num=fxnum */
389 struct FXcxx . . $ FX# *fxcxx . . $ FXs#fx.;
390 struct FXNodeLinescxx . . $ FXNodeLines# *fxnodelinescxx . . $ FXs#fxnodelines.;
391 };
392 #define NextFXcxx . . $ `common/nsmtracker.h:392:9`!(a) ((struct FXs *)((a)->l.next))
393
394
395
396 /*********************************************************************
397 tracks.h
398 *********************************************************************/
399 struct Trackscxx . . $ Tracks#{
400 struct ListHeader1cxx . . $ ListHeader1# lcxx . . $ Tracks#l.;
401
402 struct Notescxx . . $ Notes# *notescxx . . $ Tracks#notes.;
403 struct Stopscxx . . $ Stops# *stopscxx . . $ Tracks#stops.;
404 int onoffcxx . . $ Tracks#onoff.;
405
406 const char *tracknamecxx . . $ Tracks#trackname.;
407 struct Patchcxx . . $ Patch# *patchcxx . . $ Tracks#patch.;
408 struct FXscxx . . $ FXs# *fxscxx . . $ Tracks#fxs.;
409
410 void *midi_instrumentdatacxx . . $ Tracks#midi_instrumentdata.; /* Used by the midi instrument. */
411
412 int pancxx . . $ Tracks#pan.;
413 int volumecxx . . $ Tracks#volume.;
414
415 bool panonoffcxx . . $ Tracks#panonoff.;
416 bool volumeonoffcxx . . $ Tracks#volumeonoff.; /* The volume-button on/off, not track on/off. */
417 };
418 #define NextTrackcxx . . $ `common/nsmtracker.h:418:9`!(a) ((struct Tracks *)((a)->l.next))
419
420 #define MAXTRACKVOLcxx . . $ `common/nsmtracker.h:420:9`! 1000
421 #define MAXTRACKPANcxx . . $ `common/nsmtracker.h:421:9`! 1000
422
423 /*********************************************************************
424 area.h
425 *********************************************************************/
426
427
428
429 typedef structcxx . . $ $anonymous_type_81d08dd71f47349e_3#{
430 int xcxx . . $ $anonymous_type_81d08dd71f47349e_3#x.,x2cxx . . $ $anonymous_type_81d08dd71f47349e_3#x2.;
431 }Areacxx . . $ Area#;
432
433 typedef structcxx . . $ $anonymous_type_81d08dd71f47349e_4#{
434 int ycxx . . $ $anonymous_type_81d08dd71f47349e_4#y.,y2cxx . . $ $anonymous_type_81d08dd71f47349e_4#y2.;
435 }YAreacxx . . $ YArea#;
436
437 typedef structcxx . . $ $anonymous_type_81d08dd71f47349e_5#{
438 int widthcxx . . $ $anonymous_type_81d08dd71f47349e_5#width.;
439 int xcxx . . $ $anonymous_type_81d08dd71f47349e_5#x.,x2cxx . . $ $anonymous_type_81d08dd71f47349e_5#x2.;
440 }WAreacxx . . $ WArea#;
441
442
443 /*********************************************************************
444 trackreallines.h
445 *********************************************************************/
446
447 #define NUM_PEAKS_PER_LINEcxx . . $ `common/nsmtracker.h:447:9`! 8
448 struct APointcxx . . $ APoint#{
449 float xcxx . . $ APoint#x.,ycxx . . $ APoint#y.;
450 };
451
452 #define TRE_Maxcxx . . $ `common/nsmtracker.h:452:9`! INT16_MAX
453 struct TrackReallineElementscxx . . $ TrackReallineElements#{
454 struct TrackReallineElementscxx . . $ TrackReallineElements# *nextcxx . . $ TrackReallineElements#next.;
455
456 struct Notescxx . . $ Notes# *notecxx . . $ TrackReallineElements#note.;
457
458 int typecxx . . $ TrackReallineElements#type.;
459 int subtypecxx . . $ TrackReallineElements#subtype.;
460 float y1cxx . . $ TrackReallineElements#y1.,y2cxx . . $ TrackReallineElements#y2.;
461 float x1cxx . . $ TrackReallineElements#x1.,x2cxx . . $ TrackReallineElements#x2.;
462 void *pointercxx . . $ TrackReallineElements#pointer.;
463
464 struct APointcxx . . $ APoint# *velocity_polygoncxx . . $ TrackReallineElements#velocity_polygon.;
465
466 int num_peakscxx . . $ TrackReallineElements#num_peaks.;
467 struct APointcxx . . $ APoint# *peakscxx . . $ TrackReallineElements#peaks.[2];
468 };
469 /************* Types: */
470 #define TRE_THISNOTELINEScxx . . $ `common/nsmtracker.h:470:9`! 0
471 #define TRE_VELLINECENTScxx . . $ `common/nsmtracker.h:471:9`! 0x5
472 #define TRE_VELLINENODEcxx . . $ `common/nsmtracker.h:472:9`! 0x10
473 #define TRE_VELLINEcxx . . $ `common/nsmtracker.h:473:9`! 0x20
474 #define TRE_VELLINESTARTcxx . . $ `common/nsmtracker.h:474:9`! 0x30
475 #define TRE_VELLINEENDcxx . . $ `common/nsmtracker.h:475:9`! 0x40
476 #define TRE_STOPLINEcxx . . $ `common/nsmtracker.h:476:9`! 0x90
477 #define TRE_REALSTARTSTOPcxx . . $ `common/nsmtracker.h:477:9`! 0xa0
478
479 /* Subtype for 0-0x40 is
480 the same as subtrack for the note.
481 */
482
483
484 struct TrackReallinecxx . . $ TrackRealline#{
485 int notecxx . . $ TrackRealline#note.; /* Is 0 if no note. */
486 struct TrackReallineElementscxx . . $ TrackReallineElements# *trackreallineelementscxx . . $ TrackRealline#trackreallineelements.;
487 };
488 #define NOTE_MULcxx . . $ `common/nsmtracker.h:488:9`! 128
489 #define NOTE_STPcxx . . $ `common/nsmtracker.h:489:9`! 129
490 #define NOTE_MURcxx . . $ `common/nsmtracker.h:490:9`! 130
491
492 /*********************************************************************
493 wfxnodes.h
494 *********************************************************************/
495
496
497 typedef struct TrackReallineElementscxx . . $ TrackReallineElements# WFXNodescxx . . $ WFXNodes#;
498 /*
499 struct WFXNodes{
500 struct WFXNodes *next;
501 SDB
502 unsigned char type;
503 unsigned char subtype; // not used.
504 unsigned char y1,y2;
505 unsigned short x1,x2;
506 void *pointer; // Only referenced.
507 };
508 */
509 /************* Types: */
510 #define TRE_FXNODEcxx . . $ `common/nsmtracker.h:510:9`! 0x50
511 #define TRE_FXLINEcxx . . $ `common/nsmtracker.h:511:9`! 0x60
512
513
514 /*********************************************************************
515 tbox.h
516 *********************************************************************/
517 struct TBoxstructcxx . . $ TBoxstruct#{
518 int x1cxx . . $ TBoxstruct#x1.,y1cxx . . $ TBoxstruct#y1.,x2cxx . . $ TBoxstruct#x2.,y2cxx . . $ TBoxstruct#y2.;
519 };
520 typedef struct TBoxstructcxx . . $ TBoxstruct# TBoxcxx . . $ TBox#;
521
522
523 /*********************************************************************
524 wtracks.h
525 *********************************************************************/
526
527 struct WTrackscxx . . $ WTracks#{
528 struct ListHeader1cxx . . $ ListHeader1# lcxx . . $ WTracks#l.;
529 // l.num=wtracknum;
530
531 int xcxx . . $ WTracks#x.,ycxx . . $ WTracks#y.,x2cxx . . $ WTracks#x2.,y2cxx . . $ WTracks#y2.; /* GFX area. */
532
533 int notesonoffcxx . . $ WTracks#notesonoff.; /* notearea and placementarea on/off. */
534 int notelengthcxx . . $ WTracks#notelength.; /* Number of characters the notes is. Usually 2 or 3. */
535 int notewidthcxx . . $ WTracks#notewidth.;
536 Areacxx . . $ Area# noteareacxx . . $ WTracks#notearea.; /* These are all parts of the GFX area. */
537 int fxonoffcxx . . $ WTracks#fxonoff.; /* FX area on/off */
538 int fxwidthcxx . . $ WTracks#fxwidth.; /* is fxarea.x2-fxarea.x */
539 Areacxx . . $ Area# fxareacxx . . $ WTracks#fxarea.;
540
541 int num_velcxx . . $ WTracks#num_vel.; /* Max number of velocity lines showed simultaniously. (I.e the number of subtracks)*/
542
543 struct Trackscxx . . $ Tracks# *trackcxx . . $ WTracks#track.; /* Only referenced. wtracknum=track->tracknum */
544
545 struct TrackReallinecxx . . $ TrackRealline# *trackreallinescxx . . $ WTracks#trackreallines.;
546 WFXNodescxx . . $ WFXNodes# **wfxnodescxx . . $ WTracks#wfxnodes.;
547
548 TBoxcxx . . $ TBox# pancxx . . $ WTracks#pan.;
549 TBoxcxx . . $ TBox# volumecxx . . $ WTracks#volume.;
550
551 TBoxcxx . . $ TBox# panonoffcxx . . $ WTracks#panonoff.;
552 TBoxcxx . . $ TBox# volumeonoffcxx . . $ WTracks#volumeonoff.;
553
554 int noteshowtypecxx . . $ WTracks#noteshowtype.;
555 };
556 #define NextWTrackcxx . . $ `common/nsmtracker.h:556:9`!(a) ((struct WTracks *)((a)->l.next))
557
558 #define TEXTTYPEcxx . . $ `common/nsmtracker.h:558:9`! 0
559 #define GFXTYPE1cxx . . $ `common/nsmtracker.h:559:9`! 1
560 #define MAXTYPEcxx . . $ `common/nsmtracker.h:560:9`! 1
561
562
563 /*********************************************************************
564 lpb.h
565 *********************************************************************/
566
567
568 struct LPBscxx . . $ LPBs#{
569 struct ListHeader3cxx . . $ ListHeader3# lcxx . . $ LPBs#l.;
570 int lpbcxx . . $ LPBs#lpb.;
571 };
572 #define NextLPBcxx . . $ `common/nsmtracker.h:572:9`!(a) (struct LPBs *)((a)->l.next)
573
574 struct WLPBscxx . . $ WLPBs#{
575 int lpbcxx . . $ WLPBs#lpb.;
576 int typecxx . . $ WLPBs#type.; /* 0=normal, 1=below positioned, 2=mul. */
577
578 struct LPBscxx . . $ LPBs# *LPBcxx . . $ WLPBs#LPB.; /* Only referenced. */
579 };
580 #define LPB_NORMALcxx . . $ `common/nsmtracker.h:580:9`! 0
581 #define LPB_BELOWcxx . . $ `common/nsmtracker.h:581:9`! 1
582 #define LPB_MULcxx . . $ `common/nsmtracker.h:582:9`! 2
583
584
585
586 /*********************************************************************
587 tempos.h
588 *********************************************************************/
589
590
591 struct Temposcxx . . $ Tempos#{
592 struct ListHeader3cxx . . $ ListHeader3# lcxx . . $ Tempos#l.;
593 int tempocxx . . $ Tempos#tempo.;
594 };
595 #define NextTempocxx . . $ `common/nsmtracker.h:595:9`!(a) (struct Tempos *)((a)->l.next)
596
597 struct WTemposcxx . . $ WTempos#{
598 int tempocxx . . $ WTempos#tempo.;
599 int typecxx . . $ WTempos#type.; /* 0=normal, 1=below positioned, 2=mul. */
600 SDBcxx . . $ `common/nsmtracker.h:70:11`!
601 struct Temposcxx . . $ Tempos# *Tempocxx . . $ WTempos#Tempo.; /* Only referenced. */
602 };
603 /* Types */
604 #define TEMPO_NORMALcxx . . $ `common/nsmtracker.h:604:9`! 0
605 #define TEMPO_BELOWcxx . . $ `common/nsmtracker.h:605:9`! 1
606 #define TEMPO_MULcxx . . $ `common/nsmtracker.h:606:9`! 2
607
608
609
610 /*********************************************************************
611 temponodes.h
612 *********************************************************************/
613
614
615
616 struct TempoNodescxx . . $ TempoNodes#{
617 struct ListHeader3cxx . . $ ListHeader3# lcxx . . $ TempoNodes#l.;
618 float reltempocxx . . $ TempoNodes#reltempo.;
619 };
620 #define NextTempoNodecxx . . $ `common/nsmtracker.h:620:9`!(a) ((struct TempoNodes *)((a)->l.next))
621
622 typedef struct TrackReallineElementscxx . . $ TrackReallineElements# WTempoNodescxx . . $ WTempoNodes#;
623 /*
624 struct WTempoNodes{
625 struct WTempoNodes *next;
626 unsigned char type;
627 unsigned char subtype; // Currently not used.
628 unsigned char y1,y2;
629 unsigned short x1,x2;
630
631 void *temponode; // Only referenced.
632 };
633 */
634 /* Types */
635 #define TEMPONODE_NODEcxx . . $ `common/nsmtracker.h:635:9`! 0
636 #define TEMPONODE_LINEcxx . . $ `common/nsmtracker.h:636:9`! 1
637
638
639 /*********************************************************************
640 time.h
641 *********************************************************************/
642
643 struct STimeChangescxx . . $ STimeChanges#{
644 struct ListHeader3cxx . . $ ListHeader3# lcxx . . $ STimeChanges#l.;
645 STimecxx . . $ STime# timecxx . . $ STimeChanges#time.;
646
647 float tempo1cxx . . $ STimeChanges#tempo1.; // tempo (tempo*lpb) at this->l.p
648 float relcxx . . $ STimeChanges#rel.; // reltempo for this->l.p
649 float deltarelcxx . . $ STimeChanges#deltarel.; // rel+deltarel is reltempo for this->l.next->l.p
650 };
651 #define NextSTimeChangecxx . . $ `common/nsmtracker.h:651:9`!(a) (struct STimeChanges *)((a)->l.next)
652
653
654 struct STimescxx . . $ STimes#{ /* One element for each line. */
655 STimecxx . . $ STime# timecxx . . $ STimes#time.; /* Start-time for the line. */
656 SDBcxx . . $ `common/nsmtracker.h:70:11`!
657 struct STimeChangescxx . . $ STimeChanges# *timechangescxx . . $ STimes#timechanges.;
658 };
659
660
661 /*********************************************************************
662 blocks.h
663 *********************************************************************/
664
665
666 struct Blockscxx . . $ Blocks#{
667 struct ListHeader1cxx . . $ ListHeader1# lcxx . . $ Blocks#l.;
668
669 char *namecxx . . $ Blocks#name.;
670
671 NIntcxx . . $ NInt# num_trackscxx . . $ Blocks#num_tracks.;
672 int num_linescxx . . $ Blocks#num_lines.;
673
674 struct Trackscxx . . $ Tracks# *trackscxx . . $ Blocks#tracks.;
675 struct LPBscxx . . $ LPBs# *lpbscxx . . $ Blocks#lpbs.;
676 struct Temposcxx . . $ Tempos# *temposcxx . . $ Blocks#tempos.;
677 struct TempoNodescxx . . $ TempoNodes# *temponodescxx . . $ Blocks#temponodes.;
678 struct TempoNodescxx . . $ TempoNodes# *lasttemponodecxx . . $ Blocks#lasttemponode.;
679
680 struct STimescxx . . $ STimes# *timescxx . . $ Blocks#times.; /* Pointer to array. Last element (times[num_lines]) is the playtime of the block. */
681
682 float reltempocxx . . $ Blocks#reltempo.; /* factor that the tempo is multiplied with when playing this block. */
683
684 // This variable is checked after each keyboard or menu event. If true, trackreallines, wtracks, etc. will be updated.
685 bool is_dirtycxx . . $ Blocks#is_dirty.;
686 };
687 #define NextBlockcxx . . $ `common/nsmtracker.h:687:9`!(a) (struct Blocks *)((a)->l.next)
688
689
690
691 /*********************************************************************
692 localzooms.h
693 *********************************************************************/
694
695
696 struct LocalZoomscxx . . $ LocalZooms#{
697 struct ListHeader3cxx . . $ ListHeader3# lcxx . . $ LocalZooms#l.;
698 // struct LocalZooms *next; /* Next on the same level. */
699 // int line; /* The same type of line that note has. */
700 // uint_32 counter; /* Same type of counter that line has. */
701 // uint_32 dividor; /* Same type of dividor that line has. */
702
703 int zoomlinecxx . . $ LocalZooms#zoomline.; /* The linetype that is showed in the editor. */
704 int levelcxx . . $ LocalZooms#level.;
705 int reallinecxx . . $ LocalZooms#realline.;
706
707 struct LocalZoomscxx . . $ LocalZooms# *uplevelcxx . . $ LocalZooms#uplevel.; /* Contains 'num_newlines' # of elements. */
708 };
709 #define NextLocalZoomcxx . . $ `common/nsmtracker.h:709:9`!(a) ((struct LocalZooms *)((a)->l.next))
710
711
712
713 /*********************************************************************
714 wblocks.h
715 *********************************************************************/
716
717
718 struct WBlockscxx . . $ WBlocks#{
719 struct ListHeader1cxx . . $ ListHeader1# lcxx . . $ WBlocks#l.;
720
721 int tempotrackonoffcxx . . $ WBlocks#tempotrackonoff.; /* 1=on, 0=off */
722 int temponodetrackonoffcxx . . $ WBlocks#temponodetrackonoff.; /* 1=on, 0=off */
723
724 TBoxcxx . . $ TBox# acxx . . $ WBlocks#a.; // everything
725 // int x,y,x2,y2; /* GFX area. */
726
727 TBoxcxx . . $ TBox# tcxx . . $ WBlocks#t.;
728 // int tx,ty,tx2,ty2; /* lines, nodes, etc. GFX area. */
729
730 //WArea zoomlevelarea;
731 WAreacxx . . $ WArea# linenumareacxx . . $ WBlocks#linenumarea.;
732 WAreacxx . . $ WArea# zoomlineareacxx . . $ WBlocks#zoomlinearea.;
733 WAreacxx . . $ WArea# tempocolorareacxx . . $ WBlocks#tempocolorarea.;
734 WAreacxx . . $ WArea# lpbTypeareacxx . . $ WBlocks#lpbTypearea.;
735 WAreacxx . . $ WArea# lpbareacxx . . $ WBlocks#lpbarea.;
736 WAreacxx . . $ WArea# tempoTypeareacxx . . $ WBlocks#tempoTypearea.; // When one character signals whether the tempo is down "d", or multi "m"
737 WAreacxx . . $ WArea# tempoareacxx . . $ WBlocks#tempoarea.;
738 WAreacxx . . $ WArea# temponodeareacxx . . $ WBlocks#temponodearea.;
739
740 YAreacxx . . $ YArea# lineareacxx . . $ WBlocks#linearea.;
741
742 int maxwtracksizecxx . . $ WBlocks#maxwtracksize.; /* The size of the widest wtrack. */
743
744 int num_visiblelinescxx . . $ WBlocks#num_visiblelines.;
745
746 int top_reallinecxx . . $ WBlocks#top_realline.;
747
748 int curr_reallinecxx . . $ WBlocks#curr_realline.;
749 int till_curr_reallinecxx . . $ WBlocks#till_curr_realline.; /* The player-routine sets this on. */
750
751 int bot_reallinecxx . . $ WBlocks#bot_realline.;
752
753 int mouse_trackcxx . . $ WBlocks#mouse_track.; // The track the mouse is currently above. -1 if not on a track.
754 struct Notescxx . . $ Notes# *mouse_notecxx . . $ WBlocks#mouse_note.; // The note the mouse is currently above. NULL if mouse is not above a note.
755
756 struct Blockscxx . . $ Blocks# *blockcxx . . $ WBlocks#block.; /* Only referenced. wblocknum=block->blocknum */
757
758 struct LocalZoomscxx . . $ LocalZooms# *localzoomscxx . . $ WBlocks#localzooms.;
759 struct LocalZoomscxx . . $ LocalZooms# **reallinescxx . . $ WBlocks#reallines.;
760 int num_reallinescxx . . $ WBlocks#num_reallines.;
761 int num_reallines_lastcxx . . $ WBlocks#num_reallines_last.;
762
763 struct WTrackscxx . . $ WTracks# *wtrackscxx . . $ WBlocks#wtracks.;
764 struct WTrackscxx . . $ WTracks# *wtrackcxx . . $ WBlocks#wtrack.; /* Current track. Only referenced. */
765
766 char *titlecxx . . $ WBlocks#title.; /* Window title. */
767
768 NIntcxx . . $ NInt# left_trackcxx . . $ WBlocks#left_track.; /* The leftmost visible track. */
769 int left_subtrackcxx . . $ WBlocks#left_subtrack.;
770 NIntcxx . . $ NInt# right_trackcxx . . $ WBlocks#right_track.; /* The rightmost visible track. */
771 int right_subtrackcxx . . $ WBlocks#right_subtrack.;
772
773 struct WTemposcxx . . $ WTempos# *wtemposcxx . . $ WBlocks#wtempos.;
774 WTempoNodescxx . . $ WTempoNodes# **wtemponodescxx . . $ WBlocks#wtemponodes.;
775 struct WLPBscxx . . $ WLPBs# *wlpbscxx . . $ WBlocks#wlpbs.;
776 float reltempomaxcxx . . $ WBlocks#reltempomax.;
777
778 bool israngedcxx . . $ WBlocks#isranged.;
779 NIntcxx . . $ NInt# rangex1cxx . . $ WBlocks#rangex1.;
780 NIntcxx . . $ NInt# rangex2cxx . . $ WBlocks#rangex2.;
781 NIntcxx . . $ NInt# rangey1cxx . . $ WBlocks#rangey1.;
782 NIntcxx . . $ NInt# rangey2cxx . . $ WBlocks#rangey2.;
783
784 bool isgfxdataherecxx . . $ WBlocks#isgfxdatahere.;
785
786 TBoxcxx . . $ TBox# reltempocxx . . $ WBlocks#reltempo.;
787
788 //tempocolor stuff
789 bool tc_onoffcxx . . $ WBlocks#tc_onoff.;
790 int tc_numcolorscxx . . $ WBlocks#tc_numcolors.;
791 int tc_maxtimecxx . . $ WBlocks#tc_maxtime.;
792 int tc_mintimecxx . . $ WBlocks#tc_mintime.;
793 int tc_typecxx . . $ WBlocks#tc_type.;
794 };
795 #define NextWBlockcxx . . $ `common/nsmtracker.h:795:9`!(a) (struct WBlocks *)((a)->l.next)
796
797
798
799 /*********************************************************************
800 slider.h
801 *********************************************************************/
802
803
804 struct Slidercxx . . $ Slider#{
805 int showcxx . . $ Slider#show.;
806 int widthcxx . . $ Slider#width.;
807 int xcxx . . $ Slider#x.,x2cxx . . $ Slider#x2.;
808 int lxcxx . . $ Slider#lx.,lx2cxx . . $ Slider#lx2.;
809 };
810
811
812 /*********************************************************************
813 blts.h
814 ********************************************************************/
815
816 typedef structcxx . . $ $anonymous_type_81d08dd71f47349e_6#{
817
818 /* Used by Blt_blt Blt_mark */
819 bool blt_docxx . . $ $anonymous_type_81d08dd71f47349e_6#blt_do.;
820 int x1cxx . . $ $anonymous_type_81d08dd71f47349e_6#x1.;int x2cxx . . $ $anonymous_type_81d08dd71f47349e_6#x2.;
821 int startreallinecxx . . $ $anonymous_type_81d08dd71f47349e_6#startrealline.;
822 int endreallinecxx . . $ $anonymous_type_81d08dd71f47349e_6#endrealline.;
823
824 /* Used by Blt_blt and Blt_marktrackheader */
825 bool blt_doheadercxx . . $ $anonymous_type_81d08dd71f47349e_6#blt_doheader.;
826 NIntcxx . . $ NInt# starttrackcxx . . $ $anonymous_type_81d08dd71f47349e_6#starttrack.;
827 NIntcxx . . $ NInt# endtrackcxx . . $ $anonymous_type_81d08dd71f47349e_6#endtrack.;
828
829 /* Used by Blt_clearNotUsedVisible and Blt_markVisible */
830 bool clear_docxx . . $ $anonymous_type_81d08dd71f47349e_6#clear_do.;
831 int v_x1cxx . . $ $anonymous_type_81d08dd71f47349e_6#v_x1.;int v_x2cxx . . $ $anonymous_type_81d08dd71f47349e_6#v_x2.;
832 int v_y1cxx . . $ $anonymous_type_81d08dd71f47349e_6#v_y1.;int v_y2cxx . . $ $anonymous_type_81d08dd71f47349e_6#v_y2.;
833 }Bltcxx . . $ Blt#;
834
835
836 /*********************************************************************
837 windows.h
838 *********************************************************************/
839 #include "mouse.h"cxx . . $ `<file>/common/mouse.h`/
840
841 struct Tracker_Windowscxx . . $ Tracker_Windows#{
842 struct ListHeader1cxx . . $ ListHeader1# lcxx . . $ Tracker_Windows#l.;
843
844 struct OS_visualcxx . . $ OS_visual# os_visualcxx . . $ Tracker_Windows#os_visual.;
845 int xcxx . . $ Tracker_Windows#x.,ycxx . . $ Tracker_Windows#y.; /* Where window is placed. (for amiga: screen-pos)*/
846 int widthcxx . . $ Tracker_Windows#width.,heightcxx . . $ Tracker_Windows#height.; /* Size of area to use. */
847 char *fontnamecxx . . $ Tracker_Windows#fontname.;
848 int fontIDcxx . . $ Tracker_Windows#fontID.; /* System spesific. For amiga: fontsize. */
849 int fontTagscxx . . $ Tracker_Windows#fontTags.; /* System spesific. For amiga: nothing. */
850 int fontwidthcxx . . $ Tracker_Windows#fontwidth.,fontheightcxx . . $ Tracker_Windows#fontheight.; /* Proportional fonts not so very allowed. */
851
852 NIntcxx . . $ NInt# curr_trackcxx . . $ Tracker_Windows#curr_track.;
853 int curr_track_subcxx . . $ Tracker_Windows#curr_track_sub.; /* -1=note, 0,1,2,...,n=vel */
854 NIntcxx . . $ NInt# curr_blockcxx . . $ Tracker_Windows#curr_block.;
855
856 int maxwtracksizecxx . . $ Tracker_Windows#maxwtracksize.; /* The size of the widest wtrack for all wblocks. */
857
858 struct Slidercxx . . $ Slider# bottomslidercxx . . $ Tracker_Windows#bottomslider.;
859 struct Slidercxx . . $ Slider# leftslidercxx . . $ Tracker_Windows#leftslider.;
860 struct Slidercxx . . $ Slider# rightslidercxx . . $ Tracker_Windows#rightslider.;
861
862 bool playalongcxx . . $ Tracker_Windows#playalong.; /* If true, this window allso shows whats being played
863 if any other window is playing. default=true. */
864
865 struct WBlockscxx . . $ WBlocks# *wblockcxx . . $ Tracker_Windows#wblock.; /* Current wblock. Only referenced. */
866 struct WBlockscxx . . $ WBlocks# *wblockscxx . . $ Tracker_Windows#wblocks.;
867
868 struct TEventFIFOcxx . . $ TEventFIFO# *TELrootcxx . . $ Tracker_Windows#TELroot.;
869 struct TEventFIFOcxx . . $ TEventFIFO# *TELlastcxx . . $ Tracker_Windows#TELlast.;
870 uint32_tcxx . . $ uint32_t# event_treatcxx . . $ Tracker_Windows#event_treat.; /* Chooses which event type(s) to treat. (0=all)*/
871 int dontbuffercxx . . $ Tracker_Windows#dontbuffer.;
872
873 struct MouseActioncxx . . $ MouseAction# curractioncxx . . $ Tracker_Windows#curraction.;
874 struct MouseActioncxx . . $ MouseAction# prevactioncxx . . $ Tracker_Windows#prevaction.;
875
876 int org_fontheightcxx . . $ Tracker_Windows#org_fontheight.;
877 #ifdef _AMIGA
878 char *h_fontname;
879 int h_fontID; /* System spesific. For amiga: fontsize. */
880 int h_fontTags; /* System spesific. For amiga: nothing. */
881 int h_fontwidth;
882 #endif
883
884 int num_pixmapdefscxx . . $ Tracker_Windows#num_pixmapdefs.;
885 int *pixmapdefscxx . . $ Tracker_Windows#pixmapdefs.;
886 int *pixmapdefs_calccxx . . $ Tracker_Windows#pixmapdefs_calc.;
887
888 Bltcxx . . $ Blt# bltcxx . . $ Tracker_Windows#blt.;
889
890 #ifdef USE_GFX_OP_QUEUE
891 void *op_queue;
892 #endif
893 bool must_redrawcxx . . $ Tracker_Windows#must_redraw.;
894 };
895 #define NextWindowcxx . . $ `common/nsmtracker.h:895:9`!(a) (struct Tracker_Windows *)((a)->l.next)
896
897 /* curr_track types */
898 #define TEMPONODETRACKcxx . . $ `common/nsmtracker.h:898:9`! -1
899 #define TEMPOTRACKcxx . . $ `common/nsmtracker.h:899:9`! -2
900 #define LPBTRACKcxx . . $ `common/nsmtracker.h:900:9`! -3
901 #define LINENUMBTRACKcxx . . $ `common/nsmtracker.h:901:9`! -4
902 #define TEMPOCOLORTRACKcxx . . $ `common/nsmtracker.h:902:9`! -5
903 #define NOTRACKcxx . . $ `common/nsmtracker.h:903:9`! -10000
904
905 /*********************************************************************
906 song.h
907 *********************************************************************/
908
909
910 struct Songcxx . . $ Song#{
911 struct Tracker_Windowscxx . . $ Tracker_Windows# *tracker_windowscxx . . $ Song#tracker_windows.;
912 struct Blockscxx . . $ Blocks# *blockscxx . . $ Song#blocks.;
913 struct Blockscxx . . $ Blocks# **playlistcxx . . $ Song#playlist.; /* This variable is just temporarily. Later, the playlist will be much more advanced. */
914
915 NIntcxx . . $ NInt# num_blockscxx . . $ Song#num_blocks.;
916 int lengthcxx . . $ Song#length.; /* Playlist length. */
917 char *songnamecxx . . $ Song#songname.;
918
919 NIntcxx . . $ NInt# maxtrackscxx . . $ Song#maxtracks.; /* The highest number of tracks in a block. (changed when exceeding) */
920
921 hash_tcxx . . $ hash_t# *mixerwidget_statecxx . . $ Song#mixerwidget_state.; // Only used during loading.
922 hash_tcxx . . $ hash_t# *instrument_widget_order_statecxx . . $ Song#instrument_widget_order_state.; // Only used during loading.
923 };
924
925
926
927 /*********************************************************************
928 root.h
929 *********************************************************************/
930
931
932 struct Rootcxx . . $ Root#{
933 struct Songcxx . . $ Song# *songcxx . . $ Root#song.;
934
935 int curr_playlistcxx . . $ Root#curr_playlist.;
936 NIntcxx . . $ NInt# curr_blockcxx . . $ Root#curr_block.;
937
938 bool setfirstposcxx . . $ Root#setfirstpos.;
939
940 int tempocxx . . $ Root#tempo.; /* Standard tempo. */
941 int lpbcxx . . $ Root#lpb.; /* Standard lpb. */
942
943 float quantitizecxx . . $ Root#quantitize.;
944 int keyoctcxx . . $ Root#keyoct.;
945 int min_standardvelcxx . . $ Root#min_standardvel.;
946 int standardvelcxx . . $ Root#standardvel.;
947
948 bool editonoffcxx . . $ Root#editonoff.;
949 bool scrollplayonoffcxx . . $ Root#scrollplayonoff.;
950 };
951
952
953
954
955 /*************************************************
956 Structures for the advanced functions.
957 (especially made for extension language support.)
958 *************************************************/
959
960 struct NoteAdds_trackcxx . . $ NoteAdds_track#{
961 float placecxx . . $ NoteAdds_track#place.; // A placement type represented as float
962 int notenumcxx . . $ NoteAdds_track#notenum.;
963 float volumecxx . . $ NoteAdds_track#volume.; // 0.0 is off, 1.0 is max, -0.0 - -2.0 is default
964 float endplacecxx . . $ NoteAdds_track#endplace.; // The end place. A value -0.0 - -2.0 means no spesified end-place (end-place is set to the same as the start-place of the next note in the array).
965 };
966
967 struct NoteAdds_track_docxx . . $ NoteAdds_track_do#{
968 NIntcxx . . $ NInt# tracknumcxx . . $ NoteAdds_track_do#tracknum.;
969 int num_natscxx . . $ NoteAdds_track_do#num_nats.;
970 struct NoteAdds_trackcxx . . $ NoteAdds_track# *natscxx . . $ NoteAdds_track_do#nats.;
971 float startplacecxx . . $ NoteAdds_track_do#startplace.;
972 int sortcxx . . $ NoteAdds_track_do#sort.;
973 };
974
975 struct NoteAdds_blockcxx . . $ NoteAdds_block#{
976 NIntcxx . . $ NInt# blocknumcxx . . $ NoteAdds_block#blocknum.;
977 int num_nats_docxx . . $ NoteAdds_block#num_nats_do.;
978 struct NoteAdds_track_docxx . . $ NoteAdds_track_do# **nats_docxx . . $ NoteAdds_block#nats_do.;
979 };
980
981
982 #endif
983
984
985
986
987
988
989
990
991
992
993