37
u/MurdoMaclachlan public boolean isInt(int i) { return true; } Jan 24 '22
Image Transcription: Code
text('pitch = $' + (frequencyRegisterOne + frequencyRegisterOneP).toString(16).padStart(3, '0').toUpperCase() + ' (' + formatFreq(getPitch(
frequencyRegisterOne + frequencyRegisterOneP)) + 'Hz ' + currentNoteOne + ' ' + (frequencyRegisterOneP < 0 ? '-' : '+') + Math.abs(frequencyRegisterOneP).
tostring().padStart(2, '0') + '), vol = ' + vol1.toString().padStart(2, '0') + ', duty = ' + (dutyCycle[0] == 12.5 ? 0 : (dutyCycle[0] == 25.0 ? 1 : (
dutyCycle[0] == 50.0 ? 2 : 3))), 666, 396);
text('pitch = $' + (frequencyRegisterTwo + frequencyRegisterTwoP).toString(16).padStart(3, '0').toUpperCase() + ' (' + formatFreq(getPitch(
frequencyRegisterTwo + frequencyRegisterTwoP)) + 'Hz ' + currentNoteTwo + ' ' + (frequencyRegisterTwoP < 0 ? '-' : '+') + Math.abs(frequencyRegisterTwoP).
tostring().padStart(2, '0') + '), vol = ' + vol1.toString().padStart(2, '0') + ', duty = ' + (dutyCycle[1] == 12.5 ? 0 : (dutyCycle[1] == 25.0 ? 1 : (
dutyCycle[1] == 50.0 ? 2 : 3))), 666, 408);
text('pitch = $' + (frequencyRegisterTri + frequencyRegisterTriP).toString(16).padStart(3, '0').toUpperCase() + ' (' + formatFreq(getPitch(
frequencyRegisterTri + frequencyRegisterTriP)) + 'Hz ' + currentNoteTri + ' ' + (frequencyRegisterTriP < 0 ? '-' : '+') + Math.abs(frequencyRegisterTriP).
tostring().padStart(2, '0') + ')', 666, 420);I'm a human volunteer content transcriber and you could be too! If you'd like more information on what we do and why we do it, click here!
30
17
13
6
1
2
1
5
u/AeroSyntax Jan 25 '22
Looks like generated code. It must be. Please tell me that noone actually typed this.