Posts by ponygol@chaos.social
(DIR) Post #B6d2YYVz0hwjAcxG9A by ponygol@chaos.social
0 likes, 0 repeats
@azonenberg Hard limit on float32 or are 32-Bit integer types also fine? Seems like calculating tmp in 64-Bit FXP using two 32-Bit uint32 should be possible at negligible performance loss.
(DIR) Post #B6d3HszvhZYNjEZqwy by ponygol@chaos.social
0 likes, 0 repeats
@azonenberg If you get the rate in Hz instead of radial frequency, you can replace the modulus by just taking the fractional part.If you convert rate (which is most likely a lot less than 1) into Q0.31, you can then just multiple by i and ignore all overflow (this is the modulus). Convert the result back to float, multiply by 2*pi and calculate the sine?