PB = 1
GCC = 1
VB6 = -1
VB.net = -1
Excel = 1
Automation variant = $FFFF
Code: Select all
Define a.i
!#include "stdbool.h";
!v_a = true;
Debug "GCC True = " + a
Code: Select all
Define a.i
!#include "stdbool.h";
!v_a = true;
Debug "GCC True = " + a
Yes your right. I Misread it, that's what (( )) are for clear any ambiguity in the statement at a glanceinfratec wrote: ↑Sat Sep 10, 2022 9:54 am Why ?Has 2 posibilities:Code: Select all
env = rt * env + (1 - at) * ((fabs - env > 0) ? fbs - env : 0)
AndCode: Select all
env = rt * env + (1 - at) * (fbs - env)
The second case can be reduced to:Code: Select all
env = rt * env + (1 - at) * (0)
(In my opinion, I didn't checked it with a C compiler.Code: Select all
env = rt * env
Code: Select all
Global.d env,at,fabs,rt
fabs = 0.997
at = 0.02
rt = 0.01
env= 0.996
!v_env = v_rt * v_env + ((1 - v_at) * ((v_fabs - v_env > 0) ? v_fabs - v_env : 0));
Debug env
env= 0.996
If fabs - env > 0
env = rt * env + ((1 - at) * (fabs - env))
Else
env = rt * env
EndIf
Debug env
Never heard this before.perform a clean-room implementation of it
It's like how I described. Or see here -> https://en.wikipedia.org/wiki/Clean_room_designNever heard this before.
The author wrote the code based on a paper as far as I can tell. If what you say is the case, can I use my translation GPL free? I mean, what was the point of the source author making it GPL?
Am I required to publish the PB DLL code?
This day, you have added << [GPL code!] >> in the title of the subject.AndyMK wrote:Here is the original code and my conversion below it.
C++Code: Select all
typedef struct { [etc...]
Yes I understand that but can I use it in my closed source code? At what point does modification become "different" ? The code functions as an audio limiter. There are many of them, most following the same coding pattern which is an emulation of a hardware equivalent.Olli wrote: ↑Sun Sep 11, 2022 12:49 pmThis day, you have added << [GPL code!] >> in the title of the subject.AndyMK wrote:Here is the original code and my conversion below it.
C++Code: Select all
typedef struct { [etc...]
Please read the licence of the real original code. Logically, it is described the several author(s) of the code, and several dates of creation and modifications.
I imagine this is not a sophisticated system, after having read this code extract. But the licence is ever important. So you have to insert in the head of the extract of the original code (the words you wrote), a minima, a hyperlink to a GNU GPL licence (a first text line) and the identity of the several authors (a second text line). It is so two text lines to be inserted in the original code (extract) you have published.
For the rest, if you keep the link with authors of the original code, there is no problem to modify it. But you have to keep the link with authors, as described in a GNU GPL licence.
I looked this up but couldn't find anything concrete. Can you link me to something that can confirm this?