com.vwp.sound.mod.modplay.module
Interface ModuleUnits

All Known Implementing Classes:
ModUnits, S3MUnits, STMUnits, XmUnits

public interface ModuleUnits

Different module formats uses different relationships between notes, rates and periods. They also have different limits on maximum and minimum notes.


Method Summary
 double addPeriod(double note, double period)
          adds a period value to a note value
 double getLowerNoteLimit()
          gets the lowest note that can be played in a module
 java.lang.String getName()
           
 double getUpperNoteLimit()
          gets the highest note that can be played in a module
 double note2period(double period)
          converts a note value to a period value
 double note2rate(double note)
          converts a note value to a rate value
 double period2note(double period)
          converts a period value to a note value
 double rate2note(double note)
          converts a rate value to a note value
 

Method Detail

period2note

double period2note(double period)
converts a period value to a note value


note2period

double note2period(double period)
converts a note value to a period value


note2rate

double note2rate(double note)
converts a note value to a rate value


rate2note

double rate2note(double note)
converts a rate value to a note value


addPeriod

double addPeriod(double note,
                 double period)
adds a period value to a note value


getUpperNoteLimit

double getUpperNoteLimit()
gets the highest note that can be played in a module


getLowerNoteLimit

double getLowerNoteLimit()
gets the lowest note that can be played in a module


getName

java.lang.String getName()