DixShtix

com.dixshtix.audio.pitch
Class HelmholtzHarmony

java.lang.Object
  |
  +--com.dixshtix.audio.pitch.HelmholtzHarmony

public class HelmholtzHarmony
extends java.lang.Object

Implements generic version of Professor Helmholtz's theory of harmony.

Version:
0.1
Author:
Richard C. Penner II

Inner Class Summary
static class HelmholtzHarmony.BeatPerceptionMap
           
static class HelmholtzHarmony.ClassicPartials
           
static interface HelmholtzHarmony.Map
           
static interface HelmholtzHarmony.PartialStructure
           
 
Field Summary
static double beatCutoff
           
static double beatPeak
           
static double hearingCutoff
           
static double hearingFactor
           
static double hearingPeak
           
private  HelmholtzHarmony.PartialStructure partials1
           
private  HelmholtzHarmony.PartialStructure partials2
           
static HelmholtzHarmony.PartialStructure sawtoothPartials
           
static HelmholtzHarmony.PartialStructure sinePartials
           
static HelmholtzHarmony.PartialStructure squarePartials
           
static HelmholtzHarmony.PartialStructure trianglePartials
           
static HelmholtzHarmony.PartialStructure wackyPartials
           
 
Constructor Summary
HelmholtzHarmony()
           
HelmholtzHarmony(HelmholtzHarmony.PartialStructure partials)
           
HelmholtzHarmony(HelmholtzHarmony.PartialStructure partials1, HelmholtzHarmony.PartialStructure partials2)
           
 
Method Summary
 double computeDiscord(double freq1, double freq2)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

hearingCutoff

public static double hearingCutoff

hearingPeak

public static double hearingPeak

hearingFactor

public static double hearingFactor

beatCutoff

public static double beatCutoff

beatPeak

public static double beatPeak

partials1

private HelmholtzHarmony.PartialStructure partials1

partials2

private HelmholtzHarmony.PartialStructure partials2

sinePartials

public static final HelmholtzHarmony.PartialStructure sinePartials

wackyPartials

public static final HelmholtzHarmony.PartialStructure wackyPartials

sawtoothPartials

public static final HelmholtzHarmony.PartialStructure sawtoothPartials

squarePartials

public static final HelmholtzHarmony.PartialStructure squarePartials

trianglePartials

public static final HelmholtzHarmony.PartialStructure trianglePartials
Constructor Detail

HelmholtzHarmony

public HelmholtzHarmony(HelmholtzHarmony.PartialStructure partials1,
                        HelmholtzHarmony.PartialStructure partials2)

HelmholtzHarmony

public HelmholtzHarmony(HelmholtzHarmony.PartialStructure partials)

HelmholtzHarmony

public HelmholtzHarmony()
Method Detail

computeDiscord

public double computeDiscord(double freq1,
                             double freq2)

main

public static void main(java.lang.String[] args)

DixShtix