当前位置: 首页>>代码示例>>C#>>正文


C# Note.ToString方法代码示例

本文整理汇总了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;
        }
开发者ID:huming2207,项目名称:ghgame,代码行数:46,代码来源:HOPOManager.cs

示例2: NoteToString

 public static string NoteToString(Note note)
 {
     return note.ToString();
 }
开发者ID:amixtum,项目名称:music-network,代码行数:4,代码来源:NoteGraph.cs

示例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);
        }
开发者ID:BasmanovDaniil,项目名称:Whoosh,代码行数:8,代码来源:Audio.cs

示例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);
        }
开发者ID:BasmanovDaniil,项目名称:Whoosh,代码行数:12,代码来源:Audio.cs

示例5: SetJudge

 public void SetJudge(float data, Note.Button but)
 {
     CurJudge = data;
     this.gameObject.GetComponent<TextMesh>().text
         = but.ToString() + '\n' + CurJudge.ToString("0.0") + '%';
 }
开发者ID:lasagnaphil,项目名称:Beat-It,代码行数:6,代码来源:JudgeDisplayer.cs


注:本文中的Note.ToString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。