Got Overtone running on Windows 7, so I can answer any setup questions

784 views
Skip to first unread message

Paul

unread,
Oct 16, 2011, 7:11:03 PM10/16/11
to Overtone
It took a while, but I learned a lot. A few notes on my experience:

- Windows is a viable platform for this, so people shouldn't hesitate
to use it. I automatically avoided it because many of the tools aren't
native, but that hasn't been a show-stopping problem.
- It's probably possible to work in a Ubuntu VM, but make sure that
you don't have any trouble with your sound-card. If you've ever gotten
the "Device id is out of range" message, you're in for trouble --
don't bother.
- I might make the setup process a more clear track of, "Get sound
producing on the REPL, then get emacs communicating with swank." The
difference is worth making clear, and it might have saved me wasted
setup on the VM (that ultimately couldn't produce the sound).
- Cygwin works, but you're going to need to be comfortable doing some
manual path work. I haven't gotten Cake to work yet (Ruby's gem
command is still acting funny) but lein is good.
- If you're using Cygwin, I recommend 'mintty.' It's got native copy
& paste, and some great visual options: http://dl.dropbox.com/u/14621215/pics/mintty-setup.png
- Mintty has a weird problem with lein's repl where it won't register
the input. When I ctrl+c, the repl closes and the shell suddenly
receives it all. I haven't figured that out yet.
- Cygwin's default shell has its own weird problem with lein's repl,
where it takes the input, but refuses to register ctrl+c or the close-
button on the window. I have to end the process through the task
manager.

A few answers to possible stumbling-blocks:

- One of my steps for getting SuperCollider running was to enable
audio input devices. Double-check that if you have a problem with (use
'overtone.live).
- Lein needs ant and maven to start pulling in dependencies, and it
won't make that clear. You'll run 'lein deps,' and it'll only grab
clojure's jar. I recommend following http://jartur.l-square.net/2010/02/20/clojure-emacs-windows/
-- though I didn't try Clojure Box, because I was already using Sam's
live-coding package.
- Clojure Box is supposed to take care of swank for you. Currently,
I'm solving that by including it as a dev-dependency: [[ant/ant
"1.6.5"] [ant/ant-launcher "1.6.5"] [leiningen/lein-swank "1.2.0-
SNAPSHOT"]]. That may not be my long-term solution, but it does work.

Any other questions, I'll be around. Next step, get the SC plugins
(piano) and start experimenting.

Sam Aaron

unread,
Oct 17, 2011, 3:37:53 AM10/17/11
to over...@googlegroups.com
Paul,

Wow! Impressive work. There are certainly a lot of gotchas there. This is definitely an area we could do with working on to make the install process super easy. This is something to work on for a 1.0 release - which won't be for a little bit. At least, not until we have some compelling and simple approaches to making beats, playing with samples and building fx chains. All work in progress!

Until then we want to attract cool hackers like yourself that are prepared to get their hands dirty occasionally. We definitely want Windows hackers too. We designed Overtone to be cross platform so that everyone with a computer can make crazy sounds.

Would it be at all possible if you could turn your fresh new knowledge into a simple "Getting Started on Windows" github wiki page?

That would rock!

Keep up the excellent work and I look forward to hearing what you get up to with Overtone.

Sam

---
http://sam.aaron.name

Paul

unread,
Oct 18, 2011, 1:19:06 AM10/18/11
to Overtone
Sure thing. It'll take a bit, but I'll be sure to find the time.

On Oct 17, 2:37 am, Sam Aaron <samaa...@gmail.com> wrote:
> Paul,
>
> Wow! Impressive work. There are certainly a lot of gotchas there. This is definitely an area we could do with working on to make the install process super easy. This is something to work on for a 1.0 release - which won't be for a little bit. At least, not until we have some compelling and simple approaches to making beats, playing with samples and building fx chains. All work in progress!
>
> Until then we want to attract cool hackers like yourself that are prepared to get their hands dirty occasionally. We definitely want Windows hackers too. We designed Overtone to be cross platform so that everyone with a computer can make crazy sounds.
>
> Would it be at all possible if you could turn your fresh new knowledge into a simple "Getting Started on Windows" github wiki page?
>
> That would rock!
>
> Keep up the excellent work and I look forward to hearing what you get up to with Overtone.
>
> Sam
>
> ---http://sam.aaron.name
> > clojure's jar. I recommend followinghttp://jartur.l-square.net/2010/02/20/clojure-emacs-windows/

Sam Aaron

unread,
Oct 18, 2011, 5:49:02 AM10/18/11
to over...@googlegroups.com

On 18 Oct 2011, at 06:19, Paul wrote:

> Sure thing. It'll take a bit, but I'll be sure to find the time.

Super. Please let us know when it's up on the wiki so we can go and admire :-)

Sam

---
http://sam.aaron.name

dudemaestro

unread,
Oct 18, 2011, 9:39:53 PM10/18/11
to Overtone
Thanks alot, im a noob in this thing of crazy musical coding and the
not native windows apps, I'll try to instal this tomorrow nigth after
scholl, tnx again ;D.
Saludos desde Mexico.
Message has been deleted

Sam Aaron

unread,
Oct 23, 2011, 6:40:06 PM10/23/11
to over...@googlegroups.com
Hey there,

No worries about being new to all this. We all have to start somewhere :-)

Could you paste your project.clj file that you're trying to use?

Sam

---
http://sam.aaron.name

On 23 Oct 2011, at 22:27, dudemaestro wrote:

> After days of trying and trayind i was unable to install overtone, i
> stuck in the part were you pull deps in to de project.clj in lein.
> I get this error.
>
> Exception in thread "main" java.lang.IllegalArgumentException:
> Duplicate key: :d ependencies (project.clj:1)
> at clojure.lang.Compiler.eval(Compiler.java:5440)
> at clojure.lang.Compiler.load(Compiler.java:5857)
> at clojure.lang.Compiler.loadFile(Compiler.java:5820)
> at clojure.lang.RT$3.invoke(RT.java:296)
> at leiningen.core$read_project$fn__205.invoke(core.clj:121)
> at leiningen.core$read_project.invoke(core.clj:120)
> at leiningen.core$read_project.invoke(core.clj:124)
> at leiningen.core$_main.doInvoke(core.clj:286)
> at clojure.lang.RestFn.invoke(RestFn.java:410)
> at clojure.lang.AFn.applyToHelper(AFn.java:161)
> at clojure.lang.RestFn.applyTo(RestFn.java:132)
> at clojure.core$apply.invoke(core.clj:542)
> at leiningen.core$_main.invoke(core.clj:297)
> at user$eval288.invoke(NO_SOURCE_FILE:1)
> at clojure.lang.Compiler.eval(Compiler.java:5424)
> at clojure.lang.Compiler.eval(Compiler.java:5391)
> at clojure.core$eval.invoke(core.clj:2382)
> at clojure.main$eval_opt.invoke(main.clj:235)
> at clojure.main$initialize.invoke(main.clj:254)
> at clojure.main$script_opt.invoke(main.clj:270)
> at clojure.main$main.doInvoke(main.clj:354)
> at clojure.lang.RestFn.invoke(RestFn.java:457)
> at clojure.lang.Var.invoke(Var.java:377)
> at clojure.lang.AFn.applyToHelper(AFn.java:172)
> at clojure.lang.Var.applyTo(Var.java:482)
> at clojure.main.main(main.java:37)
> Caused by: java.lang.IllegalArgumentException: Duplicate
> key: :dependencies
> at
> clojure.lang.PersistentHashMap.createWithCheck(PersistentHashMap.java :
> 92)
> at clojure.core$hash_map.doInvoke(core.clj:327)
> at clojure.lang.RestFn.applyTo(RestFn.java:137)
> at clojure.core$apply.invoke(core.clj:540)
> at leiningen.core$eval290.invoke(project.clj:1)
> at clojure.lang.Compiler.eval(Compiler.java:5424)
> ... 25 more
>
> also im a comlete noob and i dont really get how do you get OVERTON
> installed in to the machin if i havent downloaded nothing about it
> (like libs or the stuff that gets copied into de bin folder of cygwin
> to instal ant or maven).
>
> Please halp. Also im wating for the full windows installation guide.

dudemaestro

unread,
Oct 23, 2011, 6:42:29 PM10/23/11
to Overtone
Ok i manage to instal cygwin, ant, mave, and lein. I added the overton
deps to de project.clj. Started the repl and..
Now when i try to conect to scsynth i get this message:
"user=> (use 'overtone.live)
java.lang.Exception: Too many arguments to def (defaults.clj:4)"

The same hapends if a isue this "user=>(use 'overtone.core)"

Whats the problem?. HELP.

I cant belive i have got this far, even if i dont know what Im really
doing. xD

Also im still wating for the foll windows installation guide for total
noobs.
Thanks.

Sam Aaron

unread,
Oct 23, 2011, 6:51:05 PM10/23/11
to over...@googlegroups.com
Hey there,

well done for getting so far! You're almost there…

On 23 Oct 2011, at 23:42, dudemaestro wrote:

>
> java.lang.Exception: Too many arguments to def (defaults.clj:4)"


I'm assuming you refer to Clojure 1.2.0 in your project.clj file. If so, you need to either delete that line or refer to 1.3.0 instead.

Have you seen this wiki documentation? It might help explain things a little better:

https://github.com/overtone/overtone/wiki/Installing-overtone

Sam

---
http://sam.aaron.name

dudemaestro

unread,
Oct 23, 2011, 10:09:54 PM10/23/11
to Overtone
Yes and thankyou.
That was the problem, I missread that paragraph, now I have managed to
connect to supercollider and get sound, I’m so exited .

Bojan Radakovic

unread,
Feb 29, 2012, 5:21:50 PM2/29/12
to over...@googlegroups.com
A few noobish questions. Do i need cake, maven and lein? I mean, like all three? Also, im a bit off-grid, so downloading dependencies will be interesting, at least :D I got cygwin, just need to download packages and carry them home. Where do i find ant and maven?  http://jartur.l-square.net/2010/02/20/clojure-emacs-windows/ dissapeared :(

So, steps i need to take are ( as far as i got it )

1. Install cygwin and install clojure
2. Get lein / maven ?
3. Make lein / maven to pull other necessary stuff ?

Marc

unread,
Apr 8, 2012, 10:37:35 AM4/8/12
to Overtone
Hi Bojan,

I cannot speak for Windows 7 because i'm still on XP but as a fellow-
noober and having gone through all
this too recently I have a couple of notes that may help:

- I don't use cygwin and i usually don't install clojure explicitly
- Downloaded the lein.bat from https://raw.github.com/technomancy/leiningen/stable/bin/lein.bat
- I'm not aware of any other requirements for lein (though I already
had ant and maven so I'm not sure)
- Make sure it's found in PATH
- lein self-install
- lein plugin install swank-clojure 1.4.2 (this installs it so that
you don't need it in project.clj
every time)
- lein new overtone-test
- cd overtone-test
- edit project.clj (note that i'm using clojure 1.3.0):

(defproject overtone-test "1.0.0-SNAPSHOT"
:description "FIXME: write description"
:dependencies [[org.clojure/clojure "1.3.0"]
[overtone "0.6.0"]])

- lein deps

Emacs:
- I used http://alpha.gnu.org/gnu/emacs/windows/emacs-20120319-r107630-bin-i386.zip
(using emacs 24
is easier than < 24)
- Create/update ~/.emacs.d/init.el (~ refers to whatever you have set
as %HOME%) and added

(require 'package)
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.org/packages/") t)
(package-initialize)

- Start emacs
- M-x package-refresh-contents
- instead of using the whole live coding setup for emacs I wanted to
start as simple as possible,
from here on you can use M-x package-install to install other emacs
packages
- M-x package-install RET starter-kit-lisp RET
you'll get some compilation warnings, don't worry about them, it
doesn't include clojure-mode so
- M-x package-install RET clojure-mode RET

From here on you should be able to go by opening a .clj from your
project, M-x clojure-jack-in.

- for me the live server didn't work and from other messages in this
group i saw that others
also didn't get the live server to work on windows, i therefor
always start SC separately
and connect to it from the REPL using (connect-external-server
57110)

As always YMMV but after having gone through several older emacs/swank/
slime recipes in hindsight
all was simpler than I initially thought or what some of these recipes
made it look like.

It's a bummer that I found Overtone only a couple of days before my
holidays ends since I will have
less time to play with it from next week ;-(

--Marc

On Mar 1, 12:21 am, Bojan Radakovic <mono.mach...@gmail.com> wrote:
> A few noobish questions. Do i need cake, maven and lein? I mean, like all
> three? Also, im a bit off-grid, so downloading dependencies will be
> interesting, at least :D I got cygwin, just need to download packages and
> carry them home. Where do i find ant and maven?  http://jartur.l-square.net/2010/02/20/clojure-emacs-windows/dissapeared :(

Tom Oinn

unread,
Apr 8, 2012, 11:36:16 AM4/8/12
to over...@googlegroups.com
Hi Bojan,

I'm on Win7 x64 and using Eclipse with Counterclockwise (the Clojure
plugin) rather than Emacs, my experience is that you just have to
download Lein and run the self installer as Marc says.

To start a new project create the project.clj file (as Marc describes)
in a new directory and run 'lein deps' and 'lein eclipse' to create
the eclipse metadata, then import as an existing project into eclipse.
Everything works pretty much as expected on the two systems I've used
(both Win7, but with a variety of built in and external audio cards).

The live server works perfectly for me, for what it's worth, and
didn't need any configuration when switching between different audio
devices - I've used it with: Asus Xonar DX PCIe card, B&W MM1 (usb
class compliant audio), Realtek integrated audio on laptop, Focusrite
Scarlett 18i6. All just worked, no messing around needed in any cases.
I've only used the default two channel output and haven't tried with
any inputs, but thus far everything has just cooperated.

I'm running on Windows rather than linux because the other software I
use is Win / Mac only (Ableton Live, Maschine, Audiocube OSC server)
and because linux support for my main portable interface isn't great
(Scarlett 18i6), I'm using Eclipse because it makes it easy to take
with me, I can put the entire environment on a USB stick, and because
it's what I'm used to from my paid contract work. I appear to be in a
minority though, I think most people on this list use Emacs.

Tom

Bojan Radakovic

unread,
May 27, 2012, 10:54:58 AM5/27/12
to over...@googlegroups.com
Got it running today, audio is up and running, im so happy :) Only thing i cant get is what happened to emacs? lost all "windows" look, no menus, nothing, and this is my first time running it so im a bit confused

Sam Aaron

unread,
May 27, 2012, 12:19:49 PM5/27/12
to over...@googlegroups.com
Hi Bojan,

if you're using Emacs Live, then it turns off all the windows and other clutter as it's just a pain and a distraction. You should get to grips with using Emacs from the keyboard as much as possible, the M-x fuzzy completion is so much easier and quicker to use than any hierarchical window system once you get used to it.

Sam

--
http://sam.aaron.name

Chris Jenkins

unread,
May 27, 2012, 12:31:42 PM5/27/12
to over...@googlegroups.com
If you are running Emacs Live then, if you *really* want to get menu bars/toolbars etc back then you can edit

live-config/cosmetic.elc

and look at the end for these lines:

;get rid of clutter
(if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1))
(if (fboundp 'tool-bar-mode) (tool-bar-mode -1))
(if (fboundp 'menu-bar-mode) (menu-bar-mode -1))

For example, you can comment out (if (fboundp 'menu-bar-mode) (menu-bar-mode -1)) to get menus back.

Having said that, the menus in Emacs aren't actually all that useful (there's lots of stuff that isn't in the menus, for example) and getting to grips with M-x completion is your best plan in the long run.

Sam Aaron

unread,
May 27, 2012, 12:45:36 PM5/27/12
to over...@googlegroups.com
Actually, if you're using Emacs LIve, this stuff is now to be found in the foundation pack:

~/.emacs.d/packs/live/foundation-pack/config/cosmetic.el

However, if you're going down the route of adding back this stuff, rather than fork the project and hack this file directly, I'd advise you to create a user pack and add it back with:

(if (fboundp 'scroll-bar-mode) (scroll-bar-mode 1))
(if (fboundp 'tool-bar-mode) (tool-bar-mode 1))
(if (fboundp 'menu-bar-mode) (menu-bar-mode 1))



Sam

--
http://sam.aaron.name


On Sunday, 27 May 2012 at 17:31, Chris Jenkins wrote:

> If you are running Emacs Live then, if you *really* want to get menu bars/toolbars etc back then you can edit
>
> live-config/cosmetic.elc
>
> and look at the end for these lines:
>
> ;get rid of clutter
> (if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1))
> (if (fboundp 'tool-bar-mode) (tool-bar-mode -1))
> (if (fboundp 'menu-bar-mode) (menu-bar-mode -1))
>
> For example, you can comment out (if (fboundp 'menu-bar-mode) (menu-bar-mode -1)) to get menus back.
>
> Having said that, the menus in Emacs aren't actually all that useful (there's lots of stuff that isn't in the menus, for example) and getting to grips with M-x completion is your best plan in the long run.

Chris Jenkins

unread,
May 27, 2012, 12:54:40 PM5/27/12
to over...@googlegroups.com
Sorry, I must have the wrong version of Emacs Live. I just cloned this repo and am on the master branch: https://github.com/overtone/live-coding-emacs

Is that stuff out of date?

Sam Aaron

unread,
May 27, 2012, 1:05:24 PM5/27/12
to over...@googlegroups.com
Hey Chris,

Emacs Live is a new and separate project:

http://github.com/overtone/emacs-live

When I feel that this is totally ready to be announced (some point soon) I'll officially deprecate the live-coding-emacs config. I'd recommend you move across to it too, as all future development will be in the new project.

Sam

--
http://sam.aaron.name


On Sunday, 27 May 2012 at 17:54, Chris Jenkins wrote:

> Sorry, I must have the wrong version of Emacs Live. I just cloned this repo and am on the master branch: https://github.com/overtone/live-coding-emacs
>
> Is that stuff out of date?
>
> On 27 May 2012 17:45, Sam Aaron <sama...@gmail.com (mailto:sama...@gmail.com)> wrote:
> > Actually, if you're using Emacs LIve, this stuff is now to be found in the foundation pack:
> >
> > ~/.emacs.d/packs/live/foundation-pack/config/cosmetic.el
> >
> > However, if you're going down the route of adding back this stuff, rather than fork the project and hack this file directly, I'd advise you to create a user pack and add it back with:
> >
> > (if (fboundp 'scroll-bar-mode) (scroll-bar-mode 1))
> > (if (fboundp 'tool-bar-mode) (tool-bar-mode 1))
> > (if (fboundp 'menu-bar-mode) (menu-bar-mode 1))
> >
> >
> >
> > Sam
> >
> > --
> > http://sam.aaron.name
> >
> >
> > On Sunday, 27 May 2012 at 17:31, Chris Jenkins wrote:
> >
> > > If you are running Emacs Live then, if you *really* want to get menu bars/toolbars etc back then you can edit
> > >
> > > live-config/cosmetic.elc
> > >
> > > and look at the end for these lines:
> > >
> > > ;get rid of clutter
> > > (if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1))
> > > (if (fboundp 'tool-bar-mode) (tool-bar-mode -1))
> > > (if (fboundp 'menu-bar-mode) (menu-bar-mode -1))
> > >
> > > For example, you can comment out (if (fboundp 'menu-bar-mode) (menu-bar-mode -1)) to get menus back.
> > >
> > > Having said that, the menus in Emacs aren't actually all that useful (there's lots of stuff that isn't in the menus, for example) and getting to grips with M-x completion is your best plan in the long run.

Chris Jenkins

unread,
May 27, 2012, 1:10:27 PM5/27/12
to over...@googlegroups.com
Cool I'll check it out - thanks :-)

Bojan Radakovic

unread,
May 27, 2012, 5:43:04 PM5/27/12
to over...@googlegroups.com
Cool, i should start learning emacs. By the way, theme looks killer on that hacking overtone video!

Bojan Radakovic

unread,
May 27, 2012, 5:54:42 PM5/27/12
to over...@googlegroups.com
If i dont start emacs from overtone project dir, i cant boot / connect to scsynth. So i have emacs in my path, but i must call it specifically, eg, i open CMD, and go to c:\overtone\overtone-project\ then runemacs project.clj else it wotn connect to scsynth...

Sam Aaron

unread,
May 27, 2012, 6:17:37 PM5/27/12
to over...@googlegroups.com
Hey Bojan,

are you using slime and swank with Emacs? If not, I recommend you do:

https://github.com/overtone/emacs-live#clojure-hacking

--
http://sam.aaron.name

Bojan Radakovic

unread,
May 31, 2012, 3:08:42 AM5/31/12
to over...@googlegroups.com
I was following Marc's steps, installing swank and slime i believe. Now, i cant run code you posted in your video, hacking overtone with emacs ( and i took lot of time trying to set up that lambda sign in emacs, in the end realising it is your console, lol ) where i get the error that env gen does not get what it wants... will post code later

Bojan Radakovic

unread,
Jun 12, 2012, 5:51:38 PM6/12/12
to over...@googlegroups.com
Overtone behaves strangely when i follow tutorial steps. Eg, i cant even write [overtone.something, it bugs before i even finish overtone.....
Untitled.jpg

Sam Aaron

unread,
Jun 12, 2012, 6:27:50 PM6/12/12
to over...@googlegroups.com
Hi Bojan,

this is an error in the swank server and its interaction with the Clojure auto-complete mode. You can either wait until a new version of the jar is pushed or you can read this thread here to find out how to hot fix the code as a temporary work-around:

https://github.com/overtone/live-coding-emacs/issues/20

Sam

P.S. It would be easier to understand your email if you chose a more suitable subject :-)

--
http://sam.aaron.name


On Tuesday, 12 June 2012 at 22:51, Bojan Radakovic wrote:

> > > Overtone behaves strangely when i follow tutorial steps. Eg, i cant even write [overtone.something, it bugs before i even finish overtone.....
> >
>
>
>
> Attachments:
> - Untitled.jpg
>



Reply all
Reply to author
Forward
0 new messages