Esempio n. 1
0
		public override   object __hx_setField(string field, int hash, object @value, bool handleProperties)
		{
			unchecked 
			{
				switch (hash)
				{
					case 700148106:
					{
						this.numbers = ((global::haxe.root.Array<int>) (global::haxe.root.Array<object>.__hx_cast<int>(((global::haxe.root.Array) (@value) ))) );
						return @value;
					}
					
					
					case 4947578:
					{
						this.cmd = global::haxe.lang.Runtime.toString(@value);
						return @value;
					}
					
					
					default:
					{
						return base.__hx_setField(field, hash, @value, handleProperties);
					}
					
				}
				
			}
		}
Esempio n. 2
0
		public static   int measureString(string s, global::alphatab.platform.svg.SupportedFonts f, double size)
		{
			unchecked 
			{
				global::haxe.root.Array<int> data = default(global::haxe.root.Array<int>);
				int dataSize = default(int);
				if (( f == global::alphatab.platform.svg.SupportedFonts.TimesNewRoman )) 
				{
					data = global::alphatab.platform.svg.FontSizes.TimesNewRoman;
					dataSize = 11;
				}
				 else 
				{
					if (( f == global::alphatab.platform.svg.SupportedFonts.Arial )) 
					{
						data = global::alphatab.platform.svg.FontSizes.Arial11Pt;
						dataSize = 11;
					}
					 else 
					{
						data = new global::haxe.root.Array<int>(new int[]{8});
						dataSize = 11;
					}
					
				}
				
				int stringSize = 0;
				{
					int _g1 = 0;
					int _g = s.Length;
					while (( _g1 < _g ))
					{
						int i = _g1++;
						int code = default(int);
						int __temp_stmt522 = default(int);
						{
							double x = default(double);
							{
								double b = ((double) (global::haxe.lang.StringExt.charCodeAt(s, i).@value) );
								x = global::System.Math.Min(((double) (( data.length - 1 )) ), ((double) (b) ));
							}
							
							__temp_stmt522 = ((int) (x) );
						}
						
						code = ( __temp_stmt522 - global::alphatab.platform.svg.FontSizes.ControlChars );
						if (( code >= 0 )) 
						{
							int charSize = data[code];
							stringSize += ((int) (( ( data[code] * size ) / dataSize )) );
						}
						
					}
					
				}
				
				return stringSize;
			}
		}
		public override   void doLayout()
		{
			unchecked 
			{
				this._glyphs.sort(( (( global::alphatab.rendering.glyphs.AccidentalGroupGlyph_doLayout_35__Fun.__hx_current != default(global::alphatab.rendering.glyphs.AccidentalGroupGlyph_doLayout_35__Fun) )) ? (global::alphatab.rendering.glyphs.AccidentalGroupGlyph_doLayout_35__Fun.__hx_current) : (global::alphatab.rendering.glyphs.AccidentalGroupGlyph_doLayout_35__Fun.__hx_current = ((global::alphatab.rendering.glyphs.AccidentalGroupGlyph_doLayout_35__Fun) (new global::alphatab.rendering.glyphs.AccidentalGroupGlyph_doLayout_35__Fun()) )) ));
				global::haxe.root.Array<int> columns = new global::haxe.root.Array<int>();
				columns.push(-3000);
				int accidentalSize = ((int) (( 21 * this.renderer.stave.staveGroup.layout.renderer.settings.scale )) );
				{
					int _g = 0;
					global::haxe.root.Array<object> _g1 = this._glyphs;
					while (( _g < _g1.length ))
					{
						global::alphatab.rendering.Glyph g = ((global::alphatab.rendering.Glyph) (_g1[_g]) );
						 ++ _g;
						g.renderer = this.renderer;
						g.doLayout();
						int gColumn = 0;
						while (( columns[gColumn] > g.y ))
						{
							gColumn++;
							if (( gColumn == columns.length )) 
							{
								columns.push(-3000);
							}
							
						}
						
						g.x = gColumn;
						columns[gColumn] = ( g.y + accidentalSize );
					}
					
				}
				
				int columnWidth = ((int) (( 8 * this.renderer.stave.staveGroup.layout.renderer.settings.scale )) );
				if (( this._glyphs.length == 0 )) 
				{
					this.width = 0;
				}
				 else 
				{
					this.width = ( columnWidth * columns.length );
				}
				
				{
					int _g2 = 0;
					global::haxe.root.Array<object> _g11 = this._glyphs;
					while (( _g2 < _g11.length ))
					{
						global::alphatab.rendering.Glyph g1 = ((global::alphatab.rendering.Glyph) (_g11[_g2]) );
						 ++ _g2;
						g1.x = ( this.width - ( (( g1.x + 1 )) * columnWidth ) );
					}
					
				}
				
			}
		}
Esempio n. 4
0
		public static   void loadScoreAsync(string path, global::haxe.lang.Function success, global::haxe.lang.Function error)
		{
			unchecked 
			{
				global::haxe.root.Array<object> error1 = new global::haxe.root.Array<object>(new object[]{error});
				global::haxe.root.Array<object> success1 = new global::haxe.root.Array<object>(new object[]{success});
				global::alphatab.platform.IFileLoader loader = ((global::alphatab.platform.IFileLoader) (((global::haxe.lang.Function) (global::alphatab.Environment.fileLoaders.@get("default").@value) ).__hx_invoke0_o()) );
				loader.loadBinaryAsync(path, new global::alphatab.importer.ScoreLoader_loadScoreAsync_43__Fun(((global::haxe.root.Array<object>) (global::haxe.root.Array<object>.__hx_cast<object>(((global::haxe.root.Array) (error1) ))) ), ((global::haxe.root.Array<object>) (global::haxe.root.Array<object>.__hx_cast<object>(((global::haxe.root.Array) (success1) ))) )), ((global::haxe.lang.Function) (error1[0]) ));
			}
		}
Esempio n. 5
0
		public static   global::haxe.root.Array<object> availableImporters()
		{
			unchecked 
			{
				global::haxe.root.Array<object> scoreImporter = new global::haxe.root.Array<object>();
				scoreImporter.push(new global::alphatab.importer.Gp3To5Importer());
				scoreImporter.push(new global::alphatab.importer.AlphaTexImporter());
				scoreImporter.push(new global::alphatab.importer.GpxImporter());
				return scoreImporter;
			}
		}
		public override   void doLayout()
		{
			unchecked 
			{
				global::haxe.root.Array<object> _g = new global::haxe.root.Array<object>(new object[]{this});
				this.noteLoop(new global::alphatab.rendering.glyphs.TabBeatPostNotesGlyph_doLayout_35__Fun(((global::haxe.root.Array<object>) (global::haxe.root.Array<object>.__hx_cast<object>(((global::haxe.root.Array) (_g) ))) )));
				int __temp_stmt598 = default(int);
				{
					double x = ( this.getBeatDurationWidth() * this.renderer.stave.staveGroup.layout.renderer.settings.scale );
					__temp_stmt598 = ((int) (x) );
				}
				
				this.addGlyph(new global::alphatab.rendering.glyphs.SpacingGlyph(new global::haxe.lang.Null<int>(0, true), new global::haxe.lang.Null<int>(0, true), ((int) (__temp_stmt598) ), ((global::haxe.lang.Null<bool>) (default(global::haxe.lang.Null<bool>)) )));
				base.doLayout();
			}
		}
Esempio n. 7
0
		public static   global::alphatab.model.Automation builtTempoAutomation(bool isLinear, double ratioPosition, double @value, int reference)
		{
			unchecked 
			{
				if (( ( reference < 1 ) || ( reference > 5 ) )) 
				{
					reference = 2;
				}
				
				global::haxe.root.Array<double> references = new global::haxe.root.Array<double>(new double[]{1.0, 0.5, 1.0, 1.5, 2.0, 3.0});
				global::alphatab.model.Automation automation = new global::alphatab.model.Automation();
				automation.type = global::alphatab.model.AutomationType.Tempo;
				automation.isLinear = isLinear;
				automation.ratioPosition = ratioPosition;
				double realValue = ( @value * references[reference] );
				automation.@value = realValue;
				return automation;
			}
		}
Esempio n. 8
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.isRest()) ) 
				{
					this.noteNumbers = new global::alphatab.rendering.glyphs.TabNoteChordGlyph(new global::haxe.lang.Null<int>(0, true), new global::haxe.lang.Null<int>(0, true), ((bool) (( this.container.beat.graceType != global::alphatab.model.GraceType.None )) ));
					this.noteNumbers.beat = this.container.beat;
					this.noteLoop(new global::alphatab.rendering.glyphs.TabBeatGlyph_doLayout_47__Fun(((global::haxe.root.Array<object>) (global::haxe.root.Array<object>.__hx_cast<object>(((global::haxe.root.Array) (_g) ))) )));
					this.addGlyph(this.noteNumbers);
					if (( ( this.container.beat.whammyBarPoints.length > 0 ) &&  ! (this.noteNumbers.beatEffects.exists("Whammy"))  )) 
					{
						this.noteNumbers.beatEffects.@set("Whammy", new global::alphatab.rendering.glyphs.WhammyBarGlyph(((global::alphatab.model.Beat) (this.container.beat) ), ((global::alphatab.rendering.glyphs.BeatContainerGlyph) (this.container) )));
					}
					
					if (( ( ! (global::haxe.lang.Runtime.eq((this.container.beat.tremoloSpeed).toDynamic(), (default(global::haxe.lang.Null<global::alphatab.model.Duration>)).toDynamic())) ) &&  ! (this.noteNumbers.beatEffects.exists("Tremolo"))  )) 
					{
						this.noteNumbers.beatEffects.@set("Tremolo", new global::alphatab.rendering.glyphs.TremoloPickingGlyph(new global::haxe.lang.Null<int>(0, true), new global::haxe.lang.Null<int>(0, true), this.container.beat.tremoloSpeed.@value));
					}
					
				}
				
				int w = 0;
				{
					int _g1 = 0;
					global::haxe.root.Array<object> _g11 = this._glyphs;
					while (( _g1 < _g11.length ))
					{
						global::alphatab.rendering.Glyph g = ((global::alphatab.rendering.Glyph) (_g11[_g1]) );
						 ++ _g1;
						g.x = w;
						g.renderer = this.renderer;
						g.doLayout();
						w += g.width;
					}
					
				}
				
				this.width = w;
			}
		}
Esempio n. 9
0
		public static   string getTextForTuning(int tuning, bool includeOctave)
		{
			unchecked 
			{
				int octave = default(int);
				{
					double x = global::System.Math.Floor(((double) (( ((double) (tuning) ) / 12 )) ));
					octave = ((int) (x) );
				}
				
				int note = ( tuning % 12 );
				global::haxe.root.Array<object> notes = new global::haxe.root.Array<object>(new object[]{"C", "Db", "D", "Eb", "E", "F", "Gb", "G", "Ab", "A", "Bb", "B"});
				string result = global::haxe.lang.Runtime.toString(notes[note]);
				if (includeOctave) 
				{
					result = global::haxe.lang.Runtime.concat(result, global::Std.@string(octave));
				}
				
				return result;
			}
		}
Esempio n. 10
0
        public static global::haxe.root.Array getClassFields(global::System.Type c)
        {
                        #line 229 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
            if (global::System.Object.ReferenceEquals(((object)(c)), ((object)(typeof(string)))))
            {
                                #line 230 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                return(new global::haxe.root.Array(new object[] { "fromCharCode" }));
            }

                        #line 233 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
            global::haxe.root.Array ret = new global::haxe.root.Array(new object[] {});
            object initial = global::System.Reflection.BindingFlags.Public;
            global::System.Reflection.BindingFlags this1 = (((initial == default(object))) ? (default(global::System.Reflection.BindingFlags)) : (((global::System.Reflection.BindingFlags)(initial))));
            object initial1 = ((global::System.Reflection.BindingFlags)((((global::System.Reflection.BindingFlags)(this1)) | ((global::System.Reflection.BindingFlags)(global::System.Reflection.BindingFlags.Static)))));
            global::System.Reflection.BindingFlags this2 = (((initial1 == default(object))) ? (default(global::System.Reflection.BindingFlags)) : (((global::System.Reflection.BindingFlags)(initial1))));
            global::System.Reflection.MemberInfo[] infos = ((global::System.Type)(c)).GetMembers(((global::System.Reflection.BindingFlags)(this2)));
                        #line 235 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
            {
                                #line 235 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                int _g = 0;
                                #line 235 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                int _g1 = (infos as global::System.Array).Length;
                                #line 235 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                while ((_g < _g1))
                {
                                        #line 235 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                    int    i    = _g++;
                    string name = ((global::System.Reflection.MemberInfo)(infos[i])).Name;
                                        #line 237 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                    if (!(name.StartsWith("__hx_")))
                    {
                                                #line 238 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                        ret.push(name);
                    }
                }
            }

                        #line 241 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
            return(ret);
        }
Esempio n. 11
0
        public static object createEnum(global::System.Type e, string constr, global::haxe.root.Array @params)
        {
                        #line 190 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
            if (((@params == null) || (@params.length == 0)))
            {
                                #line 191 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                object ret = global::haxe.lang.Runtime.slowGetField(e, constr, true);
                if ((((object)(ret)) is global::haxe.lang.Function))
                {
                                        #line 193 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                    throw global::haxe.lang.HaxeException.wrap(global::haxe.lang.Runtime.concat(global::haxe.lang.Runtime.concat("Constructor ", constr), " needs parameters"));
                }

                                #line 194 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                return(ret);
            }
            else
            {
                                #line 196 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                object[] ret1 = new object[@params.length];
                                #line 196 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                {
                                        #line 196 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                    int _g = 0;
                                        #line 196 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                    int _g1 = @params.length;
                                        #line 196 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                    while ((_g < _g1))
                    {
                                                #line 196 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                        int i = _g++;
                                                #line 196 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                        ret1[i] = @params.__get(i);
                    }
                }

                                #line 196 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                return(global::haxe.lang.Runtime.slowCallField(e, constr, ret1));
            }
        }
Esempio n. 12
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.isRest()))
                {
                    this.noteNumbers      = new global::alphatab.rendering.glyphs.TabNoteChordGlyph(new global::haxe.lang.Null <int>(0, true), new global::haxe.lang.Null <int>(0, true), ((bool)((this.container.beat.graceType != global::alphatab.model.GraceType.None))));
                    this.noteNumbers.beat = this.container.beat;
                    this.noteLoop(new global::alphatab.rendering.glyphs.TabBeatGlyph_doLayout_47__Fun(((global::haxe.root.Array <object>)(global::haxe.root.Array <object> .__hx_cast <object>(((global::haxe.root.Array)(_g)))))));
                    this.addGlyph(this.noteNumbers);
                    if (((this.container.beat.whammyBarPoints.length > 0) && !(this.noteNumbers.beatEffects.exists("Whammy"))))
                    {
                        this.noteNumbers.beatEffects.@set("Whammy", new global::alphatab.rendering.glyphs.WhammyBarGlyph(((global::alphatab.model.Beat)(this.container.beat)), ((global::alphatab.rendering.glyphs.BeatContainerGlyph)(this.container))));
                    }

                    if (((!(global::haxe.lang.Runtime.eq((this.container.beat.tremoloSpeed).toDynamic(), (default(global::haxe.lang.Null <global::alphatab.model.Duration>)).toDynamic()))) && !(this.noteNumbers.beatEffects.exists("Tremolo"))))
                    {
                        this.noteNumbers.beatEffects.@set("Tremolo", new global::alphatab.rendering.glyphs.TremoloPickingGlyph(new global::haxe.lang.Null <int>(0, true), new global::haxe.lang.Null <int>(0, true), this.container.beat.tremoloSpeed.@value));
                    }
                }

                int w = 0;
                {
                    int _g1 = 0;
                    global::haxe.root.Array <object> _g11 = this._glyphs;
                    while ((_g1 < _g11.length))
                    {
                        global::alphatab.rendering.Glyph g = ((global::alphatab.rendering.Glyph)(_g11[_g1]));
                        ++_g1;
                        g.x        = w;
                        g.renderer = this.renderer;
                        g.doLayout();
                        w += g.width;
                    }
                }

                this.width = w;
            }
        }
Esempio n. 13
0
        public override void paint(int cx, int cy, global::alphatab.platform.ICanvas canvas)
        {
            unchecked
            {
                global::alphatab.rendering.RenderingResources res = this.renderer.stave.staveGroup.layout.renderer.renderingResources;
                global::alphatab.model.TextBaseline           old = canvas.getTextBaseline();
                canvas.setTextBaseline(global::alphatab.model.TextBaseline.Middle);
                canvas.setColor(res.mainGlyphColor);
                if (this._isGrace)
                {
                    canvas.setFont(res.graceFont);
                }
                else
                {
                    canvas.setFont(res.tablatureFont);
                }

                {
                    int _g = 0;
                    global::haxe.root.Array <object> _g1 = this._notes;
                    while ((_g < _g1.length))
                    {
                        global::alphatab.rendering.glyphs.NoteNumberGlyph g = ((global::alphatab.rendering.glyphs.NoteNumberGlyph)(_g1[_g]));
                        ++_g;
                        g.renderer = this.renderer;
                        g.paint((cx + this.x), (cy + this.y), canvas);
                    }
                }

                canvas.setTextBaseline(old);
                {
                    object __temp_iterator450 = this.beatEffects.iterator();
                    while (((bool)(global::haxe.lang.Runtime.callField(__temp_iterator450, "hasNext", 407283053, default(global::haxe.root.Array)))))
                    {
                        global::alphatab.rendering.Glyph g1 = ((global::alphatab.rendering.Glyph)(global::haxe.lang.Runtime.callField(__temp_iterator450, "next", 1224901875, default(global::haxe.root.Array))));
                        g1.paint((cx + this.x), (cy + this.y), canvas);
                    }
                }
            }
        }
Esempio n. 14
0
 public override void __hx_getFields(global::haxe.root.Array <object> baseArr)
 {
     unchecked
     {
         baseArr.push("isLastInAccolade");
         baseArr.push("isFirstInAccolade");
         baseArr.push("staveBottom");
         baseArr.push("bottomSpacing");
         baseArr.push("topSpacing");
         baseArr.push("staveTop");
         baseArr.push("index");
         baseArr.push("height");
         baseArr.push("y");
         baseArr.push("x");
         baseArr.push("barRenderers");
         baseArr.push("_factory");
         baseArr.push("staveGroup");
         {
             base.__hx_getFields(baseArr);
         }
     }
 }
Esempio n. 15
0
        public override object __hx_invokeField(string field, int hash, global::haxe.root.Array dynargs)
        {
            unchecked
            {
                switch (hash)
                {
                case 1169898256:
                {
                    this.init(((double)(global::haxe.lang.Runtime.toDouble(dynargs[0]))));
                    break;
                }


                default:
                {
                    return(base.__hx_invokeField(field, hash, dynargs));
                }
                }

                return(default(object));
            }
        }
Esempio n. 16
0
 public static int command(string cmd, global::haxe.root.Array args)
 {
                 #line 106 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Sys.hx"
     global::System.Diagnostics.Process proc = global::sys.io.Process.createNativeProcess(cmd, args);
     global::System.Diagnostics.DataReceivedEventHandler this1 = ((global::System.Diagnostics.DataReceivedEventHandler)((((global::Sys_command_107__Fun.__hx_current != null)) ? (global::Sys_command_107__Fun.__hx_current) : (global::Sys_command_107__Fun.__hx_current = ((global::Sys_command_107__Fun)(new global::Sys_command_107__Fun())))).Delegate));
     proc.OutputDataReceived += ((global::System.Diagnostics.DataReceivedEventHandler)(this1));
                 #line 112 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Sys.hx"
     global::haxe.io.Output stderr = ((global::haxe.io.Output)(new global::cs.io.NativeOutput(((global::System.IO.Stream)(global::System.Console.OpenStandardError())))));
     global::System.Diagnostics.DataReceivedEventHandler this2 = ((global::System.Diagnostics.DataReceivedEventHandler)(new global::Sys_command_113__Fun(stderr).Delegate));
     proc.ErrorDataReceived += ((global::System.Diagnostics.DataReceivedEventHandler)(this2));
                 #line 118 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Sys.hx"
     proc.Start();
     proc.BeginOutputReadLine();
                 #line 120 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Sys.hx"
     proc.BeginErrorReadLine();
     proc.WaitForExit();
                 #line 122 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Sys.hx"
     int exitCode = proc.ExitCode;
     (proc as global::System.ComponentModel.Component).Dispose();
                 #line 124 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Sys.hx"
     return(exitCode);
 }
		public override   void doLayout()
		{
			unchecked 
			{
				global::haxe.root.Array<object> _g = new global::haxe.root.Array<object>(new object[]{this});
				if (( this.container.beat.brushType != global::alphatab.model.BrushType.None )) 
				{
					this.addGlyph(new global::alphatab.rendering.glyphs.ScoreBrushGlyph(((global::alphatab.model.Beat) (this.container.beat) )));
					this.addGlyph(new global::alphatab.rendering.glyphs.SpacingGlyph(new global::haxe.lang.Null<int>(0, true), new global::haxe.lang.Null<int>(0, true), ((int) (( 4 * this.renderer.stave.staveGroup.layout.renderer.settings.scale )) ), ((global::haxe.lang.Null<bool>) (default(global::haxe.lang.Null<bool>)) )));
				}
				
				if ((  ! (this.container.beat.isRest())  &&  ! (this.container.beat.voice.bar.track.isPercussion)  )) 
				{
					global::haxe.root.Array<object> accidentals = new global::haxe.root.Array<object>(new object[]{new global::alphatab.rendering.glyphs.AccidentalGroupGlyph(new global::haxe.lang.Null<int>(0, true), new global::haxe.lang.Null<int>(0, true))});
					this.noteLoop(new global::alphatab.rendering.glyphs.ScoreBeatPreNotesGlyph_doLayout_53__Fun(((global::haxe.root.Array<object>) (global::haxe.root.Array<object>.__hx_cast<object>(((global::haxe.root.Array) (accidentals) ))) ), ((global::haxe.root.Array<object>) (global::haxe.root.Array<object>.__hx_cast<object>(((global::haxe.root.Array) (_g) ))) )));
					this.addGlyph(((global::alphatab.rendering.glyphs.AccidentalGroupGlyph) (accidentals[0]) ));
				}
				
				this.addGlyph(new global::alphatab.rendering.glyphs.SpacingGlyph(new global::haxe.lang.Null<int>(0, true), new global::haxe.lang.Null<int>(0, true), ((int) (( ( 4 * (( (( this.container.beat.graceType != global::alphatab.model.GraceType.None )) ? (0.7) : (((double) (1) )) )) ) * this.renderer.stave.staveGroup.layout.renderer.settings.scale )) ), new global::haxe.lang.Null<bool>(true, true)));
				base.doLayout();
			}
		}
Esempio n. 18
0
 public override void __hx_getFields(global::haxe.root.Array <object> baseArr)
 {
     baseArr.push("r2c2");
     baseArr.push("r1c2");
     baseArr.push("r0c2");
     baseArr.push("r2c1");
     baseArr.push("r1c1");
     baseArr.push("r0c1");
     baseArr.push("r2c0");
     baseArr.push("r1c0");
     baseArr.push("r0c0");
     baseArr.push("_22");
     baseArr.push("_12");
     baseArr.push("_02");
     baseArr.push("_21");
     baseArr.push("_11");
     baseArr.push("_01");
     baseArr.push("_20");
     baseArr.push("_10");
     baseArr.push("_00");
     base.__hx_getFields(baseArr);
 }
Esempio n. 19
0
        public override object __hx_invokeField(string field, int hash, global::haxe.root.Array dynargs)
        {
            unchecked
            {
                switch (hash)
                {
                case 2127207408:
                {
                    this.addMasterBar(((global::alphatab.model.MasterBar)(dynargs[0])));
                    break;
                }


                default:
                {
                    return(base.__hx_invokeField(field, hash, dynargs));
                }
                }

                return(default(object));
            }
        }
Esempio n. 20
0
        public override void doLayout()
        {
            unchecked
            {
                int w = 0;
                {
                    int _g = 0;
                    global::haxe.root.Array <object> _g1 = this._glyphs;
                    while ((_g < _g1.length))
                    {
                        global::alphatab.rendering.Glyph g = ((global::alphatab.rendering.Glyph)(_g1[_g]));
                        ++_g;
                        g.x        = w;
                        g.renderer = this.renderer;
                        g.doLayout();
                        w += g.width;
                    }
                }

                this.width = w;
            }
        }
Esempio n. 21
0
        public virtual bool shouldCreateGlyph(global::alphatab.rendering.EffectBarRenderer renderer, global::alphatab.model.Beat beat)
        {
            unchecked
            {
                this._lastCreateInfo = new global::haxe.root.Array <object>();
                {
                    int _g = 0;
                    global::haxe.root.Array <object> _g1 = beat.notes;
                    while ((_g < _g1.length))
                    {
                        global::alphatab.model.Note n = ((global::alphatab.model.Note)(_g1[_g]));
                        ++_g;
                        if (this.shouldCreateGlyphForNote(renderer, n))
                        {
                            this._lastCreateInfo.push(n);
                        }
                    }
                }

                return(this._lastCreateInfo.length > 0);
            }
        }
Esempio n. 22
0
 public override void __hx_getFields(global::haxe.root.Array <object> baseArr)
 {
     unchecked
     {
         baseArr.push("octave");
         baseArr.push("dynamicValue");
         baseArr.push("beat");
         baseArr.push("swapAccidentals");
         baseArr.push("durationPercent");
         baseArr.push("trillSpeed");
         baseArr.push("trillValue");
         baseArr.push("isFingering");
         baseArr.push("rightHandFinger");
         baseArr.push("leftHandFinger");
         baseArr.push("isTieDestination");
         baseArr.push("isTieOrigin");
         baseArr.push("tieOrigin");
         baseArr.push("isStaccato");
         baseArr.push("vibrato");
         baseArr.push("slideTarget");
         baseArr.push("slideType");
         baseArr.push("isDead");
         baseArr.push("isPalmMute");
         baseArr.push("isLetRing");
         baseArr.push("harmonicType");
         baseArr.push("harmonicValue");
         baseArr.push("isHammerPullOrigin");
         baseArr.push("isHammerPullDestination");
         baseArr.push("hammerPullOrigin");
         baseArr.push("string");
         baseArr.push("isGhost");
         baseArr.push("fret");
         baseArr.push("bendPoints");
         baseArr.push("accentuated");
         {
             base.__hx_getFields(baseArr);
         }
     }
 }
        public override void doLayout()
        {
            unchecked
            {
                global::haxe.root.Array <object> _g = new global::haxe.root.Array <object>(new object[] { this });
                if ((this.container.beat.brushType != global::alphatab.model.BrushType.None))
                {
                    this.addGlyph(new global::alphatab.rendering.glyphs.ScoreBrushGlyph(((global::alphatab.model.Beat)(this.container.beat))));
                    this.addGlyph(new global::alphatab.rendering.glyphs.SpacingGlyph(new global::haxe.lang.Null <int>(0, true), new global::haxe.lang.Null <int>(0, true), ((int)((4 * this.renderer.stave.staveGroup.layout.renderer.settings.scale))), ((global::haxe.lang.Null <bool>)(default(global::haxe.lang.Null <bool>)))));
                }

                if ((!(this.container.beat.isRest()) && !(this.container.beat.voice.bar.track.isPercussion)))
                {
                    global::haxe.root.Array <object> accidentals = new global::haxe.root.Array <object>(new object[] { new global::alphatab.rendering.glyphs.AccidentalGroupGlyph(new global::haxe.lang.Null <int>(0, true), new global::haxe.lang.Null <int>(0, true)) });
                    this.noteLoop(new global::alphatab.rendering.glyphs.ScoreBeatPreNotesGlyph_doLayout_53__Fun(((global::haxe.root.Array <object>)(global::haxe.root.Array <object> .__hx_cast <object>(((global::haxe.root.Array)(accidentals))))), ((global::haxe.root.Array <object>)(global::haxe.root.Array <object> .__hx_cast <object>(((global::haxe.root.Array)(_g)))))));
                    this.addGlyph(((global::alphatab.rendering.glyphs.AccidentalGroupGlyph)(accidentals[0])));
                }

                this.addGlyph(new global::alphatab.rendering.glyphs.SpacingGlyph(new global::haxe.lang.Null <int>(0, true), new global::haxe.lang.Null <int>(0, true), ((int)(((4 * ((((this.container.beat.graceType != global::alphatab.model.GraceType.None)) ? (0.7) : (((double)(1)))))) * this.renderer.stave.staveGroup.layout.renderer.settings.scale))), new global::haxe.lang.Null <bool>(true, true)));
                base.doLayout();
            }
        }
Esempio n. 24
0
        public static object createInstance(global::System.Type cl, global::haxe.root.Array args)
        {
                        #line 155 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
            if (global::System.Object.ReferenceEquals(((object)(cl)), ((object)(typeof(string)))))
            {
                                #line 156 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                return(args.__get(0));
            }

                        #line 157 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
            global::System.Type t = ((global::System.Type)(cl));
            if (t.IsInterface)
            {
                                #line 160 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                t = global::haxe.root.Type.resolveClass(global::haxe.root.Type.getClassName(cl));
            }

                        #line 162 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
            global::System.Reflection.ConstructorInfo[] ctors = t.GetConstructors();
            int      tmp = (ctors as global::System.Array).Length;
            object[] ret = new object[args.length];
            {
                                #line 163 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                int _g = 0;
                                #line 163 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                int _g1 = args.length;
                                #line 163 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                while ((_g < _g1))
                {
                                        #line 163 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                    int i = _g++;
                                        #line 163 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
                    ret[i] = args.__get(i);
                }
            }

                        #line 163 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Type.hx"
            return(global::haxe.lang.Runtime.callMethod(null, ((global::System.Reflection.MethodBase[])(ctors)), tmp, ret));
        }
Esempio n. 25
0
        public virtual int getBottomOverflow()
        {
            unchecked
            {
                int m = 0;
                {
                    int _g = 0;
                    global::haxe.root.Array <object> _g1 = this.barRenderers;
                    while ((_g < _g1.length))
                    {
                        global::alphatab.rendering.BarRendererBase r = ((global::alphatab.rendering.BarRendererBase)(_g1[_g]));
                        ++_g;
                        if ((r.bottomOverflow > m))
                        {
                            m = r.bottomOverflow;
                        }
                    }
                }

                return(m);
            }
        }
Esempio n. 26
0
        public global::haxe.root.Array <T> filter(global::haxe.lang.Function f)
        {
            unchecked
            {
                global::haxe.root.Array <T> ret = new global::haxe.root.Array <T>(new T[] {});
                {
                    int _g = 0;
                    global::haxe.root.Array <T> _g1 = this;
                    while ((_g < _g1.length))
                    {
                        T elt = _g1[_g];
                        ++_g;
                        if (((bool)(f.__hx_invoke1_o(default(double), elt))))
                        {
                            ret.push(elt);
                        }
                    }
                }

                return(ret);
            }
        }
Esempio n. 27
0
        public static global::haxe.root.Array instanceFields(global::System.Type c)
        {
                        #line 101 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Reflect.hx"
            global::System.Type     c1  = ((global::System.Type)(c));
            global::haxe.root.Array ret = new global::haxe.root.Array(new object[] {});
                        #line 103 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Reflect.hx"
            object initial = global::System.Reflection.BindingFlags.Public;
                        #line 103 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Reflect.hx"
            global::System.Reflection.BindingFlags this1 = (((initial == default(object))) ? (default(global::System.Reflection.BindingFlags)) : (((global::System.Reflection.BindingFlags)(initial))));
                        #line 103 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Reflect.hx"
            object initial1 = ((global::System.Reflection.BindingFlags)((((global::System.Reflection.BindingFlags)(this1)) | ((global::System.Reflection.BindingFlags)(global::System.Reflection.BindingFlags.Instance)))));
                        #line 103 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Reflect.hx"
            global::System.Reflection.BindingFlags this2 = (((initial1 == default(object))) ? (default(global::System.Reflection.BindingFlags)) : (((global::System.Reflection.BindingFlags)(initial1))));
                        #line 103 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Reflect.hx"
            object initial2 = ((global::System.Reflection.BindingFlags)((((global::System.Reflection.BindingFlags)(this2)) | ((global::System.Reflection.BindingFlags)(global::System.Reflection.BindingFlags.FlattenHierarchy)))));
                        #line 103 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Reflect.hx"
            global::System.Reflection.BindingFlags this3 = (((initial2 == default(object))) ? (default(global::System.Reflection.BindingFlags)) : (((global::System.Reflection.BindingFlags)(initial2))));
                        #line 103 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Reflect.hx"
            global::System.Reflection.FieldInfo[] mis = c1.GetFields(((global::System.Reflection.BindingFlags)(this3)));
            {
                                #line 104 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Reflect.hx"
                int _g = 0;
                                #line 104 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Reflect.hx"
                int _g1 = (mis as global::System.Array).Length;
                                #line 104 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Reflect.hx"
                while ((_g < _g1))
                {
                                        #line 104 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Reflect.hx"
                    int i = _g++;
                    global::System.Reflection.FieldInfo i1 = ((global::System.Reflection.FieldInfo)(mis[i]));
                                        #line 106 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Reflect.hx"
                    ret.push((i1 as global::System.Reflection.MemberInfo).Name);
                }
            }

                        #line 108 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Reflect.hx"
            return(ret);
        }
Esempio n. 28
0
        public virtual int getPostBeatGlyphsStart()
        {
            unchecked
            {
                int start  = this.getBeatGlyphsStart();
                int offset = 0;
                {
                    int _g = 0;
                    global::haxe.root.Array <object> _g1 = this._voiceContainers;
                    while ((_g < _g1.length))
                    {
                        global::alphatab.rendering.glyphs.VoiceContainerGlyph c = ((global::alphatab.rendering.glyphs.VoiceContainerGlyph)(_g1[_g]));
                        ++_g;
                        if ((c.width > offset))
                        {
                            offset = c.width;
                        }
                    }
                }

                return(start + offset);
            }
        }
Esempio n. 29
0
        public override void applyBarSpacing(int spacing)
        {
            unchecked
            {
                this.width += spacing;
                {
                    int _g = 0;
                    global::haxe.root.Array <object> _g1 = this._voiceContainers;
                    while ((_g < _g1.length))
                    {
                        global::alphatab.rendering.glyphs.VoiceContainerGlyph c = ((global::alphatab.rendering.glyphs.VoiceContainerGlyph)(_g1[_g]));
                        ++_g;
                        int toApply = spacing;
                        if ((this._biggestVoiceContainer != default(global::alphatab.rendering.glyphs.VoiceContainerGlyph)))
                        {
                            toApply += (this._biggestVoiceContainer.width - c.width);
                        }

                        c.applyGlyphSpacing(toApply);
                    }
                }
            }
        }
Esempio n. 30
0
        public static global::haxe.root.Array toArray <T1>(T1[] this1)
        {
                        #line 202 "C:\\HaxeToolkit\\haxe\\std\\haxe\\ds\\Vector.hx"
            global::haxe.root.Array a = new global::haxe.root.Array();
            int len = (((T1[])(this1)) as global::System.Array).Length;
                        #line 209 "C:\\HaxeToolkit\\haxe\\std\\haxe\\ds\\Vector.hx"
            {
                                #line 209 "C:\\HaxeToolkit\\haxe\\std\\haxe\\ds\\Vector.hx"
                int _g = 0;
                                #line 209 "C:\\HaxeToolkit\\haxe\\std\\haxe\\ds\\Vector.hx"
                int _g1 = len;
                                #line 209 "C:\\HaxeToolkit\\haxe\\std\\haxe\\ds\\Vector.hx"
                while ((_g < _g1))
                {
                                        #line 209 "C:\\HaxeToolkit\\haxe\\std\\haxe\\ds\\Vector.hx"
                    int i            = _g++;
                    T1  __temp_expr1 = ((T1)(a.__set(i, ((T1)(((T1[])(this1))[i])))));
                }
            }

                        #line 211 "C:\\HaxeToolkit\\haxe\\std\\haxe\\ds\\Vector.hx"
            return(a);
        }
Esempio n. 31
0
        public virtual global::alphatab.rendering.staves.StaveGroup createEmptyStaveGroup()
        {
            unchecked
            {
                global::alphatab.rendering.staves.StaveGroup @group = new global::alphatab.rendering.staves.StaveGroup();
                @group.layout = this;
                {
                    int _g = 0;
                    global::haxe.root.Array <object> _g1 = this.renderer.settings.staves;
                    while ((_g < _g1.length))
                    {
                        global::alphatab.StaveSettings s = ((global::alphatab.StaveSettings)(_g1[_g]));
                        ++_g;
                        if (global::alphatab.Environment.staveFactories.exists(s.id))
                        {
                            @group.addStave(new global::alphatab.rendering.staves.Stave(((global::alphatab.rendering.BarRendererFactory)(((global::haxe.lang.Function)(global::alphatab.Environment.staveFactories.@get(s.id).@value)).__hx_invoke1_o(default(double), this)))));
                        }
                    }
                }

                return(@group);
            }
        }
Esempio n. 32
0
 public override void __hx_getFields(global::haxe.root.Array baseArr)
 {
                 #line 52 "D:\\project\\sangong\\sangong\\src\\openfl\\events\\Event.hx"
     baseArr.push("__preventDefault");
                 #line 52 "D:\\project\\sangong\\sangong\\src\\openfl\\events\\Event.hx"
     baseArr.push("__isCanceledNow");
                 #line 52 "D:\\project\\sangong\\sangong\\src\\openfl\\events\\Event.hx"
     baseArr.push("__isCanceled");
                 #line 52 "D:\\project\\sangong\\sangong\\src\\openfl\\events\\Event.hx"
     baseArr.push("type");
                 #line 52 "D:\\project\\sangong\\sangong\\src\\openfl\\events\\Event.hx"
     baseArr.push("target");
                 #line 52 "D:\\project\\sangong\\sangong\\src\\openfl\\events\\Event.hx"
     baseArr.push("eventPhase");
                 #line 52 "D:\\project\\sangong\\sangong\\src\\openfl\\events\\Event.hx"
     baseArr.push("currentTarget");
                 #line 52 "D:\\project\\sangong\\sangong\\src\\openfl\\events\\Event.hx"
     baseArr.push("cancelable");
                 #line 52 "D:\\project\\sangong\\sangong\\src\\openfl\\events\\Event.hx"
     baseArr.push("bubbles");
                 #line 52 "D:\\project\\sangong\\sangong\\src\\openfl\\events\\Event.hx"
     base.__hx_getFields(baseArr);
 }
Esempio n. 33
0
 public static global::haxe.root.Array fields(object o)
 {
                 #line 88 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Reflect.hx"
     global::haxe.lang.IHxObject ihx = ((global::haxe.lang.IHxObject)((o as global::haxe.lang.IHxObject)));
     if ((ihx != null))
     {
                         #line 90 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Reflect.hx"
         global::haxe.root.Array ret = new global::haxe.root.Array(new object[] {});
         ihx.__hx_getFields(ret);
                         #line 92 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Reflect.hx"
         return(ret);
     }
     else if ((o is global::System.Type))
     {
                         #line 94 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Reflect.hx"
         return(global::haxe.root.Type.getClassFields(((global::System.Type)(o))));
     }
     else
     {
                         #line 96 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Reflect.hx"
         return(global::haxe.root.Reflect.instanceFields(o.GetType()));
     }
 }
Esempio n. 34
0
        public static T[] fromArrayCopy <T>(global::haxe.root.Array array)
        {
                        #line 255 "C:\\HaxeToolkit\\haxe\\std\\haxe\\ds\\Vector.hx"
            T[] ret = new T[array.length];
                        #line 255 "C:\\HaxeToolkit\\haxe\\std\\haxe\\ds\\Vector.hx"
            {
                                #line 255 "C:\\HaxeToolkit\\haxe\\std\\haxe\\ds\\Vector.hx"
                int _g = 0;
                                #line 255 "C:\\HaxeToolkit\\haxe\\std\\haxe\\ds\\Vector.hx"
                int _g1 = array.length;
                                #line 255 "C:\\HaxeToolkit\\haxe\\std\\haxe\\ds\\Vector.hx"
                while ((_g < _g1))
                {
                                        #line 255 "C:\\HaxeToolkit\\haxe\\std\\haxe\\ds\\Vector.hx"
                    int i = _g++;
                                        #line 255 "C:\\HaxeToolkit\\haxe\\std\\haxe\\ds\\Vector.hx"
                    ret[i] = ((T)(array.__get(i)));
                }
            }

                        #line 255 "C:\\HaxeToolkit\\haxe\\std\\haxe\\ds\\Vector.hx"
            return((T[])(ret));
        }
Esempio n. 35
0
 public override void __hx_getFields(global::haxe.root.Array baseArr)
 {
                 #line 28 "D:\\project\\sangong\\sangong\\src\\gameRoom\\Player.hx"
     baseArr.push("roomInfo");
                 #line 28 "D:\\project\\sangong\\sangong\\src\\gameRoom\\Player.hx"
     baseArr.push("maxBiling");
                 #line 28 "D:\\project\\sangong\\sangong\\src\\gameRoom\\Player.hx"
     baseArr.push("_wasLeaving");
                 #line 28 "D:\\project\\sangong\\sangong\\src\\gameRoom\\Player.hx"
     baseArr.push("canBet");
                 #line 28 "D:\\project\\sangong\\sangong\\src\\gameRoom\\Player.hx"
     baseArr.push("canChangingStatus");
                 #line 28 "D:\\project\\sangong\\sangong\\src\\gameRoom\\Player.hx"
     baseArr.push("wasAddEventListener");
                 #line 28 "D:\\project\\sangong\\sangong\\src\\gameRoom\\Player.hx"
     baseArr.push("roomdID");
                 #line 28 "D:\\project\\sangong\\sangong\\src\\gameRoom\\Player.hx"
     baseArr.push("data");
                 #line 28 "D:\\project\\sangong\\sangong\\src\\gameRoom\\Player.hx"
     baseArr.push("id");
                 #line 28 "D:\\project\\sangong\\sangong\\src\\gameRoom\\Player.hx"
     base.__hx_getFields(baseArr);
 }
Esempio n. 36
0
        public static global::haxe.root.Array <T> allEnums <T>(global::System.Type e)
        {
            unchecked
            {
                global::haxe.root.Array <object> ctors = global::haxe.root.Type.getEnumConstructs(e);
                global::haxe.root.Array <T>      ret   = new global::haxe.root.Array <T>(new T[] {});
                {
                    int _g = 0;
                    while ((_g < ctors.length))
                    {
                        string ctor = global::haxe.lang.Runtime.toString(ctors[_g]);
                        ++_g;
                        T v = global::haxe.lang.Runtime.genericCast <T>(global::haxe.root.Reflect.field(e, ctor));
                        if (global::Std.@is(v, e))
                        {
                            ret.push(v);
                        }
                    }
                }

                return(ret);
            }
        }
Esempio n. 37
0
 public virtual void removeEvent()
 {
     unchecked {
                         #line 130 "D:\\project\\sangong\\sangong\\src\\client\\RoomCS.hx"
         global::haxe.Log.trace.__hx_invoke2_o(default(double), "\u5220\u9664\u623f\u95f4\u7a83\u542c\u5668", default(double), new global::haxe.lang.DynamicObject(new int[] { 302979532, 1547539107, 1648581351 }, new object[] { "removeEvent", "client.RoomCS", "src/client/RoomCS.hx" }, new int[] { 1981972957 }, new double[] { ((double)(130)) }));
         {
                                 #line 131 "D:\\project\\sangong\\sangong\\src\\client\\RoomCS.hx"
             int _g = 0;
                                 #line 131 "D:\\project\\sangong\\sangong\\src\\client\\RoomCS.hx"
             global::haxe.root.Array _g1 = this.events;
                                 #line 131 "D:\\project\\sangong\\sangong\\src\\client\\RoomCS.hx"
             while ((_g < _g1.length))
             {
                                         #line 131 "D:\\project\\sangong\\sangong\\src\\client\\RoomCS.hx"
                 string e = global::haxe.lang.Runtime.toString(_g1.__get(_g));
                                         #line 131 "D:\\project\\sangong\\sangong\\src\\client\\RoomCS.hx"
                 ++_g;
                 this.wd.removeEventListener(((string)(e)), ((global::haxe.lang.Function)(new global::haxe.lang.Closure(this, "transEvent", 529665746))), default(object));
             }
         }
     }
                 #line default
 }
Esempio n. 38
0
        public override int compare(object k1, object k2)
        {
                        #line 33 "C:\\HaxeToolkit\\haxe\\std\\haxe\\ds\\EnumValueMap.hx"
            int d = (global::haxe.root.Type.enumIndex(k1) - global::haxe.root.Type.enumIndex(k2));
            if ((d != 0))
            {
                                #line 35 "C:\\HaxeToolkit\\haxe\\std\\haxe\\ds\\EnumValueMap.hx"
                return(d);
            }

                        #line 36 "C:\\HaxeToolkit\\haxe\\std\\haxe\\ds\\EnumValueMap.hx"
            global::haxe.root.Array p1 = global::haxe.root.Type.enumParameters(k1);
            global::haxe.root.Array p2 = global::haxe.root.Type.enumParameters(k2);
                        #line 38 "C:\\HaxeToolkit\\haxe\\std\\haxe\\ds\\EnumValueMap.hx"
            if (((p1.length == 0) && (p2.length == 0)))
            {
                                #line 39 "C:\\HaxeToolkit\\haxe\\std\\haxe\\ds\\EnumValueMap.hx"
                return(0);
            }

                        #line 40 "C:\\HaxeToolkit\\haxe\\std\\haxe\\ds\\EnumValueMap.hx"
            return(this.compareArgs(p1, p2));
        }
Esempio n. 39
0
        public override object __hx_invokeField(string field, int hash, global::haxe.root.Array dynargs)
        {
            unchecked
            {
                switch (hash)
                {
                case 1028568990:
                {
                    return(global::haxe.lang.Runtime.slowCallField(this, field, dynargs));
                }


                case 102:
                {
                    return(this.f());
                }


                case 109:
                {
                    return(this.m());
                }


                case 112:
                {
                    return(this.p());
                }


                default:
                {
                    return(base.__hx_invokeField(field, hash, dynargs));
                }
                }
            }
        }
Esempio n. 40
0
        public override object __hx_invokeField(string field, int hash, global::haxe.root.Array dynargs)
        {
            unchecked
            {
                switch (hash)
                {
                case 295397041:
                {
                    return(this.GetHashCode());
                }


                case 1955029599:
                {
                    return(this.Equals(dynargs[0]));
                }


                case 946786476:
                {
                    return(this.toString());
                }


                case 589796196:
                {
                    return(this.getTag());
                }


                default:
                {
                    return(base.__hx_invokeField(field, hash, dynargs));
                }
                }
            }
        }
		public virtual   bool shouldCreateGlyph(global::alphatab.rendering.EffectBarRenderer renderer, global::alphatab.model.Beat beat)
		{
			unchecked 
			{
				this._lastCreateInfo = new global::haxe.root.Array<object>();
				{
					int _g = 0;
					global::haxe.root.Array<object> _g1 = beat.notes;
					while (( _g < _g1.length ))
					{
						global::alphatab.model.Note n = ((global::alphatab.model.Note) (_g1[_g]) );
						 ++ _g;
						if (this.shouldCreateGlyphForNote(renderer, n)) 
						{
							this._lastCreateInfo.push(n);
						}
						
					}
					
				}
				
				return ( this._lastCreateInfo.length > 0 );
			}
		}
Esempio n. 42
0
		public override   object __hx_setField(string field, int hash, object @value, bool handleProperties)
		{
			unchecked 
			{
				switch (hash)
				{
					case 188579043:
					{
						this.settings = ((global::alphatab.Settings) (@value) );
						return @value;
					}
					
					
					case 307761913:
					{
						this.renderingResources = ((global::alphatab.rendering.RenderingResources) (@value) );
						return @value;
					}
					
					
					case 1488498346:
					{
						this.layout = ((global::alphatab.rendering.layout.ScoreLayout) (@value) );
						return @value;
					}
					
					
					case 223048071:
					{
						this._currentLayoutMode = global::haxe.lang.Runtime.toString(@value);
						return @value;
					}
					
					
					case 371166859:
					{
						this.track = ((global::alphatab.model.Track) (@value) );
						return @value;
					}
					
					
					case 2027516754:
					{
						this.score = ((global::alphatab.model.Score) (@value) );
						return @value;
					}
					
					
					case 943871192:
					{
						this.canvas = ((global::alphatab.platform.ICanvas) (@value) );
						return @value;
					}
					
					
					case 1842287352:
					{
						this._renderFinishedListeners = ((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);
					}
					
				}
				
			}
		}
Esempio n. 43
0
		public static object handleCallField(string str, string f, global::haxe.root.Array args) {
			global::haxe.root.Array _args = new global::haxe.root.Array<object>(new object[]{str});
			if (( args == null )) {
				args = _args;
			}
			else {
				args = ((global::haxe.root.Array) (global::haxe.lang.Runtime.callField(_args, "concat", 1204816148, new global::haxe.root.Array<object>(new object[]{args}))) );
			}
			
			return global::haxe.lang.Runtime.slowCallField(typeof(global::haxe.lang.StringExt), f, args);
		}
Esempio n. 44
0
		public override   object __hx_setField(string field, int hash, object @value, bool handleProperties)
		{
			unchecked 
			{
				switch (hash)
				{
					case 1488498346:
					{
						this.layout = ((global::alphatab.rendering.layout.ScoreLayout) (@value) );
						return @value;
					}
					
					
					case 100490692:
					{
						this.staves = ((global::haxe.root.Array<object>) (global::haxe.root.Array<object>.__hx_cast<object>(((global::haxe.root.Array) (@value) ))) );
						return @value;
					}
					
					
					case 1091626816:
					{
						this.bars = ((global::haxe.root.Array<object>) (global::haxe.root.Array<object>.__hx_cast<object>(((global::haxe.root.Array) (@value) ))) );
						return @value;
					}
					
					
					case 1247983110:
					{
						this.width = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 1630252697:
					{
						this.isFull = ((bool) (@value) );
						return @value;
					}
					
					
					case 121:
					{
						this.y = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 120:
					{
						this.x = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 539976515:
					{
						this._lastStaveInAccolade = ((global::alphatab.rendering.staves.Stave) (@value) );
						return @value;
					}
					
					
					case 84315527:
					{
						this._firstStaveInAccolade = ((global::alphatab.rendering.staves.Stave) (@value) );
						return @value;
					}
					
					
					default:
					{
						return base.__hx_setField(field, hash, @value, handleProperties);
					}
					
				}
				
			}
		}
Esempio n. 45
0
		public virtual   void parseBeatProperties(global::haxe.root.Xml node, global::alphatab.model.Beat beat)
		{
			unchecked 
			{
				bool isWhammy = false;
				global::alphatab.model.BendPoint whammyOrigin = default(global::alphatab.model.BendPoint);
				global::haxe.lang.Null<int> whammyMiddleValue = default(global::haxe.lang.Null<int>);
				global::haxe.lang.Null<int> whammyMiddleOffset1 = default(global::haxe.lang.Null<int>);
				global::haxe.lang.Null<int> whammyMiddleOffset2 = default(global::haxe.lang.Null<int>);
				global::alphatab.model.BendPoint whammyDestination = default(global::alphatab.model.BendPoint);
				{
					object __temp_iterator435 = node.iterator();
					while (((bool) (global::haxe.lang.Runtime.callField(__temp_iterator435, "hasNext", 407283053, default(global::haxe.root.Array))) ))
					{
						global::haxe.root.Xml c = ((global::haxe.root.Xml) (global::haxe.lang.Runtime.callField(__temp_iterator435, "next", 1224901875, default(global::haxe.root.Array))) );
						if (( c.nodeType == global::haxe.root.Xml.Element )) 
						{
							string _g = c._get_nodeName();
							switch (_g)
							{
								case "Property":
								{
									string name = c.@get("name");
									switch (name)
									{
										case "Brush":
										{
											if (string.Equals(this.getValue(this.findChildElement(c, "Direction")), "Up")) 
											{
												beat.brushType = global::alphatab.model.BrushType.BrushUp;
											}
											 else 
											{
												beat.brushType = global::alphatab.model.BrushType.BrushDown;
											}
											
											break;
										}
										
										
										case "PickStroke":
										{
											if (string.Equals(this.getValue(this.findChildElement(c, "Direction")), "Up")) 
											{
												beat.pickStroke = global::alphatab.model.PickStrokeType.Up;
											}
											 else 
											{
												beat.pickStroke = global::alphatab.model.PickStrokeType.Down;
											}
											
											break;
										}
										
										
										case "Slapped":
										{
											if (( this.findChildElement(c, "Enable") != default(global::haxe.root.Xml) )) 
											{
												beat.slap = true;
											}
											
											break;
										}
										
										
										case "Popped":
										{
											if (( this.findChildElement(c, "Enable") != default(global::haxe.root.Xml) )) 
											{
												beat.pop = true;
											}
											
											break;
										}
										
										
										case "VibratoWTremBar":
										{
											string _g1 = this.getValue(this.findChildElement(c, "Strength"));
											switch (_g1)
											{
												case "Wide":
												{
													beat.vibrato = global::alphatab.model.VibratoType.Wide;
													break;
												}
												
												
												case "Slight":
												{
													beat.vibrato = global::alphatab.model.VibratoType.Slight;
													break;
												}
												
												
											}
											
											break;
										}
										
										
										case "WhammyBar":
										{
											isWhammy = true;
											break;
										}
										
										
										case "WhammyBarExtend":
										{
											{
											}
											
											break;
										}
										
										
										case "WhammyBarOriginValue":
										{
											if (( whammyOrigin == default(global::alphatab.model.BendPoint) )) 
											{
												whammyOrigin = new global::alphatab.model.BendPoint(((global::haxe.lang.Null<int>) (default(global::haxe.lang.Null<int>)) ), ((global::haxe.lang.Null<int>) (default(global::haxe.lang.Null<int>)) ));
											}
											
											{
												double x = ( global::Std.parseFloat(this.getValue(this.findChildElement(c, "Float"))) * 0.04 );
												whammyOrigin.@value = ((int) (x) );
											}
											
											break;
										}
										
										
										case "WhammyBarOriginOffset":
										{
											if (( whammyOrigin == default(global::alphatab.model.BendPoint) )) 
											{
												whammyOrigin = new global::alphatab.model.BendPoint(((global::haxe.lang.Null<int>) (default(global::haxe.lang.Null<int>)) ), ((global::haxe.lang.Null<int>) (default(global::haxe.lang.Null<int>)) ));
											}
											
											{
												double x1 = ( global::Std.parseFloat(this.getValue(this.findChildElement(c, "Float"))) * 0.6 );
												whammyOrigin.offset = ((int) (x1) );
											}
											
											break;
										}
										
										
										case "WhammyBarMiddleValue":
										{
											double x2 = ( global::Std.parseFloat(this.getValue(this.findChildElement(c, "Float"))) * 0.04 );
											whammyMiddleValue = new global::haxe.lang.Null<int>(new global::haxe.lang.Null<int>(((int) (x2) ), true).@value, true);
											break;
										}
										
										
										case "WhammyBarMiddleOffset1":
										{
											double x3 = ( global::Std.parseFloat(this.getValue(this.findChildElement(c, "Float"))) * 0.6 );
											whammyMiddleOffset1 = new global::haxe.lang.Null<int>(new global::haxe.lang.Null<int>(((int) (x3) ), true).@value, true);
											break;
										}
										
										
										case "WhammyBarMiddleOffset2":
										{
											double x4 = ( global::Std.parseFloat(this.getValue(this.findChildElement(c, "Float"))) * 0.6 );
											whammyMiddleOffset2 = new global::haxe.lang.Null<int>(new global::haxe.lang.Null<int>(((int) (x4) ), true).@value, true);
											break;
										}
										
										
										case "WhammyBarDestinationValue":
										{
											if (( whammyDestination == default(global::alphatab.model.BendPoint) )) 
											{
												whammyDestination = new global::alphatab.model.BendPoint(new global::haxe.lang.Null<int>(60, true), ((global::haxe.lang.Null<int>) (default(global::haxe.lang.Null<int>)) ));
											}
											
											{
												double x5 = ( global::Std.parseFloat(this.getValue(this.findChildElement(c, "Float"))) * 0.04 );
												whammyDestination.@value = ((int) (x5) );
											}
											
											break;
										}
										
										
										case "WhammyBarDestinationOffset":
										{
											if (( whammyDestination == default(global::alphatab.model.BendPoint) )) 
											{
												whammyDestination = new global::alphatab.model.BendPoint(((global::haxe.lang.Null<int>) (default(global::haxe.lang.Null<int>)) ), ((global::haxe.lang.Null<int>) (default(global::haxe.lang.Null<int>)) ));
											}
											
											{
												double x6 = ( global::Std.parseFloat(this.getValue(this.findChildElement(c, "Float"))) * 0.6 );
												whammyDestination.offset = ((int) (x6) );
											}
											
											break;
										}
										
										
									}
									
									break;
								}
								
								
							}
							
						}
						
					}
					
				}
				
				if (isWhammy) 
				{
					if (( whammyOrigin == default(global::alphatab.model.BendPoint) )) 
					{
						whammyOrigin = new global::alphatab.model.BendPoint(((global::haxe.lang.Null<int>) (default(global::haxe.lang.Null<int>)) ), ((global::haxe.lang.Null<int>) (default(global::haxe.lang.Null<int>)) ));
					}
					
					if (( whammyDestination == default(global::alphatab.model.BendPoint) )) 
					{
						whammyDestination = new global::alphatab.model.BendPoint(new global::haxe.lang.Null<int>(60, true), ((global::haxe.lang.Null<int>) (default(global::haxe.lang.Null<int>)) ));
					}
					
					global::haxe.root.Array<object> whammy = new global::haxe.root.Array<object>();
					whammy.push(whammyOrigin);
					if (( ( ! (global::haxe.lang.Runtime.eq((whammyMiddleOffset1).toDynamic(), (default(global::haxe.lang.Null<int>)).toDynamic())) ) && ( ! (global::haxe.lang.Runtime.eq((whammyMiddleValue).toDynamic(), (default(global::haxe.lang.Null<int>)).toDynamic())) ) )) 
					{
						whammy.push(new global::alphatab.model.BendPoint(((global::haxe.lang.Null<int>) (whammyMiddleOffset1) ), ((global::haxe.lang.Null<int>) (whammyMiddleValue) )));
					}
					
					if (( ( ! (global::haxe.lang.Runtime.eq((whammyMiddleOffset2).toDynamic(), (default(global::haxe.lang.Null<int>)).toDynamic())) ) && ( ! (global::haxe.lang.Runtime.eq((whammyMiddleValue).toDynamic(), (default(global::haxe.lang.Null<int>)).toDynamic())) ) )) 
					{
						whammy.push(new global::alphatab.model.BendPoint(((global::haxe.lang.Null<int>) (whammyMiddleOffset2) ), ((global::haxe.lang.Null<int>) (whammyMiddleValue) )));
					}
					
					if (( ( global::haxe.lang.Runtime.eq((whammyMiddleOffset1).toDynamic(), (default(global::haxe.lang.Null<int>)).toDynamic()) && global::haxe.lang.Runtime.eq((whammyMiddleOffset2).toDynamic(), (default(global::haxe.lang.Null<int>)).toDynamic()) ) && ( ! (global::haxe.lang.Runtime.eq((whammyMiddleValue).toDynamic(), (default(global::haxe.lang.Null<int>)).toDynamic())) ) )) 
					{
						whammy.push(new global::alphatab.model.BendPoint(new global::haxe.lang.Null<int>(30, true), ((global::haxe.lang.Null<int>) (whammyMiddleValue) )));
					}
					
					whammy.push(whammyDestination);
					beat.whammyBarPoints = whammy;
				}
				
			}
		}
Esempio n. 46
0
		public virtual   object iterator()
		{
			unchecked 
			{
				if (( this._children == default(global::haxe.root.Array<object>) )) 
				{
					throw global::haxe.lang.HaxeException.wrap("bad nodetype");
				}
				
				global::haxe.root.Array<int> cur = new global::haxe.root.Array<int>(new int[]{0});
				global::haxe.root.Array<object> x = new global::haxe.root.Array<object>(new object[]{this._children});
				{
					global::haxe.lang.Function __temp_odecl457 = new global::Xml_iterator_178__Fun(((global::haxe.root.Array<object>) (global::haxe.root.Array<object>.__hx_cast<object>(((global::haxe.root.Array) (x) ))) ), ((global::haxe.root.Array<int>) (global::haxe.root.Array<object>.__hx_cast<int>(((global::haxe.root.Array) (cur) ))) ));
					global::haxe.lang.Function __temp_odecl458 = new global::Xml_iterator_181__Fun(((global::haxe.root.Array<object>) (global::haxe.root.Array<object>.__hx_cast<object>(((global::haxe.root.Array) (x) ))) ), ((global::haxe.root.Array<int>) (global::haxe.root.Array<object>.__hx_cast<int>(((global::haxe.root.Array) (cur) ))) ));
					return new global::haxe.lang.DynamicObject(new global::haxe.root.Array<int>(new int[]{407283053, 1224901875}), new global::haxe.root.Array<object>(new object[]{__temp_odecl457, __temp_odecl458}), new global::haxe.root.Array<int>(new int[]{}), new global::haxe.root.Array<double>(new double[]{}));
				}
				
			}
		}
		public override   object __hx_setField(string field, int hash, object @value, bool handleProperties)
		{
			unchecked 
			{
				switch (hash)
				{
					case 1456144384:
					{
						this.voiceIndex = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 1015335773:
					{
						this.beatGlyphs = ((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);
					}
					
				}
				
			}
		}
Esempio n. 48
0
		public override   object __hx_setField(string field, int hash, object @value, bool handleProperties)
		{
			unchecked 
			{
				switch (hash)
				{
					case 483396326:
					{
						this._glyphs = ((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);
					}
					
				}
				
			}
		}
Esempio n. 49
0
		public virtual   void parseMasterTrackNode(global::haxe.root.Xml node)
		{
			unchecked 
			{
				{
					object __temp_iterator420 = node.iterator();
					while (((bool) (global::haxe.lang.Runtime.callField(__temp_iterator420, "hasNext", 407283053, default(global::haxe.root.Array))) ))
					{
						global::haxe.root.Xml c = ((global::haxe.root.Xml) (global::haxe.lang.Runtime.callField(__temp_iterator420, "next", 1224901875, default(global::haxe.root.Array))) );
						if (( c.nodeType == global::haxe.root.Xml.Element )) 
						{
							string _g = c._get_nodeName();
							switch (_g)
							{
								case "Automations":
								{
									this.parseAutomations(c);
									break;
								}
								
								
								case "Tracks":
								{
									this._tracksMapping = global::haxe.lang.StringExt.split(this.getValue(c), " ");
									break;
								}
								
								
							}
							
						}
						
					}
					
				}
				
			}
		}
Esempio n. 50
0
		public override   object __hx_setField(string field, int hash, object @value, bool handleProperties)
		{
			unchecked 
			{
				switch (hash)
				{
					case 792673520:
					{
						this.octave = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 1751303026:
					{
						this.dynamicValue = ((global::alphatab.model.DynamicValue) (@value) );
						return @value;
					}
					
					
					case 1091821942:
					{
						this.beat = ((global::alphatab.model.Beat) (@value) );
						return @value;
					}
					
					
					case 2132043430:
					{
						this.swapAccidentals = ((bool) (@value) );
						return @value;
					}
					
					
					case 949687761:
					{
						this.durationPercent = ((double) (global::haxe.lang.Runtime.toDouble(@value)) );
						return @value;
					}
					
					
					case 1428159260:
					{
						this.trillSpeed = ((global::alphatab.model.Duration) (@value) );
						return @value;
					}
					
					
					case 91153158:
					{
						this.trillValue = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 1618969487:
					{
						this.isFingering = ((bool) (@value) );
						return @value;
					}
					
					
					case 1806698356:
					{
						this.rightHandFinger = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 1286276959:
					{
						this.leftHandFinger = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 55629992:
					{
						this.isTieDestination = ((bool) (@value) );
						return @value;
					}
					
					
					case 1361216012:
					{
						this.isTieOrigin = ((bool) (@value) );
						return @value;
					}
					
					
					case 1923205974:
					{
						this.tieOrigin = ((global::alphatab.model.Note) (@value) );
						return @value;
					}
					
					
					case 253080294:
					{
						this.isStaccato = ((bool) (@value) );
						return @value;
					}
					
					
					case 1598475321:
					{
						this.vibrato = ((global::alphatab.model.VibratoType) (@value) );
						return @value;
					}
					
					
					case 59156322:
					{
						this.slideTarget = ((global::alphatab.model.Note) (@value) );
						return @value;
					}
					
					
					case 1293078667:
					{
						this.slideType = ((global::alphatab.model.SlideType) (@value) );
						return @value;
					}
					
					
					case 1607275438:
					{
						this.isDead = ((bool) (@value) );
						return @value;
					}
					
					
					case 1725549749:
					{
						this.isPalmMute = ((bool) (@value) );
						return @value;
					}
					
					
					case 1914101345:
					{
						this.isLetRing = ((bool) (@value) );
						return @value;
					}
					
					
					case 1528640775:
					{
						this.harmonicType = ((global::alphatab.model.HarmonicType) (@value) );
						return @value;
					}
					
					
					case 1969111172:
					{
						this.harmonicValue = ((double) (global::haxe.lang.Runtime.toDouble(@value)) );
						return @value;
					}
					
					
					case 1833015931:
					{
						this.isHammerPullOrigin = ((bool) (@value) );
						return @value;
					}
					
					
					case 152554969:
					{
						this.isHammerPullDestination = ((bool) (@value) );
						return @value;
					}
					
					
					case 1958899313:
					{
						this.hammerPullOrigin = ((global::alphatab.model.Note) (@value) );
						return @value;
					}
					
					
					case 288368849:
					{
						this.@string = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 803091205:
					{
						this.isGhost = ((bool) (@value) );
						return @value;
					}
					
					
					case 1136827579:
					{
						this.fret = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 1402094524:
					{
						this.bendPoints = ((global::haxe.root.Array<object>) (global::haxe.root.Array<object>.__hx_cast<object>(((global::haxe.root.Array) (@value) ))) );
						return @value;
					}
					
					
					case 860647805:
					{
						this.accentuated = ((global::alphatab.model.AccentuationType) (@value) );
						return @value;
					}
					
					
					default:
					{
						return base.__hx_setField(field, hash, @value, handleProperties);
					}
					
				}
				
			}
		}
Esempio n. 51
0
		public override   object __hx_setField(string field, int hash, object @value, bool handleProperties)
		{
			unchecked 
			{
				switch (hash)
				{
					case 1542788809:
					{
						this._parent = ((global::haxe.root.Xml) (@value) );
						return @value;
					}
					
					
					case 939528350:
					{
						this._children = ((global::haxe.root.Array<object>) (global::haxe.root.Array<object>.__hx_cast<object>(((global::haxe.root.Array) (@value) ))) );
						return @value;
					}
					
					
					case 1778087414:
					{
						this._attributes = ((global::haxe.ds.StringMap<object>) (global::haxe.ds.StringMap<object>.__hx_cast<object>(((global::haxe.ds.StringMap) (@value) ))) );
						return @value;
					}
					
					
					case 831576528:
					{
						this._nodeValue = global::haxe.lang.Runtime.toString(@value);
						return @value;
					}
					
					
					case 974309580:
					{
						this._nodeName = global::haxe.lang.Runtime.toString(@value);
						return @value;
					}
					
					
					case 1988514268:
					{
						this.nodeType = ((global::_Xml.RealXmlType) (@value) );
						return @value;
					}
					
					
					default:
					{
						return base.__hx_setField(field, hash, @value, handleProperties);
					}
					
				}
				
			}
		}
Esempio n. 52
0
		public override   object __hx_setField(string field, int hash, object @value, bool handleProperties)
		{
			unchecked 
			{
				switch (hash)
				{
					case 1648849563:
					{
						this._isFinished = ((bool) (@value) );
						return @value;
					}
					
					
					case 161606508:
					{
						this.tuplet = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 1456144384:
					{
						this.voiceIndex = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 810640957:
					{
						this.beats = ((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);
					}
					
				}
				
			}
		}
		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 1091821942:
					{
						this.beat = ((global::alphatab.model.Beat) (@value) );
						return @value;
					}
					
					
					case 108520940:
					{
						this.beatEffects = ((global::haxe.ds.StringMap<object>) (global::haxe.ds.StringMap<object>.__hx_cast<object>(((global::haxe.ds.StringMap) (@value) ))) );
						return @value;
					}
					
					
					case 186102306:
					{
						this.downLineX = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 1366752649:
					{
						this.upLineX = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 1464822705:
					{
						this.spacingChanged = ((global::haxe.lang.Function) (@value) );
						return @value;
					}
					
					
					case 1228566710:
					{
						this.maxNote = ((object) (@value) );
						return @value;
					}
					
					
					case 974358180:
					{
						this.minNote = ((object) (@value) );
						return @value;
					}
					
					
					case 1270934932:
					{
						this._tremoloPicking = ((global::alphatab.rendering.Glyph) (@value) );
						return @value;
					}
					
					
					case 1381203243:
					{
						this._noteLookup = ((global::haxe.ds.IntMap<object>) (global::haxe.ds.IntMap<object>.__hx_cast<object>(((global::haxe.ds.IntMap) (@value) ))) );
						return @value;
					}
					
					
					case 972910470:
					{
						this._infos = ((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);
					}
					
				}
				
			}
		}
Esempio n. 54
0
		public override   object __hx_setField(string field, int hash, object @value, bool handleProperties)
		{
			unchecked 
			{
				switch (hash)
				{
					case 1723548982:
					{
						this.isClosed = ((bool) (@value) );
						return @value;
					}
					
					
					case 134035422:
					{
						this.closings = ((global::haxe.root.Array<object>) (global::haxe.root.Array<object>.__hx_cast<object>(((global::haxe.root.Array) (@value) ))) );
						return @value;
					}
					
					
					case 2082335259:
					{
						this.openings = ((global::haxe.root.Array<object>) (global::haxe.root.Array<object>.__hx_cast<object>(((global::haxe.root.Array) (@value) ))) );
						return @value;
					}
					
					
					case 137661698:
					{
						this.masterBars = ((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);
					}
					
				}
				
			}
		}
Esempio n. 55
0
		public virtual   void parseNoteProperties(global::haxe.root.Xml node, global::alphatab.model.Note note, string noteId)
		{
			unchecked 
			{
				bool isBended = false;
				global::alphatab.model.BendPoint bendOrigin = default(global::alphatab.model.BendPoint);
				global::haxe.lang.Null<int> bendMiddleValue = default(global::haxe.lang.Null<int>);
				global::haxe.lang.Null<int> bendMiddleOffset1 = default(global::haxe.lang.Null<int>);
				global::haxe.lang.Null<int> bendMiddleOffset2 = default(global::haxe.lang.Null<int>);
				global::alphatab.model.BendPoint bendDestination = default(global::alphatab.model.BendPoint);
				{
					object __temp_iterator438 = node.iterator();
					while (((bool) (global::haxe.lang.Runtime.callField(__temp_iterator438, "hasNext", 407283053, default(global::haxe.root.Array))) ))
					{
						global::haxe.root.Xml c = ((global::haxe.root.Xml) (global::haxe.lang.Runtime.callField(__temp_iterator438, "next", 1224901875, default(global::haxe.root.Array))) );
						if (( c.nodeType == global::haxe.root.Xml.Element )) 
						{
							string _g = c._get_nodeName();
							switch (_g)
							{
								case "Property":
								{
									string name = c.@get("name");
									switch (name)
									{
										case "String":
										{
											note.@string = ( global::Std.parseInt(this.getValue(this.findChildElement(c, "String"))).@value + 1 );
											break;
										}
										
										
										case "Fret":
										{
											note.fret = global::Std.parseInt(this.getValue(this.findChildElement(c, "Fret"))).@value;
											break;
										}
										
										
										case "Tapped":
										{
											this._tappedNotes.@set(noteId, true);
											break;
										}
										
										
										case "HarmonicType":
										{
											global::haxe.root.Xml htype = this.findChildElement(c, "HType");
											if (( htype != default(global::haxe.root.Xml) )) 
											{
												string _g1 = this.getValue(htype);
												switch (_g1)
												{
													case "NoHarmonic":
													{
														note.harmonicType = global::alphatab.model.HarmonicType.None;
														break;
													}
													
													
													case "Natural":
													{
														note.harmonicType = global::alphatab.model.HarmonicType.Natural;
														break;
													}
													
													
													case "Artificial":
													{
														note.harmonicType = global::alphatab.model.HarmonicType.Artificial;
														break;
													}
													
													
													case "Pinch":
													{
														note.harmonicType = global::alphatab.model.HarmonicType.Pinch;
														break;
													}
													
													
													case "Tap":
													{
														note.harmonicType = global::alphatab.model.HarmonicType.Tap;
														break;
													}
													
													
													case "Semi":
													{
														note.harmonicType = global::alphatab.model.HarmonicType.Semi;
														break;
													}
													
													
													case "Feedback":
													{
														note.harmonicType = global::alphatab.model.HarmonicType.Feedback;
														break;
													}
													
													
												}
												
											}
											
											break;
										}
										
										
										case "HarmonicFret":
										{
											global::haxe.root.Xml hfret = this.findChildElement(c, "HFret");
											if (( hfret != default(global::haxe.root.Xml) )) 
											{
												note.harmonicValue = global::Std.parseFloat(this.getValue(hfret));
											}
											
											break;
										}
										
										
										case "PalmMuted":
										{
											if (( this.findChildElement(c, "Enable") != default(global::haxe.root.Xml) )) 
											{
												note.isPalmMute = true;
											}
											
											break;
										}
										
										
										case "Octave":
										{
											note.octave = global::Std.parseInt(this.getValue(this.findChildElement(c, "Number"))).@value;
											break;
										}
										
										
										case "Bended":
										{
											isBended = true;
											break;
										}
										
										
										case "BendOriginValue":
										{
											if (( bendOrigin == default(global::alphatab.model.BendPoint) )) 
											{
												bendOrigin = new global::alphatab.model.BendPoint(((global::haxe.lang.Null<int>) (default(global::haxe.lang.Null<int>)) ), ((global::haxe.lang.Null<int>) (default(global::haxe.lang.Null<int>)) ));
											}
											
											{
												double x = ( global::Std.parseFloat(this.getValue(this.findChildElement(c, "Float"))) * 0.04 );
												bendOrigin.@value = ((int) (x) );
											}
											
											break;
										}
										
										
										case "BendOriginOffset":
										{
											if (( bendOrigin == default(global::alphatab.model.BendPoint) )) 
											{
												bendOrigin = new global::alphatab.model.BendPoint(((global::haxe.lang.Null<int>) (default(global::haxe.lang.Null<int>)) ), ((global::haxe.lang.Null<int>) (default(global::haxe.lang.Null<int>)) ));
											}
											
											{
												double x1 = ( global::Std.parseFloat(this.getValue(this.findChildElement(c, "Float"))) * 0.6 );
												bendOrigin.offset = ((int) (x1) );
											}
											
											break;
										}
										
										
										case "BendMiddleValue":
										{
											double x2 = ( global::Std.parseFloat(this.getValue(this.findChildElement(c, "Float"))) * 0.04 );
											bendMiddleValue = new global::haxe.lang.Null<int>(new global::haxe.lang.Null<int>(((int) (x2) ), true).@value, true);
											break;
										}
										
										
										case "BendMiddleOffset1":
										{
											double x3 = ( global::Std.parseFloat(this.getValue(this.findChildElement(c, "Float"))) * 0.6 );
											bendMiddleOffset1 = new global::haxe.lang.Null<int>(new global::haxe.lang.Null<int>(((int) (x3) ), true).@value, true);
											break;
										}
										
										
										case "BendMiddleOffset2":
										{
											double x4 = ( global::Std.parseFloat(this.getValue(this.findChildElement(c, "Float"))) * 0.6 );
											bendMiddleOffset2 = new global::haxe.lang.Null<int>(new global::haxe.lang.Null<int>(((int) (x4) ), true).@value, true);
											break;
										}
										
										
										case "BendDestinationValue":
										{
											if (( bendDestination == default(global::alphatab.model.BendPoint) )) 
											{
												bendDestination = new global::alphatab.model.BendPoint(new global::haxe.lang.Null<int>(60, true), ((global::haxe.lang.Null<int>) (default(global::haxe.lang.Null<int>)) ));
											}
											
											{
												double x5 = ( global::Std.parseFloat(this.getValue(this.findChildElement(c, "Float"))) * 0.04 );
												bendDestination.@value = ((int) (x5) );
											}
											
											break;
										}
										
										
										case "BendDestinationOffset":
										{
											if (( bendDestination == default(global::alphatab.model.BendPoint) )) 
											{
												bendDestination = new global::alphatab.model.BendPoint(((global::haxe.lang.Null<int>) (default(global::haxe.lang.Null<int>)) ), ((global::haxe.lang.Null<int>) (default(global::haxe.lang.Null<int>)) ));
											}
											
											{
												double x6 = ( global::Std.parseFloat(this.getValue(this.findChildElement(c, "Float"))) * 0.6 );
												bendDestination.offset = ((int) (x6) );
											}
											
											break;
										}
										
										
										case "HopoOrigin":
										{
											if (( this.findChildElement(c, "Enable") != default(global::haxe.root.Xml) )) 
											{
												note.isHammerPullOrigin = true;
											}
											
											break;
										}
										
										
										case "HopoDestination":
										{
											{
											}
											
											break;
										}
										
										
										case "Slide":
										{
											global::haxe.lang.Null<int> slideFlags = global::Std.parseInt(this.getValue(this.findChildElement(c, "Flags")));
											if (( (( slideFlags.@value & 1 )) != 0 )) 
											{
												note.slideType = global::alphatab.model.SlideType.Shift;
											}
											
											if (( (( slideFlags.@value & 2 )) != 0 )) 
											{
												note.slideType = global::alphatab.model.SlideType.Legato;
											}
											
											if (( (( slideFlags.@value & 4 )) != 0 )) 
											{
												note.slideType = global::alphatab.model.SlideType.OutDown;
											}
											
											if (( (( slideFlags.@value & 8 )) != 0 )) 
											{
												note.slideType = global::alphatab.model.SlideType.OutUp;
											}
											
											if (( (( slideFlags.@value & 16 )) != 0 )) 
											{
												note.slideType = global::alphatab.model.SlideType.IntoFromBelow;
											}
											
											if (( (( slideFlags.@value & 32 )) != 0 )) 
											{
												note.slideType = global::alphatab.model.SlideType.IntoFromAbove;
											}
											
											break;
										}
										
										
									}
									
									break;
								}
								
								
							}
							
						}
						
					}
					
				}
				
				if (isBended) 
				{
					if (( bendOrigin == default(global::alphatab.model.BendPoint) )) 
					{
						bendOrigin = new global::alphatab.model.BendPoint(((global::haxe.lang.Null<int>) (default(global::haxe.lang.Null<int>)) ), ((global::haxe.lang.Null<int>) (default(global::haxe.lang.Null<int>)) ));
					}
					
					if (( bendDestination == default(global::alphatab.model.BendPoint) )) 
					{
						bendDestination = new global::alphatab.model.BendPoint(new global::haxe.lang.Null<int>(60, true), ((global::haxe.lang.Null<int>) (default(global::haxe.lang.Null<int>)) ));
					}
					
					global::haxe.root.Array<object> bend = new global::haxe.root.Array<object>();
					bend.push(bendOrigin);
					if (( ( ! (global::haxe.lang.Runtime.eq((bendMiddleOffset1).toDynamic(), (default(global::haxe.lang.Null<int>)).toDynamic())) ) && ( ! (global::haxe.lang.Runtime.eq((bendMiddleValue).toDynamic(), (default(global::haxe.lang.Null<int>)).toDynamic())) ) )) 
					{
						bend.push(new global::alphatab.model.BendPoint(((global::haxe.lang.Null<int>) (bendMiddleOffset1) ), ((global::haxe.lang.Null<int>) (bendMiddleValue) )));
					}
					
					if (( ( ! (global::haxe.lang.Runtime.eq((bendMiddleOffset2).toDynamic(), (default(global::haxe.lang.Null<int>)).toDynamic())) ) && ( ! (global::haxe.lang.Runtime.eq((bendMiddleValue).toDynamic(), (default(global::haxe.lang.Null<int>)).toDynamic())) ) )) 
					{
						bend.push(new global::alphatab.model.BendPoint(((global::haxe.lang.Null<int>) (bendMiddleOffset2) ), ((global::haxe.lang.Null<int>) (bendMiddleValue) )));
					}
					
					if (( ( global::haxe.lang.Runtime.eq((bendMiddleOffset1).toDynamic(), (default(global::haxe.lang.Null<int>)).toDynamic()) && global::haxe.lang.Runtime.eq((bendMiddleOffset2).toDynamic(), (default(global::haxe.lang.Null<int>)).toDynamic()) ) && ( ! (global::haxe.lang.Runtime.eq((bendMiddleValue).toDynamic(), (default(global::haxe.lang.Null<int>)).toDynamic())) ) )) 
					{
						bend.push(new global::alphatab.model.BendPoint(new global::haxe.lang.Null<int>(30, true), ((global::haxe.lang.Null<int>) (bendMiddleValue) )));
					}
					
					bend.push(bendDestination);
					note.bendPoints = bend;
				}
				
			}
		}
Esempio n. 56
0
		public override   object __hx_setField(string field, int hash, object @value, bool handleProperties)
		{
			unchecked 
			{
				switch (hash)
				{
					case 553915593:
					{
						this.isLastInAccolade = ((bool) (@value) );
						return @value;
					}
					
					
					case 504792271:
					{
						this.isFirstInAccolade = ((bool) (@value) );
						return @value;
					}
					
					
					case 1382488090:
					{
						this.staveBottom = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 1818949592:
					{
						this.bottomSpacing = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 2106138990:
					{
						this.topSpacing = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 105656838:
					{
						this.staveTop = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 1041537810:
					{
						this.index = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 38537191:
					{
						this.height = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 121:
					{
						this.y = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 120:
					{
						this.x = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 268153213:
					{
						this.barRenderers = ((global::haxe.root.Array<object>) (global::haxe.root.Array<object>.__hx_cast<object>(((global::haxe.root.Array) (@value) ))) );
						return @value;
					}
					
					
					case 1636857419:
					{
						this._factory = ((global::alphatab.rendering.BarRendererFactory) (@value) );
						return @value;
					}
					
					
					case 1560739056:
					{
						this.staveGroup = ((global::alphatab.rendering.staves.StaveGroup) (@value) );
						return @value;
					}
					
					
					default:
					{
						return base.__hx_setField(field, hash, @value, handleProperties);
					}
					
				}
				
			}
		}
		public override   object __hx_setField(string field, int hash, object @value, bool handleProperties)
		{
			unchecked 
			{
				switch (hash)
				{
					case 108520940:
					{
						this.beatEffects = ((global::haxe.ds.StringMap<object>) (global::haxe.ds.StringMap<object>.__hx_cast<object>(((global::haxe.ds.StringMap) (@value) ))) );
						return @value;
					}
					
					
					case 1091821942:
					{
						this.beat = ((global::alphatab.model.Beat) (@value) );
						return @value;
					}
					
					
					case 1881669935:
					{
						this._isGrace = ((bool) (@value) );
						return @value;
					}
					
					
					case 1942741029:
					{
						this._minNote = ((global::alphatab.model.Note) (@value) );
						return @value;
					}
					
					
					case 1381203243:
					{
						this._noteLookup = ((global::haxe.ds.IntMap<object>) (global::haxe.ds.IntMap<object>.__hx_cast<object>(((global::haxe.ds.IntMap) (@value) ))) );
						return @value;
					}
					
					
					case 464659330:
					{
						this._notes = ((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);
					}
					
				}
				
			}
		}
Esempio n. 58
0
		public override   object __hx_setField(string field, int hash, object @value, bool handleProperties)
		{
			unchecked 
			{
				switch (hash)
				{
					case 223988822:
					{
						this._tappedNotes = ((global::haxe.ds.StringMap<bool>) (global::haxe.ds.StringMap<object>.__hx_cast<bool>(((global::haxe.ds.StringMap) (@value) ))) );
						return @value;
					}
					
					
					case 2001890127:
					{
						this._notesOfBeat = ((global::haxe.ds.StringMap<object>) (global::haxe.ds.StringMap<object>.__hx_cast<object>(((global::haxe.ds.StringMap) (@value) ))) );
						return @value;
					}
					
					
					case 401348099:
					{
						this._noteById = ((global::haxe.ds.StringMap<object>) (global::haxe.ds.StringMap<object>.__hx_cast<object>(((global::haxe.ds.StringMap) (@value) ))) );
						return @value;
					}
					
					
					case 169770535:
					{
						this._rhythmById = ((global::haxe.ds.StringMap<object>) (global::haxe.ds.StringMap<object>.__hx_cast<object>(((global::haxe.ds.StringMap) (@value) ))) );
						return @value;
					}
					
					
					case 1408430471:
					{
						this._beatById = ((global::haxe.ds.StringMap<object>) (global::haxe.ds.StringMap<object>.__hx_cast<object>(((global::haxe.ds.StringMap) (@value) ))) );
						return @value;
					}
					
					
					case 1790892546:
					{
						this._rhythmOfBeat = ((global::haxe.ds.StringMap<object>) (global::haxe.ds.StringMap<object>.__hx_cast<object>(((global::haxe.ds.StringMap) (@value) ))) );
						return @value;
					}
					
					
					case 1952851773:
					{
						this._beatsOfVoice = ((global::haxe.ds.StringMap<object>) (global::haxe.ds.StringMap<object>.__hx_cast<object>(((global::haxe.ds.StringMap) (@value) ))) );
						return @value;
					}
					
					
					case 1524598821:
					{
						this._voiceById = ((global::haxe.ds.StringMap<object>) (global::haxe.ds.StringMap<object>.__hx_cast<object>(((global::haxe.ds.StringMap) (@value) ))) );
						return @value;
					}
					
					
					case 1940366524:
					{
						this._voicesOfBar = ((global::haxe.ds.StringMap<object>) (global::haxe.ds.StringMap<object>.__hx_cast<object>(((global::haxe.ds.StringMap) (@value) ))) );
						return @value;
					}
					
					
					case 1715971153:
					{
						this._barsById = ((global::haxe.ds.StringMap<object>) (global::haxe.ds.StringMap<object>.__hx_cast<object>(((global::haxe.ds.StringMap) (@value) ))) );
						return @value;
					}
					
					
					case 1395480923:
					{
						this._barsOfMasterBar = ((global::haxe.root.Array<object>) (global::haxe.root.Array<object>.__hx_cast<object>(((global::haxe.root.Array) (@value) ))) );
						return @value;
					}
					
					
					case 1522424353:
					{
						this._masterBars = ((global::haxe.root.Array<object>) (global::haxe.root.Array<object>.__hx_cast<object>(((global::haxe.root.Array) (@value) ))) );
						return @value;
					}
					
					
					case 1341358681:
					{
						this._tracksById = ((global::haxe.ds.StringMap<object>) (global::haxe.ds.StringMap<object>.__hx_cast<object>(((global::haxe.ds.StringMap) (@value) ))) );
						return @value;
					}
					
					
					case 1077438631:
					{
						this._tracksMapping = ((global::haxe.root.Array<object>) (global::haxe.root.Array<object>.__hx_cast<object>(((global::haxe.root.Array) (@value) ))) );
						return @value;
					}
					
					
					case 202704573:
					{
						this._automations = ((global::haxe.ds.StringMap<object>) (global::haxe.ds.StringMap<object>.__hx_cast<object>(((global::haxe.ds.StringMap) (@value) ))) );
						return @value;
					}
					
					
					case 2027516754:
					{
						this.score = ((global::alphatab.model.Score) (@value) );
						return @value;
					}
					
					
					default:
					{
						return base.__hx_setField(field, hash, @value, handleProperties);
					}
					
				}
				
			}
		}
		public override   object __hx_setField(string field, int hash, object @value, bool handleProperties)
		{
			unchecked 
			{
				switch (hash)
				{
					case 572707279:
					{
						this._biggestVoiceContainer = ((global::alphatab.rendering.glyphs.VoiceContainerGlyph) (@value) );
						return @value;
					}
					
					
					case 1420285052:
					{
						this._postBeatGlyphs = ((global::haxe.root.Array<object>) (global::haxe.root.Array<object>.__hx_cast<object>(((global::haxe.root.Array) (@value) ))) );
						return @value;
					}
					
					
					case 486630117:
					{
						this._voiceContainers = ((global::haxe.root.Array<object>) (global::haxe.root.Array<object>.__hx_cast<object>(((global::haxe.root.Array) (@value) ))) );
						return @value;
					}
					
					
					case 347982241:
					{
						this._preBeatGlyphs = ((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);
					}
					
				}
				
			}
		}
Esempio n. 60
0
		public virtual   void parseXml(string xml)
		{
			unchecked 
			{
				this._automations = new global::haxe.ds.StringMap<object>();
				this._tracksMapping = new global::haxe.root.Array<object>();
				this._tracksById = new global::haxe.ds.StringMap<object>();
				this._masterBars = new global::haxe.root.Array<object>();
				this._barsOfMasterBar = new global::haxe.root.Array<object>();
				this._voicesOfBar = new global::haxe.ds.StringMap<object>();
				this._barsById = new global::haxe.ds.StringMap<object>();
				this._voiceById = new global::haxe.ds.StringMap<object>();
				this._beatsOfVoice = new global::haxe.ds.StringMap<object>();
				this._beatById = new global::haxe.ds.StringMap<object>();
				this._rhythmOfBeat = new global::haxe.ds.StringMap<object>();
				this._rhythmById = new global::haxe.ds.StringMap<object>();
				this._notesOfBeat = new global::haxe.ds.StringMap<object>();
				this._noteById = new global::haxe.ds.StringMap<object>();
				this._tappedNotes = new global::haxe.ds.StringMap<bool>();
				global::haxe.root.Xml dom = global::haxe.root.Xml.parse(xml);
				this.parseDom(dom);
			}
		}