Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (2094) Code (114) Doc (526) Help (153) Quark (1294) Plugin (7) SCDoc ↗ Forum ↗ Google ↗
  1. VGTagGui Quark

    ... ; allViews = (); updateActions = () .put(TextView.implClass, { |val, view| view.string = val.asCompileString }) .put(PopUpMenu.implClass, { |val, view| view.value = view.items.indexOfEqual(this.stringForPopUp(val)) ? 0 }) .put(EZSlider, { | ...

  2. warnWin Quark

    q.warnWin = { |q, string="?!?", title="?!?"| var w = Window("Warning: %".format(title)).front.alwaysOnTop_(true); var tv = StaticText(w, w.view.bounds); tv.background_(Color(1, 0.75)); tv.align_(\center); w.alpha_(0.9); tv.string_(string).f ...

  3. warnWin Quark

    NTMI.q.warnWin = { |q, string="?!?", title="?!?"| var w = Window("Warning: %".format(title)).front.alwaysOnTop_(true); var tv = StaticText(w, w.view.bounds); tv.background_(Color(1, 0.75)); tv.align_(\center); w.alpha_(0.9); tv.string_(stri ...

  4. FilePathView Quark

    ... ews { |inPath| var dirname, basename; if( inPath.notNil ) { basename = inPath.asString.basename; dirname = inPath.asString.dirname; }; { views[ \basename ].string = basename ? ""; views[ \dirname ].string = dirname ? ""; }.defer; } value_ { ...

  5. MotifCutProc Quark

    ... mpanying Motif class? No, complicates easy creation of arrays //can add convert string to array format function to this class as class method! MotifCutProc : BBCutProc { var motiflist,indexfunc,phraselength; var motifpos,motifindex,currmoti ...

  6. plusScaledUserView-drawTempoGrid Quark

    ... ttom ); }); Pen.stroke; (barLines ? [])[0,round..].do({ |item, i| Pen.use({ var string, bnds; string = (firstBar + (i * round)).asString; bnds = string.bounds( Font( Font.defaultSansFace, 9 ) ); bnds.width = bnds.width + 4; Pen.translate( i ...

  7. plusScaledUserView-drawTempoGrid Quark

    ... ttom ); }); Pen.stroke; (barLines ? [])[0,round..].do({ |item, i| Pen.use({ var string, bnds; string = (firstBar + (i * round)).asString; bnds = string.bounds( Font( Font.defaultSansFace, 9 ) ); bnds.width = bnds.width + 4; Pen.translate( i ...

  8. Log_unittest Quark

    ... UnitTestScript("Log", thisProcess.nowExecutingPath).runScript; { |test| var logString = "This is a test."; Log(\unittestlog).level = \debug; Log(\unittestlog).debug(logString); test.assertEquals(Log(\unittestlog).lines.last.string, logStri ...

  9. OSCIISlider Quark

    ... lastval)); slider.action_({arg sl; var val; val = spec.map(sl.value); valueText.string_(val); lastval=val; }); nameText = GUI.staticText.new(w, namerect) .font_(font) .string_(name); valueText = GUI.staticText.new(w, numberrect) .string_(la ...

  10. extNumber-asSMPTEString Quark

    + SimpleNumber{ // receiver is a time in seconds // returns string "hh:mm:ss:ff" where f is frames // uses one global SMPTE object to prevent memory buildup when called lots of times asSMPTEString { |fps = 25| ^SMPTE.global.initSeconds( thi ...

prev 11 12 13 14 15 16 17 18 19 20 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow