mohayonao / CoffeeCollider

Sound Processing Language for Web Audio
http://mohayonao.github.io/CoffeeCollider/
MIT License
220 stars 15 forks source link

Aliases of doneActions #5

Open mohayonao opened 11 years ago

mohayonao commented 11 years ago
Line.kr(0, 1, 10, doneAction:2) # 2 is elusive

I want to write like this.

Line.kr(0, 1, 10, doneAction:FREE) # (replaced 2 when compiling)

List of UGen-doneAction is here.

http://doc.sccode.org/Reference/UGen-doneActions.html

What aliases is good?

lisongx commented 10 years ago

I think we shoud keep the sclang style, and add the FREE constant as a bonus

0 -> NOTHING 1 -> PAUSE there are just so many doneActions, can't think of any alias for now

mohayonao commented 10 years ago
0 -> NOTHING
1 -> PAUSE
2 -> FREE
3... (not defined)

It's a good idea that only actions used frequently are defined.