Example #1
0
 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)
         );
 }
Example #3
0
 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;
 }
Example #4
0
        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);
 }
Example #6
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 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);
 }
Example #8
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);
 }
Example #9
0
 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;
 }
Example #10
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));
        }
Example #11
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.Track.Score.Tempo;
            }
            return(new TempoGlyph(0, 0, tempo));
        }
Example #12
0
 public bool ShouldCreateGlyph(EffectBarRenderer renderer, Beat beat)
 {
     return !beat.Text.IsNullOrWhiteSpace();
 }
Example #13
0
 public override EffectGlyph CreateNewGlyph(EffectBarRenderer renderer, Beat beat)
 {
     return(new DummyEffectGlyph(0, 0, LastCreateInfo.Count + "fingering"));
 }
Example #14
0
 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);
 }
Example #17
0
 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"));
 }
Example #19
0
 public float GetHeight(EffectBarRenderer renderer)
 {
     return 20 * renderer.Scale;
 }
Example #20
0
 public EffectGlyph CreateNewGlyph(EffectBarRenderer renderer, Beat beat)
 {
     return new VibratoGlyph(0, 5 * renderer.Scale, 1.15f);
 }
Example #21
0
 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);
 }
Example #22
0
 public EffectGlyph CreateNewGlyph(EffectBarRenderer renderer, Beat beat)
 {
     return new TextGlyph(0, 0, beat.Voice.Bar.MasterBar.Section.Text, renderer.Resources.MarkerFont);
 }
Example #23
0
 public bool CanExpand(EffectBarRenderer renderer, Beat from, Beat to)
 {
     return(false);
 }
Example #24
0
 public EffectGlyph CreateNewGlyph(EffectBarRenderer renderer, Beat beat)
 {
     return(new TextGlyph(0, 0, "Capo. fret " + beat.Voice.Bar.Staff.Track.Capo, renderer.Resources.EffectFont));
 }
Example #25
0
 public bool ShouldCreateGlyph(EffectBarRenderer renderer, Beat beat)
 {
     return(beat.Index == 0 && beat.Voice.Bar.Index == 0 && beat.Voice.Bar.Staff.Track.Capo != 0);
 }
Example #26
0
 public EffectGlyph CreateNewGlyph(EffectBarRenderer renderer, Beat beat)
 {
     return new PickStrokeGlyph(0, 0, beat.PickStroke);
 }
Example #27
0
 protected abstract bool ShouldCreateGlyphForNote(EffectBarRenderer renderer, Note note);
Example #28
0
 public bool ShouldCreateGlyph(EffectBarRenderer renderer, Beat beat)
 {
     return beat.Index == 0 && beat.Voice.Bar.MasterBar.IsSectionStart;
 }
Example #29
0
 protected override bool ShouldCreateGlyphForNote(EffectBarRenderer renderer, Note note)
 {
     return note.IsTrill;
 }
Example #30
0
 public abstract float GetHeight(EffectBarRenderer renderer);
Example #31
0
 public bool CanExpand(EffectBarRenderer renderer, Beat @from, Beat to)
 {
     return true;
 }
Example #32
0
 public abstract EffectGlyph CreateNewGlyph(EffectBarRenderer renderer, Beat beat);
Example #33
0
 public EffectGlyph CreateNewGlyph(EffectBarRenderer renderer, Beat beat)
 {
     return(new FadeInGlyph(0, 0));
 }
Example #34
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);
 }
Example #36
0
 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));
 }
Example #38
0
 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);
 }
Example #40
0
 public EffectGlyph CreateNewGlyph(EffectBarRenderer renderer, Beat beat)
 {
     return(new DynamicsGlyph(0, 0, beat.Dynamic));
 }
Example #41
0
 public override float GetHeight(EffectBarRenderer renderer)
 {
     return(_maxGlyphCount * (20 * renderer.Scale));
 }
Example #42
0
 public bool CanExpand(EffectBarRenderer renderer, Beat from, Beat to)
 {
     return false;
 }
Example #43
0
 public EffectGlyph CreateNewGlyph(EffectBarRenderer renderer, Beat beat)
 {
     return new TextGlyph(0, 0, beat.Text, renderer.Resources.EffectFont);
 }
Example #44
0
 public EffectGlyph CreateNewGlyph(EffectBarRenderer renderer, Beat beat)
 {
     return new TextGlyph(0,0, "Capo. fret " + beat.Voice.Bar.Staff.Track.Capo, renderer.Resources.EffectFont);
 }
Example #45
0
 public bool ShouldCreateGlyph(EffectBarRenderer renderer, Beat beat)
 {
     return beat.PickStroke != PickStrokeType.None;
 }
Example #46
0
 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);
 }
Example #48
0
 protected override bool ShouldCreateGlyphForNote(EffectBarRenderer renderer, Note note)
 {
     return(note.IsTrill);
 }
Example #49
0
 public bool ShouldCreateGlyph(EffectBarRenderer renderer, Beat beat)
 {
     return (beat.Vibrato != VibratoType.None);
 }
 public override float GetHeight(EffectBarRenderer renderer)
 {
     return(20 * renderer.Scale);
 }
Example #51
0
 public override EffectGlyph CreateNewGlyph(EffectBarRenderer renderer, Beat beat)
 {
     return new LineRangedGlyph("P.M.");
 }
Example #52
0
 public EffectGlyph CreateNewGlyph(EffectBarRenderer renderer, Beat beat)
 {
     return(new TextGlyph(0, 0, beat.Voice.Bar.MasterBar.Section.Text, renderer.Resources.MarkerFont));
 }
Example #53
0
 public override EffectGlyph CreateNewGlyph(EffectBarRenderer renderer, Beat beat)
 {
     return new TrillGlyph(0, 0);
 }
Example #54
0
 public EffectGlyph CreateNewGlyph(EffectBarRenderer renderer, Beat beat)
 {
     return new FadeInGlyph(0, 0);
 }
Example #55
0
 public EffectGlyph CreateNewGlyph(EffectBarRenderer renderer, Beat beat)
 {
     return new DummyEffectGlyph(0, 0, "TripletFeel");
 }
Example #56
0
 public bool ShouldCreateGlyph(EffectBarRenderer renderer, Beat beat)
 {
     return(beat.FadeIn);
 }
Example #57
0
 public override EffectGlyph CreateNewGlyph(EffectBarRenderer renderer, Beat beat)
 {
     return(new TrillGlyph(0, 0));
 }
Example #58
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));
 }
Example #60
0
 public bool ShouldCreateGlyph(EffectBarRenderer renderer, Beat beat)
 {
     return beat.FadeIn;
 }