|
|
| version 1.6, 2003/12/24 19:15:51 | version 1.7, 2003/12/25 05:07:49 |
|---|---|
| Line 453 static void ctrlchange(MIDIHDL midi, CHA | Line 453 static void ctrlchange(MIDIHDL midi, CHA |
| case CTRL_EXPRESS: | case CTRL_EXPRESS: |
| ch->expression = val; | ch->expression = val; |
| TRACEOUT(("exp = %d", val)); | |
| volumeupdate(midi, ch); | volumeupdate(midi, ch); |
| break; | break; |
| Line 742 static void longmsg_gm(MIDIHDL hdl, cons | Line 743 static void longmsg_gm(MIDIHDL hdl, cons |
| static void longmsg_roland(MIDIHDL hdl, const BYTE *msg, UINT size) { | static void longmsg_roland(MIDIHDL hdl, const BYTE *msg, UINT size) { |
| UINT addr; | UINT addr; |
| UINT part; | |
| CHANNEL ch; | |
| if ((size > 10) && (msg[2] == 0x10) && | if ((size > 10) && (msg[2] == 0x10) && |
| (msg[3] == 0x42) && (msg[4] == 0x12)) { // GS data set | (msg[3] == 0x42) && (msg[4] == 0x12)) { // GS data set |
| Line 754 static void longmsg_roland(MIDIHDL hdl, | Line 757 static void longmsg_roland(MIDIHDL hdl, |
| hdl->master = msg[8] & 0x7f; | hdl->master = msg[8] & 0x7f; |
| allvolupdate(hdl); | allvolupdate(hdl); |
| } | } |
| else if ((addr & (~(0x000f00))) == 0x401015) { // Tone/Rhythm | |
| part = (addr >> 8) & 0x0f; | |
| if (part == 0) { // part10 | |
| part = 9; | |
| } | |
| else if (part < 10) { // part1-9 | |
| part--; | |
| } | |
| ch = hdl->channel + part; | |
| if (msg[8] == 0) { | |
| ch->flag &= ~CHANNEL_RHYTHM; | |
| TRACEOUT(("ch%d - tone", part + 1)); | |
| } | |
| else if ((msg[8] == 1) || (msg[8] == 2)) { | |
| ch->flag |= CHANNEL_RHYTHM; | |
| TRACEOUT(("ch%d - rhythm", part + 1)); | |
| } | |
| } | |
| else { | else { |
| TRACEOUT(("Roland GS - %.6x", addr)); | TRACEOUT(("Roland GS - %.6x", addr)); |
| } | } |