G E N E S I S
without SN
This commit is contained in:
parent
a68f8d0dec
commit
062a9837c0
11 changed files with 155 additions and 9 deletions
|
|
@ -79,6 +79,10 @@ void DivEngine::nextRow() {
|
|||
|
||||
for (int i=0; i<chans; i++) {
|
||||
DivPattern* pat=song.pat[i]->data[curOrder];
|
||||
// instrument
|
||||
if (pat->data[curRow][2]!=255) {
|
||||
dispatch->dispatch(DivCommand(DIV_CMD_INSTRUMENT,i,pat->data[curRow][2]));
|
||||
}
|
||||
// note
|
||||
if (pat->data[curRow][0]==100) {
|
||||
dispatch->dispatch(DivCommand(DIV_CMD_NOTE_OFF,i));
|
||||
|
|
@ -86,6 +90,11 @@ void DivEngine::nextRow() {
|
|||
dispatch->dispatch(DivCommand(DIV_CMD_NOTE_ON,i,pat->data[curRow][0]+pat->data[curRow][1]*12));
|
||||
}
|
||||
|
||||
// volume
|
||||
if (pat->data[curRow][3]!=255) {
|
||||
dispatch->dispatch(DivCommand(DIV_CMD_VOLUME,i,pat->data[curRow][3]));
|
||||
}
|
||||
|
||||
// effects
|
||||
for (int j=0; j<song.pat[i]->effectRows; j++) {
|
||||
unsigned char effect=pat->data[curRow][4+(j<<1)];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue