Re: [linux-audio-dev] Diode wave shaper (LADSPA plugin)?

2004-08-16 Thread Stanley Jaddoe
On Monday 16 August 2004 19:09, Stanley Jaddoe wrote: > On Monday 16 August 2004 18:23, Jens M Andreasen wrote: > > Now please tell us, what is this synth of yours that you have > > disassembled? Is this circuit part of the output-stage or is it part of > > the individual oscillators? Inquiring min

Re: [linux-audio-dev] Diode wave shaper (LADSPA plugin)?

2004-08-16 Thread Stanley Jaddoe
On Monday 16 August 2004 18:23, Jens M Andreasen wrote: > Now please tell us, what is this synth of yours that you have > disassembled? Is this circuit part of the output-stage or is it part of > the individual oscillators? Inquiring minds wants to know! It's the TR-909 drum machine. For the Bass

Re: [linux-audio-dev] Diode wave shaper (LADSPA plugin)?

2004-08-16 Thread Jens M Andreasen
On mån, 2004-08-16 at 16:49, Stanley Jaddoe wrote: > The 12k resistor is just an example, it would be nice if it would be treated > as a variable. > > How can I incorporate the 1N4148 diode characteristics in the final equation? > One interresting thing to consider is that the diode pair is mi

Re: [linux-audio-dev] Diode wave shaper (LADSPA plugin)?

2004-08-16 Thread Alfons Adriaensen
On Mon, Aug 16, 2004 at 04:49:47PM +0200, Stanley Jaddoe wrote: > I did some SPICE emulation (Alfons: I know, I'm not a (real) engineer) and I > never saw a tangentfunction-like output... The formula I posted does not contain a tangent, but an *hyperbolic* tangent. > Assuming one input and on

Re: [linux-audio-dev] Diode wave shaper (LADSPA plugin)?

2004-08-16 Thread Alfons Adriaensen
On Mon, Aug 16, 2004 at 04:49:47PM +0200, Stanley Jaddoe wrote: > The 12k resistor is just an example, it would be nice if it would be treated > as a variable. The actual value doesn't matter, you'll get almost the same transfer shape for any reasonable resistor value. Just make the input leve

Re: [linux-audio-dev] Diode wave shaper (LADSPA plugin)?

2004-08-16 Thread Stanley Jaddoe
On Monday 16 August 2004 12:45, Erik de Castro Lopo wrote: > Both of those would probably sound better than what I posted, > but the original circuit had a 12k source impedance. As soon > as the the input overcomes the forward voltage drop of the > diodes the impedance of the diodes drops to the lo

Re: [linux-audio-dev] Diode wave shaper (LADSPA plugin)?

2004-08-16 Thread Alfons Adriaensen
On Mon, Aug 16, 2004 at 02:43:14PM +0200, Jens M Andreasen wrote: > Wouldn't the current be limited by the 12k resistor, so that the > impedance of the diode won't drop as fast as you suggest? OK, here are some real values, found with a hand calculator (real engineers don't use Spice :-) View wi

Re: [linux-audio-dev] Diode wave shaper (LADSPA plugin)?

2004-08-16 Thread Jens M Andreasen
On mån, 2004-08-16 at 12:45, Erik de Castro Lopo wrote: > On Mon, 16 Aug 2004 12:13:51 +0200 > Alfons Adriaensen <[EMAIL PROTECTED]> wrote: > > > This is a bit too simple. The diode circuit does not perform hard > > clipping when driven at moderate levels. > > > > Something like > > > > out =

Re: [linux-audio-dev] Diode wave shaper (LADSPA plugin)?

2004-08-16 Thread Alfons Adriaensen
On Mon, Aug 16, 2004 at 08:45:49PM +1000, Erik de Castro Lopo wrote: > On Mon, 16 Aug 2004 12:13:51 +0200 > Alfons Adriaensen <[EMAIL PROTECTED]> wrote: > > > This is a bit too simple. The diode circuit does not perform hard > > clipping when driven at moderate levels. > > > > Something like > >

Re: [linux-audio-dev] Diode wave shaper (LADSPA plugin)?

2004-08-16 Thread Erik de Castro Lopo
On Mon, 16 Aug 2004 12:13:51 +0200 Alfons Adriaensen <[EMAIL PROTECTED]> wrote: > This is a bit too simple. The diode circuit does not perform hard > clipping when driven at moderate levels. > > Something like > > out = tanh (in) (or tanhf() if available) > > or > > out = in / sqrt

Re: [linux-audio-dev] Diode wave shaper (LADSPA plugin)?

2004-08-16 Thread Alfons Adriaensen
On Mon, Aug 16, 2004 at 07:49:36PM +1000, Erik de Castro Lopo wrote: > Its actually rather simple (first year EE): > > static inline double > diode_clip (double input, double clip_level /* should be positive */) > { if (input > clip_level) > return clip_level ; >

Re: [linux-audio-dev] Diode wave shaper (LADSPA plugin)?

2004-08-16 Thread Erik de Castro Lopo
On Mon, 16 Aug 2004 10:54:04 +0200 Stanley Jaddoe <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to convert an existing analog (hardware) synth to an open source > softsynth. > One of the components of the analog synth is a diode wave shaper. The > schematic is included (diode.jpg). The Inputs

Re: [linux-audio-dev] Diode wave shaper (LADSPA plugin)?

2004-08-16 Thread Stefan Nitschke
From: Jens M Andreasen <[EMAIL PROTECTED]> Reply-To: "The Linux Audio Developers' Mailing List"<[EMAIL PROTECTED]> To: "The Linux Audio Developers' Mailing List"<[EMAIL PROTECTED]> Subject: Re: [linux-audio-dev] Diode wave shaper (LADSPA plugin

Re: [linux-audio-dev] Diode wave shaper (LADSPA plugin)?

2004-08-16 Thread Jens M Andreasen
On mån, 2004-08-16 at 10:54, Stanley Jaddoe wrote: > Hi, > > I'm trying to convert an existing analog (hardware) synth to an open source > softsynth. > One of the components of the analog synth is a diode wave shaper. The > schematic is included (diode.jpg). The Inputs 2, 3, ... n and its resist

[linux-audio-dev] Diode wave shaper (LADSPA plugin)?

2004-08-16 Thread Stanley Jaddoe
Hi, I'm trying to convert an existing analog (hardware) synth to an open source softsynth. One of the components of the analog synth is a diode wave shaper. The schematic is included (diode.jpg). The Inputs 2, 3, ... n and its resistors are optional. I'd like to know if there's a LADSPA plugin