VOGONS


Yamaha XG emulation at last

Topic actions

Reply 380 of 383, by tcaud

User metadata
Rank Newbie
Rank
Newbie
hockinsk wrote on Yesterday, 19:02:

MUXG2K is 16-bit up to 32-tap interpolation

Is there a benefit in sampling from 32 points rather than 2? I mean I'm aware cubic and Gaussian sample from 4 points, but 32 seems like it'd offer diminishing returns at substantially higher cost.

Reply 381 of 383, by hockinsk

User metadata
Rank Newbie
Rank
Newbie

You're right that it's diminishing returns, like many DSP processes. MUXG2K's default is 4-point like the hardware, because that slight high-frequency droop is part of how the hardware sounds. The 32-point windowed sinc only runs if you switch on HQ Interpolation, and it's off by default.

A 4-point kernel rolls off the top octave a little (about 1 dB above 4 kHz) and only rejects the mirror-image frequencies by roughly 30 dB. The 32-point Kaiser sinc keeps the response flat almost to Nyquist and pushes those images down to around 95 dB. You'd mostly hear that as slightly more top end and cleaner high notes on bright sounds. It isn't night and day; 8 or 16 points would get you most of the way.

The cost is smaller than it looks. 32 multiply-adds per voice per sample is tiny for a modern CPU, and the work vectorises well. In a full song it adds about 3% CPU, because the effects and filters take far more of the time than fetching samples.

One honest limit: the sinc's cutoff is fixed relative to the sample's own rate. It doesn't move as a note is pitched up, so it won't remove aliasing on notes played far above their original pitch. The hardware doesn't either.

Reply 382 of 383, by hockinsk

User metadata
Rank Newbie
Rank
Newbie

XGFIFTY (pink) looking very good on first builds and optimisation. This is basically an MU50 with GS, GM, MT-32 / CM-64 and DOC

image.png

And on my Raspberry PI 3 it's looking very useable for that community either as a lighter XG instrument and of course gaming

image.png

Reply 383 of 383, by zaphod77

User metadata
Rank Member
Rank
Member

DOC is Disk Orchestra Collection.

It's outside of gm, gs, and xg.

I don't think anyone will miss it , and has ever used it in a game. I don't even know what can trigger it's use.

Do think about XGONEHUNDERED, though. It has more parts, more effects in variation, better insertion blocks (copies of the mu80 variation block), and the improved gm instruments. At least investigate the performance impact.