Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Every variable fire error - ReferenceError: variable is not defined #62

Open
glitched0xff opened this issue Oct 15, 2023 · 0 comments
Open

Comments

@glitched0xff
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant