Uses of Class
net.charlesames.utility.math.Ratio

Packages that use Ratio
net.charlesames.music.ensemble Classes in package music.ensemble define the structure of scores. 
net.charlesames.music.musicxml The purpose of package music.musicxml is to generate files in MusicXML format. 
net.charlesames.music.score Classes in the {code net.charlesames.music.score} package represent musical scores and the components which comprise musical scores. 
net.charlesames.utility.contour   
net.charlesames.utility.io   
net.charlesames.utility.math   
 

Uses of Ratio in net.charlesames.music.ensemble
 

Methods in net.charlesames.music.ensemble with parameters of type Ratio
 void MidiControl.createMidiEvents(Score score, MidiTrack midiTrack, int channel, int key, Ratio startTime, Ratio endTime)
          Generate MIDI control events over the period from startTime to endTime.
 

Uses of Ratio in net.charlesames.music.musicxml
 

Methods in net.charlesames.music.musicxml with parameters of type Ratio
 int Measure.divisionsFromRatio(Ratio time)
          Convert the specified ratio from quarter notes to divisions.
 void NoteInMeasure.setTupletRatio(Ratio tupletRatio)
          Setter for TupletRatio property.
 

Uses of Ratio in net.charlesames.music.score
 

Methods in net.charlesames.music.score that return Ratio
 Ratio ScoreTuplet.getCombinedRatio()
          Get the combined tuplet ratio.
 Ratio ScoreNote.getDuration()
          Getter for the Duration property.
 Ratio ScoreTuplet.getEndTime()
          Getter for the tuplet EndTime expressed as a Ratio relative to the quarter note.
 Ratio ScoreMeasure.getEndTime()
          Get the measure end time expressed as a Ratio relative to the quarter note.
 Ratio Score.getEndTime()
          Get the score ending time.
 Ratio Chord.getEndTime()
          Get the chord end time expressed as a Ratio relative to the quarter note.
 Ratio ScoreEvent.getOnset()
          Get the event onset time expressed as a Ratio relative to the quarter note.
 Ratio TimeSignature.getPeriod()
          Getter for the Period property.
 Ratio ScoreSegment.getPeriod()
          Getter for the Period property.
 Ratio ScoreNote.getPeriod()
           
 Ratio ScoreMeasure.getPeriod()
          Get the measure length as a ratio.
 Ratio ScoreEvent.getPeriod()
          Get the event period expressed as a ratio.
 Ratio Neume.getPeriod()
          Getter for the Period property.
 Ratio Duration.getPeriod()
          Getter for the Period property.
 Ratio Chord.getPeriod()
          Get the chord period in quarter notes.
 Ratio ScoreTuplet.getPeriod(EnsembleVoice voice)
          Get the tuplet end time - start time for the specified voice.
 Ratio Chord.getPeriod(ScoreVoice voice)
          Get the period for a specified voice in quarter notes.
 Ratio ScoreMeasure.getRate()
          Get the measure rate.
 Ratio ScoreTuplet.getRatio()
          Get the tuplet ratio.
 Ratio ScoreNote.getRelease()
           
 Ratio ScoreEvent.getRelease()
          Get the event release time.
 Ratio ScoreTuplet.getStartTime()
          Getter for the tuplet StartTime expressed as a Ratio relative to the quarter note.
 Ratio ScoreMeasure.getStartTime()
          Get the measure start time expressed as a Ratio relative to the quarter note.
 Ratio Score.getStartTime()
          Get the score starting time.
 Ratio Chord.getStartTime()
          Get the chord start time.
 Ratio ScoreNote.getTotalDuration()
          Get the combined duration of the chain of tied notes which this note initiates.
 Ratio Score.ratioAfter(Ratio time, double duration)
          Convert an absolute duration to a relative duration.
 Ratio Score.ratioBefore(Ratio time, double duration)
          Convert an absolute duration to a relative duration.
 

Methods in net.charlesames.music.score that return types with arguments of type Ratio
static java.util.Map<Ratio,Neume> Neume.getInstancesByPeriod()
          Get the collection of Neume instances.
 

Methods in net.charlesames.music.score with parameters of type Ratio
 ClefChange Score.addClefChange(Ratio onset, ScoreVoice voice, Clef clef)
          Insert a new clef change event into the score.
 HarpPedallingChange Score.addHarpPedallingChange(Ratio onset, ScoreVoice voice, HarpPedalling harpPedalling)
          Insert a new harp pedalling event into the score.
 ScoreMeasure Score.addMeasure(TimeSignature timeSignature, KeySignature keySignature, Ratio rate, boolean pickup)
          Append a new measure to the end of the score.
 ScoreNote Score.addNote(int voiceID, Ratio onset, Ratio period, Ratio duration, int instrumentID, Pitch pitch, int accent)
          Insert a new ScoreNote instance without notated duration into this Score.
 ScoreNote Score.addNote(int voiceID, Ratio onset, ScoreTuplet tuplet, Duration notatedDuration, Ratio duration, int instrumentID, Pitch pitch, int accent)
          Insert a new ScoreNote instance with a notated duration into this Score.
 java.lang.Double ScoreSegment.areaBetween(Ratio startTime, Ratio endTime)
          Get the area between two times
 double ScoreContour.areaBetween(Ratio left, Ratio right)
          Calculates the area under the contour as an ordinate moves from left to right.
 double ScoreContour.areaBetweenInvert(Ratio left, Ratio right)
          Let y(x) represent the value of the contour at ordinate x.
 ScoreEvent SegmentStart.copy(Score targetScore, Ratio offset, net.charlesames.music.score.MergeMap mergeMap)
           
 ScoreEvent SegmentEnd.copy(Score targetScore, Ratio offset, net.charlesames.music.score.MergeMap mergeMap)
           
 ScoreEvent ScoreTupletStart.copy(Score targetScore, Ratio offset, net.charlesames.music.score.MergeMap mergeMap)
           
 ScoreEvent ScoreTupletEnd.copy(Score targetScore, Ratio offset, net.charlesames.music.score.MergeMap mergeMap)
           
 ScoreNote ScoreNote.copy(Score targetScore, Ratio offset, net.charlesames.music.score.MergeMap mergeMap)
           
abstract  ScoreEvent ScoreEvent.copy(Score targetScore, Ratio offset, net.charlesames.music.score.MergeMap mergeMap)
          Copy this ScoreEvent to the target score.
 HarpPedallingChange HarpPedallingChange.copy(Score targetScore, Ratio offset, net.charlesames.music.score.MergeMap mergeMap)
           
 ClefChange ClefChange.copy(Score targetScore, Ratio offset, net.charlesames.music.score.MergeMap mergeMap)
           
 ChordStart ChordStart.copy(Score targetScore, Ratio offset, net.charlesames.music.score.MergeMap mergeMap)
           
 ChordEnd ChordEnd.copy(Score targetScore, Ratio offset, net.charlesames.music.score.MergeMap mergeMap)
           
 Chord Score.createChord(Ratio startTime)
          Create a new chord in the score.
 void ScoreContour.createGoal(Ratio startTime, Ratio goalDuration, double goal)
          Before doing anything else, calculates the contour value as of the indicated start time.
 void ScoreContour.createOrigin(Ratio startTime, double origin)
          Creates a new ScoreSegment instance.
 void ScoreContour.createSegment(Ratio startTime, Ratio endTime, double origin, double goal)
          Creates a new ScoreSegment.
 ScoreTuplet Score.createTuplet(long actual, long normal, Ratio startTime)
          Create a new tuplet in the score.
 ScoreNote Score.findCurrentNote(Ratio onset, int voiceID)
          Find the last note with the indicated onset that already exists for the indicated voice
 ScoreNote Score.findFromNote(Ratio onset, ScoreVoice voice, int instrumentID, Pitch pitch)
          Find a note with the indicated release time, voice, instrument, and pitch.
 ScoreMeasure Score.findMeasure(Ratio time, ScoreEvent.Alignment alignment)
          Find the measure which straddles the specified time.
static Neume Neume.getInstance(Ratio period)
          Dereference the Neume instance with the indicated period.
static Duration Duration.getInstance(Ratio period)
          Dereference a Duration instance from the indicated period.
static TimeSignature TimeSignature.getInstanceFromPeriod(Ratio period)
          Infer a time signature from the indicated time-period.
static Neume Neume.getLargestDivisor(Ratio period)
          Get the Neume instance which divides into the indicated time-period.
 ScoreSegment Score.getSegment(int id, Ratio time)
          Get the contour segment that straddles a specified time.
 void Score.merge(Score sourceScore, Ratio offset)
          Merge this score with the indicated source score, shifting the time of each source-score event by the indicated offset.
 Ratio Score.ratioAfter(Ratio time, double duration)
          Convert an absolute duration to a relative duration.
 Ratio Score.ratioBefore(Ratio time, double duration)
          Convert an absolute duration to a relative duration.
 void ScoreTuplet.setEndTime(Ratio endTime)
          Setter for the tuplet EndTime.
 void Score.setEndTime(Ratio endTime)
          Set the score ending time.
 void Chord.setEndTime(Ratio endTime)
          Set the chord end time.
 void Score.setStartTime(Ratio startTime)
          Set the score starting time.
 void Chord.setStartTime(Ratio startTime)
          Set the chord start time.
 java.lang.Double ScoreSegment.valueAt(Ratio time)
          Get the segment value as of a specified time.
 java.lang.Double ScoreContour.valueAt(Ratio ordinate)
          This method first tries to locate a ScoreSegment within the contour that contains the indicated ordinate.
 

Uses of Ratio in net.charlesames.utility.contour
 

Methods in net.charlesames.utility.contour that return Ratio
 Ratio RationalSegment.getLeft()
          Get the ordinate at the beginning of the segment.
 Ratio ContourFromRational.getMaxStartTime()
          Get the start time of the rightmost segment.
 Ratio RationalSegment.getRight()
          Get the ordinate at the end of the segment.
 Ratio RationalSegment.getWidth()
          Get the distance between the left and right ordinates.
 

Methods in net.charlesames.utility.contour with parameters of type Ratio
 RationalSegment<T> ContourFromRational.addSegment(Ratio left, Ratio right, T origin, T goal)
          Add a new segment into the contour, truncating existing segments which would otherwise overlap the new segment.
 void ContourTest.TestContour.assertSegmentValues(int index, Ratio ordinate1, Ratio ordinate2, java.lang.String value1, java.lang.String value2)
           
 void ContourFromRational.copySegments(ContourFromRational<T> source, Ratio offset)
          Copy segments from the source ContourFromRational instance to the current instance with the indicated offset.
 double RationalSegment.getInterpolationFactor(Ratio ordinate)
           
 double RationalSegment.getSplineFactor(Ratio ordinate)
          Calculate a spline value for the indicated ordinate.
 double RationalSegment.interpolateValue(Ratio ordinate, double origin, double goal)
          Calculate the segment value as of a specified ordinate.
 RationalSegment<T> ContourFromRational.locateSegment(Ratio ordinate)
          Locate the RationalSegment which contains the indicated ordinate.
 int ContourFromRational.locateSegmentIndex(Ratio ordinate)
           
 T RationalSegment.valueAt(Ratio ordinate)
          Interpolate between the origin and the goal, based on the position of the ordinate between the segment's left and right bounds.
 T ContourFromRational.valueAt(Ratio ordinate)
          Find the segment that contains the indicated ordinate.
 

Constructors in net.charlesames.utility.contour with parameters of type Ratio
ContourTest.TestSegment(ContourTest.TestContour contour, Ratio ordinate1, Ratio ordinate2, java.lang.String value1, java.lang.String value2)
           
RationalSegment(ContourFromRational<T> contour, Ratio left, Ratio right, T origin, T goal)
          Constructor for RationalSegment instances
 

Uses of Ratio in net.charlesames.utility.io
 

Methods in net.charlesames.utility.io that return Ratio
 Ratio ParsingBuffer.parseRatio()
          Parse a ratio in long-colon-long format.
 

Uses of Ratio in net.charlesames.utility.math
 

Fields in net.charlesames.utility.math declared as Ratio
static Ratio Ratio.DUPLICITY
          Ratio with numerator 2 and denominator 1.
static Ratio Ratio.MAX_VALUE
          Ratio with numerator Long.MAX_VALUE and denominator 1.
static Ratio Ratio.MIN_VALUE
          Ratio with numerator Long.MIN_VALUE and denominator 1.
static Ratio Ratio.UNITY
          Ratio with numerator 1 and denominator 1.
static Ratio Ratio.ZERO
          Ratio with numerator 0 and denominator 1.
 

Methods in net.charlesames.utility.math that return Ratio
 Ratio Ratio.add(long addend)
          Add this ratio to the indicated long.
 Ratio Ratio.add(Ratio addend)
          Add this ratio to another ratio.
 Ratio Ratio.divide(long divisor)
          Divide this ratio by the indicated long.
 Ratio Ratio.divide(Ratio divisor)
          Divide another ratio into this ratio.
static Ratio Ratio.getInstance(long numerator, long denominator)
          Get a Ratio instance.
 Ratio Ratio.invert()
          Invert this ratio.
 Ratio Ratio.maximum(Ratio other)
          Select the maxumum of this and another Ratio.
 Ratio Ratio.minimum(Ratio other)
          Select the minimum of this and another Ratio.
 Ratio Ratio.multiply(long factor)
          Multiply this ratio by the indicated long.
 Ratio Ratio.multiply(Ratio factor)
          Multiply this ratio by another ratio.
 Ratio Ratio.negate()
          Negate this ratio.
 Ratio Ratio.normalize()
          Map this ratio into the range from .
static Ratio Ratio.parse(java.lang.String text)
          Parse a ratio in long-colon-long format.
 Ratio Ratio.power(long exponent)
          Raise this ratio to the indicated power.
 Ratio Ratio.subtract(long subtrahend)
          Subtract the indicated long from this ratio.
 Ratio Ratio.subtract(Ratio subtrahend)
          Subtract another ratio from this ratio.
static Ratio Ratio.valueOf(double value)
          Find a Ratio with a denominator up to the indicated limit that approximates the value within 10 to the -7 power;
static Ratio Ratio.valueOf(double value, int gcd)
          Find the Ratio with the indicated granularity that most closely approximates the indicated value; The result is calculated by constructing a fraction with gcd as the denominator, which the Ratio constructor simplifies.
 

Methods in net.charlesames.utility.math with parameters of type Ratio
 Ratio Ratio.add(Ratio addend)
          Add this ratio to another ratio.
 Ratio Ratio.divide(Ratio divisor)
          Divide another ratio into this ratio.
 boolean Ratio.ge(Ratio other)
          Test if this ratio is greater than or equal to another ratio.
 boolean Ratio.gt(Ratio other)
          Test if this ratio is greater than another ratio.
 boolean Ratio.le(Ratio other)
          Test if this ratio is less than or equal to another ratio.
 boolean Ratio.lt(Ratio other)
          Test if this ratio is less than another ratio.
 Ratio Ratio.maximum(Ratio other)
          Select the maxumum of this and another Ratio.
 Ratio Ratio.minimum(Ratio other)
          Select the minimum of this and another Ratio.
 Ratio Ratio.multiply(Ratio factor)
          Multiply this ratio by another ratio.
 Ratio Ratio.subtract(Ratio subtrahend)
          Subtract another ratio from this ratio.