public Note() { Str = 0; Fret = 0; Velocity = 100; ResizeValue = 1.0f; IsVibrato = false; IsHammer = false; IsPalmMuted = false; IsMuted = false; Harmonic = HarmonicTypes.None; HarmonicFret = 0.0f; SlidesToNext = false; SlideInFromBelow = false; SlideInFromAbove = false; SlideOutUpwards = false; SlideOutDownwards = false; BendPoints = new List <BendPoint>(); Connect = false; TremoloBarPoints = new List <BendPoint>(); IsTremoloBarVibrato = false; IsSlapped = false; IsPopped = false; Index = 0; Duration = 0; Fading = Fadings.None; IsRhTapped = false; }
public Note(Note old) : this() { Str = old.Str; Fret = old.Fret; Velocity = old.Velocity; IsVibrato = old.IsVibrato; IsHammer = old.IsHammer; IsPalmMuted = old.IsPalmMuted; IsMuted = old.IsMuted; Harmonic = old.Harmonic; HarmonicFret = old.HarmonicFret; SlidesToNext = old.SlidesToNext; SlideInFromAbove = old.SlideInFromAbove; SlideInFromBelow = old.SlideInFromBelow; SlideOutDownwards = old.SlideOutDownwards; SlideOutUpwards = old.SlideOutUpwards; BendPoints.AddRange(old.BendPoints); TremoloBarPoints.AddRange(old.TremoloBarPoints); IsTremoloBarVibrato = old.IsTremoloBarVibrato; IsSlapped = old.IsSlapped; IsPopped = old.IsPopped; Index = old.Index; Duration = old.Duration; Fading = old.Fading; IsRhTapped = old.IsRhTapped; ResizeValue = old.ResizeValue; }
public int GetHarmonic(int baseTone, int fret, int capo, float harmonicFret, HarmonicTypes type) { int val = 0; //Capo, base tone and fret (if not natural harmonic) shift the harmonics simply val = val + baseTone + capo; if (type != HarmonicTypes.Natural) { val += (int)Math.Round(harmonicFret); } val += fret; if (harmonicFret == 2.4f) { val += 34; } if (harmonicFret == 2.7f) { val += 31; } if (harmonicFret == 3.2f) { val += 28; } if (harmonicFret == 4f) { val += 24; } if (harmonicFret == 5f) { val += 19; } if (harmonicFret == 5.8f) { val += 28; } if (harmonicFret == 7f) { val += 12; } if (harmonicFret == 8.2f) { val += 28; } if (harmonicFret == 9f) { val += 19; } if (harmonicFret == 9.6f) { val += 24; } if (harmonicFret == 12f) { val += 0; } if (harmonicFret == 14.7f) { val += 19; } if (harmonicFret == 16f) { val += 12; } if (harmonicFret == 17f) { val += 19; } if (harmonicFret == 19f) { val += 0; } if (harmonicFret == 21.7f) { val += 12; } if (harmonicFret == 24f) { val += 0; } return(Math.Min(val, 127)); }