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

Getting the current value of a "Ugen" and send to js? #78

Open
hems opened this issue May 8, 2014 · 1 comment
Open

Getting the current value of a "Ugen" and send to js? #78

hems opened this issue May 8, 2014 · 1 comment

Comments

@hems
Copy link

hems commented May 8, 2014

a = SinOsc.kr( 440 )

Message.send "a:value", a.get() # <~ how do i get the "current value" of "a" ?


Will i need to "play" it, to get it going?

( -> 
  $a = SinOsc.ar( 55 ) 
).play()

console.log($a)

Message.send "a:value", $a.get() # <~ how do i get the "current value" of "$a" ?

@hems hems changed the title Broadcasting uGen value to javascript? Getting the current value of a "Ugen" and send to js? May 8, 2014
@hems
Copy link
Author

hems commented May 12, 2014

is there a way of pulling this one?

Is there some class with a functionality close to Bus "getSynchronous" method?
http://doc.sccode.org/Classes/Bus.html

There's also "poll" but i think this one works with audio rate and might be too expensive just for pulling values: http://doc.sccode.org/Classes/Poll.html

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