MML Instrument Conversion Guide
This guide will show you how to take existing MML and modify it to run on the "weird" instruments, namely the Guitar, Cello, Violin, and (US/JP) vocals. This does not cover creating MML by hand or from MIDI, and assumes that you already have something that sounds acceptable on the "normal" Mabinogi instruments (along with a basic understanding of MML and 3MLE).
If your version of 3MLE does not include these instruments, then use this MSXspirit.def file, I've updated it to include all the instruments out in NA, mark which vocals are which, use the proper names, etc. Also go into 3MLE's settings and make sure that it's set to actually use Mabi's sound bank, since a lot of 3MLE distributions out there come packaged with a static sound bank (that won't be updated when your game updates).
Each step is marked for which instruments it applies to.
Step 1: N# Removal (Guitar, Violin, Cello, Vocals)
MML has a command where you can specify a note explicitly instead of within the current octave. This is used because it can shorten the length of the MML (turning something like ">>C+<<" into "n47", three less characters), but it makes editing the MML more difficult because n# notes will not follow octave changes, neither relative or absolute.
[Image: http://s28.postimg.org/9icm8oekd/n_moved.png]
Above the red line is the original stream of notes. Below is that stream, moved down. Notice how some notes 'stay behind'. Those are the notes that need to be converted back into normal ones. Unfortunately there's no automatic way to remove them, you need to do it by hand.
At least 3MLE will highlight them in red for you!
[Image: http://s28.postimg.org/ycw42qzel/n_text.png]
In most cases, just memorize where the existing n# note is positioned, then replace "n43" or whatever with ">c<" or "<c>", then adjust the "c" until the note is in the place it was before. Generally if you find a segment of the song that has a lot of n# notes that are the same, you can find just the first one then copy-paste the rest (or find-and-replace if you have a code-friendly text editor).
Step 2: Octave Shifting (Guitar, Violin, Cello, Vocals)
The main thing that makes these instruments different is that they only work in the lowest few octaves. To be honest the guitar does technically work in the higher octaves, but it uses a different sample in those octaves which makes that annoying sound people hate, and some of the notes stutter noticeably while others don't which makes composing something in that range hit-or-miss. The below screenshot marks the general area that these instruments get squeaky or fail at in red, and the general safe zone as green.
[Image: http://s17.postimg.org/7iyx0edrj/lowest_range.png]
The above is a screenshot of the full (natural, barring o0 piano samples) note range for Mabinogi instruments. Here's the MML so you can test the various instruments for yourself, as each one has slightly difference ranges (even the male and female voices differ from each other by a few notes).
[code]MML@t120v15o1l8cc+dd+eff+gg+aa+b>cc+dd+eff+gg+aa+b>cc+dd+eff+gg+aa+b>cc+dd+eff+gg+aa+b>cc+dd+eff+gg+aa+b>cc+dd+eff+gg+aa+b>cc+dd+eff+gg+aa+b>cc+dd+eff+gg+aa+b,,;[/code]
- Violin: o1e ~ o4b
- Cello: o1c ~ o3a+
- Vocal (Male): o1f ~ o4c+
- Vocal (Female): o1c ~ o3a
- Choir (Male): o1d ~ o3a+
- Choir (Female): o1g ~ o4c
This part is way less work than Step 1. For each track, look for an o# near the beginning. Change it to o1 to o3, depending on what the original looked like (try to keep the colors in the same top-to-bottom order as the original). If there isn't one, add it. In the end, when zoomed out your edited MML should all be near the bottom like this.
[Image: http://s30.postimg.org/taebojywh/in_the_low.png]
Step 3: Volume Compensation (Guitar, Violin, Cello)
For most instruments in Mabinogi, the higher notes are softer while the lower notes are louder. The guitar having its normal range compressed so much will show this issue the most, but the violin and cello exhibit this to some extent too. You may need to make the track that's lower softer while making the higher ones louder to compensate, even if the lower one is the melody.
[Image: http://s11.postimg.org/isqkts1c3/volume.png]
If you're doing a jam session and some instruments (like the violin) play a single track but are still too soft, then you can try duplicating that track so it plays the same notes over itself, resulting in a louder sound.
Step 4: Overlap Removal (Guitar, Violin, Cello, Flute, Roncadora, etc.)
Mabinogi has a bug when a single instrument/player plays the same note on two tracks at different lengths. The bug causes all of the notes to cut out at the same time that the shortest one does. This bug does not show up in 3MLE, only in Mabinogi once you compose and play the scroll. This bug only notably affects instruments with sustained notes, so things like the mandolin, lyre, and hand chimes are not bothered by it.
Here's an example, along with the MML to recreate it, best seen on the guitar or flute.
[Image: http://s30.postimg.org/41bkvahdd/overlap.png]
[code]MML@l16v15o2crrrcrrrcrrrcrrr<arrrarrrarrrarrr>crrrcrrrcrrrcrrr<arrrarrrarrrarrr>arrrbrrr>crrrdrrrerrrfrrrgrrrarrr<<arrrbrrr>crrrdrrrerrrfrrrgrrrarrr,t120v15o1aaaaaaaaaaaaaaaaab>cdefga<ab>cdefga,;[/code]
I suggest going into the 3MLE settings and turning the alpha/transparency setting on, then restarting 3MLE. This will make the notes semi-transparent, so it's slightly easier to tell when you have overlapping notes.
[Image: http://s16.postimg.org/n2q7ws1vp/settings.png]
If the overlapping notes contribute to the melody or overall feel, you can try shifting the overlapping section up or down an active to get it out of the way, but if that's not possible or if the overlapping notes aren't important (like some bass that would get overplayed anyways) you can just turn those overlapping notes into rests.
Step 5: Party/Jam Timing Adjustment (Violin, Cello)
This last step only applies if you're attempting to use the violin or cello in a party/jam with other non-violin/cello instruments. Unlike most of Mabinogi's instruments, the violin and cello both have an attack time (or "perceptual onset"), meaning that the instant the note starts is not always the same instant that our ears/minds would detect it as starting.
To account for this, make the violin/cello track start slightly early, like while the other tracks have "r2" after the tuner, the violin/cello track could have "r4.r10". Of course the actual timings are up to you, and may need to be adjusted more than once as the violin and cello have different timings in different ranges. Below you'll find a visual example (piano+cello duet, cello being blue), followed by the MML.
[Image: http://s2.postimg.org/47o6foya1/cello_early.png]
[code]MML@r2t90r2v13o2d8l16a>f8<a>ef<d8a>f8<a>ef<<a+8>f>f8<f>ef<<a+8>f>e8<f>d8<f8>ca8cga<f8>ca+8ca8<c8g>g8<g>fg<c8g>f8<g>e8<d8a>f8<a>ef<d8a>f8<a>ef<<a+8>f>f8<f>ef<<a+8>f>e8<f>d8<f8>ca8cga<f8>ca+8ca8<c8g>g8<g>fg<c8g>f8<g>e8<d8a>f8<a>ef<d8a>f8<a>ef<<a+8>f>f8<f>ef<<a+8>f>e8<f>d8<f8>ca8cga<f8>ca+8ca8<c8g>g8<g>fg<c8g>f8<g>e8<<a+8>>cd8<f>cd<<a+8>>cd8<f>cd<<a8>bb+8ebb+<a8>bb+8ebb+d8a>e8<a>cd<d8a>e8<a>cd<d8a>e8<a>cd<d8a>e8<a>cd<<a+8>>cd8<f>cd<<a+8>>cd8<f>cd<<a8>bb+8ebb+<a8>bb+8ebb+<g8>ab8dab<g8>ab8dab<a8>b>c+8<ea>c+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