Probably doing something absolutely basic wrong

Hello everyone

I am using SuperCollider 3.11.0 and would like to use it as my editor for TidalCycles 1.4.8-15. I installed through pacman on manjaro.

I am using this startup file:

(
s.waitForBoot {
~dirt = SuperDirt(2, s); // two output channels
~dirt.loadSoundFiles("/home/username/.local/share/SuperCollider/downloaded-quarks/Dirt-Samples/*"); // specify sample folder to load
s.sync; // wait for supercollider to finish booting up
~dirt.start(57120, [0, 0]); // start superdirt, listening on port 57120, create two orbits each sending audio to channel 0
};
);

When I boot the SuperCollider Server I receive this Message in the end:

loading 217 sample banks:
808 (6) 808bd (25) 808cy (25) 808hc (5) 808ht (5) 808lc (5) 808lt (5) 808mc (5) 808mt (5) 808oh (5) 808sd (25) 909 (1) ab (12) ade (10) ades2 (9) ades3 (7) ades4 (6) alex (2) alphabet (26) amencutup (32) armora (7) arp (2) arpy (11) auto (11) baa (7) baa2 (7) bass (4) bass0 (3) bass1 (30) bass2 (5) bass3 (11) bassdm (24) bassfoo (3) battles (2) bd (24) bend (4) bev (2) bin (2) birds (10) birds3 (19) bleep (13) blip (2) blue (2) bottle (13) breaks125 (2) breaks152 (1) breaks157 (1) breaks165 (1) breath (1) bubble (8) can (14) casio (3) cb (1) cc (6) chin (4) circus (3) clak (2) click (4) clubkick (5) co (4) coins (1) control (2) cosmicg (15) cp (2) cr (6) crow (4) d (4) db (13) diphone (38) diphone2 (12) dist (16) dork2 (4) dorkbot (2) dr (42) dr2 (6) dr55 (4) dr_few (8) drum (6) drumtraks (13) e (8) east (9) electro1 (13) em2 (6) erk (1) f (1) feel (7) feelfx (8) fest (1) fire (1) flick (17) fm (17) foo (27) future (17) gab (10) gabba (4) gabbaloud (4) gabbalouder (4) glasstap (3) glitch (8) glitch2 (8) gretsch (24) gtr (3) h (7) hand (17) hardcore (12) hardkick (6) haw (6) hc (6) hh (13) hh27 (13) hit (6) hmm (1) ho (6) hoover (6) house (8) ht (16) if (3) ifdrums (0) incoming (0) industrial (0) insect (0) invaders (0) jazz (0) jungbass (0) jungle (0) juno (0) jvbass (0) kicklinn (0) koy (0) kurt (0) latibro (0) led (0) less (0) lighter (0) linnhats (0) lt (0) made (0) made2 (0) mash (0) mash2 (0) metal (0) miniyeah (0) monsterb (0) moog (0) mouth (0) mp3 (0) msg (0) mt (0) mute (0) newnotes (0) noise (0) noise2 (0) notes (0) numbers (0) oc (0) odx (0) off (0) outdoor (0) pad (0) padlong (0) pebbles (0) perc (0) peri (0) pluck (0) popkick (0) print (0) proc (0) procshort (0) psr (0) rave (0) rave2 (0) ravemono (0) realclaps (0) reverbkick (0) rm (0) rs (0) sax (0) sd (0) seawolf (0) sequential (0) sf (0) sheffield (0) short (0) sid (0) sine (0) sitar (0) sn (0) space (0) speakspell (0) speech (0) speechless (0) speedupdown (0) stab (0) stomp (0) subroc3d (0) sugar (0) sundance (0) tabla (0) tabla2 (0) tablex (0) tacscan (0) tech (0) techno (0) tink (0) tok (0) toys (0) trump (0) ul (0) ulgab (0) uxay (0) v (0) voodoo (0) wind (0) wobble (0) world (0) xmas (0) yeah (0)
… file reading complete. Required 243 MB of memory.

SuperDirt: listening to Tidal on port 57120

So I guess it should work…

I then entered this short code into SuperCollider and hit ctrl+Enter:
d1 $ sound “bd sn”
(https://tidalcycles.org/index.php/Tutorial)

SuperCollider replies with:
ERROR: syntax error, unexpected ASCII, expecting $end
in interpreted text
line 1 char 5:

d1 $ sound “bd sn”
^^


ERROR: Command line parse failed
-> nil

What am I missing?
Thanks!

The IDE that comes with SuperCollider only works with sclang. If you want to use TidalCycles and sclang in the same editor you can use atom or emacs.

More Info can be found here:
https://tidalcycles.org/index.php/Start_tidalcycles_and_superdirt_for_the_first_time

and here:
http://doc.sccode.org/Guides/ClientVsServer.html

HTH

Ah, ok. Thanks a lot for clarification!