"Learning Tidal" course week zero - installation and exploration

I get this error in SC when starting SuperDirt:

        loading synthdefs in /Users/Rain/Library/Application Support/SuperCollider/downloaded-quarks/SuperDirt/classes/../synths/core-synths-global.scd
        loading synthdefs in /Users/Rain/Library/Application Support/SuperCollider/downloaded-quarks/SuperDirt/classes/../synths/core-synths.scd
        loading synthdefs in /Users/Rain/Library/Application Support/SuperCollider/downloaded-quarks/SuperDirt/classes/../synths/default-synths.scd
        exception in GraphDef_Recv: exceeded number of interconnect buffers.
        WARNING: SynthDef superfm too big for sending. Retrying via synthdef file
        loading synthdefs in /Users/Rain/Library/Application Support/SuperCollider/downloaded-quarks/SuperDirt/classes/../synths/try-load-extra-synths.scd
        loading synthdefs in /Users/Rain/Library/Application Support/SuperCollider/downloaded-quarks/SuperDirt/classes/../synths/tutorial-synths.scd
        Execution warning: Class 'Vowel' not found
        ERROR: Message 'formLib' not understood.
        RECEIVER:
           nil
        ARGS:

    PROTECTED CALL STACK:
    	Meta_MethodError:new	0x7fa1a05af9c0
    		arg this = DoesNotUnderstandError
    		arg what = nil
    		arg receiver = nil
    	Meta_DoesNotUnderstandError:new	0x7fa1a05b1980
    		arg this = DoesNotUnderstandError
    		arg receiver = nil
    		arg selector = formLib
    		arg args = [  ]
    	Object:doesNotUnderstand	0x7fa19039a340
    		arg this = nil
    		arg selector = formLib
    		arg args = nil
    	SuperDirt:initVowels	0x7fa1a03ec480
    		arg this = a SuperDirt
    		arg register = counterTenor
    	SuperDirt:init	0x7fa1a03e1080
    		arg this = a SuperDirt
    	a FunctionDef	0x7fa1a1b285c0
    		sourceCode = "<an open Function>"
    	Routine:prStart	0x7fa1a1093480
    		arg this = a Routine
    		arg inval = 9.119535653

    CALL STACK:
    	DoesNotUnderstandError:reportError
    		arg this = <instance of DoesNotUnderstandError>
    	< closed FunctionDef >
    		arg error = <instance of DoesNotUnderstandError>
    	Integer:forBy
    		arg this = 0
    		arg endval = 2
    		arg stepval = 2
    		arg function = <instance of Function>
    		var i = 2
    		var j = 1
    	SequenceableCollection:pairsDo
    		arg this = [*4]
    		arg function = <instance of Function>
    	Scheduler:seconds_
    		arg this = <instance of Scheduler>
    		arg newSeconds = 10.957585004
    	Meta_AppClock:tick
    		arg this = <instance of Meta_AppClock>
    		var saveClock = <instance of Meta_SystemClock>
    	Process:tick
    		arg this = <instance of Main>
    ^^ The preceding error dump is for ERROR: Message 'formLib' not understood.
    RECEIVER: nil

And that command to install Haskal seemed to work! The Terminal went wild and ended with “Installation done!” I loaded up Atom to test it again and got a new error message however:

: error:
    Could not find module ‘Sound.Tidal.Context’
    It is not a module in the current program, or in any known package.

Thank you,
Ben

PS: After some digging on the troubleshooting page it appears that my Tidal library isn’t installed. I tried this command :
cabal update
cabal new-install tidal --lib
But I get this error in Terminal: “-bash: cabal: command not found”

How about this bit first:

Actually If you're not in your home folder you'll need this:

. ~/.ghcup/env

That second command seemed to work for Tidal and Atom!
I’m still getting this error from SC though. Any ideas?

Thanks!

-> SuperDirt
Booting server 'localhost' on address 127.0.0.1:57110.
Found 0 LADSPA plugins
_UniCharInfo_LinearCount:888
Number of Devices: 2
   0 : "MacBook Pro Microphone"
   1 : "MacBook Pro Speakers"

"MacBook Pro Microphone" Input Device
   Streams: 1
      0  channels 1

"MacBook Pro Speakers" Output Device
   Streams: 1
      0  channels 2

SC_AudioDriver: sample rate = 48000.000000, driver's block size = 512
SuperCollider 3 server ready.
Requested notification messages from server 'localhost'
localhost: server process's maxLogins (1) matches with my options.
localhost: keeping clientID (0) as confirmed by server process.
Shared memory server interface initialized
loading synthdefs in /Users/Rain/Library/Application Support/SuperCollider/downloaded-quarks/SuperDirt/classes/../synths/core-modules.scd
---- core synth defs loaded ----
loading synthdefs in /Users/Rain/Library/Application Support/SuperCollider/downloaded-quarks/SuperDirt/classes/../synths/core-synths-global.scd
loading synthdefs in /Users/Rain/Library/Application Support/SuperCollider/downloaded-quarks/SuperDirt/classes/../synths/core-synths.scd
loading synthdefs in /Users/Rain/Library/Application Support/SuperCollider/downloaded-quarks/SuperDirt/classes/../synths/default-synths.scd
exception in GraphDef_Recv: exceeded number of interconnect buffers.
WARNING: SynthDef superfm too big for sending. Retrying via synthdef file
loading synthdefs in /Users/Rain/Library/Application Support/SuperCollider/downloaded-quarks/SuperDirt/classes/../synths/try-load-extra-synths.scd
loading synthdefs in /Users/Rain/Library/Application Support/SuperCollider/downloaded-quarks/SuperDirt/classes/../synths/tutorial-synths.scd
Execution warning: Class 'Vowel' not found
ERROR: Message 'formLib' not understood.
RECEIVER:
   nil
ARGS:

PROTECTED CALL STACK:
	Meta_MethodError:new	0x7f91a058f9c0
		arg this = DoesNotUnderstandError
		arg what = nil
		arg receiver = nil
	Meta_DoesNotUnderstandError:new	0x7f91a0591980
		arg this = DoesNotUnderstandError
		arg receiver = nil
		arg selector = formLib
		arg args = [  ]
	Object:doesNotUnderstand	0x7f91a0142340
		arg this = nil
		arg selector = formLib
		arg args = nil
	SuperDirt:initVowels	0x7f91a03cc480
		arg this = a SuperDirt
		arg register = counterTenor
	SuperDirt:init	0x7f91a03c1080
		arg this = a SuperDirt
	a FunctionDef	0x7f91b06d85c0
		sourceCode = "<an open Function>"
	Routine:prStart	0x7f9190733480
		arg this = a Routine
		arg inval = 10.952409986

CALL STACK:
	DoesNotUnderstandError:reportError
		arg this = <instance of DoesNotUnderstandError>
	< closed FunctionDef >
		arg error = <instance of DoesNotUnderstandError>
	Integer:forBy
		arg this = 0
		arg endval = 2
		arg stepval = 2
		arg function = <instance of Function>
		var i = 2
		var j = 1
	SequenceableCollection:pairsDo
		arg this = [*4]
		arg function = <instance of Function>
	Scheduler:seconds_
		arg this = <instance of Scheduler>
		arg newSeconds = 12.846934297
	Meta_AppClock:tick
		arg this = <instance of Meta_AppClock>
		var saveClock = <instance of Meta_SystemClock>
	Process:tick
		arg this = <instance of Main>
^^ The preceding error dump is for ERROR: Message 'formLib' not understood.
RECEIVER: nil

Hm, so it seems the SuperDirt ‘quark’ is installed fine, but the Vowel one isn’t. That’s strange…

If you run this in supercollider, it should install it:

include("Vowel")

Once that’s complete, you’ll need to run ‘recompile class library’ from the language menu.

That worked! It still kicks out this one error message but I'm getting sound via Atom :slight_smile:
Should I try to sort out this error as well?

SuperCollider 3 server ready.
Requested notification messages from server 'localhost'
localhost: server process's maxLogins (1) matches with my options.
localhost: keeping clientID (0) as confirmed by server process.
Shared memory server interface initialized
loading synthdefs in /Users/Rain/Library/Application Support/SuperCollider/downloaded-quarks/SuperDirt/classes/../synths/core-modules.scd
---- core synth defs loaded ----
loading synthdefs in /Users/Rain/Library/Application Support/SuperCollider/downloaded-quarks/SuperDirt/classes/../synths/core-synths-global.scd
loading synthdefs in /Users/Rain/Library/Application Support/SuperCollider/downloaded-quarks/SuperDirt/classes/../synths/core-synths.scd
loading synthdefs in /Users/Rain/Library/Application Support/SuperCollider/downloaded-quarks/SuperDirt/classes/../synths/default-synths.scd
exception in GraphDef_Recv: exceeded number of interconnect buffers.
WARNING: SynthDef superfm too big for sending. Retrying via synthdef file
loading synthdefs in /Users/Rain/Library/Application Support/SuperCollider/downloaded-quarks/SuperDirt/classes/../synths/try-load-extra-synths.scd
loading synthdefs in /Users/Rain/Library/Application Support/SuperCollider/downloaded-quarks/SuperDirt/classes/../synths/tutorial-synths.scd

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 (5) ifdrums (3) incoming (8) industrial (32) insect (3) invaders (18) jazz (8) jungbass (20) jungle (13) juno (12) jvbass (13) kicklinn (1) koy (2) kurt (7) latibro (8) led (1) less (4) lighter (33) linnhats (6) lt (16) made (7) made2 (1) mash (2) mash2 (4) metal (10) miniyeah (4) monsterb (6) moog (7) mouth (15) mp3 (4) msg (9) mt (16) mute (28) newnotes (15) noise (1) noise2 (8) notes (15) numbers (9) oc (4) odx (15) off (1) outdoor (6) pad (3) padlong (1) pebbles (1) perc (6) peri (15) pluck (17) popkick (10) print (11) proc (2) procshort (8) psr (30) rave (8) rave2 (4) ravemono (2) realclaps (4) reverbkick (1) rm (2) rs (1) sax (22) sd (2) seawolf (3) sequential (8) sf (18) sheffield (1) short (5) sid (12) sine (6) sitar (8) sn (52) space (18) speakspell (12) speech (7) speechless (10) speedupdown (9) stab (23) stomp (10) subroc3d (11) sugar (2) sundance (6) tabla (26) tabla2 (46) tablex (3) tacscan (22) tech (13) techno (7) tink (5) tok (4) toys (13) trump (11) ul (10) ulgab (5) uxay (3) v (6) voodoo (5) wind (10) wobble (1) world (3) xmas (1) yeah (31) 
... file reading complete. Required 444 MB of memory.

SuperDirt: listening to Tidal on port 57120
1 Like

I'm not sure how serious this one is:

I think it's worth sorting though. Here I show how to start superdirt with more options: Week 1 lesson 2 - Loading sample packs

Once you do that, add this extra line to the list of configuration options there: s.options.numWireBufs = 128;

This one isn't an error and you can safely ignore it.

1 Like

Okay thanks. I’ll give adding that a go in a bit.

The good news is that the install seems like it’s now in a place where I can start learning… The bad news is that I have to also install this on my studio computer (!!), and I have virtually no idea how to recreate the steps I took to get here, lol. I’ll give that a go tomorrow, but I’m guessing you’ll be hearing from me again unfortunately.

Thanks for all your help with this!
(And if you have any ideas how I could make this smoother for the other machine let me know).

Ben

PS: Just wanted to come back to say that I modified "numWireBufs’ to 128 and that got rid of the error. I also used the ‘easy’ install process on my desktop machine without a single hitch! That’s really odd as my laptop and desktop started as clones of each-other not that long ago. Weird, but I’ll take it.

Hi everyone!

I’ve had tidal installed on my Windows 10 laptop for about a month about a year ago and everything went smoothly, but after some time i deleted everything related. Now, while trying to reinstall, no matter if i’m trying the choco install or the manual installation (via the instructions on tidalcycles.org), i get the same error with ghc every time, which is this message > https://gitlab.haskell.org/ghc/ghc/issues/17319, only the error code is 1920. I’ve been desperately trying everything I could find on various forums, here, toplap and other places to fix it, but nothing seems to work. The file it seems to not be able to access is in the folder path it provides in the message. The install runs to the end, again, both in choco or manually, but some of the packages in tidal library seem to not install citing problems with ghc (if i understand it correctly?) again. Despite that, the console message is that some packages failed to install but the library has been installed succesfully, and if i try to run tidal everything is smooth in SuperCollider, SuperDirt works with no problems, and Atom packages works just fine, but the sound is not there due to the same ghc error message in atom. I’m not sure what to do next and start to think it has to do either with numerous reinstallations (that i tried to clean up every time) or the exact versions of ghc and/or windows on this machine. However, as I used to have tidal working fine on this very machine last year, I hope this is fixable.

Thanks!

Hi @wildlighted,

Sorry for not answering before, I missed this one!

That's an annoying error with the libwinpthread-1.dll file. I found someone with possibly the same issue - the file is there but a compiler says it isn't. The top solution looks promising:

I'd be happy to have a quick look remotely using teamviewer, while you watch, if that helps? Send me a direct message if so - I think I'd need your id and password. https://www.teamviewer.com/

Hi Alex
Thanks!
I think I have installed everything right, but as soon as I run the code [d1 $ sound "bd sd"], I get the following message in the Atom post window:

Choose ghcup default path: /Users/panosamelidis/.ghcup/bin

Ghci command: /Users/panosamelidis/.ghcup/bin/ghci Ghc-pkg command: /Users/panosamelidis/.ghcup/bin/ghc-pkg

Load BootTidal.hs from /Users/panosamelidis/.atom/packages/tidalcycles/lib/BootTidal.hs

Loaded package environment from /Users/panosamelidis/.ghc/x86_64-darwin-8.8.3/environments/default

t>

t>Listening for controls on 127.0.0.1:6010

t>

That looks good! Are you not hearing sound? Is superdirt running in supercollider?

Thanks Alex, works fine now!

6 posts were split to a new topic: New 'ansible' method for installing on Ubuntu and other Linux distros

Hey all, so excited to be participating in this course!

I've been using Tidal with no problem for about a month now, and I've set up the start file in Supercollider as described, and there has been no issues or crises until now.

I took a break from using Tidal to work in Ableton a little bit, and when I returned I found that all my samples in Tidal were playing extremely low, and I wasn't able to return them to the proper pitch. When I tried reinitializing Superdirt, I got the following error:

ERROR: Input sample rate is 96000, but output is 44100. Mismatched sample rates are not supported. To disable input, set the number of input channels to 0.
could not initialize audio.
Server 'localhost' exited with exit code 0.

Not sure how this could have happened, anyone know how to fix it? I've tried restarting my computer to no avail.

That's strange. Maybe fiddling around in your system prefs before starting/restarting supercollider + superdirt would help.. It could be that the default input is set to a bluetooth device, or something like that.

Yeah it looks like the issue was that when I was in Ableton the input was set to no input...

I switched it to built in input in Ableton and it worked again!

Thanks :slight_smile:

1 Like

Hello @yaxu
I know that this issue was already pointed out, and probably there is a simple way to resolve this. But, every time I start Atom that message appears. I have sound and Super Collider is working fine so I suppose it's not a big deal that error. I didn't try those command lines in the terminal because everything is working and I'm afraid that I mess things up if I change that. So, my question is, if everything is working I should't worry about that error, right?
I'm on a MacBook with Mojave 10.14.6.
P.S.: I'm on the first week of the TidalCycles course and loving it :smile: Thanks and all the best.

Yes that would get a bit annoying. In atom preferences, are you on the latest version of the tidalcycles package? @ndr_brt has been releasing a lot of updates lately. But yes if everything is working you can ignore that, the only error is that it is treating some information as if it was an error.

That message appears for two reason:

  • a feature that shows the error messages on the console as atom notifications (that can be disabled in configuration)
  • that string is printed on the stderr by ghci (don't know why, it should be on stdout, it's a simple information)
1 Like

I just found (by trial an error) that ghci -v0 does not print the startup message and banner.

I have not idea what -v0 would change in a ghci session. Tidal seems to work fine.

Flag reference: https://downloads.haskell.org/ghc/latest/docs/html/users_guide/using.html#ghc-flag--v⟨n⟩ (it says that -v1 is default for --interactive, that is, ghci)