/// <summary> /// Creates a new song with a 3/4 measure size, a tempo of 240 quarter-notes per minute, /// mezzo-forte prevailing dynamic level, using a basic note timbre and standard CD-quality /// settings for the underlying sound file. /// </summary> public Song() { m_measureSize = new MeasureSize(3, NoteValue.Quarter); m_tempo = new Tempo(240, NoteValue.Quarter); m_dynamic = (double)Music.Dynamic.MezzoForte / 100.0D; m_timbre = Music.Timbre.BasicNote; m_damping = Music.Damping.Natural; m_noteQueue = new List <Note>(); }
/// <summary> /// Creates a new song with a 3/4 measure size, a tempo of 240 quarter-notes per minute, /// mezzo-forte prevailing dynamic level, using a basic note timbre and the specified /// audio format settings. /// </summary> /// <param name="sampleRate">Desired sample rate</param> /// <param name="bitsPerSample">Desired bits-per-sample</param> /// <param name="channels">Desired data channels</param> public Song(SampleRate sampleRate, BitsPerSample bitsPerSample, DataChannels channels) : base(sampleRate, bitsPerSample, channels) { m_measureSize = new MeasureSize(3, NoteValue.Quarter); m_tempo = new Tempo(240, NoteValue.Quarter); m_dynamic = (double)Music.Dynamic.MezzoForte / 100.0D; m_timbre = Music.Timbre.BasicNote; m_damping = Music.Damping.Natural; m_noteQueue = new List <Note>(); }
/// <summary> /// Creates a new song with a 3/4 measure size, a tempo of 240 quarter-notes per minute, /// mezzo-forte prevailing dynamic level, using a basic note timbre and the specified /// audio format settings. /// </summary> /// <param name="sampleRate">Desired sample rate</param> /// <param name="bitsPerSample">Desired bits-per-sample</param> /// <param name="channels">Desired data channels</param> public Song(SampleRate sampleRate, BitsPerSample bitsPerSample, DataChannels channels) : base(sampleRate, bitsPerSample, channels) { m_measureSize = new MeasureSize(3, NoteValue.Quarter); m_tempo = new Tempo(240, NoteValue.Quarter); m_dynamic = (double)Music.Dynamic.MezzoForte / 100.0D; m_timbre = Music.Timbre.BasicNote; m_damping = Music.Damping.Natural; m_noteQueue = new List<Note>(); }
/// <summary> /// Creates a new song with a 3/4 measure size, a tempo of 240 quarter-notes per minute, /// mezzo-forte prevailing dynamic level, using a basic note timbre and standard CD-quality /// settings for the underlying sound file. /// </summary> public Song() { m_measureSize = new MeasureSize(3, NoteValue.Quarter); m_tempo = new Tempo(240, NoteValue.Quarter); m_dynamic = (double)Music.Dynamic.MezzoForte / 100.0D; m_timbre = Music.Timbre.BasicNote; m_damping = Music.Damping.Natural; m_noteQueue = new List<Note>(); }
/// <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); }