Esempio n. 1
0
File: Note.cs Progetto: xj0229/gsf
 /// <summary>
 /// Calculates the actual time duration, in seconds, for the specified tempo that
 /// the note value will last. For example, if tempo is M.M. 120 quarter-notes per
 /// minte, then each quarter-note would last a half-second.
 /// </summary>
 /// <param name="tempo">Tempo used to calculate note value time.</param>
 /// <returns>Calculated note value time.</returns>
 /// <remarks>
 /// Calculated value is cached and available from <see cref="ValueTime"/> property.
 /// </remarks>
 public double CalculateValueTime(Tempo tempo)
 {
     m_valueTime = tempo.CalculateNoteValueTime(m_value);
     return(m_valueTime);
 }