Yamaha internal waveform info

Talk about anything else you want

Moderator: BigEvilCorporation

tomaitheous
Very interested
Posts: 256
Joined: Tue Sep 11, 2007 9:10 pm

Yamaha internal waveform info

Post by tomaitheous » Fri Apr 25, 2008 2:12 am

Hey guys,

Not sure if this is the correct forum (or place) for this, but I'm looking for the resolution and length of the internal sine wave used by the YM2612, OPL2, and some other Yamaha FM chips. I *think* I remember TmEE mentioning the 2612 had a 9bit resolution on the sine wave, but no mention of length.

Also looking for more info on phase distortion synthesis by Casio. This is for a synth emulation project on a non PC platform.

Thanks,
Tom

TmEE co.(TM)
Very interested
Posts: 2440
Joined: Tue Dec 05, 2006 1:37 pm
Location: Estonia, Rapla City
Contact:

Post by TmEE co.(TM) » Fri Apr 25, 2008 10:42 am

AFAIK, the sampling rate is around 52KHz (53203424(PAL) / something), accuracy 9 or 10 bits on discrete Yamaha YM2612 and about 12 bits on Sega internal YM2612. The bit count is an estimate, which I estimated by listening the amount of aliasing noise produced and comparing with WAV files degraded to some bit count.

OPL2/3 is 49KHz... I don't know about accuracy, it can't be less than 12 bits I think, my sound card sound very clean.
Mida sa loed ? Nagunii aru ei saa ;)
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen

tomaitheous
Very interested
Posts: 256
Joined: Tue Sep 11, 2007 9:10 pm

Post by tomaitheous » Fri Apr 25, 2008 2:11 pm

TmEE co.(TM) wrote:AFAIK, the sampling rate is around 52KHz (53203424(PAL) / something), accuracy 9 or 10 bits on discrete Yamaha YM2612 and about 12 bits on Sega internal YM2612. The bit count is an estimate, which I estimated by listening the amount of aliasing noise produced and comparing with WAV files degraded to some bit count.

OPL2/3 is 49KHz... I don't know about accuracy, it can't be less than 12 bits I think, my sound card sound very clean.
Hmm but that doesn't tell me anything about the digital sine waveform stored on the internal rom. Couldn't you silence all but one channel and silence all but one operator to get a clean/unmodified carrier output? Setting it to some like 40-80hz and record that. One could figure out the length of one the sine wave and possibly the resolution of it (assuming the DAC is equal or higher res than the internal waveform). That or decap the chip.

TmEE co.(TM)
Very interested
Posts: 2440
Joined: Tue Dec 05, 2006 1:37 pm
Location: Estonia, Rapla City
Contact:

Post by TmEE co.(TM) » Fri Apr 25, 2008 7:33 pm

OK, I'll run some tests when I've finished my exam tomorrow.
Mida sa loed ? Nagunii aru ei saa ;)
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen

tomaitheous
Very interested
Posts: 256
Joined: Tue Sep 11, 2007 9:10 pm

Post by tomaitheous » Sat Apr 26, 2008 3:36 am

TmEE co.(TM) wrote:OK, I'll run some tests when I've finished my exam tomorrow.
Awesome :D

TmEE co.(TM)
Very interested
Posts: 2440
Joined: Tue Dec 05, 2006 1:37 pm
Location: Estonia, Rapla City
Contact:

Post by TmEE co.(TM) » Sat Apr 26, 2008 1:25 pm

I recorded form my MD2 and MD1, and MD2 looks way nicer... I'm waiting when my friend uploads it on his site... I'll give a link when its done.
Mida sa loed ? Nagunii aru ei saa ;)
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen

TmEE co.(TM)
Very interested
Posts: 2440
Joined: Tue Dec 05, 2006 1:37 pm
Location: Estonia, Rapla City
Contact:

Post by TmEE co.(TM) » Sat Apr 26, 2008 3:09 pm

http://www.epicgaming.us/tiido/MD_Sine.rar

Kindly done by Epicenter :)
Image

I hope this sheds some light on YM2612's internals

Each WAV has 5 or 6 samples in it, First with Total Level at 00h, and each following has it incremented. 0, 1, 2... notice how the wave gets better with lower TLs... and they should be 27.5Hz...
Mida sa loed ? Nagunii aru ei saa ;)
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen

Sik
Very interested
Posts: 939
Joined: Thu Apr 10, 2008 3:03 pm
Contact:

Post by Sik » Sat Apr 26, 2008 3:39 pm

Is it me or the MD1 fails to do the peaks properly? Also it seems to have a lower volume.
Sik is pronounced as "seek", not as "sick".

TmEE co.(TM)
Very interested
Posts: 2440
Joined: Tue Dec 05, 2006 1:37 pm
Location: Estonia, Rapla City
Contact:

Post by TmEE co.(TM) » Sat Apr 26, 2008 3:57 pm

The graph of MD1 is bigger than MD2.... and I recorded the sound both having about same level. and MD1 does have bad peaks, on all TL values.
Mida sa loed ? Nagunii aru ei saa ;)
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen

Shiru
Very interested
Posts: 786
Joined: Sat Apr 07, 2007 3:11 am
Location: Russia, Moscow
Contact:

Post by Shiru » Sat Apr 26, 2008 5:10 pm

This recordings was taken directly from YM2612 output or from amp output?

TmEE co.(TM)
Very interested
Posts: 2440
Joined: Tue Dec 05, 2006 1:37 pm
Location: Estonia, Rapla City
Contact:

Post by TmEE co.(TM) » Sat Apr 26, 2008 5:38 pm

directly
Mida sa loed ? Nagunii aru ei saa ;)
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen

HardWareMan
Very interested
Posts: 745
Joined: Sat Dec 15, 2007 7:49 am
Location: Kazakhstan, Pavlodar

Post by HardWareMan » Sat Apr 26, 2008 6:54 pm

TmEE co.(TM) wrote:directly
So, that's means it is not true signal. Because YM2612's output more complex - all 6 channels is separated in time with gaps between them. The channel change speed is about 120kHz, so one channel discretization is about 20kHz. If you got normal oscilloscope, please make a record YM2612 output at 120-200kHz samplerate.
I had made very deep analysis of analog output of YM2612 at one russian forum, but now this forum is dead. I can rebuild that job, if you want it.

TmEE co.(TM)
Very interested
Posts: 2440
Joined: Tue Dec 05, 2006 1:37 pm
Location: Estonia, Rapla City
Contact:

Post by TmEE co.(TM) » Sat Apr 26, 2008 7:15 pm

Unfortunately I have no access to oscilloscope... actually my friend has one, 2ch 50MHz, but its non digital and I have no idea how would I record its output... my sound card can record at 500KHz(according to chip datasheet) but Win drivers don't allow it...

It would be nice if you rebuild your job. MD1 and MD2 sound different, MD2 seems to have more accuracy (less aliasing noise) and better sine output (at least according to the recordings above)... MD1 used is same what HardWareMan has, just less modded.
Mida sa loed ? Nagunii aru ei saa ;)
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen

Sik
Very interested
Posts: 939
Joined: Thu Apr 10, 2008 3:03 pm
Contact:

Post by Sik » Sat Apr 26, 2008 7:57 pm

The different peaks are enough to make it sound more aliased. Those sudden changes make it sound like noisy, in fact sudden changes are the reason for clicks in sounds.

And I think you should take a photo of the oscilloscope output :P
Sik is pronounced as "seek", not as "sick".

Shiru
Very interested
Posts: 786
Joined: Sat Apr 07, 2007 3:11 am
Location: Russia, Moscow
Contact:

Post by Shiru » Sat Apr 26, 2008 8:17 pm

Such small and same changes can only change timbre slightly, they can't make clicks or noise - they have same frequency like carrier tone.

Post Reply