Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

DSP module of unknown character

DSP related issues, mathematics, processing and techniques

DSP module of unknown character

Postby tulamide » Wed Dec 10, 2014 2:18 am

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 1241 times
"There lies the dog buried" (German saying translated literally)
tulamide
 
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: DSP module of unknown character

Postby KG_is_back » Wed Dec 10, 2014 2:32 am

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.
KG_is_back
 
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: DSP module of unknown character

Postby martinvicanek » Wed Dec 10, 2014 5:48 am

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,
User avatar
martinvicanek
 
Posts: 1328
Joined: Sat Jun 22, 2013 8:28 pm


Return to DSP

Who is online

Users browsing this forum: No registered users and 26 guests