HELP PLEASE

DSP related issues, mathematics, processing and techniques
Post Reply
BobF
Posts: 598
Joined: Mon Apr 20, 2015 9:54 pm

HELP PLEASE

Post by BobF »

Hello gang,

Hi, I am looking for some kind programmer/coder to help me out. I need a module created! It can be ASM, DSP, or RUBY as long as it does the job. Here is the goal. Say I have an Integrator and I am feeding it with a Triangle, Square, etc. wave. As you know as the frequency goes up the amplitude goes down. I want a module created that will keep the amplitude the same throughout the audio range (20Hz to 20,000 Hz) or best fit. Well at least 4 to 5 octaves. If yo can help, thanks a million in advance.

Later then, BobF.....
User avatar
Spogg
Posts: 3368
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England
Contact:

Re: HELP PLEASE

Post by Spogg »

Hi Bob

There's a topic on here which might be of use (not tried any examples myself...)

viewtopic.php?f=2&t=3448

Also, if you upload your integrator schematic showing the issue, it might help someone to help!

Cheers

Spogg

EDIT: I made this quick and dirty one for you to try. Seems to do what you want. You can edit the peak detector (made by Martin I think...?) via its Properties to change the attack/decay behaviour. Give it a try...
Attachments
constant output.fsm
A kind of AGC I guess but open-loop.
(155.82 KiB) Downloaded 1492 times
BobF
Posts: 598
Joined: Mon Apr 20, 2015 9:54 pm

Re: HELP PLEASE

Post by BobF »

Bobs_Integrator.fsm
(701.57 KiB) Downloaded 1533 times

Hello gang,
It needs to be more of a generic module for any stream type waveform.
It's NOT really for any one use, but hundreds possibly. See schematic.
Thanks again all.
Later then, BobF....
User avatar
Spogg
Posts: 3368
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England
Contact:

Re: HELP PLEASE

Post by Spogg »

Hi Bob

I've adapted my previous upload to your schematic.

Set 20 Hz. Adjust the input level knob to just peak the level meter. Set the output level you want.

Let me know if this helps...

Cheers

Spogg
Attachments
Bobs_Integrator with constant output module added.fsm
(1.38 MiB) Downloaded 1528 times
User avatar
martinvicanek
Posts: 1334
Joined: Sat Jun 22, 2013 8:28 pm

Re: HELP PLEASE

Post by martinvicanek »

If you have the frequency available like in your schematics use that for gain adjustment before the integrator. It is the cleanest solution wrt to transient artifacts. Really.

Otherwise I'd use something like the attached. The ratiaonale is to make gain adjustments before the integrator so potential clicks will be lowpass filtered (suppressed). But how do you know how much adjustment you need for compensation? Well In the attachment I compare the original signal envelope with the envelope after the signal has passed a dummy integrator then apply the inverse ratio to a VCA before the actual integrator.
Attachments
Bobs_Integrator_MV2.fsm
(678.94 KiB) Downloaded 1519 times
BobF
Posts: 598
Joined: Mon Apr 20, 2015 9:54 pm

Re: HELP PLEASE

Post by BobF »

Hey Martin,
Thanks, that works great. I am putting this in my tool box for future use. I am sure there will be more uses for it to come.
Thank you for all your hard work.
Later then BobF....
User avatar
Spogg
Posts: 3368
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England
Contact:

Re: HELP PLEASE

Post by Spogg »

Excellent solution for Bob, Martin.
I see this relies on copying the integrator internally inside the leveller module. I guess you could put a copy inside of whatever function you have externally to get a constant output for any given function.

--------------------------------------

What I love about flowstone is that, like electronics or any type of engineering, there are often many ways to achieve a required result. Clearly some will have advantages over others. I suppose there will be a kind of unnatural selection going on with users who find that one approach is best and therefore will dominate. I tend to be pragmatic and use the first thing I find that does the job. However, like in my additive synths, you showed me a better way of achieving exactly the same sound but with an amazing reduction of CPU.

My name is Spogg and I'm a Flowstone addict.

:D
Post Reply