CNMAT / Music-and-Computing

Materials built for MUS158A, MUS158B (B is only io area of patchers)
Other
6 stars 3 forks source link

o.expr guide #45

Closed equilet closed 7 years ago

ramagottfried commented 7 years ago
#

+ - * / pow sqrt
+= -= *= /=

aseq
nfill
[[ ]]
length
sum
max, min
rev

scale
clip
ceil, round, floor

mtof
ftom

if
< <= == >= >
&& ||

progn

map
lambda
quote, ""

assign
getaddresses
value
bound/exists
??= 
delete

typetags
float32
int32
equilet commented 7 years ago

not quite done, but see o.expr.overview in patchers/course/dev. You'll notice that all functions link correctly and that most of them have the name/description/example format. there are a number left to do, but this should get people rolling and can be used as a quick reference for the aforementioned functions.

equilet commented 7 years ago

This is basically done now. @ramagottfried - let me know if this works for you regarding the semester and I'll close this out.

ramagottfried commented 7 years ago

hey, this is looking great.

I'll go through them some more -- so far only one thing, the delete() function has quote() as the title, the description is correct though.

ramagottfried commented 7 years ago

the add function title has slash, I notice the other ones have commas which is better.

ramagottfried commented 7 years ago

rev() / reverse() also

equilet commented 7 years ago

fixed these three

ramagottfried commented 7 years ago

I don't think list should be included in the progn page, but maybe it could be useful to show how it's commonly used with an if statement.

ramagottfried commented 7 years ago

I might like to rework the map definition a little next time we're in the same room.

equilet commented 7 years ago

it's a clear example illustrating the differences between other methods and progn(). i don't find a need to omit it.

equilet commented 7 years ago

re map(): fine, sure. it should suffice for now.

ramagottfried commented 7 years ago

maybe we should mention " " in the quote def

ramagottfried commented 7 years ago

(kind of obvious I guess, but still...)

equilet commented 7 years ago

@ramagottfried - please go through and find all cases and put them into a single comment here, rather than adding so many comments. thanks for looking at this.

ramagottfried commented 7 years ago

that's it for now, thanks jeff!