public bool ShouldCreateGlyph(EffectBarRenderer renderer, Beat beat) { return(beat.Index == 0 && ( (beat.Voice.Bar.MasterBar.Index == 0 && beat.Voice.Bar.MasterBar.TripletFeel != TripletFeel.NoTripletFeel) || (beat.Voice.Bar.MasterBar.Index > 0 && beat.Voice.Bar.MasterBar.TripletFeel != beat.Voice.Bar.MasterBar.PreviousMasterBar.TripletFeel) )); }
public bool ShouldCreateGlyph(EffectBarRenderer renderer, Beat beat) { return beat.Index == 0 && ( (beat.Voice.Bar.MasterBar.Index == 0 && beat.Voice.Bar.MasterBar.TripletFeel != TripletFeel.NoTripletFeel) || (beat.Voice.Bar.MasterBar.Index > 0 && beat.Voice.Bar.MasterBar.TripletFeel != beat.Voice.Bar.MasterBar.PreviousMasterBar.TripletFeel) ); }
protected override bool ShouldCreateGlyphForNote(EffectBarRenderer renderer, Note note) { if (!note.IsHarmonic) return false; if (note.Beat != _beat || note.HarmonicType > _beatType) { _beatType = note.HarmonicType; } return true; }
public override bool ShouldCreateGlyph(EffectBarRenderer renderer, Beat beat) { var result = base.ShouldCreateGlyph(renderer, beat); if (LastCreateInfo.Count >= _maxGlyphCount) { _maxGlyphCount = LastCreateInfo.Count; } return(result); }
protected override bool ShouldCreateGlyphForNote(EffectBarRenderer renderer, Note note) { if (!note.IsHarmonic) { return(false); } if (note.Beat != _beat || note.HarmonicType > _beatType) { _beatType = note.HarmonicType; } return(true); }
public EffectGlyph CreateNewGlyph(EffectBarRenderer renderer, Beat beat) { var res = renderer.Resources; if (beat.Slap) { return new TextGlyph(0, 0, "S", res.EffectFont); } if (beat.Pop) { return new TextGlyph(0, 0, "P", res.EffectFont); } return new TextGlyph(0, 0, "T", res.EffectFont); }
public virtual bool ShouldCreateGlyph(EffectBarRenderer renderer, Beat beat) { LastCreateInfo = new FastList <Note>(); for (int i = 0, j = beat.Notes.Count; i < j; i++) { var n = beat.Notes[i]; if (ShouldCreateGlyphForNote(renderer, n)) { LastCreateInfo.Add(n); } } return(LastCreateInfo.Count > 0); }
public EffectGlyph CreateNewGlyph(EffectBarRenderer renderer, Beat beat) { int tempo; if (beat.Voice.Bar.MasterBar.TempoAutomation != null) { tempo = (int)(beat.Voice.Bar.MasterBar.TempoAutomation.Value); } else { tempo = beat.Voice.Bar.Staff.Track.Score.Tempo; } return new TempoGlyph(0, 0, tempo); }
public virtual bool ShouldCreateGlyph(EffectBarRenderer renderer, Beat beat) { LastCreateInfo = new FastList<Note>(); for (int i = 0, j = beat.Notes.Count; i < j; i++) { var n = beat.Notes[i]; if (ShouldCreateGlyphForNote(renderer, n)) { LastCreateInfo.Add(n); } } return LastCreateInfo.Count > 0; }
public EffectGlyph CreateNewGlyph(EffectBarRenderer renderer, Beat beat) { var res = renderer.Resources; if (beat.Slap) { return(new TextGlyph(0, 0, "S", res.EffectFont)); } if (beat.Pop) { return(new TextGlyph(0, 0, "P", res.EffectFont)); } return(new TextGlyph(0, 0, "T", res.EffectFont)); }
public EffectGlyph CreateNewGlyph(EffectBarRenderer renderer, Beat beat) { int tempo; if (beat.Voice.Bar.MasterBar.TempoAutomation != null) { tempo = (int)(beat.Voice.Bar.MasterBar.TempoAutomation.Value); } else { tempo = beat.Voice.Bar.Track.Score.Tempo; } return(new TempoGlyph(0, 0, tempo)); }
public bool ShouldCreateGlyph(EffectBarRenderer renderer, Beat beat) { return !beat.Text.IsNullOrWhiteSpace(); }
public override EffectGlyph CreateNewGlyph(EffectBarRenderer renderer, Beat beat) { return(new DummyEffectGlyph(0, 0, LastCreateInfo.Count + "fingering")); }
protected override bool ShouldCreateGlyphForNote(EffectBarRenderer renderer, Note note) { return((note.LeftHandFinger != Fingers.NoOrDead && note.LeftHandFinger != Fingers.Unknown) || (note.RightHandFinger != Fingers.NoOrDead && note.RightHandFinger != Fingers.Unknown)); }
public bool CanExpand(EffectBarRenderer renderer, Beat @from, Beat to) { return(from.Crescendo == to.Crescendo); }
public float GetHeight(EffectBarRenderer renderer) { return(CrescendoGlyph.Height * renderer.Scale); }
public bool CanExpand(EffectBarRenderer renderer, Beat @from, Beat to) { return(true); }
public override EffectGlyph CreateNewGlyph(EffectBarRenderer renderer, Beat beat) { return(new LineRangedGlyph(0, 0, "PalmMute")); }
public float GetHeight(EffectBarRenderer renderer) { return 20 * renderer.Scale; }
public EffectGlyph CreateNewGlyph(EffectBarRenderer renderer, Beat beat) { return new VibratoGlyph(0, 5 * renderer.Scale, 1.15f); }
public bool ShouldCreateGlyph(EffectBarRenderer renderer, Beat beat) { return beat.Voice.Index == 0 && beat.Index == 0 && (beat.Voice.Bar.MasterBar.TempoAutomation != null || beat.Voice.Bar.Index == 0); }
public EffectGlyph CreateNewGlyph(EffectBarRenderer renderer, Beat beat) { return new TextGlyph(0, 0, beat.Voice.Bar.MasterBar.Section.Text, renderer.Resources.MarkerFont); }
public bool CanExpand(EffectBarRenderer renderer, Beat from, Beat to) { return(false); }
public EffectGlyph CreateNewGlyph(EffectBarRenderer renderer, Beat beat) { return(new TextGlyph(0, 0, "Capo. fret " + beat.Voice.Bar.Staff.Track.Capo, renderer.Resources.EffectFont)); }
public bool ShouldCreateGlyph(EffectBarRenderer renderer, Beat beat) { return(beat.Index == 0 && beat.Voice.Bar.Index == 0 && beat.Voice.Bar.Staff.Track.Capo != 0); }
public EffectGlyph CreateNewGlyph(EffectBarRenderer renderer, Beat beat) { return new PickStrokeGlyph(0, 0, beat.PickStroke); }
protected abstract bool ShouldCreateGlyphForNote(EffectBarRenderer renderer, Note note);
public bool ShouldCreateGlyph(EffectBarRenderer renderer, Beat beat) { return beat.Index == 0 && beat.Voice.Bar.MasterBar.IsSectionStart; }
protected override bool ShouldCreateGlyphForNote(EffectBarRenderer renderer, Note note) { return note.IsTrill; }
public abstract float GetHeight(EffectBarRenderer renderer);
public bool CanExpand(EffectBarRenderer renderer, Beat @from, Beat to) { return true; }
public abstract EffectGlyph CreateNewGlyph(EffectBarRenderer renderer, Beat beat);
public EffectGlyph CreateNewGlyph(EffectBarRenderer renderer, Beat beat) { return(new FadeInGlyph(0, 0)); }
public override EffectGlyph CreateNewGlyph(EffectBarRenderer renderer, Beat beat) { return(new LineRangedGlyph("P.M.")); }
public bool ShouldCreateGlyph(EffectBarRenderer renderer, Beat beat) { return(beat.Crescendo != CrescendoType.None); }
public bool ShouldCreateGlyph(EffectBarRenderer renderer, Beat beat) { return(beat.Voice.Index == 0 && ((beat.Index == 0 && beat.Voice.Bar.Index == 0) || (beat.PreviousBeat != null && beat.Dynamic != beat.PreviousBeat.Dynamic))); }
public EffectGlyph CreateNewGlyph(EffectBarRenderer renderer, Beat beat) { return(new CrescendoGlyph(0, 0, beat.Crescendo)); }
public float GetHeight(EffectBarRenderer renderer) { return(15 * renderer.Scale); }
protected override bool ShouldCreateGlyphForNote(EffectBarRenderer renderer, Note note) { return note.Vibrato != VibratoType.None || (note.IsTieDestination && note.TieOrigin.Vibrato != VibratoType.None); }
public EffectGlyph CreateNewGlyph(EffectBarRenderer renderer, Beat beat) { return(new DynamicsGlyph(0, 0, beat.Dynamic)); }
public override float GetHeight(EffectBarRenderer renderer) { return(_maxGlyphCount * (20 * renderer.Scale)); }
public bool CanExpand(EffectBarRenderer renderer, Beat from, Beat to) { return false; }
public EffectGlyph CreateNewGlyph(EffectBarRenderer renderer, Beat beat) { return new TextGlyph(0, 0, beat.Text, renderer.Resources.EffectFont); }
public EffectGlyph CreateNewGlyph(EffectBarRenderer renderer, Beat beat) { return new TextGlyph(0,0, "Capo. fret " + beat.Voice.Bar.Staff.Track.Capo, renderer.Resources.EffectFont); }
public bool ShouldCreateGlyph(EffectBarRenderer renderer, Beat beat) { return beat.PickStroke != PickStrokeType.None; }
public bool ShouldCreateGlyph(EffectBarRenderer renderer, Beat beat) { return beat.Index == 0 && beat.Voice.Bar.Index == 0 && beat.Voice.Bar.Staff.Track.Capo != 0; }
public EffectGlyph CreateNewGlyph(EffectBarRenderer renderer, Beat beat) { return new TripletFeelGlyph(beat.Voice.Bar.MasterBar.TripletFeel); }
protected override bool ShouldCreateGlyphForNote(EffectBarRenderer renderer, Note note) { return(note.IsTrill); }
public bool ShouldCreateGlyph(EffectBarRenderer renderer, Beat beat) { return (beat.Vibrato != VibratoType.None); }
public override float GetHeight(EffectBarRenderer renderer) { return(20 * renderer.Scale); }
public override EffectGlyph CreateNewGlyph(EffectBarRenderer renderer, Beat beat) { return new LineRangedGlyph("P.M."); }
public EffectGlyph CreateNewGlyph(EffectBarRenderer renderer, Beat beat) { return(new TextGlyph(0, 0, beat.Voice.Bar.MasterBar.Section.Text, renderer.Resources.MarkerFont)); }
public override EffectGlyph CreateNewGlyph(EffectBarRenderer renderer, Beat beat) { return new TrillGlyph(0, 0); }
public EffectGlyph CreateNewGlyph(EffectBarRenderer renderer, Beat beat) { return new FadeInGlyph(0, 0); }
public EffectGlyph CreateNewGlyph(EffectBarRenderer renderer, Beat beat) { return new DummyEffectGlyph(0, 0, "TripletFeel"); }
public bool ShouldCreateGlyph(EffectBarRenderer renderer, Beat beat) { return(beat.FadeIn); }
public override EffectGlyph CreateNewGlyph(EffectBarRenderer renderer, Beat beat) { return(new TrillGlyph(0, 0)); }
public bool ShouldCreateGlyph(EffectBarRenderer renderer, Beat beat) { return(beat.Index == 0 && (beat.Voice.Bar.MasterBar.TempoAutomation != null || beat.Voice.Bar.Index == 0)); }
public override EffectGlyph CreateNewGlyph(EffectBarRenderer renderer, Beat beat) { return(new TextGlyph(0, 0, HarmonicToString(_beatType), renderer.Resources.EffectFont)); }
public bool ShouldCreateGlyph(EffectBarRenderer renderer, Beat beat) { return beat.FadeIn; }