public static   void __hx_ctor_alphatab_rendering_glyphs_ScoreNoteChordGlyph(global::alphatab.rendering.glyphs.ScoreNoteChordGlyph __temp_me198, global::haxe.lang.Null<int> x, global::haxe.lang.Null<int> y)
		{
			unchecked 
			{
				int __temp_y197 = ( (global::haxe.lang.Runtime.eq((y).toDynamic(), (default(global::haxe.lang.Null<int>)).toDynamic())) ? (((int) (0) )) : (y.@value) );
				int __temp_x196 = ( (global::haxe.lang.Runtime.eq((x).toDynamic(), (default(global::haxe.lang.Null<int>)).toDynamic())) ? (((int) (0) )) : (x.@value) );
				global::alphatab.rendering.Glyph.__hx_ctor_alphatab_rendering_Glyph(__temp_me198, new global::haxe.lang.Null<int>(__temp_x196, true), new global::haxe.lang.Null<int>(__temp_y197, true));
				__temp_me198._infos = new global::haxe.root.Array<object>();
				__temp_me198.beatEffects = new global::haxe.ds.StringMap<object>();
				__temp_me198._noteLookup = new global::haxe.ds.IntMap<object>();
			}
		}
Example #2
0
        public override object __hx_setField(string field, int hash, object @value, bool handleProperties)
        {
            unchecked
            {
                switch (hash)
                {
                case 1692978337:
                {
                    this.beamingHelper = ((global::alphatab.rendering.utils.BeamingHelper)(@value));
                    return(@value);
                }


                case 958687736:
                {
                    this.restGlyph = ((global::alphatab.rendering.glyphs.RestGlyph)(@value));
                    return(@value);
                }


                case 1648762369:
                {
                    this.noteHeads = ((global::alphatab.rendering.glyphs.ScoreNoteChordGlyph)(@value));
                    return(@value);
                }


                case 909570:
                {
                    this._ties = ((global::haxe.root.Array <object>)(global::haxe.root.Array <object> .__hx_cast <object>(((global::haxe.root.Array)(@value)))));
                    return(@value);
                }


                default:
                {
                    return(base.__hx_setField(field, hash, @value, handleProperties));
                }
                }
            }
        }
Example #3
0
        public override void doLayout()
        {
            unchecked
            {
                global::haxe.root.Array <object> _g = new global::haxe.root.Array <object>(new object[] { this });
                if (!(this.container.beat.isEmpty))
                {
                    if (!(this.container.beat.isRest()))
                    {
                        this.noteHeads               = new global::alphatab.rendering.glyphs.ScoreNoteChordGlyph(((global::haxe.lang.Null <int>)(default(global::haxe.lang.Null <int>))), ((global::haxe.lang.Null <int>)(default(global::haxe.lang.Null <int>))));
                        this.noteHeads.beat          = this.container.beat;
                        this.noteHeads.beamingHelper = this.beamingHelper;
                        this.noteLoop(new global::alphatab.rendering.glyphs.ScoreBeatGlyph_doLayout_80__Fun(((global::haxe.root.Array <object>)(global::haxe.root.Array <object> .__hx_cast <object>(((global::haxe.root.Array)(_g)))))));
                        this.addGlyph(this.noteHeads);
                        {
                            int _g1 = 0;
                            int _g2 = this.container.beat.dots;
                            while ((_g1 < _g2))
                            {
                                int i = _g1++;
                                global::haxe.root.Array <object> @group = new global::haxe.root.Array <object>(new object[] { new global::alphatab.rendering.glyphs.GlyphGroup(((global::haxe.lang.Null <int>)(default(global::haxe.lang.Null <int>))), ((global::haxe.lang.Null <int>)(default(global::haxe.lang.Null <int>))), ((global::haxe.root.Array <object>)(global::haxe.root.Array <object> .__hx_cast <object>(((global::haxe.root.Array)(default(global::haxe.root.Array <object>))))))) });
                                this.noteLoop(new global::alphatab.rendering.glyphs.ScoreBeatGlyph_doLayout_91__Fun(((global::haxe.root.Array <object>)(global::haxe.root.Array <object> .__hx_cast <object>(((global::haxe.root.Array)(_g))))), ((global::haxe.root.Array <object>)(global::haxe.root.Array <object> .__hx_cast <object>(((global::haxe.root.Array)(@group)))))));
                                this.addGlyph(((global::alphatab.rendering.glyphs.GlyphGroup)(@group[0])));
                            }
                        }
                    }
                    else
                    {
                        int line   = 0;
                        int offset = 0;
                        {
                            global::alphatab.model.Duration _g3 = this.container.beat.duration;
                            switch (global::haxe.root.Type.enumIndex(_g3))
                            {
                            case 0:
                            {
                                line = 4;
                                break;
                            }


                            case 1:
                            {
                                line = 5;
                                break;
                            }


                            case 2:
                            {
                                line   = 7;
                                offset = -2;
                                break;
                            }


                            case 3:
                            {
                                line = 8;
                                break;
                            }


                            case 4:
                            {
                                line = 8;
                                break;
                            }


                            case 5:
                            {
                                line = 8;
                                break;
                            }


                            case 6:
                            {
                                line = 8;
                                break;
                            }
                            }
                        }

                        global::alphatab.rendering.ScoreBarRenderer sr = default(global::alphatab.rendering.ScoreBarRenderer);
                        sr = ((global::alphatab.rendering.ScoreBarRenderer)(this.renderer));
                        int y = sr.getScoreY(line, new global::haxe.lang.Null <int>(offset, true));
                        this.addGlyph(new global::alphatab.rendering.glyphs.RestGlyph(new global::haxe.lang.Null <int>(0, true), new global::haxe.lang.Null <int>(y, true), ((global::alphatab.model.Duration)(this.container.beat.duration))));
                    }
                }

                base.doLayout();
                if ((this.noteHeads != default(global::alphatab.rendering.glyphs.ScoreNoteChordGlyph)))
                {
                    this.noteHeads.updateBeamingHelper(this.x);
                }
            }
        }
		public override   void doLayout()
		{
			unchecked 
			{
				global::haxe.root.Array<object> _g = new global::haxe.root.Array<object>(new object[]{this});
				if ( ! (this.container.beat.isEmpty) ) 
				{
					if ( ! (this.container.beat.isRest()) ) 
					{
						this.noteHeads = new global::alphatab.rendering.glyphs.ScoreNoteChordGlyph(((global::haxe.lang.Null<int>) (default(global::haxe.lang.Null<int>)) ), ((global::haxe.lang.Null<int>) (default(global::haxe.lang.Null<int>)) ));
						this.noteHeads.beat = this.container.beat;
						this.noteHeads.beamingHelper = this.beamingHelper;
						this.noteLoop(new global::alphatab.rendering.glyphs.ScoreBeatGlyph_doLayout_80__Fun(((global::haxe.root.Array<object>) (global::haxe.root.Array<object>.__hx_cast<object>(((global::haxe.root.Array) (_g) ))) )));
						this.addGlyph(this.noteHeads);
						{
							int _g1 = 0;
							int _g2 = this.container.beat.dots;
							while (( _g1 < _g2 ))
							{
								int i = _g1++;
								global::haxe.root.Array<object> @group = new global::haxe.root.Array<object>(new object[]{new global::alphatab.rendering.glyphs.GlyphGroup(((global::haxe.lang.Null<int>) (default(global::haxe.lang.Null<int>)) ), ((global::haxe.lang.Null<int>) (default(global::haxe.lang.Null<int>)) ), ((global::haxe.root.Array<object>) (global::haxe.root.Array<object>.__hx_cast<object>(((global::haxe.root.Array) (default(global::haxe.root.Array<object>)) ))) ))});
								this.noteLoop(new global::alphatab.rendering.glyphs.ScoreBeatGlyph_doLayout_91__Fun(((global::haxe.root.Array<object>) (global::haxe.root.Array<object>.__hx_cast<object>(((global::haxe.root.Array) (_g) ))) ), ((global::haxe.root.Array<object>) (global::haxe.root.Array<object>.__hx_cast<object>(((global::haxe.root.Array) (@group) ))) )));
								this.addGlyph(((global::alphatab.rendering.glyphs.GlyphGroup) (@group[0]) ));
							}
							
						}
						
					}
					 else 
					{
						int line = 0;
						int offset = 0;
						{
							global::alphatab.model.Duration _g3 = this.container.beat.duration;
							switch (global::haxe.root.Type.enumIndex(_g3))
							{
								case 0:
								{
									line = 4;
									break;
								}
								
								
								case 1:
								{
									line = 5;
									break;
								}
								
								
								case 2:
								{
									line = 7;
									offset = -2;
									break;
								}
								
								
								case 3:
								{
									line = 8;
									break;
								}
								
								
								case 4:
								{
									line = 8;
									break;
								}
								
								
								case 5:
								{
									line = 8;
									break;
								}
								
								
								case 6:
								{
									line = 8;
									break;
								}
								
								
							}
							
						}
						
						global::alphatab.rendering.ScoreBarRenderer sr = default(global::alphatab.rendering.ScoreBarRenderer);
						sr = ((global::alphatab.rendering.ScoreBarRenderer) (this.renderer) );
						int y = sr.getScoreY(line, new global::haxe.lang.Null<int>(offset, true));
						this.addGlyph(new global::alphatab.rendering.glyphs.RestGlyph(new global::haxe.lang.Null<int>(0, true), new global::haxe.lang.Null<int>(y, true), ((global::alphatab.model.Duration) (this.container.beat.duration) )));
					}
					
				}
				
				base.doLayout();
				if (( this.noteHeads != default(global::alphatab.rendering.glyphs.ScoreNoteChordGlyph) )) 
				{
					this.noteHeads.updateBeamingHelper(this.x);
				}
				
			}
		}
		public override   object __hx_setField(string field, int hash, object @value, bool handleProperties)
		{
			unchecked 
			{
				switch (hash)
				{
					case 1692978337:
					{
						this.beamingHelper = ((global::alphatab.rendering.utils.BeamingHelper) (@value) );
						return @value;
					}
					
					
					case 958687736:
					{
						this.restGlyph = ((global::alphatab.rendering.glyphs.RestGlyph) (@value) );
						return @value;
					}
					
					
					case 1648762369:
					{
						this.noteHeads = ((global::alphatab.rendering.glyphs.ScoreNoteChordGlyph) (@value) );
						return @value;
					}
					
					
					case 909570:
					{
						this._ties = ((global::haxe.root.Array<object>) (global::haxe.root.Array<object>.__hx_cast<object>(((global::haxe.root.Array) (@value) ))) );
						return @value;
					}
					
					
					default:
					{
						return base.__hx_setField(field, hash, @value, handleProperties);
					}
					
				}
				
			}
		}