Experts in SMS and MMS Technology. NCLs Provato is an SMS/MMS Gateway supporting  WAP Push, EMS, MMS, SMS, Nokia Smart Messaging, SMPP, CIMD, UCP, MM7, M20, TC35 NCL Technologies Ltd
Provato - SMS MMS Gateway
Mobile Messaging in J2EE & .NET

SwiftNote - Java SMS Toolkit

ie.ncl.sms.nbs
Class Phrase

java.lang.Object
  extended by ie.ncl.sms.nbs.Phrase

public class Phrase
extends java.lang.Object

Create a musical phrase that is a a collection of Notes.


Field Summary
static int[] beats
           
static int STYLE_CONTINUOUS
          Continuous style.
static int STYLE_NORMAL
          Normal style.
static int STYLE_STACCATO
          Staccato style.
static int TEMPO_FAST
          Fast tempo is 900 beats per minute.
static int TEMPO_SLOW
          Slow tempo is 25 beats per minute.
static int VOLUME_HIGH
          High volume is the loudest allowable.
static int VOLUME_LOW
          Low volume is no sound.
static int VOLUME_MEDIUM
          Medium volume is the default volume.
 
Constructor Summary
Phrase()
          Create a musical phrase.
Phrase(int style, int tempo)
          Create a musical phrase specifying the style and tempo.
Phrase(int style, int tempo, int volume)
          Create a musical phrase specifying the style, tempo and volume.
 
Method Summary
 void add(Note note)
          Add a note to the musical phrase.
static int beatsToTempo(int beatsPerSecond)
           
 Note getNote(int index)
          Get the nth note of the musical phrase.
 int getStyle()
           
 int getTempo()
           
 int getVolume()
           
 int size()
          Get the nth note of the musical phrase.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STYLE_NORMAL

public static final int STYLE_NORMAL
Normal style.

See Also:
Constant Field Values

STYLE_CONTINUOUS

public static final int STYLE_CONTINUOUS
Continuous style.

See Also:
Constant Field Values

STYLE_STACCATO

public static final int STYLE_STACCATO
Staccato style.

See Also:
Constant Field Values

TEMPO_SLOW

public static final int TEMPO_SLOW
Slow tempo is 25 beats per minute.

See Also:
Constant Field Values

TEMPO_FAST

public static final int TEMPO_FAST
Fast tempo is 900 beats per minute.

See Also:
Constant Field Values

VOLUME_LOW

public static final int VOLUME_LOW
Low volume is no sound.

See Also:
Constant Field Values

VOLUME_MEDIUM

public static final int VOLUME_MEDIUM
Medium volume is the default volume.

See Also:
Constant Field Values

VOLUME_HIGH

public static final int VOLUME_HIGH
High volume is the loudest allowable.

See Also:
Constant Field Values

beats

public static final int[] beats
Constructor Detail

Phrase

public Phrase(int style,
              int tempo,
              int volume)
Create a musical phrase specifying the style, tempo and volume. Tempo must be between TEMPO_SLOW and TEMPO_FAST. Volume must be between values VOLUME_LOW and VOLUME_HIGH.


Phrase

public Phrase(int style,
              int tempo)
Create a musical phrase specifying the style and tempo.


Phrase

public Phrase()
Create a musical phrase.

Method Detail

getStyle

public int getStyle()

getTempo

public int getTempo()

getVolume

public int getVolume()

beatsToTempo

public static int beatsToTempo(int beatsPerSecond)

add

public void add(Note note)
Add a note to the musical phrase.

See Also:
Note

size

public int size()
Get the nth note of the musical phrase.


getNote

public Note getNote(int index)
Get the nth note of the musical phrase.


Experts in SMS and MMS Technology. NCLs Provato is an SMS/MMS Gateway supporting  WAP Push, EMS, MMS, SMS, Nokia Smart Messaging, SMPP, CIMD, UCP, MM7, M20, TC35 NCL Technologies Ltd
Provato - SMS MMS Gateway
Mobile Messaging in J2EE & .NET

SwiftNote - Java SMS Toolkit