Quantcast

Asymmetrical waveform?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Asymmetrical waveform?

tedthetrumpet
Why does this synth produce an asymmetrical waveform, that pretty much only goes positive? Does that matter? Sounds ok?

SynthDef(\bform, { |out = 0, freq = 261.6255653006, form = 70, bw = 200, gate = 1, amp = 0.1|
        var env = EnvGen.kr(Env.adsr(releaseTime:0.5, decayTime:0.1), gate, doneAction:2);
        var sig = Formant.ar(freq * ((-1..1)/500 + 1), form * env.range(0.01,2), bw);
        sig = sig * env;
        Out.ar(out, Splay.ar(sig) * amp)
}).add;

Link to audio:

https://dl.dropboxusercontent.com/u/301761/bformtest.mp3

Link to shot of waveform:

https://dl.dropboxusercontent.com/u/301761/bformtestwaveform.png
--
J. Simon van der Walt
jsimonvanderwalt.com
twitter.com/tedthetrumpet
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Asymmetrical waveform?

Saul-2
Hi Tedthetrumpet,

DC correction is needed.


/S

On 13 February 2017 at 14:15, tedthetrumpet <[hidden email]> wrote:
Why does this synth produce an asymmetrical waveform, that pretty much only
goes positive? Does that matter? Sounds ok?

SynthDef(\bform, { |out = 0, freq = 261.6255653006, form = 70, bw = 200,
gate = 1, amp = 0.1|
        var env = EnvGen.kr(Env.adsr(releaseTime:0.5, decayTime:0.1), gate,
doneAction:2);
        var sig = Formant.ar(freq * ((-1..1)/500 + 1), form * env.range(0.01,2),
bw);
        sig = sig * env;
        Out.ar(out, Splay.ar(sig) * amp)
}).add;

Link to audio:

https://dl.dropboxusercontent.com/u/301761/bformtest.mp3

Link to shot of waveform:

https://dl.dropboxusercontent.com/u/301761/bformtestwaveform.png




-----
--
J. Simon van der Walt
jsimonvanderwalt.com
twitter.com/tedthetrumpet
--
View this message in context: http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/Asymmetrical-waveform-tp7630702.html
Sent from the SuperCollider Users New (Use this!!!!) mailing list archive at Nabble.com.

_______________________________________________
sc-users mailing list

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

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Asymmetrical waveform?

Daniel Mayer

Am 13.02.2017 um 16:21 schrieb Saul Rayson <[hidden email]>:

Hi Tedthetrumpet,

DC correction is needed.




Just to add, easy in SC with LeakDC,
simply wrap it in around your out signal within the SynthDef.

In case it is a result of many running synths, you can
define a dedicated LeakDC synth and route all audio to it.

Regards

Daniel

-----------------------------
www.daniel-mayer.at
-----------------------------

Loading...