예제 #1
0
		public override   object __hx_setField(string field, int hash, object @value, bool handleProperties)
		{
			unchecked 
			{
				switch (hash)
				{
					case 67859554:
					{
						this.start = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 2027516754:
					{
						this.score = ((global::alphatab.model.Score) (@value) );
						return @value;
					}
					
					
					case 726713937:
					{
						this.volumeAutomation = ((global::alphatab.model.Automation) (@value) );
						return @value;
					}
					
					
					case 288700050:
					{
						this.tempoAutomation = ((global::alphatab.model.Automation) (@value) );
						return @value;
					}
					
					
					case 1574438373:
					{
						this.section = ((global::alphatab.model.Section) (@value) );
						return @value;
					}
					
					
					case 1999551132:
					{
						this.tripletFeel = ((global::alphatab.model.TripletFeel) (@value) );
						return @value;
					}
					
					
					case 1324324830:
					{
						this.timeSignatureNumerator = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 46594619:
					{
						this.timeSignatureDenominator = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 1796997604:
					{
						this.repeatGroup = ((global::alphatab.model.RepeatGroup) (@value) );
						return @value;
					}
					
					
					case 462066548:
					{
						this.repeatCount = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 1582764861:
					{
						this.isRepeatStart = ((bool) (@value) );
						return @value;
					}
					
					
					case 875656696:
					{
						this.isDoubleBar = ((bool) (@value) );
						return @value;
					}
					
					
					case 1832144217:
					{
						this.keySignature = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 1041537810:
					{
						this.index = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 127983386:
					{
						this.previousMasterBar = ((global::alphatab.model.MasterBar) (@value) );
						return @value;
					}
					
					
					case 344334046:
					{
						this.nextMasterBar = ((global::alphatab.model.MasterBar) (@value) );
						return @value;
					}
					
					
					case 1116545170:
					{
						this.alternateEndings = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					default:
					{
						return base.__hx_setField(field, hash, @value, handleProperties);
					}
					
				}
				
			}
		}
예제 #2
0
		public override   global::alphatab.model.Score readScore()
		{
			unchecked 
			{
				this.readVersion();
				this._score = new global::alphatab.model.Score();
				this.readScoreInformation();
				if (( this._versionNumber < 500 )) 
				{
					if (( this._data.readByte() != 0 )) 
					{
						this._globalTripletFeel = global::alphatab.model.TripletFeel.Triplet8th;
					}
					 else 
					{
						this._globalTripletFeel = global::alphatab.model.TripletFeel.NoTripletFeel;
					}
					
				}
				
				if (( this._versionNumber >= 400 )) 
				{
					this.readLyrics();
				}
				
				if (( this._versionNumber >= 510 )) 
				{
					this._data.read(19);
				}
				
				if (( this._versionNumber >= 500 )) 
				{
					this.readPageSetup();
					this._score.tempoLabel = this.readStringIntByte();
				}
				
				this._score.tempo = this.readInt32();
				if (( this._versionNumber >= 510 )) 
				{
					bool __temp_expr501 = ( this._data.readByte() != 0 );
				}
				
				this._keySignature = this.readInt32();
				if (( this._versionNumber >= 400 )) 
				{
					this._octave = this._data.readByte();
				}
				
				this.readPlaybackInfos();
				if (( this._versionNumber >= 500 )) 
				{
					this._data.read(38);
					this._data.read(4);
				}
				
				this._barCount = this.readInt32();
				this._trackCount = this.readInt32();
				this.readMasterBars();
				this.readTracks();
				this.readBars();
				this.finish(this._score);
				return this._score;
			}
		}
예제 #3
0
        public override object __hx_setField(string field, int hash, object @value, bool handleProperties)
        {
            unchecked
            {
                switch (hash)
                {
                case 67859554:
                {
                    this.start = ((int)(global::haxe.lang.Runtime.toInt(@value)));
                    return(@value);
                }


                case 2027516754:
                {
                    this.score = ((global::alphatab.model.Score)(@value));
                    return(@value);
                }


                case 726713937:
                {
                    this.volumeAutomation = ((global::alphatab.model.Automation)(@value));
                    return(@value);
                }


                case 288700050:
                {
                    this.tempoAutomation = ((global::alphatab.model.Automation)(@value));
                    return(@value);
                }


                case 1574438373:
                {
                    this.section = ((global::alphatab.model.Section)(@value));
                    return(@value);
                }


                case 1999551132:
                {
                    this.tripletFeel = ((global::alphatab.model.TripletFeel)(@value));
                    return(@value);
                }


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


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


                case 1796997604:
                {
                    this.repeatGroup = ((global::alphatab.model.RepeatGroup)(@value));
                    return(@value);
                }


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


                case 1582764861:
                {
                    this.isRepeatStart = ((bool)(@value));
                    return(@value);
                }


                case 875656696:
                {
                    this.isDoubleBar = ((bool)(@value));
                    return(@value);
                }


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


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


                case 127983386:
                {
                    this.previousMasterBar = ((global::alphatab.model.MasterBar)(@value));
                    return(@value);
                }


                case 344334046:
                {
                    this.nextMasterBar = ((global::alphatab.model.MasterBar)(@value));
                    return(@value);
                }


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


                default:
                {
                    return(base.__hx_setField(field, hash, @value, handleProperties));
                }
                }
            }
        }
예제 #4
0
		public override   object __hx_setField(string field, int hash, object @value, bool handleProperties)
		{
			unchecked 
			{
				switch (hash)
				{
					case 1368126571:
					{
						this._playbackInfos = ((global::haxe.root.Array<object>) (global::haxe.root.Array<object>.__hx_cast<object>(((global::haxe.root.Array) (@value) ))) );
						return @value;
					}
					
					
					case 1249074019:
					{
						this._trackCount = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 1623686491:
					{
						this._barCount = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 1164415160:
					{
						this._lyricsTrack = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 338202835:
					{
						this._lyrics = ((global::haxe.root.Array<object>) (global::haxe.root.Array<object>.__hx_cast<object>(((global::haxe.root.Array) (@value) ))) );
						return @value;
					}
					
					
					case 1834786111:
					{
						this._lyricsIndex = ((global::haxe.root.Array<int>) (global::haxe.root.Array<object>.__hx_cast<int>(((global::haxe.root.Array) (@value) ))) );
						return @value;
					}
					
					
					case 822594234:
					{
						this._globalTripletFeel = ((global::alphatab.model.TripletFeel) (@value) );
						return @value;
					}
					
					
					case 498486927:
					{
						this._octave = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 1336074296:
					{
						this._keySignature = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 158873116:
					{
						this._tempo = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 1958787731:
					{
						this._score = ((global::alphatab.model.Score) (@value) );
						return @value;
					}
					
					
					case 540881986:
					{
						this._versionNumber = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					default:
					{
						return base.__hx_setField(field, hash, @value, handleProperties);
					}
					
				}
				
			}
		}