SynthMaker

Hard clipping?

Archive · 2012 6 old posts

From the original SynthMaker forum (2004–2014), with its members’ names and dates.

CoreStyler ·

Hi, i tried to create an hardclip distortion. Seems that the signal is pretty like what i read at wikipedia. there the two sines:

And there the hardclipped (similar)

Can be considered an hard clip or similar?

Here the osm:

oddson ·

In analog world hard clipping is chopping the top and bottom at some threshold.

If you do that in digital realm (without oversampling and filtering) you get nasty aliasing.

You've got some kind of pulse width modulation square wave (also with nasty aliasing) but not hard clipping as I understand it.

CoreStyler ·

Yes. Infact any kind of source wave sounds as square. 😠 Im testing for creating some kind of distortion that is not just an in * float. 😠

trogluddite ·

CoreStyler wrote: distortion that is not just an in * float. 😠

Why so angry?- Oddson is correct, it isn't hard-clipping in the usual sense (the edges between high and low would be sloping, not straight up and down). The 'in * float' method (with min,max to keep -1 to +1) is a form of hard-clipping. But the 'name' doesn't matter (guess you could call your one 'comparator distortion')- your approach is still an interesting one (the PWM type effect with different inputs certainly has very different harmonics to other distortions).

CoreStyler ·

I want to create a cool distortion DSP code. But is really difficult.. If i create a distortion, it should add harmonics true? but what i do seems to remove them!.

The same here, When using min max it became pulse.

oddson ·

If i create a distortion, it should add harmonics true? but what i do seems to remove them!.

If you start with a sine you can only add harmonics. Square waves have lots of harmonic content....

Distortion is tricky business... I've tried it varies schemes over the years and never liked the results.

Aliasing is a major problem for anything but the gentlest saturation effects...

Wrote something here? To have a post removed or your name hidden, write to [email protected].

Before your first post

A few rules keep this a friendly place. You agree to them once.

Shown next to what you post, here and in the app. It doesn’t have to be your real name: 3–24 lower-case letters, digits or _ (capitals become lower case, spaces become _).

    Then your post goes up straight away.

    Delete this reply?

    Open it in SynthMaker?

    It goes on the track you’re editing there, in place of that track’s sound, and into My sounds. Your other tracks stay as they are.

    Want to keep that track’s sound? Start a new song in SynthMaker first (Song › New song), then open this.

    Report this reply?

    Only the developer reads reports. The person isn’t told who reported them.

    What’s wrong with it?

    Block this person?

    You won’t see their posts and replies here any more. They aren’t told, and you can unblock them at any time.

    People you’ve blocked

    Their posts and replies are hidden from you. Unblock someone to see them again.

    The community rules

    A few rules keep this a friendly place. Everyone agrees to them once, before their first post.