示例#1
0
    public static ProcessResult <Clip[]> Apply(MaskOptions options, params Clip[] clips)
    {
        var processedClips = new List <Clip>(clips.Length);
        var byClip         = options.By != null && options.By.Count > 0;

        if (byClip)
        {
            foreach (var clip in clips)
            {
                MaskNotesByClip(clip, options.By);
                processedClips.Add(clip);
            }
        }
        else
        {
            foreach (var clip in clips)
            {
                var clipToMask = new Clip(clip.Length, clip.IsLooping);
                clipToMask.Add(new NoteEvent(60, 0, clipToMask.Length, 100));
                MaskNotesByClip(clipToMask, clip);
                processedClips.Add(clipToMask);
            }
        }

        return(new ProcessResult <Clip[]>(processedClips.ToArray()));
    }
 /// <summary>
 /// Please see <see href="https://github.com/RedMadRobot/input-mask-android/wiki"/> for more information about
 /// the masks.
 /// </summary>
 public void SetMask(MaskOptions maskOptions)
 {
     this.MaskOptions = maskOptions;
 }
 public Challenge(string question, string answer, MaskOptions maskOption)
 {
     this.question   = question;
     this.answer     = answer;
     this.maskOption = maskOption;
 }
示例#4
0
		public Challenge (string question, string answer, MaskOptions maskOption)
		{
			this.question = question;
			this.answer = answer;
			this.maskOption = maskOption;
		}