Electronic Music mailing list archives

Previous Message: Re: Building Sclang Executable on OS X (leopard or
Next Message: Re: Building Sclang Executable on OS X (leopard or

From: Josh Parmenter ()
Date: May 17, 2008
Subject: Re: Building Sclang Executable on OS X (leopard or
you'll have to use SwingOSC for the GUI. None of the cocoa gui widgets  =

will work.

Josh

On May 17, 2008, at 4:30 PM, mr.proxxxy wrote:

>
> The reply above was right. I was just starting to fiddle and, silly  =

> ole me, I
> thought that the sclang/scsynth pair that came with SC would work.  =

> Oops.
>
> So I built them from source and after some frustration, managed to  =

> get scvim
> (yes, i know ... ) working. I'm able to get the server to boot as  =

> well as
> get it to play simple synths ; however, when trying to use any cocoa  =

> gui
> elements, my server window barfs.  Looks like it's a problem with  =

> ScView.
>
> Stack trace follows, but it definitely fails here -
>
>   SCView:init   0106DE70
>                arg this =3D 
>                arg argParent =3D nil
>                arg argBounds =3D 
>
> Is it possible because the Parent is null that the initialization  =

> fails
> because it has nowhere to put the window? Not sure. Has anyone run  =

> into this
> error before or know what it means? How is this fixed in the Emacs  =

> version
> of the SCInterpreter?
>
> my OSXPlatform.sc:
>
> OSXPlatform : UnixPlatform
> {
>    initPlatform {
>        super.initPlatform;
>        recordingsDir =3D "~/Music/SuperCollider  =

> Recordings".standardizePath;
>    }
>
>    name { ^\osx }
>
>    startupFiles {
>        var filename =3D "startup.rtf";
>        ^[this.systemAppSupportDir +/+ filename,  =

> this.userAppSupportDir +/+
> filename];
>    }
>
>    startup {
>
>        //Document.implementationClass.startup;
>        // make server window
>        //Server.internal.makeWindow;
>        //Server.local.makeWindow;
>        this.loadStartupFiles;
>    }
>    shutdown {
>        HIDDeviceService.releaseDeviceList;
>    }
>
>        // only osx uses Cocoa guis
>    defaultGUIScheme { ^\cocoa }
>    defaultHIDScheme { ^\osx_hid }
> }
>
>
>
> error message:
>
> ERROR: A primitive was not bound. 0 551
> Instance of Method {    (0065F5F0, gc=3D01, fmt=3D00, flg=3D11, set=3D04)
>  instance variables [15]
>    raw1 : Float 2.670109001368235e-307   0048000C 00000000
>    raw2 : Float 2.437076554554034e-289   04030004 00000400
>    code : instance of Int8Array (0065F730, size=3D4, set=3D1)
>    selectors : nil
>    constants : nil
>    prototypeFrame : instance of Array (0065F6E0, size=3D4, set=3D2)
>    context : nil
>    argNames : instance of SymbolArray (0065F6A0, size=3D4, set=3D1)
>    varNames : nil
>    sourceCode : nil
>    ownerClass : class SCView (00658590)
>    name : Symbol 'prInit'
>    primitiveName : Symbol '_SCView_New'
>    filenameSymbol : Symbol
> '/Applications/SuperCollider/SCClassLibrary/Common/GUI/Base/SCView.sc'
>    charPos : Integer 6387
> }
> ERROR: Primitive 'none' failed.
> Failed.
> RECEIVER:
>   nil
> CALL STACK:
>
>        MethodError:reportError   017CE240
>                arg this =3D 
>        Nil:handleError   017B6FB0
>                arg this =3D nil
>                arg error =3D 
>        Thread:handleError   01066FB0
>                arg this =3D 
>                arg error =3D 
>        Object:throw   0107A8F0
>                arg this =3D 
>        Object:primitiveFailed   0106A0D0
>                arg this =3D nil
>        SCView:init   0106DE70
>                arg this =3D 
>                arg argParent =3D nil
>                arg argBounds =3D 
>        SCContainerView:init   01069EF0
>                arg this =3D 
>                arg argParent =3D nil
>                arg argBounds =3D 
>        SCWindow:initSCWindow   011DE9F0
>                arg this =3D 
>                arg argName =3D "stethoscope"
>                arg argBounds =3D 
>                arg resizable =3D true
>                arg border =3D true
>                arg scroll =3D false
>        Stethoscope:makeWindow   0107AD10
>                arg this =3D 
>                arg view =3D nil
>        Meta_Stethoscope:new   011DE4B0
>                arg this =3D class Stethoscope
>                arg server =3D 
>                arg numChannels =3D 1
>       arg bufsize =3D 4096
>                arg zoom =3D nil
>                arg rate =3D 'audio'
>                arg view =3D nil
>                arg bufnum =3D 1024
>        Server:scope   011B13C0
>                arg this =3D 
>                arg numChannels =3D 1
>                arg index =3D 0
>                arg bufsize =3D 4096
>                arg zoom =3D nil
>                arg rate =3D 'audio'
>                var gui =3D class CocoaGUI
>        Function:scope   011E85F0
>                arg this =3D 
>                arg numChannels =3D 1
>                arg outbus =3D 0
>                arg fadeTime =3D 0.05
>                arg bufsize =3D 4096
>                arg zoom =3D nil
>                var synth =3D 
>                var synthDef =3D 
>                var bytes =3D 
>                var synthMsg =3D [*9]
>                var outUGen =3D 
>                var server =3D 
>                var gui =3D class CocoaGUI
>        Interpreter:interpretPrintCmdLine   0119C250
>                arg this =3D 
>                var res =3D nil
>                var func =3D 
>                var code =3D "
> {SinOsc.ar(500,0,1.0)}.scope;=01=04
> "
>        Process:interpretPrintCmdLine   0107ED30
>                arg this =3D 
>
>
>
> blackrain-2 wrote:
>>
>> Hi Prko,
>>
>> Glad you have sclang working.
>>
>> The dot emacs file is the emacs configuration file.
>> This file is found (if you already have one) in your home directory.
>>
>> To edit its contents or create a new one, do the following in emacs
>> (or Aquamacs):
>>
>> - open (visit in emacs lingo) the file by pressing Ctrl-x Ctrl-f
>> - emacs will ask you for the name of the file you want to open in the
>> minibuffer (at the bottom of the emacs window)
>>
>> ....
>>
>>
>
> -- =

> View this message in context: http://www.nabble.com/Building-Sclang-Execu=
table-on-OS-X-%28leopard-or-other%29-AND-New-Interpreter-Editor-tp17156749p=
17297601.html
> Sent from the Supercollider - User mailing list archive at Nabble.com.
>
> _______________________________________________
> sc-users mailing list [EMAIL REMOVED] > http://lists.create.ucsb.edu/mailman/listinfo/sc-users

******************************************
/* Joshua D. Parmenter
http://www.realizedsound.net/josh/

=93Every composer =96 at all times and in all cases =96 gives his own  =

interpretation of how modern society is structured: whether actively  =

or passively, consciously or unconsciously, he makes choices in this  =

regard. He may be conservative or he may subject himself to continual  =

renewal; or he may strive for a revolutionary, historical or social  =

palingenesis." - Luigi Nono
*/

_______________________________________________
sc-users mailing list [EMAIL REMOVED] http://lists.create.ucsb.edu/mailman/listinfo/sc-users

+ Building Sclang Executable on OS X (leopard or other) scacinto (05/09/08)
+---Re: Building Sclang Executable on OS X (leopard or scacinto (05/09/08)
+------Re: Building Sclang Executable on OS X (leopard or Stefan Nussbaumer (05/10/08)
+------Re: Building Sclang Executable on OS X (leopard or James Harkins (05/10/08)
+------Re: Building Sclang Executable on OS X (leopard or blackrain (05/11/08)
+------Re: Building Sclang Executable on OS X (leopard or scacinto (05/11/08)
+------Re: Building Sclang Executable on OS X (leopard or scacinto (05/11/08)
+------Re: Building Sclang Executable on OS X (leopard or blackrain (05/11/08)
+------Re: Building Sclang Executable on OS X (leopard or Josh Parmenter (05/11/08)
+------Re: Building Sclang Executable on OS X (leopard or scacinto (05/11/08)
+---------Re: Building Sclang Executable on OS X (leopard or blackrain (05/13/08)
+---------Re: Building Sclang Executable on OS X (leopard or Josh Parmenter (05/13/08)
+------Re: Building Sclang Executable on OS X (leopard or Josh Parmenter (05/11/08)
+------Re: Building Sclang Executable on OS X (leopard or scacinto (05/11/08)
+------Re: Building Sclang Executable on OS X (leopard or blackrain (05/11/08)
+------Re: Building Sclang Executable on OS X (leopard or blackrain (05/11/08)
+------Re: Building Sclang Executable on OS X (leopard or stefan kersten (05/12/08)
+------Re: Building Sclang Executable on OS X (leopard or scacinto (05/12/08)
+---------Re: Building Sclang Executable on OS X (leopard or nescivi (05/12/08)
+---------Re: Building Sclang Executable on OS X (leopard or Josh Parmenter (05/12/08)
+---------Re: Building Sclang Executable on OS X (leopard or stefan kersten (05/13/08)
+------Re: Building Sclang Executable on OS X (leopard or Josh Parmenter (05/12/08)
+------Re: Building Sclang Executable on OS X (leopard or blackrain (05/12/08)
+------Re: Building Sclang Executable on OS X (leopard or blackrain (05/12/08)
+------Re: Building Sclang Executable on OS X (leopard or scacinto (05/12/08)
+------Re: Building Sclang Executable on OS X (leopard or scacinto (05/12/08)
+------Re: Building Sclang Executable on OS X (leopard or scacinto (05/13/08)
+---------Re: Building Sclang Executable on OS X (leopard or PyoungRyang Ko (05/13/08)
+------Re: Building Sclang Executable on OS X (leopard or Josh Parmenter (05/13/08)
+---Re: Building Sclang Executable on OS X (leopard or nescivi (05/12/08)
+---Re: Building Sclang Executable on OS X (leopard or blackrain (05/13/08)
+---Re: Building Sclang Executable on OS X (leopard or mr.proxxxy (05/15/08)
+------Re: Building Sclang Executable on OS X (leopard or blackrain (05/16/08)
+---------Re: Building Sclang Executable on OS X (leopard or PyoungRyang Ko (05/17/08)
+---------Re: Building Sclang Executable on OS X (leopard or blackrain (05/17/08)
+------------Re: Building Sclang Executable on OS X (leopard or PyoungRyang Ko (05/18/08)
+---------------Re: Building Sclang Executable on OS X (leopard or James Harkins (05/18/08)
+------------------Re: Building Sclang Executable on OS X (leopard or PyoungRyang Ko (05/18/08)
+------------Re: Building Sclang Executable on OS X (leopard or PyoungRyang Ko (05/18/08)
+------Re: Building Sclang Executable on OS X (leopard or Josh Parmenter (05/16/08)
+------Re: Building Sclang Executable on OS X (leopard or mr.proxxxy (05/17/08)
+------Re: Building Sclang Executable on OS X (leopard or Josh Parmenter (05/17/08)
+------Re: Building Sclang Executable on OS X (leopard or mr.proxxxy (05/17/08)
+------Re: Building Sclang Executable on OS X (leopard or blackrain (05/17/08)
+------Re: Building Sclang Executable on OS X (leopard or Josh Parmenter (05/17/08)
+---------Re: Building Sclang Executable on OS X (leopard or PyoungRyang Ko (05/18/08)
+------------Re: Building Sclang Executable on OS X (leopard or Björn_Kessler? (05/18/08)
+---------------Re: Building Sclang Executable on OS X (leopard or PyoungRyang Ko (05/18/08)
+------------------Re: Building Sclang Executable on OS X (leopard or Rainer Schuetz (05/18/08)
+---------------------Re: Building Sclang Executable on OS X (leopard or PyoungRyang Ko (05/19/08)
+------------------------Re: Building Sclang Executable on OS X (leopard or Rainer Schuetz (05/19/08)
+---------------------------Re: Building Sclang Executable on OS X (leopard or PyoungRyang Ko (05/20/08)
+---------Re: Building Sclang Executable on OS X (leopard or PyoungRyang Ko (05/18/08)
+------------Re: Building Sclang Executable on OS X (leopard or Josh Parmenter (05/18/08)
+------Re: Building Sclang Executable on OS X (leopard or scacinto (05/19/08)
+---Re: Building Sclang Executable on OS X (leopard or blackrain (05/17/08)
+---Re: Building Sclang Executable on OS X (leopard or nescivi (05/18/08)
+---Re: Building Sclang Executable on OS X (leopard or nescivi (05/21/08)
+---Re: Building Sclang Executable on OS X (leopard or Josh Parmenter (05/21/08)

Previous Message: Re: Building Sclang Executable on OS X (leopard or
Next Message: Re: Building Sclang Executable on OS X (leopard or