Unrecognised type 1180137048
-
Reposting in bugs as requested.
While coding my synth program.
I have it playing a patch(note) each step of the sequencer.
Playnote(0,wave[step],note[step],volume[step],speed[step],pan[step])Working fine so I make the sequence blocks selectable. So it will only play on a selected block.
If selectedblock[step] == true then
Playnote(0,wave[step],note[step],volume[step],speed[step],pan[step])
endifAnd it says error on line 48 (which is a blank line)
In function sequencermain (No where near 48)
Unrecognised type 1180137048Ok sure. So the only code I've changed is the if statement.
So I comment out playnote
If selectedblock[step] == true then
//Playnote(0,wave[step],note[step],volume[step],speed[step],pan[step])
endifAnd the error is gone.
So next I commend out the if statement just to be sure
//If selectedblock[step] == true then
Playnote(0,wave[step],note[step],volume[step],speed[step],pan[step])
//endifNo error. So it's not the if statement and it's not the play note.
So I try
If selectedblock[step] == true then
Playnote(0,2,440,1,1,1)
endifAnd it works...
So the error is the wave[step] BUT ONLY when it's in the if statement.
Can someone smarter than me explain why type cannot be recognised only when in the if statement or this a bug in the compiler?
If one of the devs want to look I've shared the code. It's called Piano synth
Have commented in the block that's erroring. Touch some sequencer blocks then press down on dpad to play the sequencer and cause error