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

Suggestion: use a dictionary in OscReceive instead of a list #1

Closed
GoogleCodeExporter opened this issue Aug 25, 2015 · 2 comments
Closed

Comments

@GoogleCodeExporter
Copy link

It would seem More elegant to me to store the osc 
addresses in OscReceive as a dictionary instead of a 
list :

    a = OscReceive(port=10001, address=['/pitch', 
'/amp'])
    b = Sine(a[0], 0, a[1]).out()

would become

    a = OscReceive(port=10001, address=['/pitch', 
'/amp'])
    b = Sine(a['/pitch'], 0, a['/amp']).out()

Seems easier to remember that the list index.

Original issue reported on code.google.com by leca...@gmail.com on 16 Nov 2009 at 6:06

@GoogleCodeExporter
Copy link
Author

Done... can be used in both ways...

Original comment by belan...@gmail.com on 16 Nov 2009 at 7:25

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

T'es le meilleur !

Original comment by leca...@gmail.com on 16 Nov 2009 at 8:40

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

No branches or pull requests

1 participant