From 171808cf2c22a1ed51f69a8348d5c0a607ebbf14 Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Thu, 12 Jan 2023 14:19:18 +0100 Subject: [PATCH] add note about single quote strings --- website/src/pages/learn/code.mdx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/website/src/pages/learn/code.mdx b/website/src/pages/learn/code.mdx index 03691686..7be95ed3 100644 --- a/website/src/pages/learn/code.mdx +++ b/website/src/pages/learn/code.mdx @@ -73,7 +73,8 @@ You can also use the keyboard shortcut `cmd-/` to toggle comments on and off. Ok, so what about the content inside the quotes (e.g. `"a3 c#4 e4 a4"`)? In JavaScript, as in most programming languages, this content is referred to as being a [_string_](). A string is simply a sequence of individual characters. -In TidalCycles, strings are used to write _patterns_ using the mini-notation, and you may hear the phrase _pattern string_ from time to time. +In TidalCycles, double quoted strings are used to write _patterns_ using the mini-notation, and you may hear the phrase _pattern string_ from time to time. +If you want to create a regular string and not a pattern, you can use single quotes, e.g. `'C minor'` will not be parsed as Mini Notation. The good news is, that this covers 99% of the JavaScript syntax needed for Strudel!