Created
April 19, 2010 20:57
-
-
Save rewbs/371612 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: Load_s3m.cpp | |
=================================================================== | |
--- Load_s3m.cpp (revision 572) | |
+++ Load_s3m.cpp (working copy) | |
@@ -109,7 +109,7 @@ | |
case 'Y': command = CMD_PANBRELLO; break; | |
case 'Z': command = CMD_MIDI; break; | |
case '\\': command = CMD_SMOOTHMIDI; break; //rewbs.smoothVST | |
- case ':': command = CMD_VELOCITY; break; //rewbs.velocity | |
+ case ']': command = CMD_VELOCITY; break; | |
// -> CODE#0010 | |
// -> DESC="add extended parameter mechanism to pattern effects" | |
case '[': command = CMD_XPARAM; break; | |
@@ -176,7 +176,7 @@ | |
if(bCompatibilityExport) | |
command = param = 0; | |
else | |
- command = ':'; | |
+ command = ']'; | |
break; | |
case CMD_XFINEPORTAUPDOWN: | |
if (param & 0x0F) switch(param & 0xF0) | |
Index: Snd_fx.cpp | |
=================================================================== | |
--- Snd_fx.cpp (revision 572) | |
+++ Snd_fx.cpp (working copy) | |
@@ -1256,6 +1256,13 @@ | |
if((m_dwSongFlags & SONG_FIRSTTICK) == 0) InvertLoop(&Chn[nChn]); | |
// Process special effects (note delay, pattern delay, pattern loop) | |
+ if (cmd == CMD_VELOCITY) | |
+ { | |
+ //:xy --> note delay until tick x, note cut at tick x+y | |
+ nStartTick = (param & 0xF0) >> 4; | |
+ int cutAtTick = nStartTick + (param & 0x0F); | |
+ NoteCut(nChn, cutAtTick); | |
+ } else | |
if ((cmd == CMD_MODCMDEX) || (cmd == CMD_S3MCMDEX)) | |
{ | |
if ((!param) && (m_nType & (MOD_TYPE_S3M|MOD_TYPE_IT|MOD_TYPE_MPT))) param = pChn->nOldCmdEx; else pChn->nOldCmdEx = param; | |
@@ -1968,11 +1975,6 @@ | |
} | |
break; | |
//rewbs.smoothVST end | |
- | |
- //rewbs.velocity | |
- case CMD_VELOCITY: | |
- break; | |
- //end rewbs.velocity | |
// IMF Commands | |
case CMD_NOTESLIDEUP: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment