[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-dev] SF.net SVN: quarks:[2662] cruciallib/Instr/Instr.sc
- To: sc-dev@xxxxxxxxxxxxxxxx
- Subject: [sc-dev] SF.net SVN: quarks:[2662] cruciallib/Instr/Instr.sc
- From: danstowell@xxxxxxxxxxxxxxxxxxxxx
- Date: Mon, 2 Dec 2013 22:08:19 +0000
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:Content-Type:Subject:To:From:MIME-Version:Date; bh=WHxqO/phXrKUaxSKwgAZDVYodydwKXtQWqInHS8rmvM=; b=vZKGpQBJb1ArREQwKpCtIPPXLP7SVvBe7GCNWzciZjLY87/eh8Ywu7f6sVzt2jlG+vITzonRl9JU6uFgOM123D96KMfggQU5aTd6vgrmyz0sAWPtSm83RoqTKfNsn9/xJ5erze40vGTe8p9RtShF7mPwtREBIF4mRXYeBVZVPDc=;
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x; h=Content-Transfer-Encoding:Content-Type:Subject:To:From:MIME-Version:Date; bh=WHxqO/phXrKUaxSKwgAZDVYodydwKXtQWqInHS8rmvM=; b=H+N4WM2JYB+IpyJyRNmP3JpLcroFXaN7iI6cnLGw0T3lAISSJdGHMb4m9+G1bl1rubT9fLp8dsga739oC8nHrQWBLyRLkECtchdB2u8HXsh/dVGZ8tyLTN6axRhUU255Ke0P/evdHJ/psFCFItQQ4neyFsrmiLBHsbQmxa0YIkQ=;
- List-id: SuperCollider developers mailing list <sc-devel.create.ucsb.edu>
- Reply-to: sc-dev@xxxxxxxxxxxxxxxx
- Sender: owner-sc-dev@xxxxxxxxxxxxxxxx
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/