public static int ConvertToHertz(NoteCode note) { float f0 = 16.35f; float a = 1.05946309436f; //Equation is fn = f0 * (a)^n int n = Convert.ToInt32(note); return (int)(f0 * (Math.Pow(a, n))); }
public static int ConvertToHertz(NoteCode note) { float f0 = 16.35f; float a = 1.05946309436f; //Equation is fn = f0 * (a)^n int n = Convert.ToInt32(note); return((int)(f0 * (Math.Pow(a, n)))); }
public static void Play(NoteCode name, NoteType length) { int noteValue = Convert.ToInt32(length); if(noteValue < 0 && !stop) { System.Threading.Thread.Sleep(Math.Abs(noteValue)); } else if (noteValue >= 0 && !stop) { Console.Beep(ConvertToHertz(name), noteValue); } else { return; } }
public static void Play(NoteCode name, NoteType length) { int noteValue = Convert.ToInt32(length); if (noteValue < 0 && !stop) { System.Threading.Thread.Sleep(Math.Abs(noteValue)); } else if (noteValue >= 0 && !stop) { Console.Beep(ConvertToHertz(name), noteValue); } else { return; } }
public void UploadNote(string locID, string note, string prefix = "VTNotes : ", NoteCode code = NoteCode.GEN) { this.UploadNote( new NoteModel( locID, prefix + note, code.ToString() ) ); }
public List <NoteListModel> GetNotes(string locID, NoteCode filter) { return(this.GetNotes(locID, filter.ToString())); }
public List <NoteListModel> GetNotes(string locID, NoteCode filter, DateTime startdate) { return(this.GetNotes(locID, filter.ToString(), startdate)); }