[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-users] Re: RESULT = -1073741819 + SC_UdpInPort: received error



Thanks for the response! I forgot to mention I am on Windows 10, SC 3.8.

Working on a lenovo t430 with a Realtek High Definition sound card (Version
6.0.1.7614). 
Sorry, I didn't want to dump all of my code into first post. Had to see if
anyone was even interested!

So I I've stripped the code down for runtime to still freeze. I have a
filter def that is fed my base signal (two synths). 

-Tatiana


SynthDef(\filters,{
	|base = 500, mod = 2000, q=
0.2,low=0,bp=1,high=0,notch=0,peak=0,atk=1,sus=1,rel=1,inBus=16|
	var sig, output, modSig,env;
	sig = In.ar(bus:inBus,numChannels:2);
	env = EnvGen.kr(Env.linen(atk,sus,rel), doneAction: 2);
	//modulated sine wave modulation source
modSig = LFBrownNoise2.ar(freq:0.5+0.5*LFDNoise3.ar(freq:1/4));
//	modSig = BrownNoise.ar(freq:0.5+0.5*LFDNoise3.ar(freq:~gr/4));
	//Two 12dB LPFs for 24dB total

output=SVF.ar(signal:sig,cutoff:base+(modSig*mod),res:q,lowpass:low,bandpass:bp,highpass:high,notch:notch,peak:peak);
	//the input is the bandlimited output of the input signal
	output =
2*SVF.ar(signal:output,cutoff:base+(modSig*mod),res:q,lowpass:low,bandpass:bp,highpass:high,notch:notch,peak:peak);


output=JPverb.ar(in:output,t60:60,damp:0.31443298969072,size:2.7938144329897,earlyDiff:0.421875,modDepth:4.639175257732,modFreq:0.10309278350515,low:2450.0822520097,mid:0.70618556701031,high:0.0,lowcut:0.84375,highcut:0.0);
	output=Limiter.ar(output);
	output = output*env;
	Out.ar([0,1],output*0.25);
	Out.ar([18,19],output*0.8);
}).send(s);

 SynthDef(\base, { |out, freq = 50, amp = 0.1, gate = 1, outBus=0,cf = 100,
lag =  0.05, wobble = 0, pw = 0.4, atk=1, sus=1, rel=1,
ampLo=0.5,ampHi=4,lo=0,hi=1,rq=0.3,startPos=0,endPos=0, panRate=0.1|
	var move,pan;
	var base =
Splay.ar(RLPF.ar(SinOsc.ar(freq*[0.99,0.5,1.01,3/2,4/3,5/4],pw),cf.lag(lag),rq,SinOsc.ar(wobble).range(ampLo,ampHi)).sin).range(0,1)
* 0.5;
	var env = EnvGen.kr(Env.linen(atk,sus,rel), doneAction: 2);
    var sig = base.tanh;
	sig = tanh(GVerb.ar(HPF.ar(base * env,freq:30),roomsize:70,revtime:11,
damping:0.15)*0.5 );
	sig = sig*env;
	move = SinOsc.kr(panRate).range(startPos,endPos);
	sig=GVerb.ar(sig,70,5,spread:30);
	sig = Mix(sig);
	pan = PanAz.ar(2,sig,move,width:2,orientation:0);
	Limiter.ar(pan);
	Out.ar(outBus, pan*amp);
}).send(s);



(t = Task({
	var bufL, bufR, stereo,buffer,scale, counter, base;
	//s = Server.default;
	~g1=Group.new;
~filter = Synth.tail(~g1,\filters,[inBus:16,\atk,10,\sus,100,\rel,10]);
Synth(\base,[outBus:0,pw:1,atk:10,sus:100,rel:10,freq:23.midicps*2,cf:23.midicps,wobble:0.25],target:~g1);
});)




--
Sent from: http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/SuperCollider-Users-New-Use-this-f2676391.html

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/