Test VRC7 audio (incl. custom instrument)

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

Moderator: Moderators

Post Reply
zzo38
Posts: 1050
Joined: Mon Feb 07, 2011 12:46 pm

Test VRC7 audio (incl. custom instrument)

Post by zzo38 » Sun Jul 15, 2012 12:14 am

I have written a program for the VRC7 audio: http://zzo38computer.org/nes_program/vrc7test.zip It includes source and binary for running in NES/Famicom emulator, or on a real VRC7 hardware if you have it. This program is public domain.

[I posted message in another section of the forum but you can remove that one; it doesn't work so well as this updated one]
[url=gopher://zzo38computer.org/].[/url]

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

Re: Test VRC7 audio (incl. custom instrument)

Post by rainwarrior » Thu May 25, 2017 8:04 pm

Sorry for the five year bump, but a friend was asking about whether someone could make a VRC7 instrument tester, like the one CopyNES has but as a native ROM, so they could use it to try and refine the existing patch set.

I tried this ROM but I can't seem to get it to work. Every emulator I try seems to do something different, but none of them seem to have a working "cursor". Nintendulator has a black screen. FCEUX is unresponsive. Nestopia makes a high pitched whine and is otherwise unresponsive. puNES has the picture scrolled wrong unless you are holding a button...

What emulator did this originally work on?


This was the original version referred to, by the way: viewtopic.php?f=22&t=9093#p96785

ap9
Posts: 39
Joined: Sat Jun 01, 2013 11:55 am
Location: Maine, U.S.A.
Contact:

Re: Test VRC7 audio (incl. custom instrument)

Post by ap9 » Thu May 25, 2017 11:39 pm

I've found it to work with VirtuaNES 0.97. And also Nester 0.51b (with not-so-great sound quality).

zzo38
Posts: 1050
Joined: Mon Feb 07, 2011 12:46 pm

Re: Test VRC7 audio (incl. custom instrument)

Post by zzo38 » Sat May 27, 2017 11:08 pm

Unfortunately I did not know so well how to write it at the time, so I did not to do a good job, sorry. It fails to clear the RAM and fails to do other important stuff too
[url=gopher://zzo38computer.org/].[/url]

GreyRogue
Posts: 37
Joined: Fri Dec 08, 2017 5:12 pm

Re: Test VRC7 audio (incl. custom instrument)

Post by GreyRogue » Thu Nov 22, 2018 2:41 pm

Thanks for this. Helped me debug my issues with porting an FPGA implementation of the YM2413 into MiSTer.
I did have to fix one issue with the code:

Code: Select all

rt:
	rti
needs to be after this line:

Code: Select all

	dec <pushed
This code should not fall through to the npu: section.

I modified it slightly differently, but that should be the same effect as what I did (modified by hand in a hex editor the nes file as I don't have a compiler set up on my computer).

There are issues with initialization of values (push up or down on each number to update them at least once), and I think a palette isn't being set? The initialization could be fixed by setting the 25 bytes at valmem to 0 at start.
But in spite of this, it works and it helped.

Edit: Also, does anyone know the default/reset value of the audio silence bit (0xe000-bit 6)? The test rom doesn't set this.

Thanks again.

Post Reply