Link musyx/runtime/seq

Former-commit-id: 19e9b9791f
This commit is contained in:
2023-07-04 10:39:03 -04:00
parent 048f6c6cf0
commit f6fd95fa72
4 changed files with 59 additions and 27 deletions

View File

@@ -58,10 +58,13 @@ typedef struct NOTE_DATA {
} NOTE_DATA;
typedef struct PRG_STATE {
// total size: 0x4
// total size: 0x4 (>=2.0: 0x6)
u16 macId; // offset 0x0, size 0x2
u8 priority; // offset 0x2, size 0x1
u8 maxVoices; // offset 0x3, size 0x1
#if MUSY_VERSION >= MUSY_VERSION_CHECK(2, 0, 0)
u8 program; // offset 0x4, size 0x1
#endif
} PRG_STATE;
typedef struct SEQ_STREAM {
@@ -103,7 +106,7 @@ typedef struct SEQ_EVENT {
typedef struct MTRACK_DATA {
// total size: 0x8
volatile u32 time; // offset 0x0, size 0x4
u32 bpm; // offset 0x4, size 0x4
u32 bpm; // offset 0x4, size 0x4
} MTRACK_DATA;
typedef struct MTRACK {

View File

@@ -24,9 +24,12 @@ bool synthFXSetCtrl14(SND_VOICEID vid, u8 ctrl, u16 value);
bool synthSendKeyOff(SND_VOICEID vid);
SND_VOICEID synthFXStart(u16 fid, u8 vol, u8 pan, u8 studio, u32 itd);
void synthVolume(u8 volume, u16 time, u8 vGroup, u8 seqMode, u32 seqId);
u32 synthStartSound(u16 id, u8 prio, u8 max, u8 key, u8 vol, u8 panning, u8 midi, u8 midiSet,
u8 section, u16 step, u16 trackid, u8 vGroup, s16 prioOffset, u8 studio,
u32 itd);
u32 synthStartSound(u16 id, u8 prio, u8 max,
#if MUSY_VERSION >= MUSY_VERSION_CHECK(2, 0, 0)
unsigned long sourceID,
#endif
u8 key, u8 vol, u8 panning, u8 midi, u8 midiSet, u8 section, u16 step,
u16 trackid, u8 vGroup, s16 prioOffset, u8 studio, u32 itd);
bool synthIsFadeOutActive(u8 vGroup);
/* TODO: Move this where it belongs */