ftp.nice.ch/pub/next/unix/audio/line2sine.1.0.NI.bs.tar.gz#/line2sine/include/Function.h

This is Function.h in view mode; [Download] [Up]

//
// Programmer:    Craig Stuart Sapp <craig@ccrma.stanford.edu>
// Creation Date: Sat Apr 19 20:45:43 GMT-0800 1997
// Last Modified: Sat Apr 19 20:45:46 GMT-0800 1997
// Filename:      .../sig/src/Generator/Function/Function.cc
// Syntax:        C++ 
// $Smake:        cc -Wall -g -c %b.cc -I../../../include && rm -f %b.o
//

#ifndef _FUNCTION_H_INCLUDED 
#define _FUNCTION_H_INCLUDED 

#include "Generator.h"

typedef sampleType (*funcPtr)(double timeValue);


class Function : public Generator {
   public:
                      Function          (funcPtr aFunction);
                     ~Function          ();
                      
      void            action            (void);
      sampleType      output            (int channel);
      void            reset             (double newTime = 0);
      void            setFunction       (funcPtr aFunction);
      void            printState        (void);

   protected:
      funcPtr         generatingFunction;
      double          timeVariable;
      sampleType      outputValue;
};


#endif  _FUNCTION_H_INCLUDED 

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.