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

Workshop: Add note for multiple statements #244

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mkesper
Copy link

@mkesper mkesper commented Sep 23, 2023

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

Executing multiple statements can be confusing until you note there have to be blank lines in between.
@HighHarmonics2
Copy link
Collaborator

@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.

@HighHarmonics2 HighHarmonics2 added the documentation Improvements or additions to documentation label Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants