home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 611.lha / AlgoRhythms_v2.0 / Source.LZH / Source / MusicSerial.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-02-22  |  790 b   |  30 lines

  1. #ifndef MUSICSERIAL_LOADED
  2. #define MUSICSERIAL_LOADED 1
  3. /* MusicSerial.h */
  4.  
  5. #include    "devices/serial.h"
  6. #include    "proto/exec.h"
  7. #include    "exec/devices.h"
  8.  
  9. #define STARTFUNCT   0
  10. #define STOPFUNCT    1
  11. #define CLOCKFUNCT   2
  12. #define CONTFUNCT    (3)
  13. #include "AlgoRhythms.h"
  14.  
  15. extern int midi_addr;
  16.  
  17. extern void Open_MIDI_Port (void);
  18. extern int WriteSer (struct IOExtSer *io, char *data, int length);
  19. extern void PlayNoteOn (const NOTEEVENT *PlayEvent);
  20. extern void SendFunction (int Function);
  21. extern void StopMIDI (void);
  22. extern void StopAllNotes (NOTEEVENT NotestoStop[]);
  23.  
  24. extern int SetParams (struct IOExtSer *io,unsigned long rbuf_len,
  25.     unsigned char rlen, unsigned char wlen, unsigned long brk,
  26.     unsigned long baud, unsigned char sf,
  27.     unsigned long ta0, unsigned long ta1);
  28.  
  29. #endif
  30.