This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tempo.bpm=155;SynthDef("hh1",{|out=20,amp=1,rate=1|var src;src=RLPF.ar(Pan2.ar(ClipNoise.ar(0.2)),LFNoise2.ar(0.1,3000,9000),0.3)*EnvGen.ar(Env.perc(0.01,0.07,amp,-6),doneAction:2);Out.ar(20,src)}).store;SynthDef("snr",{|out=20,amp=1,rate=1,src,src2|src=RHPF.ar(ClipNoise.ar(0.05),LFNoise2.ar(1,700,800),0.3)*EnvGen.ar(Env.perc(0.00,0.125,amp,-3),doneAction:2);src2=SinOsc.ar(120,0,0.3)*EnvGen.ar(Env.perc(0.00,0.26,amp,-12),doneAction:2);Out.ar(out,(src+src2).dup);}).store;SynthDef("hh2",{|out=20,amp=1,rate=1|var src,src2;src=RLPF.ar(ClipNoise.ar(0.15),LFNoise2.ar(1,1200,9700),0.8)*EnvGen.ar(Env.perc(0.00,0.125,amp,2),doneAction:2);src2=RLPF.ar(BrownNoise.ar(0.35),945)*EnvGen.ar(Env.perc(0.00,0.2,amp,-12),doneAction:2);Out.ar(out,Pan2.ar(src+src2,LFNoise2.ar(1)));}).store;SynthDef("kicks",{|amp|var out;out=SinOsc.ar(XLine.kr(7020,50,0.02),pi/4,amp).dup*EnvGen.ar(Env.perc(0.03,0.25,0.65,-6),doneAction:2);Out.ar(0,out.softclip);}).store;SynthDef("snr1",{|out,amp,rate=1|Out.ar(out,Pan2.ar(PlayBuf.ar(1,3,rate,1.0,0. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( | |
SynthDef("lumin0",{arg freq=4000,amp=1,gate=1,rate=68; | |
var src; | |
src=RHPF.ar(Klank.ar(`[[4105, 128, 123, 8083]*rate, 0.5, [1,1,1,1]], ClipNoise.ar([0.005,0.005]) )*EnvGen.ar(Env.adsr(0.00,0.3,0.1,0.1,0.8,-3),gate,doneAction:2),LFNoise2.ar(2,23,36).midicps,0.4); | |
Out.ar(0,src*amp); | |
}).store; | |
SynthDef("lumin1",{arg freq=4000,amp=1,gate=1,fx=68; | |
var src; | |
src=RHPF.ar(Impulse.ar([freq,freq*2.01]*92,SinOsc.ar([freq,freq*1.01]*36*SinOsc.ar(freq*82,0,0.1)),SinOsc.ar([freq/fx,freq/fx*0.99]*102,0,0.3*amp*Decay2.ar(Dust.ar(8),0.0,0.05)))*EnvGen.ar(Env.adsr(0.00,0.2,0.2,0.1,0.8,3),gate,doneAction:2),LFNoise2.ar(2,23,36).midicps,0.4); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( | |
var indexNum,window,portText,hostText,addresText,address,slideView, | |
numArray,bufferArray,pattern,valMonitor,playButton,resetButton,task,host,port, | |
stDist,scale,scaleTex,scaleTexField,poler,modePopup; | |
///////////priset destination OSC/////// | |
host = "127.0.0.1"; | |
port = 5000; | |
address = "/value"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"SC_SYNTHDEF_PATH".setenv("PATH FOR synthDefFiles"); | |
( | |
o = OSCReceiver("/assign", nil); | |
OSCReceiverFunction("/assign", "gf", {|msg| | |
var graphFnc,time,second,scoreFile,pathToSoundDir,isFile,skip; | |
skip = false; | |
pathToSoundDir = "PATH FOR soundFiles dir"; | |
time = Date.getDate.format("%Y%m%d%H%M%S"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"curl search.twitter.com/search.json?q=%23sc140".unixCmdGetStdOut; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( | |
f = File("PATH TO YOUR FILE","rb"); | |
a = []; | |
240000.do({arg i; | |
a = a.add( f.getInt8 ); | |
}); | |
b = Buffer.loadCollection(s, a.normalize); | |
f.close; | |
a.plot | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<icecast> | |
<location>Tokyo</location> | |
<admin>[email protected]</admin> | |
<limits> | |
<clients>100</clients> | |
<sources>2</sources> | |
<threadpool>5</threadpool> | |
<queue-size>524288</queue-size> | |
<client-timeout>30</client-timeout> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/////////////// insert | |
users.insert( map<string, UserClass>::value_type( str, UserClass( args.. ) ) ); | |
////////// loop access | |
map<string, UserClas>::iterator it = users.begin(); | |
while( it != users.end() ) { | |
cout << "key : " << (*it).first << " value : " << (*it).second << endl; | |
++it; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( | |
s.waitForBoot { | |
var rootPath, window, view, | |
drawBuf, bufnum, sound, task, | |
width, height, fps, curX, curY, pixSize, | |
processFunc, loadFile; | |
// initial settings | |
rootPath = "/path/to/root/dir"; | |
pixSize = 5; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define PORT 5000 | |
#import "ofmain.h" | |
#include "ofxOsc.h" | |
#include "User.h" | |
class OSCThreadedObject : public ofThread { | |
private: | |
ofxOscReceiver receiver; |