[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-dev] SF.net SVN: quarks:[2662] cruciallib/Instr/Instr.sc




thanks Dan !



..
http://soundcloud.com/crucialfelix
http://github.com/crucialfelix
.


On Tue, Dec 3, 2013 at 3:38 AM, <danstowell@xxxxxxxxxxxxxxxxxxxxx> wrote:
Revision: 2662
          http://sourceforge.net/p/quarks/code/2662
Author:   danstowell
Date:     2013-12-02 22:08:18 +0000 (Mon, 02 Dec 2013)
Log Message:
-----------
Instr: adapt for case when Document nonexistent

Modified Paths:
--------------
    cruciallib/Instr/Instr.sc

Modified: cruciallib/Instr/Instr.sc
===================================================================
--- cruciallib/Instr/Instr.sc   2013-11-28 12:02:53 UTC (rev 2661)
+++ cruciallib/Instr/Instr.sc   2013-12-02 22:08:18 UTC (rev 2662)
@@ -446,11 +446,16 @@
        copy { ^this } // unless you change the address its the same instr

        *initClass {
-               Class.initClassTree(Document);
+               if(dir.isNil,{
+                       try{ // Document class not always present
+                               Class.initClassTree(Document);
+                               // default is relative to your doc directory
+                               dir = Document.dir ++ "Instr/";
+                       }{
+                               dir = "Instr/";
+                       };
+               });

-               // default is relative to your doc directory
-               if(dir.isNil,{ dir = Document.dir ++ "Instr/"; });
-
                Class.initClassTree(Event);
                Event.addEventType(\instr,{ arg server;
                        var instr, instrArgs,patch;

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


_______________________________________________
sc-dev mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/