sinshu / meltysynth

A SoundFont MIDI synthesizer for .NET
Other
136 stars 16 forks source link

Use fixed-point numbers for speed-up. #23

Closed sinshu closed 2 years ago

sinshu commented 2 years ago

The oscillator can be a bit faster by using fixed-point numbers, but I'm not sure if this change works without glitch. https://github.com/sinshu/meltysynth/blob/fixed-point-number/MeltySynth/src/Oscillator.cs

sinshu commented 2 years ago

Unit tests are OK. The output waveform is almost identical to the floating-point version. I'll merge this after some more tests.