home *** CD-ROM | disk | FTP | other *** search
/ C++ Games Programming / CPPGAMES.ISO / mt / mtdeclar.h < prev    next >
C/C++ Source or Header  |  1989-01-12  |  5KB  |  160 lines

  1. /* mtdeclar.h  function declarations for all mt.c moudules */
  2.  
  3. /* mt.c */
  4.  
  5. void main(void);
  6.  
  7. /* mtrc1.c */
  8.  
  9. void record_menu(void);
  10.  
  11. /* mtrc2.c */
  12.  
  13. void play(void);
  14. void record(void);
  15. struct event far *record_track(int track);
  16.  
  17. /* mtrc3.c */
  18.  
  19. void play_event(int track, struct event far *ep);
  20. void stop_401(int tracks_on);
  21. int init_401(struct event far *ep[]);
  22. void maybe_measure_number(int track, int trackbits);
  23. void erase_track(void);
  24. void erase_one(int track);
  25. void erase_all(void);
  26. void init_track_str(void);
  27. long count_events(void);
  28. void init_rec_val(void);
  29. void calc_pct_free(void);
  30. void write_on_off(int param, int column, int row);
  31. void all_notes_off(void);
  32. void trace_header(void);
  33.  
  34. /* mtrc4.c */
  35.  
  36. struct event far *eventalloc(void);
  37. struct event far *store(struct event far *node, int nbytes, int b1, int b2,
  38.     int b3, int b4);
  39. int getnext401(void);
  40. void ungetnext401(int n);
  41. int get401(void);
  42. void putdata401(int n);
  43. int sendcmd401(int n);
  44. int repeat_cmd401(int n);
  45. int goto_measure(int meas);
  46. void change_channel(int track, int channel);
  47. void init_tracks(void);
  48. int free_memory(void);
  49. int used_memory(void);
  50. void data_dump(void);
  51. void clear_forward(void);
  52. void clear_events(struct event far *start);
  53. void wait_for_key(void);
  54.  
  55. /* mted1.c */
  56.  
  57. void edit_menu(void);
  58.  
  59. /* mted2.c */
  60.  
  61. void init_meas_data(void);
  62. int has_midi_data(struct event far *measurep);
  63. struct event far *increment_measure(struct event far *eventp);
  64. int select_measure(struct item *item);
  65. struct event far *advance_to_measure(int track, int measure);
  66. struct event far *add_measure(struct event far *ep);
  67. struct event far *merge_measure(struct event far *dest_p, 
  68.     struct event far *source_p);
  69. void init_note_array(void);
  70. void fill_note_array(struct event far *start_event, 
  71.     struct event far *end_event);
  72. struct event far *add_note_offs(struct event far *dest_event, int channel);
  73.  
  74.  
  75. /* mted3.c */
  76.  
  77. void empty_block(int track, int b_start, int b_end);
  78. void block_repeat(void);
  79. void repeat_copy(int source_meas, int source_track, int dest_meas, 
  80.     int dest_track, int n_meas, int reps);
  81. void transpose_block(void);
  82. struct event far *find_event_before(int track, struct event far *ep);
  83. void clean_track(int track);
  84. void block_paste(void);
  85.  
  86. /* mtsc1.c */
  87.  
  88. int scrn_edit_control(int track, int measure);
  89. void init_edit_param(void);
  90. void display_keyboard(void);
  91.  
  92. /* mtsc2.c */
  93.  
  94. void init_screen_box(int beat, int measure);
  95. void top_scale(int beat, int leftside, int topline, int rightside, 
  96.     int botside, int measure);
  97. void name_top_note(int oct_shown);
  98. void name_measure(int measure);
  99. void dotted_lines(int topx, int topy, int botx, int boty, int vspace, 
  100.     int hspace, int color);
  101. struct note_time far *build_note_list(int track);
  102. void free_note_list(struct note_time far *np);
  103. void disp_notes(struct note_time far *first_notep, int first_measure,
  104.     int beat);
  105. void draw_note(struct note_time far *np, int color);
  106. void mark_middle_c(int first);
  107. int find_note_line(int note_no);
  108.  
  109. /* mtsc3.c */
  110.  
  111. struct note_time far *delete_note(struct note_time far *first_notep,
  112.     int measure, int track);
  113. struct note_pos *select_note(int measure, int option);
  114. void clear_select_lines(void);
  115. struct note_time far *find_note(struct note_time far *first_notep, int note,
  116.     int measure, int tick);
  117. float note_to_float(int measure, int tick);
  118. int remove_event(struct event far *eventp, int track);
  119. struct note_time far *remove_note(struct note_time far *first_notep,
  120.     struct note_time far *notep);
  121.  
  122. /* mtsc4.c */
  123.  
  124. void add_note(struct note_time far *first_notep, int measure, int track);
  125. struct event far *add_event(int track, int measure, int tick, int event_bytes,
  126.     int b1, int b2, int b3);
  127. struct note_time far *add_note_time(struct note_time far *first_np,
  128.     struct event far *on_event, int on_meas, int on_tick,
  129.     struct event far *off_event, int off_meas, int off_tick);
  130. void change_vel(struct note_time far *first_notep, int measure);        
  131.  
  132. /* mtut1.c */
  133.  
  134. void save_song(void);
  135. void save_tracks(FILE *stream);
  136. void load_song(void);
  137. void recal_song(FILE *stream);
  138. void help_control(void);
  139. void helpdisp(char *filename);
  140.  
  141. /* mtut2.c */
  142.  
  143. void import_menu(void);
  144. void import_track(FILE *stream, int source_track, int dest_track,
  145.     struct trackdata temp_trackarray[]);
  146. void show_dest(int track);
  147. void show_source(int track);
  148.  
  149. /* filefunc.c */
  150.  
  151. int pick_file(char *dir, char *match_str, char *str);
  152. int disp_files(char *dir, char *match_str);
  153. int getdrive(char *prodir, char *sampdir);
  154. void put_to_file(void *addr, int size, FILE *stream);
  155. void fput_to_file(void far *addr, int size, FILE *stream);
  156. void get_from_file(void *addr, int size, FILE *stream);
  157. void fget_from_file(void far *addr, int size, FILE *stream);
  158. void loadscrn(struct strchain *chain[], int number, char *namestr);
  159. int load_video_data(char *filename);
  160.