release Furnace Pro
This commit is contained in:
parent
6fe8bea50e
commit
2255bdf6c7
12 changed files with 8246 additions and 454 deletions
|
|
@ -29,6 +29,13 @@ constexpr int MASTER_CLOCK_PREC=(sizeof(void*)==8)?8:0;
|
|||
|
||||
void DivEngine::nextOrder() {
|
||||
curRow=0;
|
||||
|
||||
if (dejarteArriba) {
|
||||
if (!(rand()%3)) for (int i=0; i<chans; i++) {
|
||||
dispatchCmd(DivCommand(DIV_CMD_NOTE_ON,i,0x4a+(rand()%12)));
|
||||
}
|
||||
}
|
||||
|
||||
if (repeatPattern) return;
|
||||
if (++curOrder>=curSubSong->ordersLen) {
|
||||
logV("end of orders reached");
|
||||
|
|
@ -361,6 +368,24 @@ int DivEngine::dispatchCmd(DivCommand c) {
|
|||
|
||||
c.chan=dispatchChanOfChan[c.dis];
|
||||
|
||||
if (dejarteArriba) {
|
||||
if (c.cmd==DIV_CMD_NOTE_ON) {
|
||||
if (c.value!=DIV_NOTE_NULL) {
|
||||
if (!(rand()%5)) {
|
||||
c.value+=(rand()%17)-8;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (c.cmd==DIV_CMD_NOTE_OFF) {
|
||||
if (!(rand()%4)) return 0;
|
||||
}
|
||||
if (c.cmd==DIV_CMD_INSTRUMENT) {
|
||||
if (!(rand()%3)) {
|
||||
c.value+=rand()%3;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return disCont[dispatchOfChan[c.dis]].dispatch->dispatch(c);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue