EXCEPTION
:PLAY "P"
pcbasic.run:66, run_once
None
pcbasic.statements:198, parse_statement
None
pcbasic.statements:574, exec_play
None
pcbasic.sound:318, play
None
UnboundLocalError: local variable 'length' referenced before assignment
This is a bug in PC-BASIC.
Sorry about that. Please file a bug report at https://sourceforge.net/p/pcbasic/discussion/bugs/ or https://github.com/robhagemans/pcbasic/issues Please include the messages above and
as much information as you can about what you were doing and how this happened.
Thank you!
Ok
The arguments O, T, N, P, ect. uses number paramaters. But "P" (pauses or time delay) alone or with notes cause the error message insted of ILLEGAL FUNCTION CALL. For example: PLAY "C D E2 P8 > C2 P", the last "P" alone was intended for a default value as 4, but in P there's no such thing as default value like notes. So "P" alone reproduce a bug.
Ronald.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
EXCEPTION
:PLAY "P"
pcbasic.run:66, run_once
None
pcbasic.statements:198, parse_statement
None
pcbasic.statements:574, exec_play
None
pcbasic.sound:318, play
None
UnboundLocalError: local variable 'length' referenced before assignment
This is a bug in PC-BASIC.
Sorry about that. Please file a bug report at https://sourceforge.net/p/pcbasic/discussion/bugs/ or https://github.com/robhagemans/pcbasic/issues Please include the messages above and
as much information as you can about what you were doing and how this happened.
Thank you!
Ok
The arguments O, T, N, P, ect. uses number paramaters. But "P" (pauses or time delay) alone or with notes cause the error message insted of ILLEGAL FUNCTION CALL. For example: PLAY "C D E2 P8 > C2 P", the last "P" alone was intended for a default value as 4, but in P there's no such thing as default value like notes. So "P" alone reproduce a bug.
Ronald.
Thanks! Tracking this here: https://github.com/robhagemans/pcbasic/issues/39