Beispiel #1
0
 public static int dynamicToVelocity(global::alphatab.model.DynamicValue dynamicValue)
 {
     unchecked
     {
         return(15 + (global::haxe.root.Type.enumIndex(dynamicValue) * 16));
     }
 }
        public override object __hx_setField(string field, int hash, object @value, bool handleProperties)
        {
            unchecked
            {
                switch (hash)
                {
                case 1684793203:
                {
                    this._dynamics = ((global::alphatab.model.DynamicValue)(@value));
                    return(@value);
                }


                default:
                {
                    return(base.__hx_setField(field, hash, @value, handleProperties));
                }
                }
            }
        }
Beispiel #3
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));
                }
                }
            }
        }
Beispiel #4
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);
					}
					
				}
				
			}
		}
        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;
                canvas.setColor(res.mainGlyphColor);
                global::haxe.root.Array <object> glyphs = default(global::haxe.root.Array <object>);
                {
                    global::alphatab.model.DynamicValue _g = this._dynamics;
                    switch (global::haxe.root.Type.enumIndex(_g))
                    {
                    case 0:
                    {
                        glyphs = new global::haxe.root.Array <object>(new object[] { this.p(), this.p(), this.p() });
                        break;
                    }


                    case 1:
                    {
                        glyphs = new global::haxe.root.Array <object>(new object[] { this.p(), this.p() });
                        break;
                    }


                    case 2:
                    {
                        glyphs = new global::haxe.root.Array <object>(new object[] { this.p() });
                        break;
                    }


                    case 3:
                    {
                        glyphs = new global::haxe.root.Array <object>(new object[] { this.m(), this.p() });
                        break;
                    }


                    case 4:
                    {
                        glyphs = new global::haxe.root.Array <object>(new object[] { this.m(), this.f() });
                        break;
                    }


                    case 5:
                    {
                        glyphs = new global::haxe.root.Array <object>(new object[] { this.f() });
                        break;
                    }


                    case 6:
                    {
                        glyphs = new global::haxe.root.Array <object>(new object[] { this.f(), this.f() });
                        break;
                    }


                    case 7:
                    {
                        glyphs = new global::haxe.root.Array <object>(new object[] { this.f(), this.f(), this.f() });
                        break;
                    }
                    }
                }

                int glyphWidth = 0;
                {
                    int _g1 = 0;
                    while ((_g1 < glyphs.length))
                    {
                        global::alphatab.rendering.Glyph g = ((global::alphatab.rendering.Glyph)(glyphs[_g1]));
                        ++_g1;
                        glyphWidth += g.width;
                    }
                }

                int startX = (((this.width - glyphWidth)) / 2);
                {
                    int _g2 = 0;
                    while ((_g2 < glyphs.length))
                    {
                        global::alphatab.rendering.Glyph g1 = ((global::alphatab.rendering.Glyph)(glyphs[_g2]));
                        ++_g2;
                        g1.x        = startX;
                        g1.y        = 0;
                        g1.renderer = this.renderer;
                        g1.paint((cx + this.x), (cy + this.y), canvas);
                        startX += g1.width;
                    }
                }
            }
        }
 public static void __hx_ctor_alphatab_rendering_glyphs_effects_DynamicsGlyph(global::alphatab.rendering.glyphs.effects.DynamicsGlyph __temp_me239, global::haxe.lang.Null <int> x, global::haxe.lang.Null <int> y, global::alphatab.model.DynamicValue dynamics)
 {
     unchecked
     {
         int __temp_y238 = ((global::haxe.lang.Runtime.eq((y).toDynamic(), (default(global::haxe.lang.Null <int>)).toDynamic())) ? (((int)(0))) : (y.@value));
         int __temp_x237 = ((global::haxe.lang.Runtime.eq((x).toDynamic(), (default(global::haxe.lang.Null <int>)).toDynamic())) ? (((int)(0))) : (x.@value));
         global::alphatab.rendering.Glyph.__hx_ctor_alphatab_rendering_Glyph(__temp_me239, new global::haxe.lang.Null <int>(__temp_x237, true), new global::haxe.lang.Null <int>(__temp_y238, true));
         __temp_me239._dynamics = dynamics;
     }
 }
 public DynamicsGlyph(global::haxe.lang.Null <int> x, global::haxe.lang.Null <int> y, global::alphatab.model.DynamicValue dynamics) : base(global::haxe.lang.EmptyObject.EMPTY)
 {
     unchecked
     {
         global::alphatab.rendering.glyphs.effects.DynamicsGlyph.__hx_ctor_alphatab_rendering_glyphs_effects_DynamicsGlyph(this, x, y, dynamics);
     }
 }
Beispiel #8
0
        public override object __hx_setField(string field, int hash, object @value, bool handleProperties)
        {
            unchecked
            {
                switch (hash)
                {
                case 1751303026:
                {
                    this.dynamicValue = ((global::alphatab.model.DynamicValue)(@value));
                    return(@value);
                }


                case 67859554:
                {
                    this.start = ((int)(global::haxe.lang.Runtime.toInt(@value)));
                    return(@value);
                }


                case 848728090:
                {
                    this.crescendo = ((global::alphatab.rendering.glyphs.CrescendoType)(@value));
                    return(@value);
                }


                case 706091227:
                {
                    this.tremoloSpeed = new global::haxe.lang.Null <global::alphatab.model.Duration>(global::haxe.lang.Null <object> .ofDynamic <global::alphatab.model.Duration>(@value).@value, true);
                    return(@value);
                }


                case 1801219961:
                {
                    this.pickStroke = ((global::alphatab.model.PickStrokeType)(@value));
                    return(@value);
                }


                case 233406162:
                {
                    this.graceType = ((global::alphatab.model.GraceType)(@value));
                    return(@value);
                }


                case 1594575703:
                {
                    this.chordId = global::haxe.lang.Runtime.toString(@value);
                    return(@value);
                }


                case 1598475321:
                {
                    this.vibrato = ((global::alphatab.model.VibratoType)(@value));
                    return(@value);
                }


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


                case 438479229:
                {
                    this.tupletNumerator = ((int)(global::haxe.lang.Runtime.toInt(@value)));
                    return(@value);
                }


                case 1310257562:
                {
                    this.tupletDenominator = ((int)(global::haxe.lang.Runtime.toInt(@value)));
                    return(@value);
                }


                case 1650208238:
                {
                    this.brushDuration = ((int)(global::haxe.lang.Runtime.toInt(@value)));
                    return(@value);
                }


                case 1321811028:
                {
                    this.brushType = ((global::alphatab.model.BrushType)(@value));
                    return(@value);
                }


                case 1291439277:
                {
                    this.text = global::haxe.lang.Runtime.toString(@value);
                    return(@value);
                }


                case 5790307:
                {
                    this.tap = ((bool)(@value));
                    return(@value);
                }


                case 1280692680:
                {
                    this.slap = ((bool)(@value));
                    return(@value);
                }


                case 650430015:
                {
                    this.hasRasgueado = ((bool)(@value));
                    return(@value);
                }


                case 5594513:
                {
                    this.pop = ((bool)(@value));
                    return(@value);
                }


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


                case 1688947841:
                {
                    this.fadeIn = ((bool)(@value));
                    return(@value);
                }


                case 1114502602:
                {
                    this.dots = ((int)(global::haxe.lang.Runtime.toInt(@value)));
                    return(@value);
                }


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


                case 207609411:
                {
                    this.isEmpty = ((bool)(@value));
                    return(@value);
                }


                case 344854356:
                {
                    this.duration = ((global::alphatab.model.Duration)(@value));
                    return(@value);
                }


                case 49465911:
                {
                    this._maxNote = ((global::alphatab.model.Note)(@value));
                    return(@value);
                }


                case 1942741029:
                {
                    this._minNote = ((global::alphatab.model.Note)(@value));
                    return(@value);
                }


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


                case 989275570:
                {
                    this.voice = ((global::alphatab.model.Voice)(@value));
                    return(@value);
                }


                case 1041537810:
                {
                    this.index = ((int)(global::haxe.lang.Runtime.toInt(@value)));
                    return(@value);
                }


                case 1826654217:
                {
                    this.nextBeat = ((global::alphatab.model.Beat)(@value));
                    return(@value);
                }


                case 1739960653:
                {
                    this.previousBeat = ((global::alphatab.model.Beat)(@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 1684793203:
					{
						this._dynamics = ((global::alphatab.model.DynamicValue) (@value) );
						return @value;
					}
					
					
					default:
					{
						return base.__hx_setField(field, hash, @value, handleProperties);
					}
					
				}
				
			}
		}
Beispiel #10
0
		public override   object __hx_setField(string field, int hash, object @value, bool handleProperties)
		{
			unchecked 
			{
				switch (hash)
				{
					case 1751303026:
					{
						this.dynamicValue = ((global::alphatab.model.DynamicValue) (@value) );
						return @value;
					}
					
					
					case 67859554:
					{
						this.start = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 848728090:
					{
						this.crescendo = ((global::alphatab.rendering.glyphs.CrescendoType) (@value) );
						return @value;
					}
					
					
					case 706091227:
					{
						this.tremoloSpeed = new global::haxe.lang.Null<global::alphatab.model.Duration>(global::haxe.lang.Null<object>.ofDynamic<global::alphatab.model.Duration>(@value).@value, true);
						return @value;
					}
					
					
					case 1801219961:
					{
						this.pickStroke = ((global::alphatab.model.PickStrokeType) (@value) );
						return @value;
					}
					
					
					case 233406162:
					{
						this.graceType = ((global::alphatab.model.GraceType) (@value) );
						return @value;
					}
					
					
					case 1594575703:
					{
						this.chordId = global::haxe.lang.Runtime.toString(@value);
						return @value;
					}
					
					
					case 1598475321:
					{
						this.vibrato = ((global::alphatab.model.VibratoType) (@value) );
						return @value;
					}
					
					
					case 1147430701:
					{
						this.whammyBarPoints = ((global::haxe.root.Array<object>) (global::haxe.root.Array<object>.__hx_cast<object>(((global::haxe.root.Array) (@value) ))) );
						return @value;
					}
					
					
					case 438479229:
					{
						this.tupletNumerator = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 1310257562:
					{
						this.tupletDenominator = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 1650208238:
					{
						this.brushDuration = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 1321811028:
					{
						this.brushType = ((global::alphatab.model.BrushType) (@value) );
						return @value;
					}
					
					
					case 1291439277:
					{
						this.text = global::haxe.lang.Runtime.toString(@value);
						return @value;
					}
					
					
					case 5790307:
					{
						this.tap = ((bool) (@value) );
						return @value;
					}
					
					
					case 1280692680:
					{
						this.slap = ((bool) (@value) );
						return @value;
					}
					
					
					case 650430015:
					{
						this.hasRasgueado = ((bool) (@value) );
						return @value;
					}
					
					
					case 5594513:
					{
						this.pop = ((bool) (@value) );
						return @value;
					}
					
					
					case 632389428:
					{
						this.lyrics = ((global::haxe.root.Array<object>) (global::haxe.root.Array<object>.__hx_cast<object>(((global::haxe.root.Array) (@value) ))) );
						return @value;
					}
					
					
					case 1688947841:
					{
						this.fadeIn = ((bool) (@value) );
						return @value;
					}
					
					
					case 1114502602:
					{
						this.dots = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 638277820:
					{
						this.automations = ((global::haxe.root.Array<object>) (global::haxe.root.Array<object>.__hx_cast<object>(((global::haxe.root.Array) (@value) ))) );
						return @value;
					}
					
					
					case 207609411:
					{
						this.isEmpty = ((bool) (@value) );
						return @value;
					}
					
					
					case 344854356:
					{
						this.duration = ((global::alphatab.model.Duration) (@value) );
						return @value;
					}
					
					
					case 49465911:
					{
						this._maxNote = ((global::alphatab.model.Note) (@value) );
						return @value;
					}
					
					
					case 1942741029:
					{
						this._minNote = ((global::alphatab.model.Note) (@value) );
						return @value;
					}
					
					
					case 533388353:
					{
						this.notes = ((global::haxe.root.Array<object>) (global::haxe.root.Array<object>.__hx_cast<object>(((global::haxe.root.Array) (@value) ))) );
						return @value;
					}
					
					
					case 989275570:
					{
						this.voice = ((global::alphatab.model.Voice) (@value) );
						return @value;
					}
					
					
					case 1041537810:
					{
						this.index = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 1826654217:
					{
						this.nextBeat = ((global::alphatab.model.Beat) (@value) );
						return @value;
					}
					
					
					case 1739960653:
					{
						this.previousBeat = ((global::alphatab.model.Beat) (@value) );
						return @value;
					}
					
					
					default:
					{
						return base.__hx_setField(field, hash, @value, handleProperties);
					}
					
				}
				
			}
		}