slarmoo / slarmoosboxtesting

Testing version for Slarmoo's Box
MIT License
0 stars 0 forks source link

Add sine-like waveforms from YMF262 #2

Open wdym-lmao opened 1 week ago

wdym-lmao commented 1 week ago

I have no intentions of requesting the logarithmic sawtooth to FM since I can't seem to create an equation for it. After experimenting with how sines work, I have finally made the sine-like waveforms below. The equations are: Absolute Sine: |sin (x)| "Fastsine": (cos(x) · |sin(x)|) + 0.5 sin(2x) "Camelsine": |(cos(x) · |sin(x)|) + 0.5 sin(2x)| "Semisine": (sin(x))/2 + (|sin(x)|)/2 "Sharksine": 0.5((sin(x) · |cos(x)|) ÷ cos(x)) + |0.5 sin(x)| Feel free to replace variables if necessary. image

Mid-The-Modder commented 1 week ago

image Looks pretty similar to the logarithmic sawtooth, the easing is wrong though.