tidalcycles / tidal-doc

https://tidalcycles.org
GNU General Public License v3.0
19 stars 84 forks source link

Workshop: Add note for multiple statements #244

Open mkesper opened 1 year ago

mkesper commented 1 year ago

Executing multiple statements can be confusing until you note there have to be blank lines in between.

HighHarmonics2 commented 11 months ago

@mkesper - thanks for submitting. Sorry for the delay in reviewing it. It's a good point, but I don't think it is completely accurate. In Tidal you can execute individual lines not separated by blank lines as long as you execute them individually and not as a block. (Use shift+return, not command+return.)

It is true that with a multi-line statement, you need a blank line at the end in order to do execute the block. This could be explained but I'm not certain that the start of a tutorial is the best place to explain that.

I do agree that clarity on how to execute code is important for people new to Tidal.

d1 $ n "0 4 6 8" # s "east"
#amp "0.5"
#freq 200
-- blank line needed after this one

d2 $ n "1 2 3" # s "peri"

To execute multiple patterns together, the stack command is often used, and blank lines are not needed with stack.