Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /storage/content/49/145849/famitracker.com/public_html/forum/classes/dbHandler.php on line 29 FamiTracker
Login:
Menu:
Post: Author:
FamiTracker > General > Bug Reports & Feature Requests > Cleanup function: Defragment pattern IDs Owner: Stratelier New post
Page 1 of 1 Sort:  
Cleanup function: Defragment pattern IDs Posted: 2014-09-12 17:55  (Last Edited: 2014-09-12 17:58) Reply | Quote
Stratelier



Member for: 2954 days
Status: Offline

#61822
Basically, a function to renumber your pattern IDs so they look more organized and consistent in the Frame Editor. (With side benefits for text export.)

- FT starts scanning the current song from the top (frame 00)
- For each pattern that is encountered the first time, renumber its pattern ID as = frame ID (actual notes in this frame are not changed, we're just remapping the pattern ID numbers). If this pattern is used repeatedly, find all subsequent instances and change them to reflect the new pattern ID.

_______________________
Where to find me:
YouTube: [url=http://youtube.com/user/stratelier]http://youtube.com/user/stratelier
DeviantArt: [url=http://stratadrake.deviantart.com/]http://stratadrake.deviantart.com/
Posted: 2014-09-12 18:01 Reply | Quote
CheeseGuy99

Avatar

Member for: 3752 days
Location: Amarillo, TX
Status: Offline

#61823
I see what you mean here. So, basically, you'd be able to use the frame editor to compose a song, then clean it up with that to make it look like you only used the new frame function. That seems like it'd be mainly aesthetics, at least to me.

_______________________
**** COMMODORE 64 BASIC V2 ****

Some other places I've tried to conquer:
[url=http://chipmusic.org/ch3dd4r]Le Chipmusic
[url=http://battleofthebits.org/barracks/Profile/CH3DD4R/]Le BattleOfTheBits
Posted: 2014-09-13 05:36 Reply | Quote
Stratelier



Member for: 2954 days
Status: Offline

#61847
Yup it [b]is[/b] mostly aesthetics (as are most cleanup functions), but it does also have a practical application if you need to Text Export, since exports are ordered/grouped by pattern ID rather than frame ID.

_______________________
Where to find me:
YouTube: [url=http://youtube.com/user/stratelier]http://youtube.com/user/stratelier
DeviantArt: [url=http://stratadrake.deviantart.com/]http://stratadrake.deviantart.com/
Page 1 of 1 Sort: