public static void __hx_ctor_alphatab_rendering_utils_TupletHelper(global::alphatab.rendering.utils.TupletHelper __temp_me272, int voice) { unchecked { __temp_me272.voiceIndex = voice; __temp_me272.beats = new global::haxe.root.Array <object>(); } }
public override object __hx_setField(string field, int hash, object @value, bool handleProperties) { unchecked { switch (hash) { case 1708501536: { this._startSpacing = ((bool) (@value) ); return @value; } case 544876244: { this._currentTupletHelper = ((global::alphatab.rendering.utils.TupletHelper) (@value) ); return @value; } case 430913175: { this._currentBeamHelper = ((global::alphatab.rendering.utils.BeamingHelper) (@value) ); return @value; } case 411825530: { this._tupletHelpers = ((global::haxe.root.Array<object>) (global::haxe.root.Array<object>.__hx_cast<object>(((global::haxe.root.Array) (@value) ))) ); return @value; } case 20078838: { this._beamHelperLookup = ((global::haxe.root.Array<object>) (global::haxe.root.Array<object>.__hx_cast<object>(((global::haxe.root.Array) (@value) ))) ); return @value; } case 1848890263: { this._beamHelpers = ((global::haxe.root.Array<object>) (global::haxe.root.Array<object>.__hx_cast<object>(((global::haxe.root.Array) (@value) ))) ); return @value; } case 662803912: { this.accidentalHelper = ((global::alphatab.rendering.utils.AccidentalHelper) (@value) ); return @value; } default: { return base.__hx_setField(field, hash, @value, handleProperties); } } } }
public virtual void createVoiceGlyphs(global::alphatab.model.Voice v) { unchecked { this._currentBeamHelper = default(global::alphatab.rendering.utils.BeamingHelper); this._beamHelpers.push(new global::haxe.root.Array<object>()); this._beamHelperLookup.push(new global::haxe.ds.IntMap<object>()); this._tupletHelpers.push(new global::haxe.root.Array<object>()); { int _g = 0; global::haxe.root.Array<object> _g1 = v.beats; while (( _g < _g1.length )) { global::alphatab.model.Beat b = ((global::alphatab.model.Beat) (_g1[_g]) ); ++ _g; bool newBeamingHelper = false; if ( ! (b.isRest()) ) { if (( ( this._currentBeamHelper == default(global::alphatab.rendering.utils.BeamingHelper) ) || ! (this._currentBeamHelper.checkBeat(b)) )) { this._currentBeamHelper = new global::alphatab.rendering.utils.BeamingHelper(((global::alphatab.model.Track) (this._bar.track) )); this._currentBeamHelper.checkBeat(b); ((global::haxe.root.Array<object>) (global::haxe.root.Array<object>.__hx_cast<object>(((global::haxe.root.Array) (this._beamHelpers[v.index]) ))) ).push(this._currentBeamHelper); newBeamingHelper = true; } } if (( ! ((( ( b.tupletDenominator == -1 ) && ( b.tupletNumerator == -1 ) ))) && ! ((( ( b.tupletDenominator == 1 ) && ( b.tupletNumerator == 1 ) ))) )) { global::alphatab.model.Beat previousBeat = b.previousBeat; if (( ( previousBeat != default(global::alphatab.model.Beat) ) && ( previousBeat.voice != b.voice ) )) { previousBeat = default(global::alphatab.model.Beat); } if (( newBeamingHelper && ( this._currentTupletHelper != default(global::alphatab.rendering.utils.TupletHelper) ) )) { this._currentTupletHelper.finish(); } if (( ( ( previousBeat == default(global::alphatab.model.Beat) ) || ( this._currentTupletHelper == default(global::alphatab.rendering.utils.TupletHelper) ) ) || ! (this._currentTupletHelper.check(b)) )) { this._currentTupletHelper = new global::alphatab.rendering.utils.TupletHelper(((int) (v.index) )); this._currentTupletHelper.check(b); ((global::haxe.root.Array<object>) (global::haxe.root.Array<object>.__hx_cast<object>(((global::haxe.root.Array) (this._tupletHelpers[v.index]) ))) ).push(this._currentTupletHelper); } } global::alphatab.rendering.glyphs.ScoreBeatContainerGlyph container = new global::alphatab.rendering.glyphs.ScoreBeatContainerGlyph(((global::alphatab.model.Beat) (b) )); container.preNotes = new global::alphatab.rendering.glyphs.ScoreBeatPreNotesGlyph(); container.onNotes = new global::alphatab.rendering.glyphs.ScoreBeatGlyph(); (((global::alphatab.rendering.glyphs.ScoreBeatGlyph) (container.onNotes) )).beamingHelper = this._currentBeamHelper; container.postNotes = new global::alphatab.rendering.glyphs.ScoreBeatPostNotesGlyph(); ((global::haxe.ds.IntMap<object>) (global::haxe.ds.IntMap<object>.__hx_cast<object>(((global::haxe.ds.IntMap) (this._beamHelperLookup[v.index]) ))) ).@set(b.index, this._currentBeamHelper); this.addBeatGlyph(container); } } this._currentBeamHelper = default(global::alphatab.rendering.utils.BeamingHelper); } }