jjreyes92 / pyo

Automatically exported from code.google.com/p/pyo
GNU General Public License v3.0
0 stars 0 forks source link

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

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
Done... can be used in both ways...

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

GoogleCodeExporter commented 9 years ago
T'es le meilleur !

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