コード例 #1
0
 public TactUnit(String phonemeString, Note note, Byte octave, Double timing, UInt32 sampleRate = 44100, SByte amplitude = 64)
 {
     in_wave         = Phonemes.Get(phonemeString, note, octave, amplitude, sampleRate);
     phoneme         = phonemeString;
     playtime        = timing;
     blank           = false;
     frequency       = Notes.Get(note, octave);
     beginningOffset = 0.0;
 }
コード例 #2
0
 /// <summary>
 /// Receive a wave chain which plays sound that corresponds to selected phoneme.
 /// </summary>
 /// <param name="phoneme">Index of phoneme.</param>
 /// <param name="note">Determines tone of sound.</param>
 /// <param name="octave">Determines octave of requested note.</param>
 /// <param name="volume">Wave's amplitude.</param>
 /// <param name="SampleRate">Sample rate of wave chain.</param>
 /// <returns>Timed wave chain.</returns>
 public static ConjoinedWave Get(String phoneme, Note note = Note.C, Byte octave = 5, SByte volume = 96, UInt32 SampleRate = 44100)
 {
     return(Get(phoneme, Notes.Get(note, octave), volume, SampleRate));
 }