# Effect: Shaped Up

**URL:** <https://forum.cabbageaudio.com/t/effect-shaped-up/47>\
**Category:** Cabbage recipes\
**Created:** [28 October 2015 11:53 UTC](https://forum.cabbageaudio.com/t/effect-shaped-up/47 "2015-10-28T11:53:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![t\_grey](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/t_grey/32/1234_2.png) [@t\_grey](https://forum.cabbageaudio.com/u/t_grey)\
**Post date:** [28 October 2015 11:53 UTC](https://forum.cabbageaudio.com/t/effect-shaped-up/47/1 "2015-10-28T11:53:41Z")

</div>

[ShapedUp.csd](https://forum.cabbageaudio.com/uploads/default/original/1X/4ccc65419fdc1d3f4c191e1737a31919ffeed960.csd) (30.3 KB)

This is a flexible waveshaping distortion based on distort opcode with filtering available before and after the distortion. It is fully capable of subtle distortions, or mangling a sound beyond all chances of recognition. The common wave shapes are available, and then modifiable with sliders (hidden under the customize button).

Directions are included inline in the comments to add your own custom wave shapes, the tables are generated with ftgentmp and need to be length 1024. Values in the table will be hard limited to a min of -1 and max of 1, so normalize your tables when you create them or they will be clipped.

If anyone has any good shapes to add, please reply here!

---

<div class="post-metadata">

**Author:** ![t\_grey](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/t_grey/32/1234_2.png) [@t\_grey](https://forum.cabbageaudio.com/u/t_grey)\
**Post date:** [2 November 2017 23:42 UTC](https://forum.cabbageaudio.com/t/effect-shaped-up/47/2 "2017-11-02T23:42:18Z")

</div>

This is a **BARELY** updated version, just to make this effect cabbage2 compatible for testing/discussion of replacing ftables that’s going on in this thread: [Ftgen memory allocation - #3 by t\_grey](http://forum.cabbageaudio.com/t/ftgen-memory-allocation/792/3)

A newer better version of this effect is in the works, this is just temporary 🙂

[ShapedUp1.1.csd](https://forum.cabbageaudio.com/uploads/default/original/1X/9a19b3298725e4127c0be0668d8ca72e40e1d261.csd) (30.6 KB)

---

<div class="post-metadata">

**Author:** ![Karamel1](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/karamel1/32/1680_2.png) [@Karamel1](https://forum.cabbageaudio.com/u/Karamel1)\
**Post date:** [3 November 2017 08:45 UTC](https://forum.cabbageaudio.com/t/effect-shaped-up/47/3 "2017-11-03T08:45:26Z")

</div>

Hello @t_grey,

This is a great effect ! I adopt it 😁  
I just plug it after my morpheur synth with Cabbage patcher…  
There is one liitle error in your code line 456 : an extra $ at $$W\_SAW

```
  elseif (ishape==$W_TRIANGLE) || (ishape==$W_SQUARE) || (ishape==$$W_SAW) || (ishape==$W_RSAW) then

```

Hope this helps.

---

<div class="post-metadata">

**Author:** ![t\_grey](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/t_grey/32/1234_2.png) [@t\_grey](https://forum.cabbageaudio.com/u/t_grey)\
**Post date:** [3 November 2017 09:15 UTC](https://forum.cabbageaudio.com/t/effect-shaped-up/47/4 "2017-11-03T09:15:50Z")

</div>

> [@Karamel1](#):
>
> There is one liitle error in your code line 456 : an extra $ at $$W\_SAW

Interesting… I wonder if this might be csound version dependent… I’m running on a slightly older version, because 6.09 introduced some issues for me and I’m holding off for a new release (or getting homebrew working again). It compiled and ran with no issues for me on 6.07. I’ll make a note to fix that for the future version tho, thanks!

> [@Karamel1](#):
>
> This is a great effect ! I adopt it

I’m glad you like it! I realized after posting it that the popup doesn’t work quite perfectly in C2… oops. Once it’s closed it never comes back… apparently in C1 popups could never be closed, only minimized?

Since I’m doing that totally different in the new version, I might just leave it as is for now.

---

<div class="post-metadata">

**Author:** ![Karamel1](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/karamel1/32/1680_2.png) [@Karamel1](https://forum.cabbageaudio.com/u/Karamel1)\
**Post date:** [3 November 2017 09:25 UTC](https://forum.cabbageaudio.com/t/effect-shaped-up/47/5 "2017-11-03T09:25:31Z")

</div>

I agree, depending on which beta of Csound 6.09 you use, different problems might occur. I hope developpers might soon release a stable version.  
About cabbage 2, Rory has made tremendous improvements these last weeks but still it seems that the behaviour is not necessarily the same depending on the OS (linux or windows) you work with, especially filepath and soundfilers and presets 😉 .  
But we are getting there.

---

<div class="post-metadata">

**Author:** ![t\_grey](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/t_grey/32/1234_2.png) [@t\_grey](https://forum.cabbageaudio.com/u/t_grey)\
**Post date:** [1 June 2020 17:24 UTC](https://forum.cabbageaudio.com/t/effect-shaped-up/47/6 "2020-06-01T17:24:29Z")

</div>

I’m going back and releasing “maintenance updates” for most of my old recipes. These are just minor bug fixes to keep them running with current csound and cabbage versions. Enjoy!  
[ShapedUp\_v1.2.csd](https://forum.cabbageaudio.com/uploads/short-url/AneaDkF9awT4TmJRz1DA3cFhndT.csd) (30.6 KB)
