overtone / mini-beast

Digital clone of an analog synthesizer using Overtone and Quil
Other
68 stars 11 forks source link

(rotate) conflict between namespaces? #41

Closed dermusikman closed 11 months ago

dermusikman commented 9 years ago

I find that I am unable to run mini-beast, with the stacktrace below. I've tried this with Java 1.6 and 1.8 both; Leiningen version 2.4.1. I'm on OSX 10.9.5 with a fresh clone of the repository.

I'm new to Overtone and Clojure both, but it appears to me that it's not accepting the exclusion in the namespaces. I've tried explicitly calling (mini-beast.core/rotate) and (overtone.live/rotate) with no success.

I don't seem to find a definition of (rotate) in the source tree, so I'm at a loss.

MacBook-Pro:dermusikman mini-beast$ lein run
--> Loading Overtone...
--> Booting internal SuperCollider server...
Number of Devices: 2
   0 : "Built-in Microph"
   1 : "Built-in Output"

"Built-in Microph" Input Device
   Streams: 1
      0  channels 2

"Built-in Output" Output Device
   Streams: 1
      0  channels 2

SC_AudioDriver: sample rate = 44100.000000, driver's block size = 512
--> Connecting to internal SuperCollider server...
--> Connection established

    _____                 __
   / __  /_  _____  _____/ /_____  ____  ___
  / / / / | / / _ \/ ___/ __/ __ \/ __ \/ _ \
 / /_/ /| |/ /  __/ /  / /_/ /_/ / / / /  __/
 \____/ |___/\___/_/   \__/\____/_/ /_/\___/

   Collaborative Programmable Music. v0.9.1

Hello Spieler. Do you feel it? I do. Creativity is rushing through your veins today!

Exception in thread "main" java.lang.IllegalStateException: rotate already refers to: #'overtone.live/rotate in namespace: minibeast.core
        at clojure.lang.Namespace.warnOrFailOnReplace(Namespace.java:88)
        at clojure.lang.Namespace.reference(Namespace.java:110)
        at clojure.lang.Namespace.refer(Namespace.java:168)
        at clojure.core$refer.doInvoke(core.clj:3779)
        at clojure.lang.RestFn.applyTo(RestFn.java:139)
        at clojure.core$apply.invoke(core.clj:603)
        at clojure.core$load_lib.doInvoke(core.clj:5279)
        at clojure.lang.RestFn.applyTo(RestFn.java:142)
        at clojure.core$apply.invoke(core.clj:603)
        at clojure.core$load_libs.doInvoke(core.clj:5298)
        at clojure.lang.RestFn.applyTo(RestFn.java:137)
        at clojure.core$apply.invoke(core.clj:605)
        at clojure.core$use.doInvoke(core.clj:5392)
        at clojure.lang.RestFn.invoke(RestFn.java:551)
        at minibeast.core$eval20$loading__4784__auto____21.invoke(core.clj:1)
        at minibeast.core$eval20.invoke(core.clj:1)
        at clojure.lang.Compiler.eval(Compiler.java:6511)
        at clojure.lang.Compiler.eval(Compiler.java:6501)
        at clojure.lang.Compiler.load(Compiler.java:6952)
        at clojure.lang.RT.loadResourceScript(RT.java:359)
        at clojure.lang.RT.loadResourceScript(RT.java:350)
        at clojure.lang.RT.load(RT.java:429)
        at clojure.lang.RT.load(RT.java:400)
        at clojure.core$load$fn__4890.invoke(core.clj:5415)
        at clojure.core$load.doInvoke(core.clj:5414)
        at clojure.lang.RestFn.invoke(RestFn.java:408)
        at clojure.core$load_one.invoke(core.clj:5227)
        at clojure.core$load_lib.doInvoke(core.clj:5264)
        at clojure.lang.RestFn.applyTo(RestFn.java:142)
        at clojure.core$apply.invoke(core.clj:603)
        at clojure.core$load_libs.doInvoke(core.clj:5298)
        at clojure.lang.RestFn.applyTo(RestFn.java:137)
        at clojure.core$apply.invoke(core.clj:603)
        at clojure.core$require.doInvoke(core.clj:5381)
        at clojure.lang.RestFn.invoke(RestFn.java:408)
        at user$eval5$fn__7.invoke(form-init5436962395664583431.clj:1)
        at user$eval5.invoke(form-init5436962395664583431.clj:1)
        at clojure.lang.Compiler.eval(Compiler.java:6511)
        at clojure.lang.Compiler.eval(Compiler.java:6501)
        at clojure.lang.Compiler.load(Compiler.java:6952)
        at clojure.lang.Compiler.loadFile(Compiler.java:6912)
        at clojure.main$load_script.invoke(main.clj:283)
        at clojure.main$init_opt.invoke(main.clj:288)
        at clojure.main$initialize.invoke(main.clj:316)
        at clojure.main$null_opt.invoke(main.clj:349)
        at clojure.main$main.doInvoke(main.clj:427)
        at clojure.lang.RestFn.invoke(RestFn.java:421)
        at clojure.lang.Var.invoke(Var.java:419)
        at clojure.lang.AFn.applyToHelper(AFn.java:163)
        at clojure.lang.Var.applyTo(Var.java:532)
        at clojure.main.main(main.java:37)
^CMacBook-Pro:dermusikman mini-beast$
MacBook-Pro:dermusikman mini-beast$ lein version
Leiningen 2.4.1 on Java 1.8.0_31 Java HotSpot(TM) 64-Bit Server VM
dermusikman commented 9 years ago

The code I meant to link - sorry. Wish this were a PR, rather than an issue. Looking forward to playing with this

andrenventer commented 8 years ago

lein run Retrieving commons-collections/commons-collections/3.0-dev2/commons-collections-3.0-dev2.pom from central Retrieving commons-collections/commons-collections/3.0-dev2/commons-collections-3.0-dev2.jar from central --> Loading Overtone... --> Booting internal SuperCollider server... Found 0 LADSPA plugins *\ ERROR: open directory failed '/Users/nomad/Library/Application Support/SuperCollider/synthdefs' Number of Devices: 3 0 : "Built-in Microph" 1 : "Built-in Input" 2 : "Built-in Output"

"Built-in Microph" Input Device Streams: 1 0 channels 2

"Built-in Output" Output Device Streams: 1 0 channels 2

SC_AudioDriver: sample rate = 44100.000000, driver's block size = 512 --> Connecting to internal SuperCollider server... --> Connection established

_____                 __

/ /_ ___ / / __ _ / / / / | / / \/ **/ / \/ \/ \ / // /| |/ / _/ / / // // / / / / / **/ |**/**// /**// //_**/

Collaborative Programmable Music. v0.9.1

Hey Nomad, I feel something magical is only just beyond the horizon...

Exception in thread "main" java.lang.IllegalStateException: rotate already refers to: #'overtone.live/rotate in namespace: minibeast.core at clojure.lang.Namespace.warnOrFailOnReplace(Namespace.java:88) at clojure.lang.Namespace.reference(Namespace.java:110) at clojure.lang.Namespace.refer(Namespace.java:168) at clojure.core$refer.doInvoke(core.clj:3779) at clojure.lang.RestFn.applyTo(RestFn.java:139) at clojure.core$apply.invoke(core.clj:603) at clojure.core$load_lib.doInvoke(core.clj:5279) at clojure.lang.RestFn.applyTo(RestFn.java:142) at clojure.core$apply.invoke(core.clj:603) at clojure.core$load_libs.doInvoke(core.clj:5298) at clojure.lang.RestFn.applyTo(RestFn.java:137) at clojure.core$apply.invoke(core.clj:605) at clojure.core$use.doInvoke(core.clj:5392) at clojure.lang.RestFn.invoke(RestFn.java:551) at minibeast.core$eval20$loading4784auto__21.invoke(core.clj:1) at minibeast.core$eval20.invoke(core.clj:1) at clojure.lang.Compiler.eval(Compiler.java:6511) at clojure.lang.Compiler.eval(Compiler.java:6501) at clojure.lang.Compiler.load(Compiler.java:6952) at clojure.lang.RT.loadResourceScript(RT.java:359) at clojure.lang.RT.loadResourceScript(RT.java:350) at clojure.lang.RT.load(RT.java:429) at clojure.lang.RT.load(RT.java:400) at clojure.core$load$fn4890.invoke(core.clj:5415) at clojure.core$load.doInvoke(core.clj:5414) at clojure.lang.RestFn.invoke(RestFn.java:408) at clojure.core$load_one.invoke(core.clj:5227) at clojure.core$load_lib.doInvoke(core.clj:5264) at clojure.lang.RestFn.applyTo(RestFn.java:142) at clojure.core$apply.invoke(core.clj:603) at clojure.core$load_libs.doInvoke(core.clj:5298) at clojure.lang.RestFn.applyTo(RestFn.java:137) at clojure.core$apply.invoke(core.clj:603) at clojure.core$require.doInvoke(core.clj:5381) at clojure.lang.RestFn.invoke(RestFn.java:408) at user$eval5$fn__7.invoke(form-init5704691634906956235.clj:1) at user$eval5.invoke(form-init5704691634906956235.clj:1) at clojure.lang.Compiler.eval(Compiler.java:6511) at clojure.lang.Compiler.eval(Compiler.java:6501) at clojure.lang.Compiler.load(Compiler.java:6952) at clojure.lang.Compiler.loadFile(Compiler.java:6912) at clojure.main$load_script.invoke(main.clj:283) at clojure.main$init_opt.invoke(main.clj:288) at clojure.main$initialize.invoke(main.clj:316) at clojure.main$null_opt.invoke(main.clj:349) at clojure.main$main.doInvoke(main.clj:427) at clojure.lang.RestFn.invoke(RestFn.java:421) at clojure.lang.Var.invoke(Var.java:419) at clojure.lang.AFn.applyToHelper(AFn.java:163) at clojure.lang.Var.applyTo(Var.java:532) at clojure.main.main(main.java:37)

pjagielski commented 8 years ago

I guess the solution is to move src/core.clj to src/minibeast/core.clj

dermusikman commented 7 years ago

I've managed to fix the existing issue by adding rotate and fill to the list of exclusions in minibeast/core.clj, and then I'm faced with new errors... I guess I'll keep hacking at this until I can make a PR. I'm new to Clojure, so this is new to me 🆕

plexus commented 11 months ago

This should be fixed now.