pouët.net

t42 Melody Bytebeat Alternative (fits really well)

category: music [glöplog]
 
I just found that instead of:
- t*(42&t>>10)
you can use:
- t*(42&t>>42)
instead!
It has no difference, and it matches the 42 topic really well.
added on the 2023-09-05 14:43:21 by H2SO4 H2SO4
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Right_shift

Quote:
The right operand will be converted to an unsigned 32-bit integer and then taken modulo 32, so the actual shift offset will always be a positive integer between 0 and 31, inclusive. For example, 100 >> 32 is the same as 100 >> 0 (and produces 100) because 32 modulo 32 is 0.
added on the 2023-09-05 14:58:14 by pestis pestis

login