Language…
15 users online: akawo, Alex No, Big Brawler, CroNo, Green, Hammerer, kurtistrydiz, LadiesMan217, Mecke1990, rafaelfutbal, Rykon-V73,  Segment1Zone2, Spedinja, steelsburg, Tulip Time Scholarship Games - Guests: 293 - Bots: 692
Users: 64,795 (2,369 active)
Latest user: mathew

How to get AMK custom samples to work?

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"
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
}

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.