Gidday
I have been unable to find an example Tidal snippets file for Pulsar. I followed the java example in docs and know I should be using "source.tidalcycles" where they use "source.js" but nothing more.
All references to the word "snippet" in Tidal Club give the example code rather than what I'm looking for which is the layout in a snippets.json or snippets.cson file.
Well I did a bit more digging around and finally got something that worked!
In my ~/.pulsar/snippets.cson file I have a few examples working. Indents are very important.
(Edit) But they don't show up in this post. Check out the stackOverflow below.
What I like about these examples is that tab positions are set by $1, $2, $3 etc.
So in a tidal file when I type "cha", I get a choice of the two different arp versions. When I choose one it is printed out (without the $1, $2s being visible). Pressing tab takes me to spots where I might make a change or add something. You can choose editing spots wherever.
Surprisingly the $1, $2s don't interfere with the $s of the tidal patterns.
To aid readability and preserve indenting etc, you can use markdown syntax in this forum to indicate a code block - just add 3x backticks ``` on a line on their own before and after the block you want formatted as code, eg