[Csnd] creating a variable width pulse wave...
Date | 2009-11-09 20:27 |
From | Anthony Palomba |
Subject | [Csnd] creating a variable width pulse wave... |
Hello fellow csounders, I am working on a patch that requires a pulse wave with a variable pulse width. I was wondering what would be the best opcode to use in creating such a waveform. The pulse width will be controlled in realtime. Thanks, Anthony |
Date | 2009-11-09 20:45 |
From | victor |
Subject | [Csnd] Re: creating a variable width pulse wave... |
Try vco2.
|
Date | 2009-11-09 23:05 |
From | gmschroeder |
Subject | [Csnd] Re: Re: creating a variable width pulse wave... |
Hey all, I know the vco opcodes do this for you, but for those of us who are trying to make assembling from smaller parts a lesson in learning what we're doing . . . How do you generate your own pwm sound generator? Greg On Nov 10, 2009, at 5:45 AM, victor wrote:
|
Date | 2009-11-09 23:18 |
From | Jacob Joaquin |
Subject | [Csnd] Re: Re: Re: creating a variable width pulse wave... |
> Hey all, > I know the vco opcodes do this for you, but for those of us who are trying > to make assembling from smaller parts a lesson in learning what we're doing > . . . > How do you generate your own pwm sound generator? > Greg There are many viable approaches. Off the top of my head, I think one could create a pwm generator out of these ingredients: phasor user-defined opcode setksmps if then else endif I'd be happy to elaborate. Not sure if you want the solution, or if you want to try doing it yourself. The latter is more fun. :) Best, Jake |
Date | 2009-11-09 23:44 |
From | Greg Schroeder |
Subject | [Csnd] Re: Re: Re: Re: creating a variable width pulse wave... |
Ahh. I see, or I'm only a few steps away from seeing when I have a little less on my plate. I had a "duh" moment making oscillators with .wav files a week or so ago (actually, my sample-based oscillator is a very simple expansion of the phasor/table oscillator I learned from EAST ;-) and I was wondering if there was some similarly obvious thing I was missing. Apparently not. Thanks! Greg On Tue, Nov 10, 2009 at 8:18 AM, Jacob Joaquin <jacobjoaquin@gmail.com> wrote:
|
Date | 2009-11-10 02:05 |
From | luis jure |
Subject | [Csnd] Re: creating a variable width pulse wave... |
on 2009-11-10 at 08:05 gmschroeder wrote: >How do you generate your own pwm sound generator? designing an instrument that generates pulses of variable width might require some coding, but is somewhat trivial [1]. but that's not the problem. the problem is that what you really want is a band-limited approximation to the pulse wave (assuming that you want an audio signal). and that is definitely NOT a trivial task. (vco is almost there but not quite, vco2 is much better.) please excuse me if you're already aware of the problem, but in case you're not, there are several papers discussing the problem of band-limited digital synthesis of classical analog synthesizer waveforms, like for example: 'Modeling Analog Synthesis with DSPs' by Lane, Hoory, MartÃnez and Wang, Computer Music Journal Winter 1997. 'Alias-Free Digital Synthesis of Classic Analog Waveforms' by Tim Stilson and Julius Smith, available on-line. 'Band-Limited Simulation of Analog Synthesizer Modules by Additive Synthesis', by Amar Chaudhary, AES again, please excuse me if you already know all this. best, lj [1] many years ago i designed one using linseg and reinit. it was, of course, completely useless. Send bugs reports to this list. To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |