jonromero / music-as-data

A Live Programming language for music
mad.emotionull.com
BSD 2-Clause "Simplified" License
346 stars 22 forks source link

Can't play samples #2

Closed r-moeritz closed 13 years ago

r-moeritz commented 13 years ago

After editing globals.clj to point *samples-path* to the samples directory in the music-as-data distro, I try to play samples:

(play! [kick2 kick2 kick2 kick2 snare2 kick2 kick2 kick2] 2)
#<CompilerException java.lang.Exception: Unable to resolve symbol: kick2 in this context (NO_SOURCE_FILE:1)>
jonromero commented 13 years ago

Inside core.clj there are some defsamples in comments. You must first run these.

klang commented 13 years ago

globals.clj has a full path to the sample directory, as lein stars up in the 'music-as-data' folder and the samples are placed in 'samples' the following samples-path should work for everybody:

(def samples-path "samples/")

jonromero commented 13 years ago

Correct. No need to modify samples-path in the new version (thx klang for the tip)