256-byte "music generator"

Discuss NSF files, FamiTracker, MML tools, or anything else related to NES music.

Moderator: Moderators

Post Reply
User avatar
za909
Posts: 226
Joined: Fri Jan 24, 2014 9:05 am
Location: Hungary

256-byte "music generator"

Post by za909 » Sat Jun 10, 2017 3:08 pm

I was inspired by the "A Mind is Born" 256-byte demo on the C64 to try and put something interesting in the same amount of space for the NES. Not counting the stupid required system init things it does fit into 256 bytes and there's a TON of ways to improve on this but this was just a proof of concept I threw together in about one hour. It takes 146.633 minutes for it to loop...
Attachments
MusicGenerator.nes
(32.02 KiB) Downloaded 339 times

ccovell
Posts: 1020
Joined: Sun Mar 19, 2006 9:44 pm
Location: Japan
Contact:

Re: 256-byte "music generator"

Post by ccovell » Sat Jun 10, 2017 4:22 pm

Cool stuff!

User avatar
B00daW
Posts: 586
Joined: Thu Jan 03, 2008 1:48 pm

Re: 256-byte "music generator"

Post by B00daW » Mon Jun 12, 2017 10:55 am

Any reason why you can't supply this as NSF too? Does it use IRQ?

User avatar
MrNorbert1994
Posts: 878
Joined: Tue May 06, 2014 1:50 pm
Location: Szeged, Hungary
Contact:

Re: 256-byte "music generator"

Post by MrNorbert1994 » Mon Jun 12, 2017 11:15 am

Here is an NSF.
Attachments
Music Generator.nsf
(390 Bytes) Downloaded 453 times

User avatar
B00daW
Posts: 586
Joined: Thu Jan 03, 2008 1:48 pm

Re: 256-byte "music generator"

Post by B00daW » Fri Jun 16, 2017 10:13 pm

Hrm... This does not appear to work with NSFPlay.

User avatar
rainwarrior
Posts: 8000
Joined: Sun Jan 22, 2012 12:03 pm
Location: Canada
Contact:

Re: 256-byte "music generator"

Post by rainwarrior » Tue Jun 20, 2017 10:27 pm

This is a malformed NSF: mentioned in other thread

1. The last bank byte should be 00 not F9. The file isn't large enough to contain a bank F9, and this NSF relies on no bankswitching.

2. STA $2000 is not allowed in NSF. The player needs control over NMI.

User avatar
B00daW
Posts: 586
Joined: Thu Jan 03, 2008 1:48 pm

Re: 256-byte "music generator"

Post by B00daW » Tue Jun 20, 2017 10:36 pm

rainwarrior wrote:This is a malformed NSF: mentioned in other thread

1. The last bank byte should be 00 not F9. The file isn't large enough to contain a bank F9, and this NSF relies on no bankswitching.

2. STA $2000 is not allowed in NSF. The player needs control over NMI.
Posted the fix here > viewtopic.php?p=198632#p198632

User avatar
bazza
Posts: 94
Joined: Fri Nov 24, 2017 1:36 pm
Location: Argentina
Contact:

Re: 256-byte "music generator"

Post by bazza » Sat Nov 25, 2017 5:47 pm

za909 wrote:I was inspired by the "A Mind is Born" 256-byte demo on the C64 to try and put something interesting in the same amount of space for the NES. Not counting the stupid required system init things it does fit into 256 bytes and there's a TON of ways to improve on this but this was just a proof of concept I threw together in about one hour. It takes 146.633 minutes for it to loop...
Publish source code :)~~~

Post Reply