Banner
Views: 853,109,343
Time:
15 users online: Alecazam, Arcten, brickblock369, Enan63, FrozenHydra,  JamesD28, KaidenThelens, kamekku14, Katrina,  KevinM, Koop the Koopa, kurb kid, Mariotag1, S.U, Sir_Danny_TM - Guests: 46 - Bots: 59 Users: 47,051 (2,518 active)
Latest: Natedogg62
Tip: Coins and Dragon Coins guide your player through the level and mark progress. Don't forget to place them!Not logged in.
How to get AMK custom samples to work?
Forum Index - SMW Hacking - SMW Hacking Help - Custom Music - How to get AMK custom samples to work?
Pages: « 1 »
I can't get custom samples to work.
1. Where do I put custom samples if I will use both custom and original samples?
2. What is the default/best gain value?
3. How does the tune value correspond to the pitch of the sample?

I get error "Could not find sample .\04 SMW @4.brr"

--------------------
nyanpasu~
Could you explain what your approach to this is?
I suggest you read the ReadMe thoroughly since it explains pretty much all of AMK's functions.

--------------------
Yes I read the readme. It doesn't say which folder to put per-song samples. I still don't know.

I also don't know how to mix original and custom instruments. Do I need to redeclare samples used in the original instruments?
Also how are custom instruments numbered? Is it recommended to use inline per-channel ADSR or create a cust instrument instead?

This is my nonworking header.

Code
#amk 1

#samples
{
		#default
		"04 SMW @4.brr"
		"ds_rr/rock_organ.brr"
}

#instruments
{
        "rock_organ.brr" $6F $CD $80 $80 $00
}



--------------------
nyanpasu~
Quote
Do I need to redeclare samples used in the original instruments?

If you included #default you have nothing to worry about original samples, since that includes all of them.
Therefore you don't need to include "04 SMW @4.brr".

Quote
Also how are custom instruments numbered? Is it recommended to use inline per-channel ADSR or create a cust instrument instead?

Custom instruments start at @30 and so on. I would definitely reccomend using #instruments for custom samples, but it's up to you if you find the other way easier.

Quote
#instruments
{
        "rock_organ.brr" $6F $CD $80 $80 $00
}


Also you do need to include the folder path (ds_rr) again there, as you did in #samples. But you can also use #path "ds_rr" and omit the path everywhere else.
Quote
#instruments
{
        "rock_organ.brr" $6F $CD $80 $80 $00
}

Also you need to add $80 to first value of ADSR of each instrument. So you need to replace $6F with $EF.

--------------------
________________________________________________________
Mario the Gaul
A pitch value of $80 is probably not a very bright idea either. You're better off sticking to values from $02-$06

--------------------
What is the correct procedure to create a brr sample?
amk complains the "file size - 2" is not a multiple of 9.

GOT IT! Loop header is little-endian 16-bit integer equal to (loop sample * 9 / 16). Pointer to the loop target byte of the headerless BRR. (header is removed before inserting).

And choired long samples are IMPOSSIBLE to make.

--------------------
nyanpasu~
Pages: « 1 »
Forum Index - SMW Hacking - SMW Hacking Help - Custom Music - How to get AMK custom samples to work?

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

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


Menu

Follow Us On

  • YouTube
  • Twitch
  • Twitter

Affiliates

  • Super Mario Bros. X Community
  • ROMhacking.net
  • Mario Fan Games Galaxy