Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER General Discussion Forum

Reply
 
Thread Tools Display Modes
Old 08-30-2007, 04:44 PM   #1
Consul
Human being with feelings
 
Consul's Avatar
 
Join Date: Sep 2006
Location: Port Huron, Michigan, USA
Posts: 489
Default Compstortion - My turn for a JS plug-in

Attached you will find my very first attempt not just at a JS plug, but at DSP programming in general. Compstortion is a distortion utilizing two simple asymptotic algorithms, which basically means you can drive it hard and it'll never clip the output, unless you do something like manually set the attenuator to less than one. These algorithms are courtesy of the folks at SuperCollider, a GPL program, and Kijjaz from the ChucK forums.

Note: In mono mode, Compstortion takes the left channel and discards the right. As long as you don't feed stereo info and leave the plug in mono mode, it'll be fine.

Also included in the ZIP file is a bit of documentation that explains the operation of the plug in more detail.

Have fun, and let me know what you think! It's my hope that this will be useful to someone somewhere.

LATEST: Compstortion Version 0.5 Beta
Attached Files
File Type: zip CompstortionV0.5Beta.zip (2.6 KB, 282 views)

Last edited by Consul; 09-01-2007 at 04:35 PM.
Consul is offline   Reply With Quote
Old 08-30-2007, 06:48 PM   #2
Consul
Human being with feelings
 
Consul's Avatar
 
Join Date: Sep 2006
Location: Port Huron, Michigan, USA
Posts: 489
Default

Just thought I'd bump this: Version 0.2 Beta, which replaces the handling of stereo into mono with something simpler and using less cycles, is now attached to the above post. Thank you!
Consul is offline   Reply With Quote
Old 08-30-2007, 07:05 PM   #3
Solar
Human being with feelings
 
Solar's Avatar
 
Join Date: Aug 2006
Location: Canada
Posts: 2,309
Default Thanx Consul!

Thanx for sharing! Any screenshot? Thanx
__________________
MY: Music Producer, Mix Engineer & Entrepreneur
http://soundcloud.com/officialmy
Solar is offline   Reply With Quote
Old 08-30-2007, 07:10 PM   #4
Consul
Human being with feelings
 
Consul's Avatar
 
Join Date: Sep 2006
Location: Port Huron, Michigan, USA
Posts: 489
Default

It looks like any other Jesusonic plug-in, really, but here you go:

(Edit: Removed due to being out of date.)

Last edited by Consul; 08-30-2007 at 10:56 PM.
Consul is offline   Reply With Quote
Old 08-30-2007, 07:31 PM   #5
pipelineaudio
Mortal
 
pipelineaudio's Avatar
 
Join Date: Jan 2006
Location: Wickenburg, Arizona
Posts: 14,047
Default

working good right around the nose of the curve, but much below and nothing and much above and nasty...that the tricky part of these things
pipelineaudio is offline   Reply With Quote
Old 08-30-2007, 07:33 PM   #6
Consul
Human being with feelings
 
Consul's Avatar
 
Join Date: Sep 2006
Location: Port Huron, Michigan, USA
Posts: 489
Default

Yeah, that's the inelegant part. I need to decide about where the curve works best and maybe limit the drive to that range. I just wanted to give people the option of being able to crank it if they'd like. I'm also thinking about an output attenuator, so users can match the volume of the incoming signal to do A/B as easy as clicking the plug-in bypass.

Last edited by Consul; 08-30-2007 at 07:35 PM.
Consul is offline   Reply With Quote
Old 08-30-2007, 08:48 PM   #7
Bevosss
Human being with feelings
 
Bevosss's Avatar
 
Join Date: Feb 2007
Location: Sydney Oz
Posts: 8,480
Default

Quote:
Originally Posted by Consul View Post
I'm also thinking about an output attenuator, so users can match the volume of the incoming signal to do A/B as easy as clicking the plug-in bypass.
Cool! I was just about to request it, thanks in advance... I like it.
__________________
The media are misleading the public about Syria:
https://www.bostonglobe.com/opinion/...tcK/story.html
Bevosss is offline   Reply With Quote
Old 08-30-2007, 09:28 PM   #8
Bevosss
Human being with feelings
 
Bevosss's Avatar
 
Join Date: Feb 2007
Location: Sydney Oz
Posts: 8,480
Default

I just noticed, fully cranked it's chewing 23% of my net machine's cpu! You might want to talk to Loser or Scott about lowering that. Other JS one's are fairly low.
__________________
The media are misleading the public about Syria:
https://www.bostonglobe.com/opinion/...tcK/story.html
Bevosss is offline   Reply With Quote
Old 08-30-2007, 10:00 PM   #9
Consul
Human being with feelings
 
Consul's Avatar
 
Join Date: Sep 2006
Location: Port Huron, Michigan, USA
Posts: 489
Default

Yeah, I see that now. The "Warm" setting (the SuperCollider one) maxes out at about 1.8% on my machine, but the others really chew up CPU. I'll bet it has to do with the cubing and squaring in the denominators. To tell you the truth, the SC algo is the one I like the best. I think maybe I'll call this "Compstortion" (or "Extorsion" ) instead and stick to the one algo.

I'm still trying to figure out the drive and attenuation routines.

Last edited by Consul; 08-30-2007 at 10:05 PM.
Consul is offline   Reply With Quote
Old 08-30-2007, 10:50 PM   #10
Consul
Human being with feelings
 
Consul's Avatar
 
Join Date: Sep 2006
Location: Port Huron, Michigan, USA
Posts: 489
Default

UPDATED: Now called Compstortion, version 0.3, now with only one algorithm, some form of logarithmic-based drive and attenuation control, and output attenuation! See the first post for download.
Consul is offline   Reply With Quote
Old 09-01-2007, 01:15 PM   #11
Consul
Human being with feelings
 
Consul's Avatar
 
Join Date: Sep 2006
Location: Port Huron, Michigan, USA
Posts: 489
Default

Sorry for the constant bumping, but 0.4 Beta is now available, attached to the first post of this thread. I was able to fix the CPU use issues with the other two algos, so they are now back in the package! A little clean-up, and here we go!
Consul is offline   Reply With Quote
Old 09-01-2007, 04:37 PM   #12
Consul
Human being with feelings
 
Consul's Avatar
 
Join Date: Sep 2006
Location: Port Huron, Michigan, USA
Posts: 489
Default

Here we go again. Version 0.5 at the top of the thread.

Changes:

* Got rid of the "Harsh" setting, since it just wasn't working for me.
* Increased the Drive and Attenuation ranges for a greater range of effect. The amount of effect you get is greatly dependent on the amplitude of the input signal to begin with, so be careful on louder program material.
Consul is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 01:31 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.