Page 1 of 1

Mono MVSClipper Assembler Code

PostPosted: Sun May 17, 2020 2:49 am
by pwesynthmaker
I liked Marty's much 'kneedme/feedme' replacement for the 'Stereo Clipper' (flatout 'hard clip' @ 1) so muchly that I took it upon myself to attempt a 'mono mod' bend of his code ... worked beautifully the first time and is sooo useitmuchful in connecting blue audio vca prims to keep the stream from 'railing' from excess amplification. Tested it with maxed out gain connected to both an led vu clipper and led vu stacks and it actually stopped the signal from going out of the yellow into the red with hardly any shatter or sputtage.
Use the ''Green Assembler' Code Mod for this ... not blue DSP or the Ruby ...

'NONO' VERSION OF MVSCLIPPER
x86 COMPATIBLE ASSEMBLER CODE
==========

streamin in;
streamout out;

float FP99=.99;
float MP99=-.99;

movaps xmm0,in;
movaps xmm1,in;
shufps xmm0,xmm1,68;
minps xmm0,FP99;
maxps xmm0,MP99;
movaps out,xmm0;
shufps xmm0,xmm0,78;

==========