musikinformatik / SuperDirt

Tidal Audio Engine
GNU General Public License v2.0
518 stars 75 forks source link

Lazy Sample Loading doesn't find any samples (Windows 11/SuperCollider 3.12.1) #290

Closed cleary closed 11 months ago

cleary commented 1 year ago

Hi, I've installed SuperDirt on windows 11, with SuperCollider 3.12.1

If I configure the lazy sample loading in my startup.scd (~dirt.doNotReadYet = true;), I get some odd output from the sample bank loading log:

218 existing sample banks:
.git (0) 808 (0) 808bd (0) 808cy (0) 808hc (0) 808ht (0) 808lc (0) 808lt (0) 808mc (0) 808mt (0) 808oh (0) 808sd (0) 909 (0) ab (0) ade (0) ades2 (0) ades3 (0) ades4 (0) alex (0) alphabet (0) amencutup (0) armora (0) arp (0) arpy (0) auto (0) baa (0) baa2 (0) bass (0) bass0 (0) bass1 (0) bass2 (0) bass3 (0) bassdm (0) bassfoo (0) battles (0) bd (0) bend (0) bev (0) bin (0) birds (0) birds3 (0) bleep (0) blip (0) blue (0) bottle (0) breaks125 (0) breaks152 (0) breaks157 (0) breaks165 (0) breath (0) bubble (0) can (0) casio (0) cb (0) cc (0) chin (0) circus (0) clak (0) click (0) clubkick (0) co (0) coins (0) control (0) cosmicg (0) cp (0) cr (0) crow (0) d (0) db (0) diphone (0) diphone2 (0) dist (0) dork2 (0) dorkbot (0) dr (0) dr2 (0) dr55 (0) drum (0) drumtraks (0) dr_few (0) e (0) east (0) electro1 (0) em2 (0) erk (0) f (0) feel (0) feelfx (0) fest (0) fire (0) flick (0) fm (0) foo (0) future (0) gab (0) gabba (0) gabbaloud (0) gabbalouder (0) glasstap (0) glitch (0) glitch2 (0) gretsch (0) gtr (0) h (0) hand (0) hardcore (0) hardkick (0) haw (0) hc (0) hh (0) hh27 (0) hit (0) hmm (0) ho (0) hoover (0) house (0) ht (0) if (0) 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) 

The samples are not usable in tidal.

module 'sound': instrument not found: bd
no synth or sample named 'bd' could be found.

If I comment the lazy loading, everything works as expected. It is fully functional with an identical setup under Linux

telephon commented 1 year ago

As a test, can you try to read a soundfile header via

var  path = "../../Dirt-Samples/*".resolveRelative.postln[0];

SoundFile.use(path, { |file|
            file.sampleRate.postln;
            file.numFrames.postln;
            file.numChannels.postln;
        });
cleary commented 11 months ago

As a test, can you try to read a soundfile header via

var  path = "../../Dirt-Samples/*".resolveRelative.postln[0];

SoundFile.use(path, { |file|
          file.sampleRate.postln;
          file.numFrames.postln;
          file.numChannels.postln;
      });

Sorry Julian, I totally missed this request!

telephon commented 11 months ago

yes, I also had lost it. I am glad that @ritchse found the solution.