FamiTone - audio library (release)
Moderator: Moderators
-
- Posts: 1318
- Joined: Thu Apr 23, 2009 11:21 pm
- Location: cypress, texas
hi, trying to use this program for adding music in an nes game. While texttodata created my asm6-asm-file I recieved 8 warning messages. It says:
The rest of the warnings say the same thing pretty much... I looked at the last one and it was saying F-3 is out of range. Have to go mow now.
But that note is A-3. I think i read that it allows octaves 1 through 5. ...is that because i set, inside FamiTracker, my octave to 3... and so it adds 3 to A-3? Octave 6 is out of range, I think.the [color=cyan]texttodata tool program[/color] wrote:Warning! Note out of supported range, frame 2 row 14 channel 1
The rest of the warnings say the same thing pretty much... I looked at the last one and it was saying F-3 is out of range. Have to go mow now.
-
- Posts: 1318
- Joined: Thu Apr 23, 2009 11:21 pm
- Location: cypress, texas
there are 8 errors... 2 of them are in frame 2, 2 of them are in frame 3, 2 of them are in frame 9, and the last two are in frame 10. None of the numbers have an a, or a b, or a c, or a d, or an e, or a f in them. And they are all reported on channel 1. I found a C-6 in frame 0 row 1e... on channel 1. I tried converting the number, from one of the errors, 30 to hex and got 1e. Honestly, there are 10 C-6 notes in frame 0 and 10 C-6 notes are in frame 7. None of the errors are located in frame 0 or frame 7. Don't understand what I've done wrong. Could you, Shiru and some others, help me with this?Shiru wrote:A-3 is in supported range. Octave in FamiTracker is exists only in the editor, so it does not affect to note text. Are you sure you looking into correct place? These numbers are hex.
Edit: whoops, actually, the numbers are messed: frame is dec, row is hex.
-
- Posts: 1318
- Joined: Thu Apr 23, 2009 11:21 pm
- Location: cypress, texas
I dont think I will be able to send you any file right now... sorry. Thank you though for trying to help me.
Here is an image and i tried to make my penultimate post, up there, be moore understandable below.
Here is an image and i tried to make my penultimate post, up there, be moore understandable below.
^Green text is describing the image abovee ^Purple text sounds interesting... to me ^Yellow text is reporting a problem.there are 8 errors... 2 of them are in frame 2, 2 of them are in frame 3, 2 of them are in frame 9, and the last two are in frame 10. None of the numbers have an a, or a b, or a c, or a d, or an e, or a f in them. And they are all reported on channel 1. I found a C-6 in frame 0 row 1e... on channel 1. I tried converting the number, from one of the errors, 30 to hex and got 1e. Honestly, there are 10 C-6 notes in frame 0 and 10 C-6 notes are in frame 7. But, none of the errors are located in frame 0 or frame 7. Don't understand what I've done wrong.
-
- Posts: 1318
- Joined: Thu Apr 23, 2009 11:21 pm
- Location: cypress, texas
Shiru, it finally worked! Sometimes the text file isn't created again by the 2text program that runs after you click "Create NSF..." in FamiTracker.
Thank you God for helping me!
Now I am lost as to where do I include famitone.asm in my game code? I tried placing in the main file underneath the includes of prg.asm and chr.asm... and so I tried to build my nes file and I got famitone.asm(986): PC out of range. There are errors like that on the whole vertical command prompt; one on every line with a different number in the parenthesis. Every now and then there's also a famitone.asm(935): Value out of range. What should I do?
Thank you God for helping me!
Now I am lost as to where do I include famitone.asm in my game code? I tried placing
Code: Select all
.include "famitone.asm"
I don't know what is on row 938, because library was updated few times after your first questions, and I don't have previous versions. You surely should not place include after including chr. Check source file of demo, it is in /src/.
Value out of range could be probably related to negative numbers, you can convert them to positive (-10 = 256-10).
Value out of range could be probably related to negative numbers, you can convert them to positive (-10 = 256-10).
-
- Posts: 1318
- Joined: Thu Apr 23, 2009 11:21 pm
- Location: cypress, texas
Thank you! I found where all the includes are. There is some code like this:Shiru wrote:Check source file of demo, it is in /src/.
Code: Select all
nmi
inc FRAME_CNT
rti
.include "controller.asm"
.include "rle.asm"
screenData
.incbin "screen.rle"
.include "famitone.asm"
.include "music1.asm"
.include "music_dpcm.asm"
.include "sounds.asm"
.bank 2
.org FT_DPCM_OFF
.incbin "music_dpcm.bin"
.bank 3
.org $e000
.include "music2.asm"
.org $fffa
.dw nmi
.dw reset
.bank 4
.incbin "screen.chr"
-
- Posts: 388
- Joined: Sat Nov 17, 2007 8:44 pm