本文整理汇总了C#中Note.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# Note.ToString方法的具体用法?C# Note.ToString怎么用?C# Note.ToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Note
的用法示例。
在下文中一共展示了Note.ToString方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AssignHOPOS
/// <summary>
/// Scans through a notechart and assigns the HOPO tag to notes that are of a
/// different type than the previous note, and have a tick difference less than
/// the specified HOPO tick threshold.
/// </summary>
/// <param name="inputNotechart">
/// Any notechart (expected to not have hammeron information already filled out).
/// </param>
/// <param name="inputChartInfo">
/// All information pertaining to the chart.
/// </param>
/// <returns>
/// The same notechart with proper hammeron note settings.
/// </returns>
public static Notes AssignHOPOS(Notes inputNotechart, Info inputChartInfo)
{
Notes notechartToReturn = inputNotechart;
int HOPOTickThreshold = (inputChartInfo.resolution * 4) / inputChartInfo.HOPOThreshold;
Note currentNote = new Note();
Note nextNote = new Note();
// We stop at (count - 2) due to the currentNote/nextNote/thirdNote setup
for (int i = 0; i < inputNotechart.notes.Count - 1; i++)
{
currentNote = inputNotechart.notes[i];
nextNote = inputNotechart.notes[i + 1];
if (i == 470)
{
nextNote.ToString();
}
// If difference is 0, it is a chord and should not be a hammeron.
// We need to check the third note in case the next note is the start
// of a chord.
if (((nextNote.tickValue - currentNote.tickValue) <= HOPOTickThreshold) &&
(!nextNote.noteType.isEqual(currentNote.noteType)) &&
(!nextNote.isChord))
{
notechartToReturn.notes[i + 1].isHOPO = true;
}
}
return notechartToReturn;
}
示例2: NoteToString
public static string NoteToString(Note note)
{
return note.ToString();
}
示例3: DoubleNote
public static AudioClip DoubleNote(Note a, Note b, SignalType signalType = SignalType.Sawtooth,
float amplitude = 1, int samples = 44100, int length = 1)
{
var data = Mix(NoteData(a, signalType, amplitude, samples, length),
NoteData(b, signalType, amplitude, samples, length));
return Create(data, a.ToString() + b.ToString(), samples*length, 1, samples, false, false);
}
示例4: Note
public static AudioClip Note(Note note, SignalType signalType = SignalType.Sawtooth, float amplitude = 1,
int samples = 44100, int length = 1)
{
var data = new float[samples*length];
for (var i = 0; i < data.Length; i++)
{
data[i] = SignalValue(signalType, (float) note*length/1000, (float) i/data.Length, amplitude);
}
return Create(data, note.ToString(), samples*length, 1, samples, false, false);
}
示例5: SetJudge
public void SetJudge(float data, Note.Button but)
{
CurJudge = data;
this.gameObject.GetComponent<TextMesh>().text
= but.ToString() + '\n' + CurJudge.ToString("0.0") + '%';
}