コード例 #1
0
        public virtual global::alphatab.rendering.glyphs.LazySvg getSvg(global::alphatab.model.AccentuationType accentuation)
        {
            unchecked
            {
                switch (global::haxe.root.Type.enumIndex(accentuation))
                {
                case 1:
                {
                    return(global::alphatab.rendering.glyphs.MusicFont.Accentuation);
                }


                case 2:
                {
                    return(global::alphatab.rendering.glyphs.MusicFont.HeavyAccentuation);
                }


                default:
                {
                    return(default(global::alphatab.rendering.glyphs.LazySvg));
                }
                }
            }
        }
コード例 #2
0
ファイル: Note.cs プロジェクト: mulhaus1/RSTabExplorer
        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));
                }
                }
            }
        }
コード例 #3
0
ファイル: Note.cs プロジェクト: joshbuhler/RSTabExplorer
		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);
					}
					
				}
				
			}
		}
コード例 #4
0
 public static void __hx_ctor_alphatab_rendering_glyphs_AccentuationGlyph(global::alphatab.rendering.glyphs.AccentuationGlyph __temp_me112, global::haxe.lang.Null <int> x, global::haxe.lang.Null <int> y, global::alphatab.model.AccentuationType accentuation)
 {
     unchecked
     {
         int __temp_y111 = ((global::haxe.lang.Runtime.eq((y).toDynamic(), (default(global::haxe.lang.Null <int>)).toDynamic())) ? (((int)(0))) : (y.@value));
         int __temp_x110 = ((global::haxe.lang.Runtime.eq((x).toDynamic(), (default(global::haxe.lang.Null <int>)).toDynamic())) ? (((int)(0))) : (x.@value));
         global::alphatab.rendering.glyphs.SvgGlyph.__hx_ctor_alphatab_rendering_glyphs_SvgGlyph(__temp_me112, new global::haxe.lang.Null <int>(__temp_x110, true), new global::haxe.lang.Null <int>(__temp_y111, true), __temp_me112.getSvg(accentuation), ((double)(1)), ((double)(1)));
     }
 }
コード例 #5
0
 public AccentuationGlyph(global::haxe.lang.Null <int> x, global::haxe.lang.Null <int> y, global::alphatab.model.AccentuationType accentuation) : base(global::haxe.lang.EmptyObject.EMPTY)
 {
     unchecked
     {
         global::alphatab.rendering.glyphs.AccentuationGlyph.__hx_ctor_alphatab_rendering_glyphs_AccentuationGlyph(this, x, y, accentuation);
     }
 }