[Bluemusic-users] RE : Re: scripting question
Brought to you by:
kunstmusik
From: stephane b. <s_b...@ya...> - 2007-06-26 19:25:34
|
hi about using lisp in blue ,if you use common music 2.11, be careful, in the cm directory cm/cm.asd you must comment (defun cm.bat etc... because there is a problem with that. the best way is to launch cm in emacs and try you code in emacs before copy in blue. you can debug in emacs. your code can be something like: (load "path to your cm.lisp") (in-package :cm) (defparameter *buflen* 4096); used to store file in print-stream function (defobject simp () ((ins :initform 'simp :accessor object-name) (beg :accessor object-time) (dur :initform 1) (amp :initform .5) (freq :initform 440)) (:parameters beg dur amp freq)) ;; Now define a simple process that output simps... (define (simp-1 num) (process repeat num output (new simp :beg (now) :dur 1 :amp .5 :freq (between 220 440)) wait (pick 0 1 2))) ;; Next we define a variant process that outputs simps ;; with names picked randomly from a list. (define (simp-2 num names) (process repeat num output (new simp :beg (now) :ins (and names (pickl names)) :dur 1 :amp .5 :freq (between 220 440)) wait (pick 0 1 2))) (events (simp-2 20 '("i1" "i2" "i3")) ; write to i1 i2 or i3 "test.sco") (defun print-stream (filename) (let ((buffer (make-array *buflen*))) (with-open-file (f filename :direction :input :if-does-not-exist :error ) (do ((j 0))((= j (file-length f))) (setf myline (read-line f t "eofeof")) (if (string-equal myline "eofeof")(return)) (princ myline) (write-char #\Newline) (setf j (+ j )) ) )) ) ; ; ; (print-stream "test.sco") i hope this help you. bye stf --- phundamental unaudio <un...@gm...> a écrit : > ok, thanks alot > > On 6/25/07, Steven Yi <ste...@gm...> wrote: > > > > Good to know the jython scripting is working. > Strange though about > > the external scripting for you as it's working > without problem here on > > WinXP. I'd boot up and try Linux on my other > computer but am leaving > > shortly for a trip for business so won't have time > to do it until I > > get back home Saturday. I'll try looking at it > from the source code > > to see if I can find anything that sticks out as > being awkward. > > > > steven > > > > > > On 6/25/07, phundamental unaudio > <un...@gm...> wrote: > > > if that matters at all jython works just fine.. > but i'd love to use > > lisp.. > > > and i simply love this idea of using external > scripting so it's a pity > > it > > > doesnt work > > > > > > > > > On 6/25/07, phundamental unaudio > <un...@gm...> wrote: > > > > oh.. i was using 0.0 from the beginning, never > changed it > > > > > > > > > > > > > > > > On 6/25/07, Steven Yi < ste...@gm...> > wrote: > > > > > Okay, I will try to rephrase this. What > render start time are you > > > > > using for the project? If you set it to 0.0 > does the project render > > > > > as you expect? > > > > > > > > > > On 6/25/07, phundamental unaudio > <un...@gm...> wrote: > > > > > > i'm sorry but i fail to parse this > sentence:) (english isn't my > > native > > > > > > language) > > > > > > > > > > > > > > > > > > On 6/25/07, Steven Yi <ste...@gm... > > wrote: > > > > > > > Okay, I am wondering if you are using a > render start time that > > is > > > > > > > before all of the generated not start > times as notes that start > > > before > > > > > > > the render start time won't be passed on > to the generated > > CSD. Is > > > > > > > that the case? > > > > > > > > > > > > > > On 6/25/07, phundamental unaudio < > un...@gm...> wrote: > > > > > > > > 1.5.0_10 > > > > > > > > > > > > > > > > > > > > > > > > On 6/25/07, Steven Yi < > ste...@gm... > wrote: > > > > > > > > > > > > > > > > > > Strange, I am having no problems > with this file though am > > > testing on > > > > > > > > > WinXP at the moment. What version > of Java are you using? > > (type > > > "java > > > > > > > > > -version" on commandline) > > > > > > > > > > > > > > > > > > steven > > > > > > > > > > > > > > > > > > On 6/25/07, phundamental unaudio < > un...@gm...> wrote: > > > > > > > > > > i have 512mb of memory.. sure here > is an example that > > exhibits > > > the > > > > > > > > behaviour > > > > > > > > > > here (but it really happens > everytime i try it) > > > > > > > > > > > http://uosis.mif.vu.lt/~vyja4555/example.blue > > > > > > > > > > i changed it to -Xmx512m" but it's > still the same > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 6/25/07, Steven Yi > <ste...@gm... > wrote: > > > > > > > > > > > Strange, could you send me some > example .blue files to > > try > > > out? I > > > > > > use > > > > > > > > > > > scripts all the time and don't > really have this kind of > > > problem. > > > > > > > > > > > > > > > > > > > > > > Oh... one thought is that it > could be memory > > related. How > > > much > > > > > > memory > > > > > > > > > > > do you have on your system? > Could you try modifying the > > > blue.sh > > > > > > > > > > > starter script to change > "-Xmx256m" to something like > > > "-Xmx384m" > > > > > > or > > > > > > > > > > > "-Xmx512m"? > > > > > > > > > > > > > > > > > > > > > > steven > > > > > > > > > > > > > > > > > > > > > > On 6/25/07, phundamental unaudio > < un...@gm...> > > wrote: > > > > > > > > > > > > If i remember right i ran the > installer as simple user > > and > > > it's > > > > > > > > > > installed > > > > > > > > > > > > under /home/vytas/blue where > vytas is my user name and > > the > > > > > > > > directory's > > > > > > > > > > owner > > > > > > > > > > > > is not root. by not work i > mean it doesnt generate > > > anything both > > > > > > > > using > > > > > > > > > > the > > > > > > > > > > > > test button, generate csd to > screen and by pressing > > play. > > > > > > although > > > > > > > > every > > > > > > > > > > now > > > > > > > > > > > > and then when i press test or > generate to screen it > > does > > > output > > > > > > the > > > > > > > > > > score > > > > > > > > > > > > yet during the next run it's > empty again, there doesnt > > > seem to > > > > > > be > > > > > > > > any > > > > > > > > > > > > pattern in it's behaviour > either. i get no warnings or > > > anything > > > > > > like > > > > > > > > > > that > > > > > > > > > > > > whatsoever. as i mentioned it > happens with all the > > > scripting > > > > > > > > languages i > > > > > > > > > > > > tried. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 6/25/07, Steven Yi < > ste...@gm...> wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > Okay, just in case, did you > install the program as > > root > > > and > > > > > > then > > > > > > > > run > > > > > > > > > > > > > the program as your own > user? That can cause issues > > > with > > > > > > > > permissions. > > > > > > > > > > > > > > > > > > > > > > > > > > Besides that, can you > explain what you mean by "does > > not > > > > > > work"? > > > > > > > > Does > > > > > > > > > > > > > it give you an exception > dialog, no generated output > > but > > > also > > > > > > no > > > > > > > > > > > > > warnings, etc.? Any help to > describe the problem > === message truncated ===> ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 > express and take > control of your XML. No limits. Just data. Click to > get it now. > http://sourceforge.net/powerbar/db2/> _______________________________________________ > Bluemusic-users mailing list > Blu...@li... > https://lists.sourceforge.net/lists/listinfo/bluemusic-users > _____________________________________________________________________________ Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail |