Language…
20 users online: 1UPdudes, 3Z3RD, anonimzwx, autisticsceptile1993, bandicoot,  Eevee, Golden Yoshi, Green,  Hooded Edge, JinRokhZenobi, Joaokk19990, Laurindo78, Leaf_7, mathie,  Mellonpizza, RPG Hacker, signature_steve, slimesoup,  Telinc1, yoshisisland - Guests: 252 - Bots: 141
Users: 64,442 (2,492 active)
Latest user: PsyGemini

Wakana's Music Porting Tutorial - From the Basics to the Advanced

Custom MusicPortingSamples

#thp{O_O1}
oh oof thanks for helping me!
#tb{:]}
but now it is saying
Originally posted by AMK
There were errors while compiling:

File: Boss/boss sampled.txt Line: 11:
The specified sample was not included in this song.

Code
#amk 2
#path "samples"
#samples
{
#default
"piano.brr"
"steeldrums.brr"
}
#instruments
{
"piano.brr" $FF $EF $B8 $03 $1A ;@30
"steeldrums.brr" $9E $1F $B8 $05 $48 ;@31
}



Keep your spirits high, and your noodle sweaty!
Originally posted by Sheeplover1011
oh oof thanks for helping me!
#tb{:]}
but now it is saying [...]

Do you have a "samples" folder inside the main samples folder? If that's not the case then there's no need for the #path "samples" line. If your samples are within a folder inside the samples folder, then you should have that folder's name in #path.
LINKS Twitter | YouTube | SoundCloud | Fortaleza Reznor
to hear birds and see none.
#thp{O_O1}
I do have a samples folder inside of the main samples folder.

I'm very confuzzled.


Keep your spirits high, and your noodle sweaty!
Originally posted by Sheeplover1011
I do have a samples folder inside of the main samples folder.

I'm very confuzzled.

That's certainly something to be confuzzled about. Mind sharing a screenshot of your samples folder? (and your samples samples folder too, just in case)
LINKS Twitter | YouTube | SoundCloud | Fortaleza Reznor
to hear birds and see none.
#thp{O_O1}
Originally posted by my files

its in the folder that came with addmusicK.
example. addmusick/samples/samples


Keep your spirits high, and your noodle sweaty!
Originally posted by Sheeplover1011
its in the folder that came with addmusicK.
example. addmusick/samples/samples

I honestly have no clue what might be going on. I'd have to check how both your music and samples folder look. Maybe having your song inside a folder, which might cause some sort of path mix up? Try redownloading AMK in case you accidentally erased something.
LINKS Twitter | YouTube | SoundCloud | Fortaleza Reznor
to hear birds and see none.
I'd rename the folder just in case. That aside can you show us your music folder? If you have the same filename in multiple directories it can create problems. That is I believe you have those 2 brrs in your music folder and forgot to remove them.
#thp{O_O1}
Nvm i fixed it


Keep your spirits high, and your noodle sweaty!
I'm just passing by to say this thread is really helpful!

The description of spc versus midi is perfect, the demonstration with the piano roll is neat and the setup offered with the SPC Player is the dream workflow.

I was kind of mystified by custom music until I digged this tut, but now I've found a simple port to train myself, and it's from Secret of Mana! I sure will upload it to the db when I'm done.

Actually it's not a language very different from Trackers or live coding, it just needs music skill (ofc) and the ability to translate music notes into code. Also, I've found some midi files featuring multiple channels and chords, those ones may be more difficult to translate into 6-8 channels only, so this is material for later.

I'm overly excited about this yo!
Is it normal that the piano (09) makes very short and "abrupt" sounds? I thought my music had a problem because notes were quite short and abrupt, but I switched to electric piano, and then to strings, and notes are ok.
Problem is, it's really a piano music
Super Mario Pants World
Luigi's Lost Levels
New Super Mario Pants World
Luigi's Lost Levels 2 - Back With A Revenge
Luigi's Lost Levels 3 - Electrik Boogaloo
VLDC12 - 72HoKaizo#1
Yeah, that's how the piano sample is like.
If you want to make a piano tune that has a lot of sustained notes, then perhaps use @13, although that sample doesn't sound really similar to a piano, unlike @9.
You can use the #optimized @9 instead of the #default @9, but personally I think it sounds really bad unless it's mixed in very well.
Twitter
Originally posted by Wakana
You can go here to get the last relase

*Release



EarthBound DeviantArt Hack!
hi; I didn't see global music covered in this tut.
How do I make sure a track is p-switch, starman or victory-friendly?
I believe you can generate SPCs by putting the following command in a .bat file:
Code
addmusick -dumpsfx


Never tried it before, but it should work. If it does, please mention it in the tutorial.

Edit: Fixed a typo with the batch command.
My Mode 0 guide.

My Discord server. It has a lot of archived ASM stuff, so check that out!

Made a tiny fix, addressed by SilSinn9801 in Discord:

Quote
Length 92 (triplet of 32, or {32}, not sure if it's invalid)
- Length 184 (triplet of 64, or {64}, not sure if it's invalid)

The two lengths there were wrong. Correct one are supposed to be 96 and 192 respectively.
I still doubt if anyone ever tried those lengths out but w/e.
Originally posted by Wakana
Made a tiny fix, addressed by SilSinn9801 in Discord:

Quote
Length 92 (triplet of 32, or {32}, not sure if it's invalid)
- Length 184 (triplet of 64, or {64}, not sure if it's invalid)

The two lengths there were wrong. Correct one are supposed to be 96 and 192 respectively.
I still doubt if anyone ever tried those lengths out but w/e.

this is wrong, {32} is 48 and {64} is 96.
32 is 6 ticks, 48 is 4 ticks, and 4 is a third shorter than 6, so it adds up (4+4+4 = 6+6).
LINKS Twitter | YouTube | SoundCloud | Fortaleza Reznor
to hear birds and see none.
Originally posted by Maxodex
Originally posted by Wakana
Made a tiny fix, addressed by SilSinn9801 in Discord:

Quote
Length 92 (triplet of 32, or {32}, not sure if it's invalid)
- Length 184 (triplet of 64, or {64}, not sure if it's invalid)

The two lengths there were wrong. Correct one are supposed to be 96 and 192 respectively.
I still doubt if anyone ever tried those lengths out but w/e.

this is wrong, {32} is 48 and {64} is 96.
32 is 6 ticks, 48 is 4 ticks, and 4 is a third shorter than 6, so it adds up (4+4+4 = 6+6).

Even worse, I just looked at the note length and the triplet length in the tutorial have all one mistake: Their base length is tripled but in reality, you have to multiply their length by 1.5 or 3/2.

This is their actual length:
Quote
- Length 1
- Length 2

- Length 3 (triplet of 2, or {2})
- Length 4
- Length 6 (triplet of 4, or {4})
- Length 8
- Length 12 (triplet of 8, or {8})
- Length 16
- Length 24 (triplet of 16, or {16})
- Length 32
- Length 48 (triplet of 32, or {32})
- Length 64
- Length 96 (triplet of 64, or {64})

Not sure how to enter the triplet of 1 besides {1} but you can't use a whole triplet anyway since its length 128 ticks or $80 which denotes commands in NintSPC (same deal why x1 is translated to x2^2).

Custom MusicPortingSamples