Banner
Views: 778,986,892
Time:
16 users online: autisticsceptile1993,  bebn legg, chickaDEE Magazine, Christian07, dfade, DPBOX, Green Jerry, MarkVD100,  Meirdent,  musicalman, SiameseTwins,  Tahixham, The Hacking Yoshi, TheMorganah, TomCube, Zandro - Guests: 52 - Bots: 203 Users: 40,840 (1,676 active)
Latest: GoldenWarrior
Tip: Use the Iggy/Larry Battle Tools to edit Iggy/Larry's platform.Not logged in.
=-Command ?
Forum Index - SMW Hacking - SMW Hacking Help - Custom Music - =-Command ?
Pages: « 1 »

Recently I saw some song with passages like c=48 or something, now I wonder what this means or does...?

--------------------
---------------
iirc, the = command is used for direct note length.

A whole note uses 192 "ticks". If you wanted a whole note it would be something like c=192.

most commonly used lengths however (not counting triplets) are...

Code
1 ............... 192
2 ............... 96
4 ............... 48
8 ............... 24
16 .............. 12
32 .............. 6
64 .............. 3
2^4 ............. 144
2^8 ............. 120
2^16 ............ 108
2^32 ............ 102
2^64 ............ 99
4^8 ............. 72
4^16 ............ 60
4^32 ............ 54
4^64 ............ 51
8^16 ............ 36
8^32 ............ 30
8^64 ............ 27
16^32 ........... 18
16^64 ........... 15
32^64 ........... 9
2^4^8 ........... 168
2^4^16 .......... 156
2^4^32 .......... 150
2^4^64 .......... 147
2^8^16 .......... 132
2^8^32 .......... 126
2^8^64 .......... 123
2^16^32 ......... 114
2^16^64 ......... 111
2^32^64 ......... 105
4^8^16 .......... 84
4^8^32 .......... 78
4^8^64 .......... 75
4^16^32 ......... 66
4^16^64 ......... 63
4^32^64 ......... 57
8^16^32 ......... 42
8^16^64 ......... 39
8^32^64 ......... 33
16^32^64 ........ 21
2^4^8^16 ........ 180
2^4^8^32 ........ 174
2^4^8^64 ........ 171
2^4^16^32 ....... 162
2^4^16^64 ....... 159
2^4^32^64 ....... 153
2^8^16^32 ....... 138
2^8^16^64 ....... 135
2^8^32^64 ....... 129
2^16^32^64 ...... 117
4^8^16^32 ....... 90
4^8^16^64 ....... 87
4^8^32^64 ....... 81
4^16^32^64 ...... 69
8^16^32^64 ...... 45
2^4^8^16^32 ..... 186
2^4^8^16^64 ..... 183
2^4^8^32^64 ..... 177
4^8^16^32^64 .... 93
2^4^8^16^32^64 .. 189


using those = values can greatly reduce the insert size of your txt file.
It's the tick count instead of the note value. It's also used to reduce insertion size of the song.

c1^1 would become c=384

1 is counted as 192 ticks. 192x2 = 384

Here's a quick list of tick counts and the normal note values:

1 = 192 ticks (see example above)
2 = 96 ticks (c2^4 would be 96+48 = c=144)
4 = 48 ticks (c4^8 would be 48+24 = c=72)
8 = 24 ticks (c8^16 would be 24+12 = c=36)
16 = 12 ticks (c16^32 would be 12+6 = c=18)
32 = 6 ticks (c32^64 would be 6+3 = c=9)
64 = 3 ticks

NOTE: This is only useful with alot of ties (c1^1^2^4^8, etc.).

Edit: Gah, Slash Man was faster. Oh well..
Originally posted by Ice Man
c1^1 would become c=384

You can't have a value over 192.

Anyways, instead of memorizing all those numbers, just consider this formula:

192/x

x = Note length. (e.g. 2, 4, 8, 16, 32, 64) 1 is equal to 192, and we can't go any higher than that.

Here's an example. Let's divide and find the solution for c4^8.

c4^8 = c4 + c8
c4^8 = c(192/4) + c(192/8)
c4^8 = c(48) + c(24)
c4^8 = c(72)
c4^8 = c=72

Hope this helped. Doing this saves a ton of bytes to your insert size.
And I made a tool regarding this topic like a few months ago for one of the C3s.

Addmusic tie optimizer - With this tool you don't have to manually turn ^ into = commands. It should make life a whole lot easier!

The tool uses javascript by the way, so have a fast browser with javascript enabled.

--------------------
My blog. I could post stuff now and then
Isn't also the "." to reduce ties like:

c1^2^4^8
to
c1...
?
Originally posted by Maxodex
Isn't also the "." to reduce ties like:

c1^2^4^8
to
c1...
?

They shrink just as much, yes, but you would use the = command for cases like 2^8^32.
Crispy, you can go over 192, at least with AddmusicM and Carol's Addmusic. o_o I've done that more than once and never encountered any problems yet. However, it has been done with rests, but seeing how it worked with them I don't see a problem why it shouldn't work with notes either. :X

Ok I see, so thanks for the many quick answers.

--------------------
---------------
Originally posted by Ice Man
Crispy, you can go over 192, at least with AddmusicM and Carol's Addmusic. o_o

Oh okay. I think I'll stick with HFD's AddMusic, though.
Pages: « 1 »
Forum Index - SMW Hacking - SMW Hacking Help - Custom Music - =-Command ?

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2019 - SMW Central
Legal Information - Privacy Policy - Link To Us


Total queries: 7

Menu

Follow Us On

  • YouTube
  • Twitch
  • Twitter

Affiliates

  • Talkhaus
  • SMBX Community
  • GTx0
  • Super Luigi Bros
  • ROMhacking.net
  • MFGG
  • Gaming Reinvented