Editing Creating cave music
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 3: | Line 3: | ||
The BMS file type is a sequenced music format used in many games. For the cave music in Pikmin 2 however, it is specially-formatted. It mainly contains many short snippets of musical information to be randomized. | The BMS file type is a sequenced music format used in many games. For the cave music in Pikmin 2 however, it is specially-formatted. It mainly contains many short snippets of musical information to be randomized. | ||
− | The CND files are the actual "songs"; they take specific groups of snippets from a BMS file, and endlessly puzzle-piece them together to form a coherent piece of music. | + | The CND files are the actual "songs"; they take specific groups of snippets from a BMS file, and endlessly puzzle-piece them together to form a coherent piece of music. |
− | This guide will function as a walkthrough for creating your own randomly sequencing cave song. | + | This guide will function as a walkthrough for creating your own randomly sequencing cave song. All of the editing will be done in hexadecimal. |
''Requirements:'' | ''Requirements:'' | ||
* A DAW to create your own short MIDIs in, like FL Studio or Logic Pro. A DAW is also great for sketching out your song ideas/song's structure beforehand. | * A DAW to create your own short MIDIs in, like FL Studio or Logic Pro. A DAW is also great for sketching out your song ideas/song's structure beforehand. | ||
* A MIDI to BMS converter, like [[Pikmin 2 custom music|flaaffy]]. You will be generating a lot of tiny BMS files, to turn them into "gestures". | * A MIDI to BMS converter, like [[Pikmin 2 custom music|flaaffy]]. You will be generating a lot of tiny BMS files, to turn them into "gestures". | ||
− | * A basic understanding of hexadecimal, and a hex editor. An editor that can dynamically resize the window is ideal ( | + | * A basic understanding of hexadecimal, and a hex editor. An editor that can dynamically resize the window is ideal. (Hex Fiend on Mac OS is a fantastic example). |
− | |||
− | |||
== Overview of file functions == | == Overview of file functions == | ||
− | Here are some infographics that you can reference at any time | + | Here are some infographics that you can reference at any time. |
<gallery mode="packed-hover" widths=250px heights=250px> | <gallery mode="packed-hover" widths=250px heights=250px> | ||
File:CND_functions.png|Conductor file functions. | File:CND_functions.png|Conductor file functions. | ||
Line 22: | Line 20: | ||
== Setting up your BMS file == | == Setting up your BMS file == | ||
− | |||
Starting with a completely blank BMS file, begin by pasting the following: | Starting with a completely blank BMS file, begin by pasting the following: | ||
<source lang="powershell"> | <source lang="powershell"> | ||
− | + | AC100000 AC11016E CC0210CC 0311AC10 0000AC11 01E0CC04 10CC0511 E70300A0 0003A401 00A30001 C8010000 3CB1C180 0100007F A50101C8 00000025 FE0078C4 00000058 C600E70E 00DF0700 006AE72E 00CF03C8 0000004E E70E00DF 0700006A E72E00CF 03C80000 0060E71E 00E3E700 00E70F00 DF070000 7BC600E7 1F00E3C4 0000006E C4000001 55E70600 CF03E708 00CF03CB 0306E709 00A00003 A70002C8 01000096 A70001C8 0100008E A70003C4 010000BE C4000000 C2C80000 0096DA00 C600E70A 00E70C00 A00003A7 0000C801 0000F0A7 0001C801 000104A7 0002C801 0000FAA7 0003C801 00010EC8 00000109 C4000001 18C80000 0109C400 000118C8 000000C5 C4000001 42E70B00 C600C400 000142C8 000000C5 CB0610CB 0711CB08 04A00504 A93C0580 00A70500 C4010001 4EA93C04 7FFFCF04 E70D00C4 010000BE C600CB08 04A93C04 7FFFCF04 C600B1C1 400028C6 00DB04EF 616161C6 00DB00A4 0801A409 00A40A01 EF342134 C600 | |
</source> | </source> | ||
− | Every cave music BMS begins with this same information | + | Every cave music BMS begins with this same information. |
<br> | <br> | ||
<br> | <br> | ||
− | |||
== Gesture set list == | == Gesture set list == | ||
− | Exactly right after <code> | + | Exactly right after <code>EF342134C600</code> will be a list of every gesture set's location in the BMS. Each entry is the gesture set's hexadecimal location (offset), and each entry in the sequence begins with a "<code>00</code>". <code>FFFFFF</code> indicates the end of this list.<br><br> |
Here is an example of how this sequence should be formatted:<br> | Here is an example of how this sequence should be formatted:<br> | ||
<code>0001B0 0001BF 0001CE 0001D4 0001DA 0001E9 0001F8 0001FE 000204 00020A FFFFFF</code><br> | <code>0001B0 0001BF 0001CE 0001D4 0001DA 0001E9 0001F8 0001FE 000204 00020A FFFFFF</code><br> | ||
Line 42: | Line 38: | ||
Our BMS should now currently look like this:<br> | Our BMS should now currently look like this:<br> | ||
<source lang="powershell"> | <source lang="powershell"> | ||
− | + | AC100000 AC11016E CC0210CC 0311AC10 0000AC11 01E0CC04 10CC0511 E70300A0 0003A401 00A30001 C8010000 3CB1C180 0100007F A50101C8 00000025 FE0078C4 00000058 C600E70E 00DF0700 006AE72E 00CF03C8 0000004E E70E00DF 0700006A E72E00CF 03C80000 0060E71E 00E3E700 00E70F00 DF070000 7BC600E7 1F00E3C4 0000006E C4000001 55E70600 CF03E708 00CF03CB 0306E709 00A00003 A70002C8 01000096 A70001C8 0100008E A70003C4 010000BE C4000000 C2C80000 0096DA00 C600E70A 00E70C00 A00003A7 0000C801 0000F0A7 0001C801 000104A7 0002C801 0000FAA7 0003C801 00010EC8 00000109 C4000001 18C80000 0109C400 000118C8 000000C5 C4000001 42E70B00 C600C400 000142C8 000000C5 CB0610CB 0711CB08 04A00504 A93C0580 00A70500 C4010001 4EA93C04 7FFFCF04 E70D00C4 010000BE C600CB08 04A93C04 7FFFCF04 C600B1C1 400028C6 00DB04EF 616161C6 00DB00A4 0801A409 00A40A01 EF342134 C60000AA AA00AAAA 00AAAA00 AAAA00AA AA00AAAA 00AAAA00 AAAA00AA AA00AAAA 00AAAA00 AAAA00AA AA00AAAA 00AAAA00 AAAAFFFF FF000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 | |
</source> | </source> | ||
You can also add an entire row of padding/zeros after this. You can do this for each section, to better visually separate them. | You can also add an entire row of padding/zeros after this. You can do this for each section, to better visually separate them. | ||
Line 59: | Line 55: | ||
== Gesture set contents == | == Gesture set contents == | ||
A ''gesture set'' is a group of many gestures.<br> | A ''gesture set'' is a group of many gestures.<br> | ||
− | Here, we list each gesture set's contents (which | + | Here, we list each gesture set's contents (which are... the locations of gestures!). Each gesture set begins before the <code>00</code> and ends with <code>FFFFFF</code>.<br><br> |
Here is an example of how the gesture set list should be formatted:<br> | Here is an example of how the gesture set list should be formatted:<br> | ||
<code>000210 00022A 000258 000281 FFFFFF 0002B4 0002D9 000303 000331 FFFFFF 000355 FFFFFF 000361 FFFFFF 0003A8 0003C2 0003F0 000419 FFFFFF 00044C 000471 00049B 0004C9 FFFFFF 0004ED FFFFFF 000543 FFFFFF 000580 FFFFFF 00059E FFFFFF</code><br> | <code>000210 00022A 000258 000281 FFFFFF 0002B4 0002D9 000303 000331 FFFFFF 000355 FFFFFF 000361 FFFFFF 0003A8 0003C2 0003F0 000419 FFFFFF 00044C 000471 00049B 0004C9 FFFFFF 0004ED FFFFFF 000543 FFFFFF 000580 FFFFFF 00059E FFFFFF</code><br> | ||
Line 66: | Line 62: | ||
You can paste the following placeholder information for now:<br> | You can paste the following placeholder information for now:<br> | ||
<code>00CCCC 00CCCC 00CCCC FFFFFF 00CCCC 00CCCC 00CCCC FFFFFF 00CCCC 00CCCC 00CCCC FFFFFF 00CCCC FFFFFF</code><br> | <code>00CCCC 00CCCC 00CCCC FFFFFF 00CCCC 00CCCC 00CCCC FFFFFF 00CCCC 00CCCC 00CCCC FFFFFF 00CCCC FFFFFF</code><br> | ||
− | + | You can expand this list at any time upon adding more gestures/gesture sets, so it might be a good idea to leave a decent amount of of padding/zeros after this. | |
<br><br> | <br><br> | ||
Line 72: | Line 68: | ||
If you have been copy-pasting everything correctly, your BMS will look something like this: | If you have been copy-pasting everything correctly, your BMS will look something like this: | ||
<gallery mode="packed-hover" widths=300px heights=300px> | <gallery mode="packed-hover" widths=300px heights=300px> | ||
− | File:BMS_file_progress_1.png|Orange is "gesture set list", | + | File:BMS_file_progress_1.png|Orange is "gesture set list", green is "timing ruleset list", and blue is "gesture set contents" |
</gallery> | </gallery> | ||
Once again, you can add as much padding between each section as you want, it will work fine. | Once again, you can add as much padding between each section as you want, it will work fine. | ||
− | |||
== Creating gestures == | == Creating gestures == | ||
First, you should sketch out your song idea in your DAW, and then cut your song into tiny blocks. These blocks will be your song's individual gestures. You should also consider dragging these blocks around in various arrangements to make sure they sound good in any order.<br><br> | First, you should sketch out your song idea in your DAW, and then cut your song into tiny blocks. These blocks will be your song's individual gestures. You should also consider dragging these blocks around in various arrangements to make sure they sound good in any order.<br><br> | ||
Line 92: | Line 87: | ||
Gestures use same the note/music information as standard BMS songs.<br> | Gestures use same the note/music information as standard BMS songs.<br> | ||
− | You should have converted all your MIDIs into BMS files. Open up one of your converted BMS files, and look for the first note/pitch value. If you used [[Pikmin 2 custom music|flaaffy]], this will most likely be | + | You should have converted all your MIDIs into BMS files. Open up one of your converted BMS files, and look for the first note/pitch value. If you used [[Pikmin 2 custom music|flaaffy]], this will most likely be at <code>0x1D</code>. Copy this note, all the way to the end of the sequence, which should be <code>FF</code>. |
<gallery mode="packed-hover" widths=600px> | <gallery mode="packed-hover" widths=600px> | ||
− | File:Copy_pasting_BMS_info.png|The value "2D" here is | + | File:Copy_pasting_BMS_info.png|The value "2D" here is the very first note of the sequence. Copy this, all the way to "FF". |
</gallery> | </gallery> | ||
To add your gesture, start it with <code>C40000015D</code>, then paste in what you copied. Each gesture should end with that <code>FF</code>. Add as many gestures as you please! | To add your gesture, start it with <code>C40000015D</code>, then paste in what you copied. Each gesture should end with that <code>FF</code>. Add as many gestures as you please! | ||
Line 104: | Line 99: | ||
So, how do we choose how often gestures will play? Will a gesture play every beat? Every 1/2 a beat? You will need to add a timetable for that! | So, how do we choose how often gestures will play? Will a gesture play every beat? Every 1/2 a beat? You will need to add a timetable for that! | ||
A timetable is a sequence that dictates when gestures should play. A timetable ends with <code>FFFF</code>. You can make a timetable as complex as you like.<br> Some examples of timetables you can use are:<br> | A timetable is a sequence that dictates when gestures should play. A timetable ends with <code>FFFF</code>. You can make a timetable as complex as you like.<br> Some examples of timetables you can use are:<br> | ||
− | * <code> | + | * <code>0780FFFF</code> Play a gesture every 16 beats.<br> |
− | * <code> | + | * <code>03C0FFFF</code> Play a gesture every 8 beats.<br> |
− | * <code> | + | * <code>01E0FFFF</code> Play a gesture every 4 beats.<br> |
− | * <code> | + | * <code>03C003C003C001E001E001E001E003C0FFFF</code> This sequence will play a gesture every 8 beats (3x), play a gesture every 4 beats (4x), then play a gesture for 8 beats (1x), in that order.<br> |
− | * <code> | + | * <code>00F0FFFF</code> Play a gesture every 1/2 note (every 2 beats).<br> |
− | * <code> | + | * <code>0078FFFF</code> Play a gesture every 1/4 note (every beat).<br> |
− | * <code> | + | * <code>003CFFFF</code> Play a gesture every 1/8th note.<br> |
− | * <code> | + | * <code>001EFFFF</code> Play a gesture every 1/16th note.<br> |
− | * <code> | + | * <code>003C0078001EFFFF</code> This sequence will play a gesture for an 1/8th note, play a gesture for a 1/4 note, then play a gesture for a 1/16th note, in that order.<br> |
Considering that <code>001E</code> (30 in decimal) is a 1/16th note, you can create any specific timing you want. Just add another 30 to the value for each additional sixteenth note in length.<br> | Considering that <code>001E</code> (30 in decimal) is a 1/16th note, you can create any specific timing you want. Just add another 30 to the value for each additional sixteenth note in length.<br> | ||
− | For example, Soil 1's enemy mix piano plays a | + | For example, Soil 1's enemy mix piano plays very rapidly; its timetable uses a value of 90, which looks like <code>005AFFFF</code>. The gestures last for three sixteenth notes.<br> |
You can insert your timetables anywhere at the end of your BMS. | You can insert your timetables anywhere at the end of your BMS. | ||
<gallery mode="packed-hover" widths=250px heights=250px> | <gallery mode="packed-hover" widths=250px heights=250px> | ||
− | File:BMS_file_progress_3.png|Each timetable has a | + | File:BMS_file_progress_3.png|Each timetable has a cyan box around it. |
</gallery> | </gallery> | ||
Line 123: | Line 118: | ||
Once you have your gestures and timetables inserted, go back and fill in those <code>00AAAA</code>, <code>00BBBB</code>, <code>00CCCC</code> placeholders with the locations of your gesture sets, timetables, and gestures you want to use. Remember that gesture sets begin with the <code>00</code>. | Once you have your gestures and timetables inserted, go back and fill in those <code>00AAAA</code>, <code>00BBBB</code>, <code>00CCCC</code> placeholders with the locations of your gesture sets, timetables, and gestures you want to use. Remember that gesture sets begin with the <code>00</code>. | ||
− | Also in the very beginning of your BMS, make sure | + | Also in the very beginning of your BMS, make sure the value at <code>0x14</code> has the location of where your timing ruleset list begins. |
<gallery mode="packed-hover" widths=250px heights=250px> | <gallery mode="packed-hover" widths=250px heights=250px> | ||
File:BMS_file_progress_4.png|Put the location of where the "timing ruleset list" begins here. | File:BMS_file_progress_4.png|Put the location of where the "timing ruleset list" begins here. | ||
Line 142: | Line 137: | ||
Each column explained: | Each column explained: | ||
− | * | + | * 1: Initial delay. How many beats until this track starts running. In the vanilla game, you can notice how some song's melodies do not immediately begin playing upon the start of level. This is useful for that; ease the listener into the music. |
− | * | + | * 2: Text string. You can make this say whatever you like. Useful for keeping track of what you want each track to be, like "Lead", "Trumpet", "MelodyA"/"MelodyB", "Bass", or "Drums" |
− | + | * 3: Track copy. Select a previous track # to copy the gestures from. If the track its copying plays "gesture 3" from its gesture set, this track will also play its "gesture 3". Often used for treasure mix instruments. You can have them use different gesture sets if you like. | |
− | * | + | * 4: Echo strength. |
− | * | + | * 5: If set to 1, the values in this track's timetable will always be played in order, in a loop. If set to 0, it will randomly select values from its timetable, thus, allowing you to randomize when gestures play. |
− | * | + | * 6: Bank number. |
− | * | + | * 7: Program number. |
− | * | + | * 8: Gesture set, select the set # you want to use from the BMS. |
− | * | + | * 9: Timing ruleset, select the set # you want to use from the BMS. |
− | * | + | * 10: How many gestures this track will play, before playing "silent gestures". Linked to below. These function as a sort of on/off cycle. |
− | * | + | * 11: How many "silent gestures" this track will play, before playing normal gestures. Linked to above. These function as a sort of on/off cycle. |
− | * | + | * 12: If notes are being transposed down (see below), this is set to FF. But this column doesn't actually do anything, so you don't need to edit this. |
− | * | + | * 13: Transpose all notes played by this track. To transpose up, use values 1-127. To transpose down, use the sign 2 compliment (values 128-255). |
− | * | + | * 14: Volume. |
− | * | + | * 15: Stereo panning. |
− | * | + | * 16: If set to 1, all gestures will be delayed by 1/2 a beat. |
<br> | <br> | ||
− | Some | + | Some considerations: |
− | * You can use the on/off cycle feature (column | + | * You can use the on/off cycle feature (column 10 and 11) to make your melodic instrument "take a break" every once in a while. You can have it play 4 gestures, but then be silent for 2. |
* If your timing ruleset is strict (as in, the timings for when gestures occur is always consistent), something fun to try is to have the melody be a back-and-forth between two different instruments. Set the initial delay for the second instrument to be longer than the first one, and then cleverly use the on/off cycle to have the instruments take turns sounding a gesture. This is done for the melody in the Bulblax Kingdom and Frontier Cavern for example. | * If your timing ruleset is strict (as in, the timings for when gestures occur is always consistent), something fun to try is to have the melody be a back-and-forth between two different instruments. Set the initial delay for the second instrument to be longer than the first one, and then cleverly use the on/off cycle to have the instruments take turns sounding a gesture. This is done for the melody in the Bulblax Kingdom and Frontier Cavern for example. | ||
− | * If you are using the "track copy" feature (column | + | * If you are using the "track copy" feature (column 3), you can have the primary instrument play a melody, and have this instrument always play chords that perfectly match that melody. |
+ | * The half-beat delay achieved with column 16 and the "track copy" feature can be used to create an interesting stereo effect; make the copying track quieter and panned to a different speaker! | ||
== Mapping the tracks == | == Mapping the tracks == | ||
With all that done, don't forget to edit the song's [[Trackmap parameters|trackMap]]! Edit your song in the trackMap files in either <code>/user/Totaka</code> or <code>/user/Wakai</code>, and set how many instruments will be in each mix. It goes in order from: Main Mix, Task (event), Treasure (otakara), Enemy near (kehai), Combat mix, and Spiderwort mix (ground). Although you cannot find Spiderworts underground, you will have to sacrifice at least one track for that mix. You cannot set any of the mixes to have 0 instruments in them. | With all that done, don't forget to edit the song's [[Trackmap parameters|trackMap]]! Edit your song in the trackMap files in either <code>/user/Totaka</code> or <code>/user/Wakai</code>, and set how many instruments will be in each mix. It goes in order from: Main Mix, Task (event), Treasure (otakara), Enemy near (kehai), Combat mix, and Spiderwort mix (ground). Although you cannot find Spiderworts underground, you will have to sacrifice at least one track for that mix. You cannot set any of the mixes to have 0 instruments in them. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[[Category:Pikmin 2]] | [[Category:Pikmin 2]] |