ModPlug Central

OpenMPT => Help and Questions => Topic started by: FreezeFlame(Alchemy) on January 12, 2014, 21:26:49

Title: How can i make an specific pattern replay funcion work?
Post by: FreezeFlame(Alchemy) on January 12, 2014, 21:26:49
Like the ones that playback backward till an specific row is reached and the one that allows after the B command (Position Jump) is reached and starts not in row 0 of the specified pattern,but 12.
Title: Re: How can i make an specific pattern replay funcion work?
Post by: Saga Musix on January 12, 2014, 23:08:20
I'm not sure what the question is... are you looking for the "break to row" (D in MOD/XM, C in IT/S3M) effect?
Title: Re: How can i make an specific pattern replay funcion work?
Post by: FreezeFlame(Alchemy) on January 13, 2014, 06:04:22
Hold on abit. With ''Break to row'', is it possible to make the pattern play backward, or can it be activated seperate so that it only breaks to X row when the track starts looping in X position?
Title: Re: How can i make an specific pattern replay funcion work?
Post by: Saga Musix on January 13, 2014, 11:20:58
You can make a pattern play backward by combining break to row with jump to pattern on the same row.
Title: Re: How can i make an specific pattern replay funcion work?
Post by: LPChip on January 13, 2014, 11:27:29
It is not at all possible to just play a pattern in reverse. What you are looking for requires lots of programming in the pattern and orderlist to make it seem like the pattern plays in reverse.

Every row should have the Dxx (MOD/XM) or Cxx (S3M/IT) effect and jump to one row up, and there should be a Bxx command on each row to jump to the same order (or what some people do is insert the same pattern in the orderlist.

You can do much more than just a reversed pattern playback effect though. Here's a good example:
YouTube: Strobe - Mothership FTW (http://www.youtube.com/watch?v=v3EFr6NsDyI) and
YouTube: Do it Patternstyle 2 (http://www.youtube.com/watch?v=JkfrtNcXMgg)
Title: Re: How can i make an specific pattern replay funcion work?
Post by: FreezeFlame(Alchemy) on January 13, 2014, 13:47:00
QuoteYou can do much more than just a reversed pattern playback effect though. Here's a good example:
YouTube: Strobe - Mothership FTW and
YouTube: Do it Patternstyle 2
Watched those, my jaw dropped. Haven't in my live saw something like that done with trackers. Its just plain awesome :).

Eventhoe it wasn't what i meanth(the animated art,the rest was), it do made me curious. Gonna try that out someday.
Title: Re: How can i make an specific pattern replay funcion work?
Post by: LPChip on January 13, 2014, 14:00:37
It started as playing a pattern backwards, but got expanded to all kinds of animations. They all use the same principle, so I thought if you realize that you may understand what they do too (with the additionally information given here).
Title: Re: How can i make an specific pattern replay funcion work?
Post by: FreezeFlame(Alchemy) on January 16, 2014, 22:17:03
I think i figured the code for this out.

Ps:Used Impulse Tracker 'C' ('Pattern Break') command.
01 is the Bass, 02 is an Lead.
ModPlug Tracker  IT
|C-302......|C-401......
|...........|C#401......
|...........|...........
|...........|D-401......
|...........|........C1F
|...........|...........
|...........|........C00
|...........|........C06
|...........|........C07
|...........|........C08
|...........|........C09
|...........|........C0A
|...........|........C0B
|...........|........C0C
|...........|........C0D
|...........|........C0E
|D#302......|........C0F
|...........|........C10
|...........|........C11
|...........|........C12
|...........|E-401...C13
|...........|........C14
|...........|E-401...C15
|...........|........C16
|...........|E-401...C17
|...........|........C18
|...........|C-401...C19
|...........|........C1A
|...........|C-401...C1B
|...........|........C1C
|...........|C-401...C1D
|...........|........C1E

Goes nicely backward till row 6. Then it restarts.
Title: Re: How can i make an specific pattern replay funcion work?
Post by: LPChip on January 17, 2014, 11:30:59
Next thing you want to do is either add a Bxx command on all rows that have a Cxx command or have the same pattern the exact amount of Cxx -1 (because the first skips to the end on the same pattern) times in the orderlist. Otherwise you won't see it when the actual song plays.

For the Bxx command, you need to refer to the same order.