-
Notifications
You must be signed in to change notification settings - Fork 31
Every variable fire error - ReferenceError: variable is not defined #62
Description
Hi dear
I have some problem with atom-hydra.
Pulsar ver 1.109.2023092015
Mac Os Ventura
Chip M2
Every variable that i declare fire ReferenceError: VAR_NAME is not defined
I tried to eval code in block, all line and single line but is the same. The same issue i have try to use P5, also the the istancing of new p5.
For example:
`msg.setPort(3333)
freq = 1
msg.on('/dirt/play', (args) => {
freq = 1
console.log(args)
})
osc(()=>freq)
.out()`
fire
ERROR ReferenceError: freq is not defined at Array.eval (eval at _eval (main.js:40), <anonymous>:1:11) at Output.typedArg.value (/Users/../.pulsar/packages/atom-hydra/node_modules/hydra-synth/src/format-arguments.js:68) at Output.draw (eval at compile (/Users/../.pulsar/packages/atom-hydra/node_modules/regl/dist/regl.js:5897), <anonymous>:344:11) at Output.REGLCommand [as draw] (/Users/../.pulsar/packages/atom-hydra/node_modules/regl/dist/regl.js:9991) at Output.tick (/Users/../.pulsar/packages/atom-hydra/node_modules/hydra-synth/src/output.js:121) at HydraRenderer.tick (/Users/../.pulsar/packages/atom-hydra/node_modules/hydra-synth/hydra-synth.js:434) at Engine.<anonymous> (main.js:236) at Engine.emit (events.js:315) at Engine.tick (/Users/../.pulsar/packages/atom-hydra/node_modules/raf-loop/index.js:42)
and from /User/../.pulsar/packages/atom-hydra/lib/main.js
ERROR ReferenceError: freq is not defined at Array.eval (eval at _eval (main.js:40), <anonymous>:1:11) at Output.typedArg.value (/Users/../.pulsar/packages/atom-hydra/node_modules/hydra-synth/src/format-arguments.js:68) at Output.draw (eval at compile (/Users/../.pulsar/packages/atom-hydra/node_modules/regl/dist/regl.js:5897), <anonymous>:344:11) at Output.REGLCommand [as draw] (/Users/../.pulsar/packages/atom-hydra/node_modules/regl/dist/regl.js:9991) at Output.tick (/Users/../.pulsar/packages/atom-hydra/node_modules/hydra-synth/src/output.js:121) at HydraRenderer.tick (/Users/../.pulsar/packages/atom-hydra/node_modules/hydra-synth/hydra-synth.js:434) at Engine.<anonymous> (main.js:236) at Engine.emit (events.js:315) at Engine.tick (/Users/../.pulsar/packages/atom-hydra/node_modules/raf-loop/index.js:42)
What i can do? i don't understand where is the mistake.
Thanks
Gltched