tactu5
Class Tactu5Utilities

java.lang.Object
  extended by tactu5.Tactu5Utilities

public class Tactu5Utilities
extends java.lang.Object

Tactu5Utility class allows to easily create, modify and convert musical materials.


Constructor Summary
Tactu5Utilities()
           
 
Method Summary
 Cluster chordGenerator(Note note, int[] mode, int[] modeDegrees, Cluster c)
           
 ClusterSequence harmonizer(Sequence s, int[] mode, int[] modeDegrees, ClusterSequence c)
          Harmonize sequences.
 float noteToFreq(float n, int o)
          Passing a frequency and an octave to transpose this method return a new frequency
 Sequence sequenceGenerator(Note note, int[] mode, int[] modeDegrees, Sequence s)
          This method generates new sequences contents.
 float transpose(float f, float s, int o)
          This method transpose a frequency for an interval defined in semitone.
 void transposeNotes(T5Containers c, int s)
          This method transpose all notes included in Sequence and Cluster datatypes for a given interval in semitones
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tactu5Utilities

public Tactu5Utilities()
Method Detail

noteToFreq

public float noteToFreq(float n,
                        int o)
Passing a frequency and an octave to transpose this method return a new frequency

Parameters:
n - float, frequency
o - int, octave to transpose
Returns:
float, new frequency

transposeNotes

public void transposeNotes(T5Containers c,
                           int s)
This method transpose all notes included in Sequence and Cluster datatypes for a given interval in semitones

Parameters:
c - Cluster or Sequence datatype to transpose.
s - Int, interval defined in semitones.

transpose

public float transpose(float f,
                       float s,
                       int o)
This method transpose a frequency for an interval defined in semitone. It allows to shift oactave too.

Parameters:
f - float, income frequency
s - float, interval in semitones
o - int, octave.
Returns:
float, new frequency.

chordGenerator

public Cluster chordGenerator(Note note,
                              int[] mode,
                              int[] modeDegrees,
                              Cluster c)

sequenceGenerator

public Sequence sequenceGenerator(Note note,
                                  int[] mode,
                                  int[] modeDegrees,
                                  Sequence s)
This method generates new sequences contents.


harmonizer

public ClusterSequence harmonizer(Sequence s,
                                  int[] mode,
                                  int[] modeDegrees,
                                  ClusterSequence c)
Harmonize sequences.