Running Scamp in REPL

Hello,
When I tried to run the SuperCollider example from the python REPL started in VsCode (via Shift+Enter corresponding to the shortcut ‘Run Line in Python Terminal’) I see the warning

“Clock is running noticeably behind real time…”

Note that there is no issue if I run my code as a script.

I think it would be cool to execute code from REPL for exploratory coding.

What might be the problem about running in REPL?

Simple fix: s = Session().run_as_server()

Otherwise there’s an assumption that there should be no break between commands.

1 Like