- What size are
y? 32-bit? 64-bit?
- Are they signed, unsigned?
>> operator always returns a signed 32-bit int, so
-1.1>>0 will contain -1.
-1>>>0 is an unsigned shift right, the result is 0xFFFFFFFF. The
+ operator will return different types, depending on the input, promoting ints to double to prevent truncation.
1+"1" equals string “11”. The
* operator requires Number inputs, so it will try to parse the string into a Number before multiplying (
2*"3" == 6).
What is the type of the result?
Number… but it will probably be used as an 8-bit unsigned.
^xor or pow in this context?
xor, which returns a signed 32-bit int Number.
The use of floats is an odd choice, does the behaviour change if you exchange them for their integer equivalents? (
The result is a Number either way. What you do with it is what defines the exact type. Whoever wrote that wasn’t really aiming for clarity, it’s golfed.
1*"1" == 1. If it’s C,
1*"1" == 49.
After trying a couple of other equations on my pikitto, it’s obvious that this can only really sound terrible and also it takes up too much time calculating.
I’m going to look into other BG music ideas.
That is quite captivating, even thought it is not byte beat music.
At 256 bytes? What else can it be?
The melody sounds that it is created by a human. Maybe a combination of algorithms and a note table.
Ah. Then perhaps you don’t know who lft is.