download equalTempered.m
Language: ObjectiveC
Copyright: Copyright 1988-1992, NeXT Inc. All rights reserved. */
LOC: 131
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

/* Copyright 1988-1992, NeXT Inc.  All rights reserved. */
/*
  $Id: equalTempered.m,v 1.2 1999/07/29 01:26:04 leigh Exp $
  Original Author: David A. Jaffe
  
  Defined In: The MusicKit
  HEADER FILES: musickit.h
*/
/*
Modification history:

  $Log: equalTempered.m,v $
  Revision 1.2  1999/07/29 01:26:04  leigh
  Added Win32 compatibility, CVS logs, SBs changes

*/
//sb: why didn't this get imported before now?
#import "midi_spec.h"

static const double equalTempered12[MIDI_NUMKEYS] = {
    8.175625,  /* C00 */
    8.661875 , /* Cs00 */
    9.176875 ,
    9.722812 ,
    10.300937 ,
    10.913438 ,
    11.562188 ,
    12.249688 ,
    12.978438 ,
    13.750000 , /* A00 */
    14.567500 ,
    15.434062 ,
    16.351250 , /* C0 */
    17.323750 ,
    18.353750 ,
    19.445625 ,
    20.601875 ,
    21.826875 ,
    23.124375 ,
    24.499375 ,
    25.956875 ,
    27.500000 , /* A0 */
    29.135000 ,
    30.868125 ,
    32.702500 , /* C1 */
    34.647500 ,
    36.707500 ,
    38.891250 ,
    41.203750 ,
    43.653750 ,
    46.248750 ,
    48.998750 ,
    51.913750 ,
    55.000000 , /* A1 */
    58.270000 ,
    61.736250 ,
    65.405000 , /* C2 */
    69.295000 ,
    73.415000 ,
    77.782500 ,
    82.407500 ,
    87.307500 ,
    92.497500 ,
    97.997500 ,
    103.827500 ,
    110.000000 , /* A2 */
    116.540000 ,
    123.472500 ,
    130.810000 , /* C3 */
    138.590000 ,
    146.830000 ,
    155.565000 ,
    164.815000 ,
    174.615000 ,
    184.995000 ,
    195.995000 ,
    207.655000 ,
    220.000000 , /* A3 */
    233.080000 ,
    246.945000 ,
    261.62,      /* C4,  C4k == 60 */
    277.18,
    293.66,
    311.13,
    329.63,
    349.23,
    369.99,
    391.99,
    415.31,
    440.0, /* A4 */
    466.160,
    493.89,
    523.240000 , /* C5 */
    554.360000 ,
    587.320000 ,
    622.260000 ,
    659.260000 ,
    698.460000 ,
    739.980000 ,
    783.980000 ,
    830.620000 ,
    880.000000 ,
    932.320000 ,
    987.780000 ,
    1046.480000 , /* C6 */
    1108.720000 ,
    1174.640000 ,
    1244.520000 ,
    1318.520000 ,
    1396.920000 ,
    1479.960000 ,
    1567.960000 ,
    1661.240000 ,
    1760.000000 ,
    1864.640000 ,
    1975.560000 ,
    2092.960000 , /* C7 */
    2217.440000 ,
    2349.280000 ,
    2489.040000 ,
    2637.040000 ,
    2793.840000 ,
    2959.920000 ,
    3135.920000 ,
    3322.480000 ,
    3520.000000 ,
    3729.280000 ,
    3951.120000 ,
    4185.920000 , /* C8 */
    4434.880000 ,
    4698.560000 ,
    4978.080000 ,
    5274.080000 ,
    5587.680000 ,
    5919.840000 ,
    6271.840000 ,
    6644.960000 ,
    7040.000000 ,
    7458.560000 ,
    7902.240000 ,
    8371.840000 , /* C9 */
    8869.760000 ,
    9397.120000 ,
    9956.160000 ,
    10548.160000 ,
    11175.360000 ,
    11839.680000 ,
    12543.680000 
  };  /* Equal tempered pitches, indexed by keyNum number. */

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