Frank - that was fast! Thanks!
I haven't had time to try it out yet but will report back when I get home. The csound opcode I've used myself is a modification of the original with signal input for cutoff (please find it attached). Signal input for both cutoff and resonance would of course be awesome.
If anyone could compile a windows binary of this I would be very grateful. I use both winxp and ubuntu.
/Anton
Hallo, Anton H?rnquist hat gesagt: // Anton H?rnquist wrote:
Frank - that was fast! Thanks!
I haven't had time to try it out yet but will report back when I get home. The csound opcode I've used myself is a modification of the original with signal input for cutoff (please find it attached). Signal input for both cutoff and resonance would of course be awesome.
I now made a version where cutoff and resonance are signals. This version is a bit more CPU intensive now, as some computations had to move into the DSP loop to react to the changes in center frequency.
I played a bit with a rational tanh approximation from the music-dsp list but it didn't sound good anymore. If someone wants to play with other approximations e.g. table lookup: Just change the function "mytanh".
The filter response gets nasty and loud if the center frequency is near or above the sampling rate. Maybe it should be restricted as well. But then, resonance at 1 will make everyone jump, too...
The updated code is at http://footils.org/pkg/moogladder-0.2.tgz
Frank
Here is a dll of Frank's moogladder~ v.02 compiled against pd 0.40_2 The code should go in svn somewhere. ( I replaced 2*M_PI in the code with TWO_PI to avoid a multiply (compiler optimisation maybe does that already)).
Martin
Anton Hörnquist wrote:
Frank - that was fast! Thanks!
I haven't had time to try it out yet but will report back when I get home. The csound opcode I've used myself is a modification of the original with signal input for cutoff (please find it attached). Signal input for both cutoff and resonance would of course be awesome.
If anyone could compile a windows binary of this I would be very grateful. I use both winxp and ubuntu.
/Anton
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hallo, Martin Peach hat gesagt: // Martin Peach wrote:
Here is a dll of Frank's moogladder~ v.02 compiled against pd 0.40_2 The code should go in svn somewhere. ( I replaced 2*M_PI in the code with TWO_PI to avoid a multiply (compiler optimisation maybe does that already)).
Did you define that yourself? My math.h doesn't have TWO_PI ...
Frank
Frank Barknecht wrote:
( I replaced 2*M_PI in the code with TWO_PI to avoid a multiply (compiler optimisation maybe does that already)).
Did you define that yourself? My math.h doesn't have TWO_PI ...
depending on compiler options, my math.h doesn't have M_PI ...
Claude
Frank Barknecht wrote:
Hallo, Martin Peach hat gesagt: // Martin Peach wrote:
( I replaced 2*M_PI in the code with TWO_PI to avoid a multiply (compiler optimisation maybe does that already)).
Did you define that yourself? My math.h doesn't have TWO_PI ...
Yes. My math.h doesn't seem to have have M_PI either...
Martin
Csound defines M_PI... from the manual:
Predefined Math Constant Macros
New in Csound 5.04 are predefined Math Constant Macros. The values
defined are those found in the C header math.h, and are automatically
defined when Csound starts and available for use in orchestras.
J
On Aug 27, 2008, at 5:47 AM, Martin Peach wrote:
Frank Barknecht wrote:
Hallo, Martin Peach hat gesagt: // Martin Peach wrote:
( I replaced 2*M_PI in the code with TWO_PI to avoid a multiply (compiler optimisation maybe does that already)).
Did you define that yourself? My math.h doesn't have TWO_PI ...
Yes. My math.h doesn't seem to have have M_PI either...
Martin
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hi,
Yes true. Claude had the reason. I will make a #define as well when I
add it to the SVN.
Frank
On 27.08.2008, at 14:47, Martin Peach martin.peach@sympatico.ca wrote:
Frank Barknecht wrote:
Hallo, Martin Peach hat gesagt: // Martin Peach wrote:
( I replaced 2*M_PI in the code with TWO_PI to avoid a multiply (compiler optimisation maybe does that already)).
Did you define that yourself? My math.h doesn't have TWO_PI ...
Yes. My math.h doesn't seem to have have M_PI either...
Martin
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list