YM2612

SGDK only sub forum

Moderator: Stef

Post Reply
bioloid
Very interested
Posts: 87
Joined: Fri May 18, 2012 8:22 pm

YM2612

Post by bioloid » Tue Dec 06, 2016 5:31 pm

Hello, any idea of what to send using this https://github.com/Stephane-D/SGDK/blob ... c/ym2612.h to output some sounds ?
Is there some documentation somewhere ?

User avatar
Stef
Very interested
Posts: 2627
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Re: YM2612

Post by Stef » Tue Dec 06, 2016 5:37 pm

There is a test program at the end of this documentation which should output a single piano note sound :
http://www.smspower.org/maxim/Documents/YM2612

But honestly doing sound from YM2612 by hand like that is really root... Normally you should use a kind of sound driver to do that :)

bioloid
Very interested
Posts: 87
Joined: Fri May 18, 2012 8:22 pm

Re: YM2612

Post by bioloid » Tue Dec 06, 2016 5:52 pm

Many thanks for the good link!

Yes, I use a microbrute with patch inputs, so I could use megadrive to do somethings. Root but awesome :)

bioloid
Very interested
Posts: 87
Joined: Fri May 18, 2012 8:22 pm

Re: YM2612

Post by bioloid » Sat Dec 10, 2016 7:56 pm

Whats the best way to hilight text drawn with VDP_drawText ?

May I draw it over with another color using VDP_drawTextBG or what ?

Edit: ok, VDP_setTextPalette, sorry.

bioloid
Very interested
Posts: 87
Joined: Fri May 18, 2012 8:22 pm

Re: YM2612

Post by bioloid » Sat Dec 10, 2016 11:46 pm

Ok got this : http://www.filedropper.com/ym2612
Arrows to navigate, A/B to upper/lower things...
A bit bugged, and too much things, I think I'll lower features just to make some tone generator.

Edit: I exposed most of the doc, only missing are the special channels 3 features, and volumes/envelopes are broken now it seams...

bioloid
Very interested
Posts: 87
Joined: Fri May 18, 2012 8:22 pm

Re: YM2612

Post by bioloid » Sun Dec 11, 2016 6:47 pm

Ok, it works !

Here is the YM2612 controller : http://downloads.kstorm.org/YM2612.bin and https://github.com/skarab/megadrive-YM2612

The play modes (the thing on the left of the sequencers) are : 0 nothing, 1 play sequence, 2 tone generator (play always with 0 decay release in ADSR)

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests