tomwalters@0: /* tomwalters@0: Copyright (c) Applied Psychology Unit, Medical Research Council. 1988, 1989 tomwalters@0: =========================================================================== tomwalters@0: tomwalters@0: Permission to use, copy, modify, and distribute this software without fee tomwalters@0: is hereby granted for research purposes, provided that this copyright tomwalters@0: notice appears in all copies and in all supporting documentation, and that tomwalters@0: the software is not redistributed for any fee (except for a nominal shipping tomwalters@0: charge). Anyone wanting to incorporate all or part of this software in a tomwalters@0: commercial product must obtain a license from the Medical Research Council. tomwalters@0: tomwalters@0: The MRC makes no representations about the suitability of this tomwalters@0: software for any purpose. It is provided "as is" without express or implied tomwalters@0: warranty. tomwalters@0: tomwalters@0: THE MRC DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING tomwalters@0: ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL THE tomwalters@0: A.P.U. BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY tomwalters@0: DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN tomwalters@0: AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF tomwalters@0: OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. tomwalters@0: */ tomwalters@0: tomwalters@0: /* tomwalters@0: funcs.h tomwalters@0: ======= tomwalters@0: tomwalters@0: tomwalters@0: */ tomwalters@0: tomwalters@0: tomwalters@0: extern DoubleSource LogarithmDoubleSource( _ONE_SOURCE ) ; tomwalters@0: extern DoubleSource ExponentiateDoubleSource( _ONE_SOURCE ) ; tomwalters@0: extern DoubleSource SineDoubleSource( _ONE_SOURCE ) ; tomwalters@0: extern DoubleSource CosineDoubleSource( _ONE_SOURCE ) ; tomwalters@0: extern DoubleSource SquareRootDoubleSource( _ONE_SOURCE ) ; tomwalters@0: extern DoubleSource AbsoluteValueDoubleSource( _ONE_SOURCE ) ; tomwalters@0: tomwalters@0: extern ShortSource milliBellShortSource( _ONE_SOURCE ) ; tomwalters@0: tomwalters@0: tomwalters@0: #define OscilatorDoubleSource( _frequency, _samplerate, _phase0 ) \ tomwalters@0: oscilatorDoubleSource( _frequency, _samplerate, _phase0 ) tomwalters@0: tomwalters@0: extern DoubleSource oscilatorDoubleSource( _ONE_SOURCE_PLUS ) ; tomwalters@0: tomwalters@0: tomwalters@0: #define CosinewaveDoubleSource( _frequency, _amplitude, _phase0 ) \ tomwalters@0: cosinewaveDoubleSource( _frequency, _amplitude, _phase0 ) tomwalters@0: tomwalters@0: extern DoubleSource cosinewaveDoubleSource( _MANY_ARGS ) ; tomwalters@0: tomwalters@0: tomwalters@0: #define SinewaveDoubleSource( _frequency, _amplitude, _phase0 ) \ tomwalters@0: sinewaveDoubleSource( _frequency, _amplitude, _phase0 ) tomwalters@0: tomwalters@0: extern DoubleSource sinewaveDoubleSource( _MANY_ARGS ) ; tomwalters@0: tomwalters@0: tomwalters@0: #define RaisedCosinewaveDoubleSource( _frequency, _amplitude, _phase0 ) \ tomwalters@0: raisedCosinewaveDoubleSource( _frequency, _amplitude, _phase0 ) tomwalters@0: tomwalters@0: extern DoubleSource raisedCosinewaveDoubleSource( _MANY_ARGS ) ; tomwalters@0: tomwalters@0: tomwalters@0: #define RaisedSinewaveDoubleSource( _frequency, _amplitude, _phase0 ) \ tomwalters@0: raisedSinewaveDoubleSource( _frequency, _amplitude, _phase0 ) tomwalters@0: tomwalters@0: extern DoubleSource raisedSinewaveDoubleSource( _MANY_ARGS ) ;