home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / d / dir_nm20.zip / Dir_NM_2.0 / Dir_TTS / tts.h < prev    next >
C/C++ Source or Header  |  1992-07-16  |  937b  |  55 lines

  1. /*                             =====  tts.h  ===== 
  2. */
  3.  
  4. /*
  5. #include <X11/Xlib.h>
  6. #include <X11/Xutil.h>
  7. #include <X11/Xos.h>
  8. #include <X11/keysym.h>
  9. */
  10.  
  11. #include <math.h>
  12. #include <stdio.h>
  13. #include <stdlib.h>
  14. #include <string.h>
  15. #include <sys/types.h>
  16. #include <sys/stat.h>
  17.  
  18. /* Some global Xlib variables used in all files: */
  19.  
  20. #define Sign(A) ((A) > 0 ? 1.0 : ( (A) < 0 ? -1.0 : 0.0))
  21. #define Max(A,B) ((A) >= (B) ? (A) : (B))
  22. #define Min(A,B) ((A) <= (B) ? (A) : (B))
  23.  
  24. #define St_Start  30
  25. #define M_Len     630
  26.  
  27. typedef struct Chord 
  28. {
  29.   int nt[4],act,vol;
  30. } Chord;
  31.  
  32. typedef struct Tempo_Unit 
  33. {
  34.   int note,act;
  35. } Tempo_Unit;
  36.  
  37. typedef struct contmp 
  38. {
  39.   char Set_name[50];
  40.   int tempo[6],instru[6];
  41. } Tempo_Set;
  42.  
  43. Chord St[M_Len][3];
  44. Tempo_Unit tmp[1000][30],tmp_buf[1000][30];
  45.  
  46. int Key,Duration,Time,Measure,Percent,sum,V_Ht,Appear[120];
  47.  
  48. double freq,speed;
  49.  
  50. char *S_bf,buf[2048];
  51.  
  52. FILE *Textfile;
  53.  
  54. /*     Finish :  Note = 200    */
  55.