overtone / overtone

Collaborative Programmable Music
http://overtone.github.io
Other
5.89k stars 448 forks source link

Namespace `overtone.inst.piano` not found #363

Open theronic opened 8 years ago

theronic commented 8 years ago

I can't seem to require or use the overtone.inst.piano namespace.. I downloaded the SC3 extensions and put them at /Library/Application Support/SuperCollider/Extensions/SC3plugins.

In my project.clj I have [overtone "0.10.1"] as a dependency. I can call (use 'overtone.core) and connect to an external scsynth server to play demos, but piano won't load.

What am I doing wrong?

user=> (use 'overtone.core)
--> Loading Overtone...
--> Please boot a server to start making noise:
    * (boot-server)             ; boot default server (honours config)
    * (boot-internal-server)    ; boot an internal server
    * (boot-external-server)    ; boot an external server
    * (connect-external-server) ; connect to an existing external server
user=> (connect-external-server 5555)
--> Connecting to external SuperCollider server: 127.0.0.1:5555
--> Connection established
:happy-hacking
user=> (use 'overtone.inst.piano)

CompilerException java.lang.Exception: namespace 'overtone.inst.piano' not found, compiling:(/private/var/folders/8j/27sz_2rj0kd1b3v9y4n1_1t00000gn/T/form-init6150710709274349889.clj:1:1)
theronic commented 7 years ago

This is still an issue for me. Bought a Launchpad controller to interact with Overtone, but can't get this going. I get the same error for (use 'overtone.inst.drum). What am I doing wrong? Do I have an old version cached or something? :(

beatboxchad commented 7 years ago

I'm gonna dig into this one soon. It happens for me too, but only intermittently. How peculiar.

Just now I opened up a REPL and said: (use 'overtone.core) (boot-external-server) (use 'overtone.inst.piano)

and it worked. So I opened a new REPL and tried to (use 'overtone.inst.piano) before connecting an external server and it gave me an error that the server must be connected first. So I went (boot-external-server) and got the namespace error.

I'm sure after some reproduction and observation and code spelunking things will make sense.

hlolli commented 7 years ago

Can you post your project.clj file? I'm going to be that annoying "works on my machine" guy :)

user=> (use 'overtone.live)
--> Loading Overtone...
--> Booting internal SuperCollider server...
jackdmp 1.9.10
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2014 Grame.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
JACK server starting in realtime mode with priority 89
Found 0 LADSPA plugins
audio_reservation_init
Acquire audio card Audio1
creating alsa driver ... hw:PCH|-|2048|2|44100|0|0|nomon|swmeter|-|32bit
configuring for 44100Hz, period = 2048 frames (46.4 ms), buffer = 2 periods
ALSA: final selected sample format for playback: 32bit integer little-endian
ALSA: use 2 periods for playback
JackDriver: client name is 'SuperCollider'
SC_AudioDriver: sample rate = 44100.000000, driver's block size = 2048
--> Connecting to internal SuperCollider server...
--> Connection established
JackDriver: max output latency 92.9 ms

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

   Collaborative Programmable Music. v0.10.1

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

nil
user=> (use 'overtone.inst.piano)
nil
user=> 
beatboxchad commented 7 years ago

I've run into this before. It's definitely intermittent. It works on my machine most of the time too.

On Jul 10, 2017 3:21 PM, "Hlöðver Sigurðsson" notifications@github.com wrote:

Can you post your project.clj file? I'm going to be that annoying "works on my machine" guy :)

user=> (use 'overtone.live) --> Loading Overtone... --> Booting internal SuperCollider server... jackdmp 1.9.10 Copyright 2001-2005 Paul Davis and others. Copyright 2004-2014 Grame. jackdmp comes with ABSOLUTELY NO WARRANTY This is free software, and you are welcome to redistribute it under certain conditions; see the file COPYING for details JACK server starting in realtime mode with priority 89 Found 0 LADSPA plugins audio_reservation_init Acquire audio card Audio1 creating alsa driver ... hw:PCH|-|2048|2|44100|0|0|nomon|swmeter|-|32bit configuring for 44100Hz, period = 2048 frames (46.4 ms), buffer = 2 periods ALSA: final selected sample format for playback: 32bit integer little-endian ALSA: use 2 periods for playback JackDriver: client name is 'SuperCollider' SC_AudioDriver: sample rate = 44100.000000, driver's block size = 2048 --> Connecting to internal SuperCollider server... --> Connection established JackDriver: max output latency 92.9 ms

_____                 __

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

Collaborative Programmable Music. v0.10.1

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

nil user=> (use 'overtone.inst.piano) nil user=>

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/overtone/overtone/issues/363#issuecomment-314224586, or mute the thread https://github.com/notifications/unsubscribe-auth/ACKBt6YH30JBlZvANYTO7VXzU5GZVL8Dks5sMofVgaJpZM4J_mpG .