-
... en, src; env = Env ([0, 1, 0], [0.5, 0.5], \sin ); envgen = EnvGen .kr(env, timeScale: dur); src = BPF .ar( WhiteNoise .ar(amp), freq, 0.01, amp * envgen); Out .ar(0, Pan2 .ar(src, Rand (-1.0, 1.0))); }) ); score = CtkScore .new; /* creates ...
-
... m.mapCC(\k1, { 'yo!'.postln }); m.mapCC(\sl6, { |val| val.postln }); // vel is scaled from 0 - 127 m.mapNoteOn(36, { |note, vel| [\noteOn, note, vel, "boom"].postln }); m.mapNoteOn(39, { |note, vel| [\noteOn, note, vel, "tchak"].postln }); ...
-
... xtFieldFont) .normalColor_(textFieldFontColor) .clipLo_(1) .clipHi_(inf) .shift_scale_(1) .ctrl_scale_(1) .alt_scale_(1) .value_(1) ; if(GUI.id !== \cocoa, { indexField.toolTip_("A CVWidget expects values coming in in the\nsucceeding slots ...
-
... tch: true), ), defaults: ( ffreq: 300, filtMul: 8, rq: 0.2, octave: 3, root: 6, scale: Scale.locrian.semitones ), postDefaults: PmonoArtic(\sqrbass, \dummy, 1 ) )); TempoClock.tempo = 132/60; ) /acid = "1_ 1.|5~3_9.4.|7.2~4_5'.|5_8~2_4."; / ...
-
... er_array, outbus = 0, suboutbus, rawformat = \FUMA, rawoutbus = 0, graphicPath, scaleFactor, fontSize, maxUndo, vstPreset, vstProgram, vstOuts, spatRecompile = true, mark1, mark2 | ^super.newCopyArgs(dur, server).ctr(autoDir, nsources, irBa ...
-
... alpha_(0)) .resize_(5) .drawFunc_({arg view; var b = view.bounds; Pen.use { Pen.scale( b.width / imgWidth, b.height / imgHeight ); Pen.drawImage( 0@0, image ); }; if( drawCrossHair, { Pen.color = crosshaircolor; Pen.addRect( b.moveTo( 0, 0 ...
-
... new; p.set_( Set [ 0, 2, 4, 6, 8, 10 ]); p.drawSet(aLabel: format( "A wholetone scale %" , p.set.asArray)) ; p.close; note_(note) Shortcut for p.set_([note]); p.drawSet. // example p = PitchCircle .new(7, 0); p.note_(0); p.close; drawLabel ...
-
... arg degrees=0, radians=0; ^this.publish(CmdString(\rotate, degrees, radians)) } scale { arg x, y="None"; ^this.publish(CmdString(\scale, x, y)) } skew { arg x = 0, y=0; ^this.publish(CmdString(\skew, x, y)) } push { ^this.publish(CmdString( ...
-
... .value_([times.asFloat, levels.asFloat]); } view2envFormat { var times, levels, scale, lastval, timesum; times = this.value[0]; levels = this.value[1]; times = times.drop(1); timesum = 0.0; lastval = 0.0; times = times.collect({arg item, i; ...
-
... 3a8338ee/src/wav.c#L1399 // basically, all values other than 0 are inverted and scaled incorrectly. // here we assume this is the case and correct the math. // TODO: maybe have a flag to skip this, to support a potential fixed libsndfile? i ...