It is currently Wed Aug 22, 2018 12:55 am

All times are UTC - 7 hours





Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: NES hombrew music help
PostPosted: Sun May 13, 2018 3:37 pm 
Offline

Joined: Sun May 13, 2018 3:32 pm
Posts: 1
Hello I have been slowly getting my head around writing code for the nes in asembly using nesasm however I am not certain how to include the library and song. If anyone could just give me an example of playing a song through ASM I would be most grateful.

Thank you in advance


Top
 Profile  
 
PostPosted: Sun May 13, 2018 4:43 pm 
Offline
User avatar

Joined: Wed Apr 02, 2008 2:09 pm
Posts: 1181
FamiTone2 on this page: https://shiru.untergrund.net/code.shtml
Contains full source code for a demo that plays the included songs, as well as software and documents to put your own software in the format FamiTone2 plays.

Edit: If there's a specific step in the readme you don't understand, ask about that specific step.

_________________
https://kasumi.itch.io/indivisible


Top
 Profile  
 
PostPosted: Sun May 13, 2018 8:29 pm 
Offline
User avatar

Joined: Fri May 08, 2015 7:17 pm
Posts: 2203
Location: DIGDUG
Right, and you will have to run the music init code (FamiToneInit) and the sfx init code (FamiToneSfxInit) (to set pointers to the start of the music / sfx) at the start of your program , then play a song / sfx with the FamiToneMusicPlay and FamiToneSfxPlay subroutines.

One per frame call FamiToneUpdate, to update the music (run the music engine).

I think this explains it...
https://timcheeseman.com/nesdev/2018/02 ... t-two.html

_________________
nesdoug.com -- blog/tutorial on programming for the NES


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group