Groovy Documentation

groovy.aprint.transform
[Groovy] Class Note

java.lang.Object
  groovy.aprint.transform.Note

class Note
extends java.lang.Object

Note : Object representing a note, from midiCode


Property Summary
int midiCode

 
Method Summary
int compareTo(Note o)

boolean equals(java.lang.Object o)

int hashCode()

java.lang.Object minus(int tone)

substract the number of subtones given in parameters

java.lang.Object octaveM()

get a new note from the lower octave

java.lang.Object octaveP()

get a new note with an upper octave

java.lang.Object plus(int tone)

add the number of subtones given in parameters

Note[] to(Note n)

get a note range from this note to the parametrized note

java.lang.String toString()

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Property Detail

midiCode

int midiCode


 
Method Detail

compareTo

int compareTo(Note o)


equals

boolean equals(java.lang.Object o)


hashCode

int hashCode()


minus

java.lang.Object minus(int tone)
substract the number of subtones given in parameters
Returns:
Parameters:
tone


octaveM

java.lang.Object octaveM()
get a new note from the lower octave


octaveP

java.lang.Object octaveP()
get a new note with an upper octave


plus

java.lang.Object plus(int tone)
add the number of subtones given in parameters
Returns:
Parameters:
tone


to

Note[] to(Note n)
get a note range from this note to the parametrized note


toString

java.lang.String toString()


 

Groovy Documentation