DSP module of unknown character

DSP related issues, mathematics, processing and techniques
Post Reply
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

DSP module of unknown character

Post by tulamide »

I didn't know how to describe it in the subject line. I'm currently training filter design. I started with impulse response, did a function, then switched to audible. The result of what I did is that the input signal gets nice rich overtones, the more you drive the module. But what is it? How could it be named?
It obviously isn't a filter, since (a) it doesn't filter anything out, but adds to the original signal, and (b) it only works with sinusoidal input signals (because the function uses sinusoidal on the input, too. Ah, just see it for yourself. I'm bad at describing).

1) What is it?
2) Does it introduce aliasing? It shouldn't, but I'm insecure.
3) How would I go about generalizing, so that it behaves the same, no matter the input signal? Meaning, it should produce the same overtones even on saw, square, etc. I know why it mathematically can't work. So please don't tell me why it doesn't, but rather how it would.
Attachments
filter_training_01.fsm
(21.52 KiB) Downloaded 1360 times
"There lies the dog buried" (German saying translated literally)
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: DSP module of unknown character

Post by KG_is_back »

1.
It is a simple distortion module. When you simplify the code you get:

Code: Select all

streamin in;
streamin m;
streamout out;

out=in*cos1(in*m);

recently I've seen fairly similar code used in modeling valve distortion.

2.
Yes, as all simple distortion algorithms like this, it introduces a hell of an aliasing.
3.
try multi band processing. Split incoming audio into multiple band using hpf/lpf and apply the distortion to those sections.
User avatar
martinvicanek
Posts: 1334
Joined: Sat Jun 22, 2013 8:28 pm

Re: DSP module of unknown character

Post by martinvicanek »

Personally I think that aliasing is not necessarily bad in distortion devices. It adds to the dirty sound. However, an effective measure to avoid aliasing from distortion is oversampling. There is not much else, really,
Post Reply