Csound Csound-dev Csound-tekno Search About

[Csnd] emacs question

Date2013-05-01 23:37
Frompeiman khosravi
Subject[Csnd] emacs question
Hello,

I'm trying to install Csound-x on emacs on OSX but can't get it to work.

I have placed the 'stef-elisp' folder in my home directory and added the following to .emacs:

(add-to-list 'load-path "~/stef-elisp")
(require 'stef-elisp)
   (require 'stef-elisp)

But I get this error when evaluating:

Debugger entered--Lisp error: (file-error "Cannot open load file" "embedded-elisp-library")
  require(embedded-elisp-library)
  eval-buffer(#<buffer  *load*-364984> nil "/Users/peimankhosravi/stef-elisp/csound-x/csound-eel.el" nil t)  ; Reading at buffer position 1338
  load-with-code-conversion("/Users/peimankhosravi/stef-elisp/csound-x/csound-eel.el" "/Users/peimankhosravi/stef-elisp/csound-x/csound-eel.el" nil t)
  require(csound-eel)
  eval-buffer(#<buffer  *load*-556306> nil "/Users/peimankhosravi/stef-elisp/csound-x/i.el" nil t)  ; Reading at buffer position 961
  load-with-code-conversion("/Users/peimankhosravi/stef-elisp/csound-x/i.el" "/Users/peimankhosravi/stef-elisp/csound-x/i.el" t t)
  require(i nil t)
  eval-buffer(#<buffer  *load*-868907> nil "/Users/peimankhosravi/stef-elisp/csound-x/csound-x.el" nil t)  ; Reading at buffer position 5557
  load-with-code-conversion("/Users/peimankhosravi/stef-elisp/csound-x/csound-x.el" "/Users/peimankhosravi/stef-elisp/csound-x/csound-x.el" nil t)
  require(csound-x)
  eval-buffer(#<buffer  *load*> nil "/Users/peimankhosravi/stef-elisp/stef-elisp.el" nil t)  ; Reading at buffer position 1495
  load-with-code-conversion("/Users/peimankhosravi/stef-elisp/stef-elisp.el" "/Users/peimankhosravi/stef-elisp/stef-elisp.el" nil t)
  require(stef-elisp)
  eval((require (quote stef-elisp)) nil)
  eval-last-sexp-1(nil)
  eval-last-sexp(nil)
  call-interactively(eval-last-sexp nil nil)



Date2013-05-02 09:37
FromStéphane Rollandin
SubjectRe: [Csnd] emacs question
Attachmentssubdirs.el  
> I have placed the 'stef-elisp' folder in my home directory and added the
> following to .emacs:
>
> (add-to-list 'load-path "~/stef-elisp")
> (require 'stef-elisp)
>     (require 'stef-elisp)
>

The load-path must include all subdirectories of stef-elisp. This 
happens by default when you place it in your site-lisp directory, but it 
does not happen in the home directory.

I think just adding the attached file inside ~/stef-elisp should do the 
trick.

Stef

Date2013-05-02 09:49
FromStéphane Rollandin
SubjectRe: [Csnd] emacs question
Actually just adding

	(add-to-list 'load-path "~/stef-elisp/utils")

to your .emacs would be simpler..

I'll change the next version of stef-elisp so that the load-path get 
extended automatically.

Stef

Date2013-05-02 10:00
Frompeiman khosravi
SubjectRe: [Csnd] emacs question
Great, thanks very much Stephane, it's working now. I will have to learn how to use emacs now!

Best,
Peiman







www.peimankhosravi.co.uk || Subscribe to RSS Feed

To receive emails about upcoming concerts visit this page & enter your email address in the 'follow' section.



On 2 May 2013 09:49, Stéphane Rollandin <lecteur@zogotounga.net> wrote:
Actually just adding

        (add-to-list 'load-path "~/stef-elisp/utils")

to your .emacs would be simpler..

I'll change the next version of stef-elisp so that the load-path get extended automatically.


Stef


Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Date2013-05-02 12:00
FromVictor Lazzarini
SubjectRe: [Csnd] emacs question
Hi Steff,

do you have an idea of what you would need from us to allow for recompilation and RT events for your emacs mode?
I guess RT events can already be done through -L, but maybe we need a similar thing for orchestra compilation?

Regards

Victor

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Date2013-05-02 12:23
Frompeiman khosravi
SubjectRe: [Csnd] emacs question
I just decided to try aquamacs instead, and it's a much nicer environment.

But now there is a problem in loading .emacs:

"Warning (initialization): An error occurred while loading `/Users/peimankhosravi/.emacs':

Symbol's function definition is void: defvar-local"

My .emacs file looks like this:

"(add-to-list 'load-path "~/stef-elisp")
        (add-to-list 'load-path "~/stef-elisp/utils")
(require 'stef-elisp)
   (require 'stef-elisp)"

Thanks
Peiman
  






www.peimankhosravi.co.uk || Subscribe to RSS Feed

To receive emails about upcoming concerts visit this page & enter your email address in the 'follow' section.



On 2 May 2013 12:00, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
Hi Steff,

do you have an idea of what you would need from us to allow for recompilation and RT events for your emacs mode?
I guess RT events can already be done through -L, but maybe we need a similar thing for orchestra compilation?

Regards

Victor

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Date2013-05-02 12:44
FromStéphane Rollandin
SubjectRe: [Csnd] emacs question
Le 02/05/2013 13:23, peiman khosravi a écrit :
> I just decided to try aquamacs instead, and it's a much nicer environment.
>
> But now there is a problem in loading .emacs:
>
> "Warning (initialization): An error occurred while loading
> `/Users/peimankhosravi/.emacs':
>
> Symbol's function definition is void: defvar-local"

Hmm... I'm afraid I can't help much in this area. I work on Windows, 
never had a Mac. It seems from what I could read online that Aquamacs is 
not 100% compatible with standard Emacs. You may have to stick to Cocoa 
Emacs if you want to use Csound-x.

Stef

Date2013-05-02 13:11
FromStéphane Rollandin
SubjectRe: [Csnd] emacs question
AttachmentsSlider demo.png  
> do you have an idea of what you would need from us to allow for recompilation and RT events for your emacs mode?
> I guess RT events can already be done through -L, but maybe we need a similar thing for orchestra compilation?

Well -L does not work on windows so I usually use OSC for real-time events.

At the Csound-x just invokes Csound as a subprocess; it does not use the 
API nor channel buses.

If we are talking about live coding, then I guess interfacing with the 
Python or Java API is the way to go. My preference is to do this via 
Clojure.

(As a side note: I did code the slider demo described in 
http://www.csounds.com/journal/2006summer/SliderDemo.html in Clojure, 
see the attached image. That's part of the Surmulot distribution).

So, to answer your question, I don't think I need anything else than a 
clean Java API. The real issue is that I'm not that much interested in 
live coding so I have no idea what features you people would like to 
have. I don't know much about Csound 6 either.

I would be glad to implement anything you want but then I would need to 
work with someone willing to do the testing and provide feedback and use 
cases.

Best,

Stef




Date2013-05-02 13:13
FromStéphane Rollandin
SubjectRe: [Csnd] emacs question
typo:

> At the Csound-x just invokes Csound as a subprocess

reads:

At the moment Csound-x just invokes Csound as a subprocess

:)

Stef

Date2013-05-02 13:34
Frompeiman khosravi
SubjectRe: [Csnd] emacs question
Thanks Stef,

Victor, which one do you use?

Thanks
Peiman






www.peimankhosravi.co.uk || Subscribe to RSS Feed

To receive emails about upcoming concerts visit this page & enter your email address in the 'follow' section.



On 2 May 2013 12:44, Stéphane Rollandin <lecteur@zogotounga.net> wrote:
Le 02/05/2013 13:23, peiman khosravi a écrit :

I just decided to try aquamacs instead, and it's a much nicer environment.

But now there is a problem in loading .emacs:

"Warning (initialization): An error occurred while loading
`/Users/peimankhosravi/.emacs':

Symbol's function definition is void: defvar-local"

Hmm... I'm afraid I can't help much in this area. I work on Windows, never had a Mac. It seems from what I could read online that Aquamacs is not 100% compatible with standard Emacs. You may have to stick to Cocoa Emacs if you want to use Csound-x.

Stef



Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"