Masahiko Hasebe / microbit_ymf825

Dependencies:   microbit

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers fmtone.h Source File

fmtone.h

00001 #ifndef FMTONE_H
00002 #define FMTONE_H
00003 
00004 #define MAX_FM_OPERATOR     4
00005 #define MAX_OPERATOR_PRM    10
00006 
00007 //  ToneData Class
00008 typedef struct {
00009     unsigned char       voiceCommon;                // BO(2) | LFO(2) | ALG(3)
00010     unsigned char       opPrm[MAX_FM_OPERATOR][MAX_OPERATOR_PRM];
00011 } ToneData;
00012 
00013 //  public
00014 extern void Tone_init( void );
00015 extern void Tone_setToneExc( unsigned char data, int excNum );
00016 extern void Tone_sendTone( void );
00017 #endif
00018