SF.net SVN: supercollider: [7652] trunk/build/SCClassLibrary/crucial/Sample /Sample.sc

View: New views
1 Messages — Rating Filter:   Alert me  

SF.net SVN: supercollider: [7652] trunk/build/SCClassLibrary/crucial/Sample /Sample.sc

by cruxxial :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

Revision: 7652
          http://svn.sourceforge.net/supercollider/?rev=7652&view=rev
Author:   cruxxial
Date:     2008-07-05 12:31:48 -0700 (Sat, 05 Jul 2008)

Log Message:
-----------
using InstrSynthDef.buildSynthDef rather than SynthDef.buildSynthDef so that the error is clearly understandable should you use any of these functions in a normal SynthDef

Modified Paths:
--------------
    trunk/build/SCClassLibrary/crucial/Sample/Sample.sc

Modified: trunk/build/SCClassLibrary/crucial/Sample/Sample.sc
===================================================================
--- trunk/build/SCClassLibrary/crucial/Sample/Sample.sc 2008-07-05 19:27:26 UTC (rev 7651)
+++ trunk/build/SCClassLibrary/crucial/Sample/Sample.sc 2008-07-05 19:31:48 UTC (rev 7652)
@@ -64,8 +64,8 @@
  }
  numFrames { ^size }
  bufnum {
- /*if(UGen.buildSynthDef.notNil,{
- ("Use bufnumIr, not bufnum to obtain a buffer number inside of a synth def. in:" + UGen.buildSynthDef.instrName).warn;
+ /*if(InstrSynthDef.buildSynthDef.notNil,{
+ ("Use bufnumIr, not bufnum to obtain a buffer number inside of a synth def. in:" + InstrSynthDef.buildSynthDef.instrName).warn;
  });*/
  ^if(buffer.notNil,{ buffer.bufnum }, nil)
  }
@@ -76,7 +76,7 @@
  bufnumIr {
  // add a secret ir control
  ^bufnumControl ?? {
- bufnumControl = UGen.buildSynthDef.addSecretIr(this,0,\bufnum);
+ bufnumControl = InstrSynthDef.buildSynthDef.addSecretIr(this,0,\bufnum);
  }
  }
 
@@ -84,7 +84,7 @@
  bufnumKr {
  // add a secret kr control
  ^bufnumControl ?? {
- bufnumControl = UGen.buildSynthDef.addSecretKr(this,0,\bufnum);
+ bufnumControl = InstrSynthDef.buildSynthDef.addSecretKr(this,0,\bufnum);
  }
  }
  sampleRateIr {
@@ -372,7 +372,7 @@
  pchRatioKr {
  ^pchk ?? {
  pchk =
- (this.bufRateScaleIr * UGen.buildSynthDef.tempoKr(this,\getTempoBus))
+ (this.bufRateScaleIr * InstrSynthDef.buildSynthDef.tempoKr(this,\getTempoBus))
  .madd(this.sampleTempoIr.reciprocal)
  }
  }
@@ -382,18 +382,18 @@
  beatsizeIr {
  ^beatsizek ?? {
  beatsizek =
- UGen.buildSynthDef.addSecretIr( this,beatsize,\beatsize);
+ InstrSynthDef.buildSynthDef.addSecretIr( this,beatsize,\beatsize);
  }
  }
  sampleTempoIr {
  ^tempoi ?? {
- tempoi = UGen.buildSynthDef.addSecretIr(this,tempo,\tempo);
+ tempoi = InstrSynthDef.buildSynthDef.addSecretIr(this,tempo,\tempo);
  }
  }
  /*
  sampleTempoKr { // issue: if new sample is loaded, send the tempo to which synths ?
  ^samplek ?? {
- samplek = UGen.buildSynthDef.addSecretKr(("__stempo__" ++ forArgi.asString).asSymbol,
+ samplek = InstrSynthDef.buildSynthDef.addSecretKr(("__stempo__" ++ forArgi.asString).asSymbol,
  tempo,forArgi,\tempo));
  }
  }*/


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
_______________________________________________
sc-dev mailing list
sc-dev@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-dev