download dspwrap.h
Language: C
Copyright: Copyright 1999-2005 The MusicKit Project. Copyright 1988-1992, NeXT Inc. All rights reserved.
LOC: 25
Project Info
The MusicKit(musickit)
Server: SourceForge
Type: cvs
...sicKit\Frameworks\MusicKit\
   _ArielQP.h
   _DSPMK.h
   _error.h
   _midi.h
   _MKAppProxy.h
   _MKAppProxy.m
   _MKNameTable.h
   _MKNameTable.m
   _MKParameter.h
   _MTCHelper.h
   _MTCHelper.m
   _musickit.h
   _noteRecorder.h
   _OrchloopbeginUG.h
   _OrchloopbeginUG.m
   _ParName.h
   _ParName.m
   _scorefile.h
   _ScorefileVar.h
   _ScorefileVar.m
   _SharedSynthInfo.h
   _SharedSynthInfo.m
   _synthElementMethods.m
   _time.h
   ArielQP.h
   ArielQP.m
   classFuncs.h
   ConductorPrivate.h
   dsp_types.h
   DSPSerialPortDevice.h
   dspwrap.h
   EnvelopePrivate.h
   equalTempered.m
   errors.h
   fastFFT.c
   fastFFT.h
   GNUmakefile.postamble
   GNUmakefile.preamble.in
   InstrumentPrivate.h
   keynums.h
   libMusicKit.def
   Localized.strings
   make.sh
   Makefile.postamble
   Makefile.preamble
   midi_spec.h
   midifile.h
   midifile.m
   MidiPrivate.h
   midiTranslation.h
   MKConductor.h
   MKConductor.m
   MKConductorDelegate.h
   MKDeviceStatus.h
   MKEnvelope.h
   MKEnvelope.m
   MKFilePerformer.h
   MKFilePerformer.m
   MKFileWriter.h
   MKFileWriter.m
   MKInstrument.h
   MKInstrument.m
   MKMidi.h
   MKMidi.m
   MKMixerInstrument.h
   MKMixerInstrument.m
   MKMTCPerformer.h
   MKMTCPerformer.m
   MKNote.h
   MKNoteFilter.h
   MKNoteFilter.m
   MKNoteReceiver.h
   MKNoteReceiver.m
   MKNoteSender.h
   MKNoteSender.m
   MKOrchestra.h
   MKPart.m
   MKPartials.h
   MKPartials.m
   ...tialsWaveshapingTable.m
   MKPartPerformer.h
   MKPartPerformer.m
   MKPartRecorder.h
   MKPartRecorder.m
   MKPatch.h
   MKPatch.m
   MKPatchConnection.h
   MKPatchConnection.m
   MKPatchEntry.h
   MKPatchEntry.m
   MKPatchTemplate.h
   MKPatchTemplate.m
   MKPerformer.h
   MKPerformer.m
   MKPerformerDelegate.h
   MKPlugin.h
   MKSamplerInstrument.h
   MKSamplerInstrument.m
   MKSamples.h
   MKScore.h
   MKScore.m
   MKScorefileObject.h
   MKScorefilePerformer.h
   MKScorefilePerformer.m
   MKScorefileWriter.m
   MKScorePerformer.h
   MKScorePerformer.m
   MKScoreRecorder.h
   MKScoreRecorder.m
   MKSynthData.h
   MKSynthData.m
   MKSynthInstrument.h
   MKSynthPatch.h
   MKTimbre.h
   MKTimbre.m
   MKTuningSystem.h
   MKTuningSystem.m
   MKUnitGenerator.h
   MKUnitGenerator.m
   MKWaveTable.h
   MKWaveTable.m
   mtcMidi.m
   mtcMidiPrivate.m
   MusicKit-Info.plist
   MusicKit.h
   MusicKitConfig.h.in
   names.h
   noDVal.h
   noteDispatcherMethods.m
   NotePrivate.h
   noteRecorderCFuncs.m
   noteRecorderMethods.m
   orch.h
   OrchestraPrivate.h
   OrchloopbeginUG.h
   OrchloopbeginUG.m
   orchloopbeginUGInclude.m
   params.h
   parNames.m
   partialsDBInclude.m
   PartialsPrivate.h
   PartPerformerPrivate.h
   PartPrivate.h
   PartRecorderPrivate.h
   PatchTemplatePrivate.h
   PB.project
   PerformerPrivate.h
   pitches.h
   platform.make
   ...efilePerformerPrivate.h
   ScorePerformerPrivate.h
   ScorePrivate.h
   ScoreRecorderPrivate.h
   SynthDataPrivate.h
   synthElementCFuncs.m
   synthElementMethods.m
   SynthInstrumentPrivate.h
   SynthPatchList.h
   SynthPatchList.m
   SynthPatchPrivate.h
   timetagInclude.m
   timeunits.h
   tokenNames.m
   tokens.h
   trigonometry.c
   trigonometry.h
   TuningSystemPrivate.h
   UnitGeneratorPrivate.h
   win32-def.top
   writeBinary.m
   writeMidi.m
   writeScore.m

/*
  $Id: dspwrap.h,v 1.4 2005/05/27 09:52:25 leighsmith Exp $
  Defined In: The MusicKit
 
  Description:
    The following is the UnitGenerator's interface with the MC56001. You
    never need to deal with these structures. They are generated automatically
    by the utility dspwrap.
 
 Copyright 1988-1992, NeXT Inc.  All rights reserved.
 Portions Copyright 1999-2005 The MusicKit Project.
*/
#ifndef __MK_dspwrap_H___
#define __MK_dspwrap_H___

/*!
  @brief The <b>MKMasterUGStruct</b> struct represents the DSP statistics of a
  "master" MKUnitGenerator class.  That is, it contains all the
  information common to the subclasses.  Its fields should not be altered.
  Their meaning is as follows:
 */
typedef struct _MKMasterUGStruct {
    /*! Number of memory arguments. */
    unsigned argCount;
    /*! Number of symbols loaded in each space.  Needed for symbols that are not args.*/
    int symCount[DSP_LC_NUM];
    /*! Number of fixups in each P space.*/
    int fixupCount[DSP_LC_NUM_P];
    /*! Symbol list for each DSP location counter.*/
    DSPSymbol *symbols[DSP_LC_NUM];
    /*! Array of symbols corresponding to memory arguments.*/
    DSPSymbol *argSymbols;
    /*! Reserved.*/
    void *reserved;
} MKMasterUGStruct;

/*!
  @brief The <b>MKLeafUGStruct</b> struct represents the DSP statistics of a
  "leaf" MKUnitGenerator class.  That is, it contains the information
  specific to a particular memory space combination.  Its fields should
  not be altered.   Their meaning is as follows:
 */
typedef struct _MKLeafUGStruct {
    /*! Memory and computation resources needed by this unit generator. */
    MKOrchMemStruct reso;
    /*! Time for this unit generator to compute one sample, in seconds, when 
        unit generator is on chip. */
    double computeTime;
    /*! Array of lists of idle patches, indexed by dsp number. */
    id **availLists;
    /*! Sorted absolute data records.  */
    DSPDataRecord *data[DSP_LC_NUM];
    /*! Fix-up array for each P space. */
    DSPFixup *fixups[DSP_LC_NUM_P];
    /*! Array which tells which space each argument points to. If the argument
        is not address-valued, the array value here is <b>DSP_MS_N</b>.  */
    DSPMemorySpace *argSpaces;
    /*! Pointer to corresponding MKMasterUGStruct. */
    MKMasterUGStruct *master;
    /*! Reserved */
    int reserved1;                  
    /*! Compute time when unit generator is off chip. */
    double offChipComputeTime;
    /*! Reserved */
    void *reserved2;
} MKLeafUGStruct;

extern void MKInitUnitGeneratorClass(MKLeafUGStruct *classInfo);
/* Unit Generator initialization (used in files generated by dspwrap). */

#define MK_2COMPUTETIMES 0x322e30   /* This is a magic number that signals
                                       we have 2 compute times, one for
                                       on-chip and one for off-chip. This
                                       feature is supported in the release 2.0
                                       dspwrap */



#endif

About Koders | Resources | Downloads | Support | Black Duck | Submit Project | Terms of Service | DMCA | Privacy Policy | Site Map| Contact Us