Re: [Csnd] Getting "Dirty" Sound

Hi Brandon,
lovely to see you here!

Personally, I'd say the Guitarix code is great for something close to typical amps, that's what it's made for. BUT...

You can get nice and dirty with clip alone, try its different clipping methods. distort1 can also be a source of unspeakable noise. Even mirror can be fun. :slight_smile: Then, of course, you can modulate source audio, depending on your source ringmodulation by just multiplying stuff, FM, PM. The manual example for the hilbert filter, I believe, shows a basic Bode frequency shifter type of thing. -- And you have compress2 to get gritty with compressors. In the old manual entry, I found it slightly difficult to understand that the threshhold is the threshhold of an internal noise gate and the typical compressor threshhold is set by the low and high knee points. This may be changed. Anyway, another good opcode.

Especially when you're testing something like clip with different models or methods, it can be helpful to do something like this:
instr Play
   ; from parameter
   iMethod = p4
   ...
   aClipped = clip(aInput, iMethod, ...)
   ...
endin

And in the socre or when calling the instrument:
i"Play" 0 5 0 ; 5 seconds with method 0
i. + . 1 ; follwed by 5 second with method 1
i. . . 2 ; Followed by 5 seconds of method 2

HTH.

Best wishes,

Jeanette

Keep in mind that most of the distortion opcodes can lead to aliasing, which can sound awful if you playing into them live. To avoid this, you’ll need to use Csound 7’s oversampling feature, which must be wrapped in a UDO. Here’s a simple example using the distort opcode:

opcode oversampleDist, a, aki
input:a, amount:k, table:i xin
oversample(8, 4)
sig:a = distort(input, amount, table)
filteredSig:a = tone(sig, sr/2)
xout filteredSig
endop

where table is a “tanh” table. Also take a look at the floss manual: https://flossmanual.csound.com/sound-modification/am-rm-waveshaping