JMSL Tutorial: Equal Tempered Tuning

JMSL defines an abstract Tuning class with subclasses TuningET and TuningTable. This example demonstrates the TuningET class. An equal tempered tuning is defined by: 1) reference frequency (for example 261.62Hz for middle C)
2) reference pitch (the pitch to correspond to the reference frequency, say 60 for middle C)
3) steps per octave (12 for western European music)
4) octave stretch in cents (the number of cents that each octave is stretched beyond a 2:1 ratio)

This example plays a MusicShape with a JSyn instrument. You can specify a triad by entering new interval values. You can also specify the parameters that change the tuning and hear the differences.


See complete source here.
 
 


  (C) 2004 Phil Burk and Nick Didkovsky, All Rights Reserved
  JMSL is based upon HMSL (C) Phil Burk, Larry Polansky and David Rosenboom.