@coderline/alphatab-language-server 1.7.0-alpha.1626 → 1.7.0-alpha.1627

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (668) hide show
  1. package/dist/server.min.mjs +1 -1
  2. package/dist/server.mjs +1 -1
  3. package/package.json +10 -3
  4. package/biome.jsonc +0 -31
  5. package/dist/types/alphatab/src/AlphaTabApiBase.d.ts +0 -2550
  6. package/dist/types/alphatab/src/AlphaTabError.d.ts +0 -15
  7. package/dist/types/alphatab/src/CoreSettings.d.ts +0 -212
  8. package/dist/types/alphatab/src/DisplaySettings.d.ts +0 -340
  9. package/dist/types/alphatab/src/EngravingSettings.d.ts +0 -430
  10. package/dist/types/alphatab/src/Environment.d.ts +0 -230
  11. package/dist/types/alphatab/src/EventEmitter.d.ts +0 -62
  12. package/dist/types/alphatab/src/ExporterSettings.d.ts +0 -23
  13. package/dist/types/alphatab/src/FileLoadError.d.ts +0 -9
  14. package/dist/types/alphatab/src/FormatError.d.ts +0 -8
  15. package/dist/types/alphatab/src/ImporterSettings.d.ts +0 -64
  16. package/dist/types/alphatab/src/LayoutMode.d.ts +0 -14
  17. package/dist/types/alphatab/src/LogLevel.d.ts +0 -27
  18. package/dist/types/alphatab/src/Logger.d.ts +0 -33
  19. package/dist/types/alphatab/src/NotationSettings.d.ts +0 -509
  20. package/dist/types/alphatab/src/PlayerSettings.d.ts +0 -411
  21. package/dist/types/alphatab/src/ProgressEventArgs.d.ts +0 -20
  22. package/dist/types/alphatab/src/RenderingResources.d.ts +0 -175
  23. package/dist/types/alphatab/src/ResizeEventArgs.d.ts +0 -19
  24. package/dist/types/alphatab/src/Settings.d.ts +0 -59
  25. package/dist/types/alphatab/src/SmuflMetadata.d.ts +0 -84
  26. package/dist/types/alphatab/src/StaveProfile.d.ts +0 -27
  27. package/dist/types/alphatab/src/alphaTab.core.d.ts +0 -36
  28. package/dist/types/alphatab/src/alphaTab.main.d.ts +0 -1
  29. package/dist/types/alphatab/src/alphaTab.polyfills.d.ts +0 -1
  30. package/dist/types/alphatab/src/exporter/AlphaTexExporter.d.ts +0 -24
  31. package/dist/types/alphatab/src/exporter/Gp7Exporter.d.ts +0 -10
  32. package/dist/types/alphatab/src/exporter/GpifWriter.d.ts +0 -61
  33. package/dist/types/alphatab/src/exporter/ScoreExporter.d.ts +0 -29
  34. package/dist/types/alphatab/src/exporter/_barrel.d.ts +0 -3
  35. package/dist/types/alphatab/src/generated/CoreSettingsJson.d.ts +0 -172
  36. package/dist/types/alphatab/src/generated/CoreSettingsSerializer.d.ts +0 -9
  37. package/dist/types/alphatab/src/generated/DisplaySettingsJson.d.ts +0 -328
  38. package/dist/types/alphatab/src/generated/DisplaySettingsSerializer.d.ts +0 -9
  39. package/dist/types/alphatab/src/generated/EngravingSettingsCloner.d.ts +0 -7
  40. package/dist/types/alphatab/src/generated/EngravingSettingsJson.d.ts +0 -388
  41. package/dist/types/alphatab/src/generated/EngravingSettingsSerializer.d.ts +0 -9
  42. package/dist/types/alphatab/src/generated/EngravingStemInfoJson.d.ts +0 -20
  43. package/dist/types/alphatab/src/generated/EngravingStemInfoSerializer.d.ts +0 -9
  44. package/dist/types/alphatab/src/generated/ExporterSettingsJson.d.ts +0 -24
  45. package/dist/types/alphatab/src/generated/ExporterSettingsSerializer.d.ts +0 -9
  46. package/dist/types/alphatab/src/generated/ImporterSettingsJson.d.ts +0 -65
  47. package/dist/types/alphatab/src/generated/ImporterSettingsSerializer.d.ts +0 -9
  48. package/dist/types/alphatab/src/generated/NotationSettingsJson.d.ts +0 -210
  49. package/dist/types/alphatab/src/generated/NotationSettingsSerializer.d.ts +0 -9
  50. package/dist/types/alphatab/src/generated/PlayerSettingsJson.d.ts +0 -276
  51. package/dist/types/alphatab/src/generated/PlayerSettingsSerializer.d.ts +0 -9
  52. package/dist/types/alphatab/src/generated/RenderingResourcesJson.d.ts +0 -168
  53. package/dist/types/alphatab/src/generated/RenderingResourcesSerializer.d.ts +0 -9
  54. package/dist/types/alphatab/src/generated/SettingsJson.d.ts +0 -48
  55. package/dist/types/alphatab/src/generated/SettingsSerializer.d.ts +0 -9
  56. package/dist/types/alphatab/src/generated/SlidePlaybackSettingsJson.d.ts +0 -31
  57. package/dist/types/alphatab/src/generated/SlidePlaybackSettingsSerializer.d.ts +0 -9
  58. package/dist/types/alphatab/src/generated/VersionInfo.d.ts +0 -9
  59. package/dist/types/alphatab/src/generated/VibratoPlaybackSettingsJson.d.ts +0 -49
  60. package/dist/types/alphatab/src/generated/VibratoPlaybackSettingsSerializer.d.ts +0 -9
  61. package/dist/types/alphatab/src/generated/_jsonbarrel.d.ts +0 -14
  62. package/dist/types/alphatab/src/generated/model/AutomationCloner.d.ts +0 -7
  63. package/dist/types/alphatab/src/generated/model/AutomationSerializer.d.ts +0 -9
  64. package/dist/types/alphatab/src/generated/model/BackingTrackSerializer.d.ts +0 -9
  65. package/dist/types/alphatab/src/generated/model/BarSerializer.d.ts +0 -9
  66. package/dist/types/alphatab/src/generated/model/BarStyleSerializer.d.ts +0 -9
  67. package/dist/types/alphatab/src/generated/model/BeatCloner.d.ts +0 -7
  68. package/dist/types/alphatab/src/generated/model/BeatSerializer.d.ts +0 -9
  69. package/dist/types/alphatab/src/generated/model/BeatStyleSerializer.d.ts +0 -9
  70. package/dist/types/alphatab/src/generated/model/BendPointCloner.d.ts +0 -7
  71. package/dist/types/alphatab/src/generated/model/BendPointSerializer.d.ts +0 -9
  72. package/dist/types/alphatab/src/generated/model/ChordSerializer.d.ts +0 -9
  73. package/dist/types/alphatab/src/generated/model/FermataSerializer.d.ts +0 -9
  74. package/dist/types/alphatab/src/generated/model/HeaderFooterStyleSerializer.d.ts +0 -9
  75. package/dist/types/alphatab/src/generated/model/InstrumentArticulationSerializer.d.ts +0 -9
  76. package/dist/types/alphatab/src/generated/model/MasterBarSerializer.d.ts +0 -9
  77. package/dist/types/alphatab/src/generated/model/NoteCloner.d.ts +0 -7
  78. package/dist/types/alphatab/src/generated/model/NoteSerializer.d.ts +0 -9
  79. package/dist/types/alphatab/src/generated/model/NoteStyleSerializer.d.ts +0 -9
  80. package/dist/types/alphatab/src/generated/model/PlaybackInformationSerializer.d.ts +0 -9
  81. package/dist/types/alphatab/src/generated/model/RenderStylesheetSerializer.d.ts +0 -9
  82. package/dist/types/alphatab/src/generated/model/ScoreSerializer.d.ts +0 -9
  83. package/dist/types/alphatab/src/generated/model/ScoreStyleSerializer.d.ts +0 -9
  84. package/dist/types/alphatab/src/generated/model/SectionSerializer.d.ts +0 -9
  85. package/dist/types/alphatab/src/generated/model/StaffSerializer.d.ts +0 -9
  86. package/dist/types/alphatab/src/generated/model/SustainPedalMarkerSerializer.d.ts +0 -9
  87. package/dist/types/alphatab/src/generated/model/SyncPointDataCloner.d.ts +0 -7
  88. package/dist/types/alphatab/src/generated/model/SyncPointDataSerializer.d.ts +0 -9
  89. package/dist/types/alphatab/src/generated/model/TrackSerializer.d.ts +0 -9
  90. package/dist/types/alphatab/src/generated/model/TrackStyleSerializer.d.ts +0 -9
  91. package/dist/types/alphatab/src/generated/model/TuningSerializer.d.ts +0 -9
  92. package/dist/types/alphatab/src/generated/model/VoiceSerializer.d.ts +0 -9
  93. package/dist/types/alphatab/src/generated/model/VoiceStyleSerializer.d.ts +0 -9
  94. package/dist/types/alphatab/src/importer/AlphaTexImporter.d.ts +0 -69
  95. package/dist/types/alphatab/src/importer/BinaryStylesheet.d.ts +0 -70
  96. package/dist/types/alphatab/src/importer/CapellaImporter.d.ts +0 -10
  97. package/dist/types/alphatab/src/importer/CapellaParser.d.ts +0 -75
  98. package/dist/types/alphatab/src/importer/Gp3To5Importer.d.ts +0 -95
  99. package/dist/types/alphatab/src/importer/Gp7To8Importer.d.ts +0 -10
  100. package/dist/types/alphatab/src/importer/GpifParser.d.ts +0 -131
  101. package/dist/types/alphatab/src/importer/GpxFileSystem.d.ts +0 -82
  102. package/dist/types/alphatab/src/importer/GpxImporter.d.ts +0 -10
  103. package/dist/types/alphatab/src/importer/LayoutConfiguration.d.ts +0 -38
  104. package/dist/types/alphatab/src/importer/MusicXmlImporter.d.ts +0 -128
  105. package/dist/types/alphatab/src/importer/PartConfiguration.d.ts +0 -27
  106. package/dist/types/alphatab/src/importer/ScoreImporter.d.ts +0 -22
  107. package/dist/types/alphatab/src/importer/ScoreLoader.d.ts +0 -32
  108. package/dist/types/alphatab/src/importer/UnsupportedFormatError.d.ts +0 -9
  109. package/dist/types/alphatab/src/importer/_barrel.d.ts +0 -5
  110. package/dist/types/alphatab/src/importer/alphaTex/ATNF.d.ts +0 -19
  111. package/dist/types/alphatab/src/importer/alphaTex/AlphaTex1EnumMappings.d.ts +0 -75
  112. package/dist/types/alphatab/src/importer/alphaTex/AlphaTex1LanguageDefinitions.d.ts +0 -39
  113. package/dist/types/alphatab/src/importer/alphaTex/AlphaTex1LanguageHandler.d.ts +0 -72
  114. package/dist/types/alphatab/src/importer/alphaTex/AlphaTex1MetaDataReader.d.ts +0 -42
  115. package/dist/types/alphatab/src/importer/alphaTex/AlphaTexAst.d.ts +0 -504
  116. package/dist/types/alphatab/src/importer/alphaTex/AlphaTexLexer.d.ts +0 -43
  117. package/dist/types/alphatab/src/importer/alphaTex/AlphaTexParser.d.ts +0 -60
  118. package/dist/types/alphatab/src/importer/alphaTex/AlphaTexShared.d.ts +0 -290
  119. package/dist/types/alphatab/src/importer/alphaTex/IAlphaTexLanguageImportHandler.d.ts +0 -50
  120. package/dist/types/alphatab/src/importer/alphaTex/IAlphaTexMetaDataReader.d.ts +0 -12
  121. package/dist/types/alphatab/src/importer/alphaTex/_barrel.d.ts +0 -4
  122. package/dist/types/alphatab/src/io/BitReader.d.ts +0 -18
  123. package/dist/types/alphatab/src/io/ByteBuffer.d.ts +0 -26
  124. package/dist/types/alphatab/src/io/IOHelper.d.ts +0 -38
  125. package/dist/types/alphatab/src/io/IReadable.d.ts +0 -48
  126. package/dist/types/alphatab/src/io/IWriteable.d.ts +0 -22
  127. package/dist/types/alphatab/src/io/JsonHelper.d.ts +0 -26
  128. package/dist/types/alphatab/src/io/TypeConversions.d.ts +0 -20
  129. package/dist/types/alphatab/src/io/_barrel.d.ts +0 -4
  130. package/dist/types/alphatab/src/midi/AlphaSynthMidiFileHandler.d.ts +0 -28
  131. package/dist/types/alphatab/src/midi/BeatTickLookup.d.ts +0 -63
  132. package/dist/types/alphatab/src/midi/ControllerType.d.ts +0 -84
  133. package/dist/types/alphatab/src/midi/DeprecatedEvents.d.ts +0 -103
  134. package/dist/types/alphatab/src/midi/GeneralMidi.d.ts +0 -13
  135. package/dist/types/alphatab/src/midi/IMidiFileHandler.d.ts +0 -79
  136. package/dist/types/alphatab/src/midi/MasterBarTickLookup.d.ts +0 -85
  137. package/dist/types/alphatab/src/midi/MidiEvent.d.ts +0 -292
  138. package/dist/types/alphatab/src/midi/MidiFile.d.ts +0 -72
  139. package/dist/types/alphatab/src/midi/MidiFileGenerator.d.ts +0 -150
  140. package/dist/types/alphatab/src/midi/MidiPlaybackController.d.ts +0 -36
  141. package/dist/types/alphatab/src/midi/MidiTickLookup.d.ts +0 -167
  142. package/dist/types/alphatab/src/midi/MidiUtils.d.ts +0 -37
  143. package/dist/types/alphatab/src/midi/_barrel.d.ts +0 -10
  144. package/dist/types/alphatab/src/model/AccentuationType.d.ts +0 -22
  145. package/dist/types/alphatab/src/model/AccidentalType.d.ts +0 -42
  146. package/dist/types/alphatab/src/model/Automation.d.ts +0 -113
  147. package/dist/types/alphatab/src/model/BackingTrack.d.ts +0 -13
  148. package/dist/types/alphatab/src/model/Bar.d.ts +0 -329
  149. package/dist/types/alphatab/src/model/BarreShape.d.ts +0 -18
  150. package/dist/types/alphatab/src/model/Beat.d.ts +0 -559
  151. package/dist/types/alphatab/src/model/BendPoint.d.ts +0 -26
  152. package/dist/types/alphatab/src/model/BendStyle.d.ts +0 -18
  153. package/dist/types/alphatab/src/model/BendType.d.ts +0 -46
  154. package/dist/types/alphatab/src/model/BrushType.d.ts +0 -26
  155. package/dist/types/alphatab/src/model/Chord.d.ts +0 -48
  156. package/dist/types/alphatab/src/model/Clef.d.ts +0 -26
  157. package/dist/types/alphatab/src/model/Color.d.ts +0 -40
  158. package/dist/types/alphatab/src/model/CrescendoType.d.ts +0 -18
  159. package/dist/types/alphatab/src/model/Direction.d.ts +0 -25
  160. package/dist/types/alphatab/src/model/Duration.d.ts +0 -50
  161. package/dist/types/alphatab/src/model/DynamicValue.d.ts +0 -92
  162. package/dist/types/alphatab/src/model/ElementStyle.d.ts +0 -13
  163. package/dist/types/alphatab/src/model/FadeType.d.ts +0 -22
  164. package/dist/types/alphatab/src/model/Fermata.d.ts +0 -34
  165. package/dist/types/alphatab/src/model/Fingers.d.ts +0 -34
  166. package/dist/types/alphatab/src/model/Font.d.ts +0 -117
  167. package/dist/types/alphatab/src/model/GolpeType.d.ts +0 -18
  168. package/dist/types/alphatab/src/model/GraceGroup.d.ts +0 -26
  169. package/dist/types/alphatab/src/model/GraceType.d.ts +0 -22
  170. package/dist/types/alphatab/src/model/HarmonicType.d.ts +0 -34
  171. package/dist/types/alphatab/src/model/InstrumentArticulation.d.ts +0 -71
  172. package/dist/types/alphatab/src/model/JsonConverter.d.ts +0 -95
  173. package/dist/types/alphatab/src/model/KeySignature.d.ts +0 -66
  174. package/dist/types/alphatab/src/model/KeySignatureType.d.ts +0 -14
  175. package/dist/types/alphatab/src/model/Lyrics.d.ts +0 -30
  176. package/dist/types/alphatab/src/model/MasterBar.d.ts +0 -182
  177. package/dist/types/alphatab/src/model/ModelUtils.d.ts +0 -134
  178. package/dist/types/alphatab/src/model/MusicFontSymbol.d.ts +0 -289
  179. package/dist/types/alphatab/src/model/Note.d.ts +0 -516
  180. package/dist/types/alphatab/src/model/NoteAccidentalMode.d.ts +0 -34
  181. package/dist/types/alphatab/src/model/NoteOrnament.d.ts +0 -11
  182. package/dist/types/alphatab/src/model/Ottavia.d.ts +0 -26
  183. package/dist/types/alphatab/src/model/PercussionMapper.d.ts +0 -15
  184. package/dist/types/alphatab/src/model/PickStroke.d.ts +0 -18
  185. package/dist/types/alphatab/src/model/PlaybackInformation.d.ts +0 -45
  186. package/dist/types/alphatab/src/model/Rasgueado.d.ts +0 -25
  187. package/dist/types/alphatab/src/model/RenderStylesheet.d.ts +0 -135
  188. package/dist/types/alphatab/src/model/RepeatGroup.d.ts +0 -33
  189. package/dist/types/alphatab/src/model/Score.d.ts +0 -224
  190. package/dist/types/alphatab/src/model/Section.d.ts +0 -17
  191. package/dist/types/alphatab/src/model/SimileMark.d.ts +0 -24
  192. package/dist/types/alphatab/src/model/SlideInType.d.ts +0 -18
  193. package/dist/types/alphatab/src/model/SlideOutType.d.ts +0 -34
  194. package/dist/types/alphatab/src/model/Staff.d.ts +0 -100
  195. package/dist/types/alphatab/src/model/Track.d.ts +0 -124
  196. package/dist/types/alphatab/src/model/TripletFeel.d.ts +0 -34
  197. package/dist/types/alphatab/src/model/Tuning.d.ts +0 -60
  198. package/dist/types/alphatab/src/model/TupletGroup.d.ts +0 -37
  199. package/dist/types/alphatab/src/model/VibratoType.d.ts +0 -18
  200. package/dist/types/alphatab/src/model/Voice.d.ts +0 -81
  201. package/dist/types/alphatab/src/model/WahPedal.d.ts +0 -9
  202. package/dist/types/alphatab/src/model/WhammyType.d.ts +0 -36
  203. package/dist/types/alphatab/src/model/_barrel.d.ts +0 -57
  204. package/dist/types/alphatab/src/platform/Cursors.d.ts +0 -31
  205. package/dist/types/alphatab/src/platform/ICanvas.d.ts +0 -102
  206. package/dist/types/alphatab/src/platform/IContainer.d.ts +0 -71
  207. package/dist/types/alphatab/src/platform/IMouseEventArgs.d.ts +0 -27
  208. package/dist/types/alphatab/src/platform/IUiFacade.d.ts +0 -175
  209. package/dist/types/alphatab/src/platform/_barrel.d.ts +0 -8
  210. package/dist/types/alphatab/src/platform/javascript/AlphaSynthAudioExporterWorkerApi.d.ts +0 -21
  211. package/dist/types/alphatab/src/platform/javascript/AlphaSynthAudioWorkletOutput.d.ts +0 -30
  212. package/dist/types/alphatab/src/platform/javascript/AlphaSynthScriptProcessorOutput.d.ts +0 -21
  213. package/dist/types/alphatab/src/platform/javascript/AlphaSynthWebAudioOutputBase.d.ts +0 -57
  214. package/dist/types/alphatab/src/platform/javascript/AlphaSynthWebWorker.d.ts +0 -31
  215. package/dist/types/alphatab/src/platform/javascript/AlphaSynthWebWorkerApi.d.ts +0 -98
  216. package/dist/types/alphatab/src/platform/javascript/AlphaSynthWorkerSynthOutput.d.ts +0 -33
  217. package/dist/types/alphatab/src/platform/javascript/AlphaTabApi.d.ts +0 -111
  218. package/dist/types/alphatab/src/platform/javascript/AlphaTabWebWorker.d.ts +0 -16
  219. package/dist/types/alphatab/src/platform/javascript/AlphaTabWorkerScoreRenderer.d.ts +0 -34
  220. package/dist/types/alphatab/src/platform/javascript/AudioElementBackingTrackSynthOutput.d.ts +0 -49
  221. package/dist/types/alphatab/src/platform/javascript/BrowserMouseEventArgs.d.ts +0 -14
  222. package/dist/types/alphatab/src/platform/javascript/BrowserUiFacade.d.ts +0 -96
  223. package/dist/types/alphatab/src/platform/javascript/Html5Canvas.d.ts +0 -57
  224. package/dist/types/alphatab/src/platform/javascript/HtmlElementContainer.d.ts +0 -45
  225. package/dist/types/alphatab/src/platform/javascript/IWorkerScope.d.ts +0 -8
  226. package/dist/types/alphatab/src/platform/javascript/IntersectionObserverPolyfill.d.ts +0 -15
  227. package/dist/types/alphatab/src/platform/javascript/JQueryAlphaTab.d.ts +0 -68
  228. package/dist/types/alphatab/src/platform/javascript/ResizeObserverPolyfill.d.ts +0 -15
  229. package/dist/types/alphatab/src/platform/javascript/ScalableHtmlElementContainer.d.ts +0 -26
  230. package/dist/types/alphatab/src/platform/javascript/WebPlatform.d.ts +0 -10
  231. package/dist/types/alphatab/src/platform/skia/SkiaCanvas.d.ts +0 -86
  232. package/dist/types/alphatab/src/platform/svg/CssFontSvgCanvas.d.ts +0 -11
  233. package/dist/types/alphatab/src/platform/svg/FontSizes.d.ts +0 -32
  234. package/dist/types/alphatab/src/platform/svg/SvgCanvas.d.ts +0 -48
  235. package/dist/types/alphatab/src/rendering/BarRendererBase.d.ts +0 -177
  236. package/dist/types/alphatab/src/rendering/BarRendererFactory.d.ts +0 -21
  237. package/dist/types/alphatab/src/rendering/BeatXPosition.d.ts +0 -31
  238. package/dist/types/alphatab/src/rendering/EffectBand.d.ts +0 -31
  239. package/dist/types/alphatab/src/rendering/EffectBandSizingInfo.d.ts +0 -12
  240. package/dist/types/alphatab/src/rendering/EffectBandSlot.d.ts +0 -22
  241. package/dist/types/alphatab/src/rendering/EffectBarGlyphSizing.d.ts +0 -37
  242. package/dist/types/alphatab/src/rendering/EffectBarRenderer.d.ts +0 -29
  243. package/dist/types/alphatab/src/rendering/EffectBarRendererFactory.d.ts +0 -22
  244. package/dist/types/alphatab/src/rendering/EffectBarRendererInfo.d.ts +0 -62
  245. package/dist/types/alphatab/src/rendering/IScoreRenderer.d.ts +0 -151
  246. package/dist/types/alphatab/src/rendering/LineBarRenderer.d.ts +0 -64
  247. package/dist/types/alphatab/src/rendering/MultiBarRestBeatContainerGlyph.d.ts +0 -10
  248. package/dist/types/alphatab/src/rendering/NumberedBarRenderer.d.ts +0 -54
  249. package/dist/types/alphatab/src/rendering/NumberedBarRendererFactory.d.ts +0 -18
  250. package/dist/types/alphatab/src/rendering/NumberedBeatContainerGlyph.d.ts +0 -9
  251. package/dist/types/alphatab/src/rendering/RenderFinishedEventArgs.d.ts +0 -47
  252. package/dist/types/alphatab/src/rendering/ScoreBarRenderer.d.ts +0 -68
  253. package/dist/types/alphatab/src/rendering/ScoreBarRendererFactory.d.ts +0 -18
  254. package/dist/types/alphatab/src/rendering/ScoreBeatContainerGlyph.d.ts +0 -12
  255. package/dist/types/alphatab/src/rendering/ScoreRenderer.d.ts +0 -55
  256. package/dist/types/alphatab/src/rendering/ScoreRendererWrapper.d.ts +0 -37
  257. package/dist/types/alphatab/src/rendering/SlashBarRenderer.d.ts +0 -41
  258. package/dist/types/alphatab/src/rendering/SlashBarRendererFactory.d.ts +0 -18
  259. package/dist/types/alphatab/src/rendering/SlashBeatContainerGlyph.d.ts +0 -9
  260. package/dist/types/alphatab/src/rendering/TabBarRenderer.d.ts +0 -57
  261. package/dist/types/alphatab/src/rendering/TabBarRendererFactory.d.ts +0 -22
  262. package/dist/types/alphatab/src/rendering/_barrel.d.ts +0 -11
  263. package/dist/types/alphatab/src/rendering/effects/AlternateEndingsEffectInfo.d.ts +0 -19
  264. package/dist/types/alphatab/src/rendering/effects/BeatBarreEffectInfo.d.ts +0 -21
  265. package/dist/types/alphatab/src/rendering/effects/BeatTimerEffectInfo.d.ts +0 -19
  266. package/dist/types/alphatab/src/rendering/effects/CapoEffectInfo.d.ts +0 -19
  267. package/dist/types/alphatab/src/rendering/effects/ChordsEffectInfo.d.ts +0 -19
  268. package/dist/types/alphatab/src/rendering/effects/CrescendoEffectInfo.d.ts +0 -19
  269. package/dist/types/alphatab/src/rendering/effects/DirectionsEffectInfo.d.ts +0 -19
  270. package/dist/types/alphatab/src/rendering/effects/DynamicsEffectInfo.d.ts +0 -21
  271. package/dist/types/alphatab/src/rendering/effects/FadeEffectInfo.d.ts +0 -19
  272. package/dist/types/alphatab/src/rendering/effects/FermataEffectInfo.d.ts +0 -19
  273. package/dist/types/alphatab/src/rendering/effects/FingeringEffectInfo.d.ts +0 -19
  274. package/dist/types/alphatab/src/rendering/effects/FreeTimeEffectInfo.d.ts +0 -19
  275. package/dist/types/alphatab/src/rendering/effects/GolpeEffectInfo.d.ts +0 -23
  276. package/dist/types/alphatab/src/rendering/effects/HarmonicsEffectInfo.d.ts +0 -23
  277. package/dist/types/alphatab/src/rendering/effects/LeftHandTapEffectInfo.d.ts +0 -16
  278. package/dist/types/alphatab/src/rendering/effects/LetRingEffectInfo.d.ts +0 -19
  279. package/dist/types/alphatab/src/rendering/effects/LyricsEffectInfo.d.ts +0 -19
  280. package/dist/types/alphatab/src/rendering/effects/MarkerEffectInfo.d.ts +0 -19
  281. package/dist/types/alphatab/src/rendering/effects/NoteEffectInfoBase.d.ts +0 -15
  282. package/dist/types/alphatab/src/rendering/effects/NoteOrnamentEffectInfo.d.ts +0 -19
  283. package/dist/types/alphatab/src/rendering/effects/OttaviaEffectInfo.d.ts +0 -22
  284. package/dist/types/alphatab/src/rendering/effects/PalmMuteEffectInfo.d.ts +0 -16
  285. package/dist/types/alphatab/src/rendering/effects/PickSlideEffectInfo.d.ts +0 -16
  286. package/dist/types/alphatab/src/rendering/effects/PickStrokeEffectInfo.d.ts +0 -19
  287. package/dist/types/alphatab/src/rendering/effects/RasgueadoEffectInfo.d.ts +0 -19
  288. package/dist/types/alphatab/src/rendering/effects/SlightBeatVibratoEffectInfo.d.ts +0 -19
  289. package/dist/types/alphatab/src/rendering/effects/SlightNoteVibratoEffectInfo.d.ts +0 -18
  290. package/dist/types/alphatab/src/rendering/effects/SustainPedalEffectInfo.d.ts +0 -19
  291. package/dist/types/alphatab/src/rendering/effects/TapEffectInfo.d.ts +0 -19
  292. package/dist/types/alphatab/src/rendering/effects/TempoEffectInfo.d.ts +0 -19
  293. package/dist/types/alphatab/src/rendering/effects/TextEffectInfo.d.ts +0 -19
  294. package/dist/types/alphatab/src/rendering/effects/TrillEffectInfo.d.ts +0 -16
  295. package/dist/types/alphatab/src/rendering/effects/TripletFeelEffectInfo.d.ts +0 -19
  296. package/dist/types/alphatab/src/rendering/effects/WahPedalEffectInfo.d.ts +0 -19
  297. package/dist/types/alphatab/src/rendering/effects/WhammyBarEffectInfo.d.ts +0 -19
  298. package/dist/types/alphatab/src/rendering/effects/WideBeatVibratoEffectInfo.d.ts +0 -19
  299. package/dist/types/alphatab/src/rendering/effects/WideNoteVibratoEffectInfo.d.ts +0 -16
  300. package/dist/types/alphatab/src/rendering/glyphs/AccentuationGlyph.d.ts +0 -13
  301. package/dist/types/alphatab/src/rendering/glyphs/AccidentalGlyph.d.ts +0 -10
  302. package/dist/types/alphatab/src/rendering/glyphs/AccidentalGroupGlyph.d.ts +0 -8
  303. package/dist/types/alphatab/src/rendering/glyphs/AlternateEndingsGlyph.d.ts +0 -15
  304. package/dist/types/alphatab/src/rendering/glyphs/ArticStaccatoAboveGlyph.d.ts +0 -8
  305. package/dist/types/alphatab/src/rendering/glyphs/AugmentationDotGlyph.d.ts +0 -8
  306. package/dist/types/alphatab/src/rendering/glyphs/BarLineGlyph.d.ts +0 -11
  307. package/dist/types/alphatab/src/rendering/glyphs/BarNumberGlyph.d.ts +0 -11
  308. package/dist/types/alphatab/src/rendering/glyphs/BarTempoGlyph.d.ts +0 -14
  309. package/dist/types/alphatab/src/rendering/glyphs/BeatContainerGlyph.d.ts +0 -34
  310. package/dist/types/alphatab/src/rendering/glyphs/BeatGlyphBase.d.ts +0 -24
  311. package/dist/types/alphatab/src/rendering/glyphs/BeatOnNoteGlyphBase.d.ts +0 -18
  312. package/dist/types/alphatab/src/rendering/glyphs/BeatTimerGlyph.d.ts +0 -14
  313. package/dist/types/alphatab/src/rendering/glyphs/BeatVibratoGlyph.d.ts +0 -9
  314. package/dist/types/alphatab/src/rendering/glyphs/BendNoteHeadGroupGlyph.d.ts +0 -26
  315. package/dist/types/alphatab/src/rendering/glyphs/ChordDiagramContainerGlyph.d.ts +0 -10
  316. package/dist/types/alphatab/src/rendering/glyphs/ChordDiagramGlyph.d.ts +0 -16
  317. package/dist/types/alphatab/src/rendering/glyphs/ClefGlyph.d.ts +0 -15
  318. package/dist/types/alphatab/src/rendering/glyphs/CrescendoGlyph.d.ts +0 -12
  319. package/dist/types/alphatab/src/rendering/glyphs/DeadNoteHeadGlyph.d.ts +0 -7
  320. package/dist/types/alphatab/src/rendering/glyphs/DeadSlappedBeatGlyph.d.ts +0 -10
  321. package/dist/types/alphatab/src/rendering/glyphs/DiamondNoteHeadGlyph.d.ts +0 -9
  322. package/dist/types/alphatab/src/rendering/glyphs/DirectionsContainerGlyph.d.ts +0 -15
  323. package/dist/types/alphatab/src/rendering/glyphs/DynamicsGlyph.d.ts +0 -10
  324. package/dist/types/alphatab/src/rendering/glyphs/EffectGlyph.d.ts +0 -24
  325. package/dist/types/alphatab/src/rendering/glyphs/FadeGlyph.d.ts +0 -11
  326. package/dist/types/alphatab/src/rendering/glyphs/FermataGlyph.d.ts +0 -11
  327. package/dist/types/alphatab/src/rendering/glyphs/FingeringGroupGlyph.d.ts +0 -28
  328. package/dist/types/alphatab/src/rendering/glyphs/FlagGlyph.d.ts +0 -11
  329. package/dist/types/alphatab/src/rendering/glyphs/GhostNoteContainerGlyph.d.ts +0 -29
  330. package/dist/types/alphatab/src/rendering/glyphs/GhostParenthesisGlyph.d.ts +0 -13
  331. package/dist/types/alphatab/src/rendering/glyphs/Glyph.d.ts +0 -18
  332. package/dist/types/alphatab/src/rendering/glyphs/GlyphGroup.d.ts +0 -15
  333. package/dist/types/alphatab/src/rendering/glyphs/GroupedEffectGlyph.d.ts +0 -20
  334. package/dist/types/alphatab/src/rendering/glyphs/GuitarGolpeGlyph.d.ts +0 -8
  335. package/dist/types/alphatab/src/rendering/glyphs/KeySignatureGlyph.d.ts +0 -8
  336. package/dist/types/alphatab/src/rendering/glyphs/LeftHandTapGlyph.d.ts +0 -8
  337. package/dist/types/alphatab/src/rendering/glyphs/LeftToRightLayoutingGlyphGroup.d.ts +0 -11
  338. package/dist/types/alphatab/src/rendering/glyphs/LineRangedGlyph.d.ts +0 -14
  339. package/dist/types/alphatab/src/rendering/glyphs/LyricsGlyph.d.ts +0 -14
  340. package/dist/types/alphatab/src/rendering/glyphs/MultiBarRestGlyph.d.ts +0 -12
  341. package/dist/types/alphatab/src/rendering/glyphs/MusicFontGlyph.d.ts +0 -34
  342. package/dist/types/alphatab/src/rendering/glyphs/NoteHeadGlyph.d.ts +0 -14
  343. package/dist/types/alphatab/src/rendering/glyphs/NoteNumberGlyph.d.ts +0 -20
  344. package/dist/types/alphatab/src/rendering/glyphs/NoteOrnamentGlyph.d.ts +0 -10
  345. package/dist/types/alphatab/src/rendering/glyphs/NoteVibratoGlyph.d.ts +0 -26
  346. package/dist/types/alphatab/src/rendering/glyphs/NumberGlyph.d.ts +0 -16
  347. package/dist/types/alphatab/src/rendering/glyphs/NumberedBeatGlyph.d.ts +0 -37
  348. package/dist/types/alphatab/src/rendering/glyphs/NumberedDashGlyph.d.ts +0 -12
  349. package/dist/types/alphatab/src/rendering/glyphs/NumberedKeySignatureGlyph.d.ts +0 -17
  350. package/dist/types/alphatab/src/rendering/glyphs/NumberedNoteHeadGlyph.d.ts +0 -14
  351. package/dist/types/alphatab/src/rendering/glyphs/NumberedSlurGlyph.d.ts +0 -14
  352. package/dist/types/alphatab/src/rendering/glyphs/NumberedTieGlyph.d.ts +0 -21
  353. package/dist/types/alphatab/src/rendering/glyphs/OttavaGlyph.d.ts +0 -15
  354. package/dist/types/alphatab/src/rendering/glyphs/PercussionNoteHeadGlyph.d.ts +0 -14
  355. package/dist/types/alphatab/src/rendering/glyphs/PickStrokeGlyph.d.ts +0 -10
  356. package/dist/types/alphatab/src/rendering/glyphs/PictEdgeOfCymbalGlyph.d.ts +0 -8
  357. package/dist/types/alphatab/src/rendering/glyphs/RepeatCountGlyph.d.ts +0 -11
  358. package/dist/types/alphatab/src/rendering/glyphs/RowContainerGlyph.d.ts +0 -12
  359. package/dist/types/alphatab/src/rendering/glyphs/RowGlyphContainer.d.ts +0 -13
  360. package/dist/types/alphatab/src/rendering/glyphs/ScoreBeatGlyph.d.ts +0 -29
  361. package/dist/types/alphatab/src/rendering/glyphs/ScoreBeatPreNotesGlyph.d.ts +0 -14
  362. package/dist/types/alphatab/src/rendering/glyphs/ScoreBendGlyph.d.ts +0 -17
  363. package/dist/types/alphatab/src/rendering/glyphs/ScoreBrushGlyph.d.ts +0 -13
  364. package/dist/types/alphatab/src/rendering/glyphs/ScoreHelperNotesBaseGlyph.d.ts +0 -15
  365. package/dist/types/alphatab/src/rendering/glyphs/ScoreLegatoGlyph.d.ts +0 -16
  366. package/dist/types/alphatab/src/rendering/glyphs/ScoreNoteChordGlyph.d.ts +0 -35
  367. package/dist/types/alphatab/src/rendering/glyphs/ScoreNoteChordGlyphBase.d.ts +0 -25
  368. package/dist/types/alphatab/src/rendering/glyphs/ScoreNoteGlyphInfo.d.ts +0 -9
  369. package/dist/types/alphatab/src/rendering/glyphs/ScoreRestGlyph.d.ts +0 -17
  370. package/dist/types/alphatab/src/rendering/glyphs/ScoreSlideLineGlyph.d.ts +0 -22
  371. package/dist/types/alphatab/src/rendering/glyphs/ScoreSlurGlyph.d.ts +0 -18
  372. package/dist/types/alphatab/src/rendering/glyphs/ScoreTieGlyph.d.ts +0 -20
  373. package/dist/types/alphatab/src/rendering/glyphs/ScoreTimeSignatureGlyph.d.ts +0 -8
  374. package/dist/types/alphatab/src/rendering/glyphs/ScoreWhammyBarGlyph.d.ts +0 -14
  375. package/dist/types/alphatab/src/rendering/glyphs/SlashBeatGlyph.d.ts +0 -24
  376. package/dist/types/alphatab/src/rendering/glyphs/SlashNoteHeadGlyph.d.ts +0 -24
  377. package/dist/types/alphatab/src/rendering/glyphs/SlashRestGlyph.d.ts +0 -9
  378. package/dist/types/alphatab/src/rendering/glyphs/SlashTieGlyph.d.ts +0 -21
  379. package/dist/types/alphatab/src/rendering/glyphs/SpacingGlyph.d.ts +0 -8
  380. package/dist/types/alphatab/src/rendering/glyphs/StringNumberContainerGlyph.d.ts +0 -11
  381. package/dist/types/alphatab/src/rendering/glyphs/SustainPedalGlyph.d.ts +0 -10
  382. package/dist/types/alphatab/src/rendering/glyphs/TabBeatContainerGlyph.d.ts +0 -13
  383. package/dist/types/alphatab/src/rendering/glyphs/TabBeatGlyph.d.ts +0 -25
  384. package/dist/types/alphatab/src/rendering/glyphs/TabBeatPreNotesGlyph.d.ts +0 -9
  385. package/dist/types/alphatab/src/rendering/glyphs/TabBendGlyph.d.ts +0 -24
  386. package/dist/types/alphatab/src/rendering/glyphs/TabBendRenderPoint.d.ts +0 -8
  387. package/dist/types/alphatab/src/rendering/glyphs/TabBrushGlyph.d.ts +0 -13
  388. package/dist/types/alphatab/src/rendering/glyphs/TabClefGlyph.d.ts +0 -8
  389. package/dist/types/alphatab/src/rendering/glyphs/TabNoteChordGlyph.d.ts +0 -33
  390. package/dist/types/alphatab/src/rendering/glyphs/TabRestGlyph.d.ts +0 -15
  391. package/dist/types/alphatab/src/rendering/glyphs/TabSlideLineGlyph.d.ts +0 -21
  392. package/dist/types/alphatab/src/rendering/glyphs/TabSlurGlyph.d.ts +0 -14
  393. package/dist/types/alphatab/src/rendering/glyphs/TabTieGlyph.d.ts +0 -21
  394. package/dist/types/alphatab/src/rendering/glyphs/TabTimeSignatureGlyph.d.ts +0 -9
  395. package/dist/types/alphatab/src/rendering/glyphs/TabWhammyBarGlyph.d.ts +0 -19
  396. package/dist/types/alphatab/src/rendering/glyphs/TextGlyph.d.ts +0 -18
  397. package/dist/types/alphatab/src/rendering/glyphs/TieGlyph.d.ts +0 -40
  398. package/dist/types/alphatab/src/rendering/glyphs/TimeSignatureGlyph.d.ts +0 -18
  399. package/dist/types/alphatab/src/rendering/glyphs/TremoloPickingGlyph.d.ts +0 -9
  400. package/dist/types/alphatab/src/rendering/glyphs/TrillGlyph.d.ts +0 -10
  401. package/dist/types/alphatab/src/rendering/glyphs/TripletFeelGlyph.d.ts +0 -15
  402. package/dist/types/alphatab/src/rendering/glyphs/TuningContainerGlyph.d.ts +0 -7
  403. package/dist/types/alphatab/src/rendering/glyphs/TuningGlyph.d.ts +0 -16
  404. package/dist/types/alphatab/src/rendering/glyphs/VoiceContainerGlyph.d.ts +0 -26
  405. package/dist/types/alphatab/src/rendering/glyphs/WahPedalGlyph.d.ts +0 -11
  406. package/dist/types/alphatab/src/rendering/layout/HorizontalScreenLayout.d.ts +0 -23
  407. package/dist/types/alphatab/src/rendering/layout/PageViewLayout.d.ts +0 -28
  408. package/dist/types/alphatab/src/rendering/layout/ScoreLayout.d.ts +0 -73
  409. package/dist/types/alphatab/src/rendering/staves/BarLayoutingInfo.d.ts +0 -44
  410. package/dist/types/alphatab/src/rendering/staves/MasterBarsRenderers.d.ts +0 -18
  411. package/dist/types/alphatab/src/rendering/staves/RenderStaff.d.ts +0 -72
  412. package/dist/types/alphatab/src/rendering/staves/Spring.d.ts +0 -16
  413. package/dist/types/alphatab/src/rendering/staves/StaffSystem.d.ts +0 -75
  414. package/dist/types/alphatab/src/rendering/staves/StaffTrackGroup.d.ts +0 -20
  415. package/dist/types/alphatab/src/rendering/utils/AccidentalHelper.d.ts +0 -89
  416. package/dist/types/alphatab/src/rendering/utils/BarBounds.d.ts +0 -45
  417. package/dist/types/alphatab/src/rendering/utils/BarCollisionHelper.d.ts +0 -31
  418. package/dist/types/alphatab/src/rendering/utils/BarHelpers.d.ts +0 -18
  419. package/dist/types/alphatab/src/rendering/utils/BeamDirection.d.ts +0 -7
  420. package/dist/types/alphatab/src/rendering/utils/BeamingHelper.d.ts +0 -92
  421. package/dist/types/alphatab/src/rendering/utils/BeatBounds.d.ts +0 -52
  422. package/dist/types/alphatab/src/rendering/utils/Bounds.d.ts +0 -23
  423. package/dist/types/alphatab/src/rendering/utils/BoundsLookup.d.ts +0 -98
  424. package/dist/types/alphatab/src/rendering/utils/ElementStyleHelper.d.ts +0 -29
  425. package/dist/types/alphatab/src/rendering/utils/MasterBarBounds.d.ts +0 -64
  426. package/dist/types/alphatab/src/rendering/utils/NoteBounds.d.ts +0 -25
  427. package/dist/types/alphatab/src/rendering/utils/StaffSystemBounds.d.ts +0 -45
  428. package/dist/types/alphatab/src/synth/ActiveBeatsChangedEventArgs.d.ts +0 -12
  429. package/dist/types/alphatab/src/synth/AlphaSynth.d.ts +0 -248
  430. package/dist/types/alphatab/src/synth/AlphaSynthWrapper.d.ts +0 -92
  431. package/dist/types/alphatab/src/synth/BackingTrackPlayer.d.ts +0 -53
  432. package/dist/types/alphatab/src/synth/ExternalMediaPlayer.d.ts +0 -55
  433. package/dist/types/alphatab/src/synth/IAlphaSynth.d.ts +0 -271
  434. package/dist/types/alphatab/src/synth/IAudioExporter.d.ts +0 -127
  435. package/dist/types/alphatab/src/synth/IAudioSampleSynthesizer.d.ts +0 -126
  436. package/dist/types/alphatab/src/synth/ISynthOutput.d.ts +0 -90
  437. package/dist/types/alphatab/src/synth/MidiEventsPlayedEventArgs.d.ts +0 -16
  438. package/dist/types/alphatab/src/synth/MidiFileSequencer.d.ts +0 -98
  439. package/dist/types/alphatab/src/synth/PlaybackRange.d.ts +0 -14
  440. package/dist/types/alphatab/src/synth/PlaybackRangeChangedEventArgs.d.ts +0 -16
  441. package/dist/types/alphatab/src/synth/PlayerState.d.ts +0 -14
  442. package/dist/types/alphatab/src/synth/PlayerStateChangedEventArgs.d.ts +0 -21
  443. package/dist/types/alphatab/src/synth/PositionChangedEventArgs.d.ts +0 -44
  444. package/dist/types/alphatab/src/synth/SynthConstants.d.ts +0 -30
  445. package/dist/types/alphatab/src/synth/SynthHelper.d.ts +0 -9
  446. package/dist/types/alphatab/src/synth/_barrel.d.ts +0 -19
  447. package/dist/types/alphatab/src/synth/ds/CircularSampleBuffer.d.ts +0 -38
  448. package/dist/types/alphatab/src/synth/ds/Queue.d.ts +0 -13
  449. package/dist/types/alphatab/src/synth/soundfont/Hydra.d.ts +0 -133
  450. package/dist/types/alphatab/src/synth/soundfont/RiffChunk.d.ts +0 -10
  451. package/dist/types/alphatab/src/synth/synthesis/Channel.d.ts +0 -21
  452. package/dist/types/alphatab/src/synth/synthesis/Channels.d.ts +0 -11
  453. package/dist/types/alphatab/src/synth/synthesis/Envelope.d.ts +0 -16
  454. package/dist/types/alphatab/src/synth/synthesis/LoopMode.d.ts +0 -8
  455. package/dist/types/alphatab/src/synth/synthesis/OutputMode.d.ts +0 -18
  456. package/dist/types/alphatab/src/synth/synthesis/Preset.d.ts +0 -10
  457. package/dist/types/alphatab/src/synth/synthesis/Region.d.ts +0 -110
  458. package/dist/types/alphatab/src/synth/synthesis/SynthEvent.d.ts +0 -12
  459. package/dist/types/alphatab/src/synth/synthesis/TinySoundFont.d.ts +0 -252
  460. package/dist/types/alphatab/src/synth/synthesis/Voice.d.ts +0 -43
  461. package/dist/types/alphatab/src/synth/synthesis/VoiceEnvelope.d.ts +0 -31
  462. package/dist/types/alphatab/src/synth/synthesis/VoiceLfo.d.ts +0 -10
  463. package/dist/types/alphatab/src/synth/synthesis/VoiceLowPass.d.ts +0 -16
  464. package/dist/types/alphatab/src/synth/vorbis/IntBitReader.d.ts +0 -26
  465. package/dist/types/alphatab/src/synth/vorbis/OggReader.d.ts +0 -23
  466. package/dist/types/alphatab/src/synth/vorbis/VorbisFile.d.ts +0 -9
  467. package/dist/types/alphatab/src/synth/vorbis/VorbisStream.d.ts +0 -13
  468. package/dist/types/alphatab/src/synth/vorbis/VorbisStreamDecoder.d.ts +0 -260
  469. package/dist/types/alphatab/src/synth/vorbis/VorbisStreamReader.d.ts +0 -49
  470. package/dist/types/alphatab/src/util/FontLoadingChecker.d.ts +0 -16
  471. package/dist/types/alphatab/src/util/Lazy.d.ts +0 -12
  472. package/dist/types/alphatab/src/xml/XmlDocument.d.ts +0 -10
  473. package/dist/types/alphatab/src/xml/XmlError.d.ts +0 -9
  474. package/dist/types/alphatab/src/xml/XmlNode.d.ts +0 -34
  475. package/dist/types/alphatab/src/xml/XmlParser.d.ts +0 -39
  476. package/dist/types/alphatab/src/xml/XmlWriter.d.ts +0 -20
  477. package/dist/types/alphatab/src/zip/Crc32.d.ts +0 -32
  478. package/dist/types/alphatab/src/zip/Deflater.d.ts +0 -74
  479. package/dist/types/alphatab/src/zip/DeflaterConstants.d.ts +0 -20
  480. package/dist/types/alphatab/src/zip/DeflaterEngine.d.ts +0 -124
  481. package/dist/types/alphatab/src/zip/DeflaterHuffman.d.ts +0 -76
  482. package/dist/types/alphatab/src/zip/HuffTools.d.ts +0 -11
  483. package/dist/types/alphatab/src/zip/Huffman.d.ts +0 -28
  484. package/dist/types/alphatab/src/zip/Inflate.d.ts +0 -40
  485. package/dist/types/alphatab/src/zip/PendingBuffer.d.ts +0 -65
  486. package/dist/types/alphatab/src/zip/ZipEntry.d.ts +0 -14
  487. package/dist/types/alphatab/src/zip/ZipReader.d.ts +0 -11
  488. package/dist/types/alphatab/src/zip/ZipWriter.d.ts +0 -16
  489. package/dist/types/alphatex/src/common.d.ts +0 -4
  490. package/dist/types/alphatex/src/definitions.d.ts +0 -8
  491. package/dist/types/alphatex/src/enum.d.ts +0 -48
  492. package/dist/types/alphatex/src/metadata/bar/ac.d.ts +0 -2
  493. package/dist/types/alphatex/src/metadata/bar/accidentals.d.ts +0 -2
  494. package/dist/types/alphatex/src/metadata/bar/ae.d.ts +0 -2
  495. package/dist/types/alphatex/src/metadata/bar/barlineleft.d.ts +0 -2
  496. package/dist/types/alphatex/src/metadata/bar/barlineright.d.ts +0 -2
  497. package/dist/types/alphatex/src/metadata/bar/clef.d.ts +0 -2
  498. package/dist/types/alphatex/src/metadata/bar/db.d.ts +0 -2
  499. package/dist/types/alphatex/src/metadata/bar/ft.d.ts +0 -2
  500. package/dist/types/alphatex/src/metadata/bar/jump.d.ts +0 -2
  501. package/dist/types/alphatex/src/metadata/bar/ks.d.ts +0 -2
  502. package/dist/types/alphatex/src/metadata/bar/ottava.d.ts +0 -2
  503. package/dist/types/alphatex/src/metadata/bar/rc.d.ts +0 -2
  504. package/dist/types/alphatex/src/metadata/bar/ro.d.ts +0 -2
  505. package/dist/types/alphatex/src/metadata/bar/scale.d.ts +0 -2
  506. package/dist/types/alphatex/src/metadata/bar/section.d.ts +0 -2
  507. package/dist/types/alphatex/src/metadata/bar/simile.d.ts +0 -2
  508. package/dist/types/alphatex/src/metadata/bar/spd.d.ts +0 -2
  509. package/dist/types/alphatex/src/metadata/bar/sph.d.ts +0 -2
  510. package/dist/types/alphatex/src/metadata/bar/spu.d.ts +0 -2
  511. package/dist/types/alphatex/src/metadata/bar/sync.d.ts +0 -2
  512. package/dist/types/alphatex/src/metadata/bar/tempo.d.ts +0 -2
  513. package/dist/types/alphatex/src/metadata/bar/tf.d.ts +0 -2
  514. package/dist/types/alphatex/src/metadata/bar/ts.d.ts +0 -2
  515. package/dist/types/alphatex/src/metadata/bar/width.d.ts +0 -2
  516. package/dist/types/alphatex/src/metadata/score/album.d.ts +0 -2
  517. package/dist/types/alphatex/src/metadata/score/artist.d.ts +0 -2
  518. package/dist/types/alphatex/src/metadata/score/bracketextendmode.d.ts +0 -2
  519. package/dist/types/alphatex/src/metadata/score/copyright.d.ts +0 -2
  520. package/dist/types/alphatex/src/metadata/score/copyright2.d.ts +0 -2
  521. package/dist/types/alphatex/src/metadata/score/defaultsystemslayout.d.ts +0 -2
  522. package/dist/types/alphatex/src/metadata/score/firstsystemtracknamemode.d.ts +0 -2
  523. package/dist/types/alphatex/src/metadata/score/firstsystemtracknameorientation.d.ts +0 -2
  524. package/dist/types/alphatex/src/metadata/score/hidedynamics.d.ts +0 -2
  525. package/dist/types/alphatex/src/metadata/score/instructions.d.ts +0 -2
  526. package/dist/types/alphatex/src/metadata/score/multibarrest.d.ts +0 -2
  527. package/dist/types/alphatex/src/metadata/score/multitracktracknamepolicy.d.ts +0 -2
  528. package/dist/types/alphatex/src/metadata/score/music.d.ts +0 -2
  529. package/dist/types/alphatex/src/metadata/score/notices.d.ts +0 -2
  530. package/dist/types/alphatex/src/metadata/score/othersystemtracknamemode.d.ts +0 -2
  531. package/dist/types/alphatex/src/metadata/score/othersystemtracknameorientation.d.ts +0 -2
  532. package/dist/types/alphatex/src/metadata/score/showdynamics.d.ts +0 -2
  533. package/dist/types/alphatex/src/metadata/score/singletracktracknamepolicy.d.ts +0 -2
  534. package/dist/types/alphatex/src/metadata/score/subtitle.d.ts +0 -2
  535. package/dist/types/alphatex/src/metadata/score/systemslayout.d.ts +0 -2
  536. package/dist/types/alphatex/src/metadata/score/tab.d.ts +0 -2
  537. package/dist/types/alphatex/src/metadata/score/title.d.ts +0 -4
  538. package/dist/types/alphatex/src/metadata/score/usesystemsignseparator.d.ts +0 -2
  539. package/dist/types/alphatex/src/metadata/score/words.d.ts +0 -2
  540. package/dist/types/alphatex/src/metadata/score/wordsandmusic.d.ts +0 -2
  541. package/dist/types/alphatex/src/metadata/staff/articulation.d.ts +0 -3
  542. package/dist/types/alphatex/src/metadata/staff/capo.d.ts +0 -2
  543. package/dist/types/alphatex/src/metadata/staff/chord.d.ts +0 -2
  544. package/dist/types/alphatex/src/metadata/staff/displaytranspose.d.ts +0 -2
  545. package/dist/types/alphatex/src/metadata/staff/instrument.d.ts +0 -2
  546. package/dist/types/alphatex/src/metadata/staff/lyrics.d.ts +0 -2
  547. package/dist/types/alphatex/src/metadata/staff/transpose.d.ts +0 -2
  548. package/dist/types/alphatex/src/metadata/staff/tuning.d.ts +0 -2
  549. package/dist/types/alphatex/src/metadata/structural/staff.d.ts +0 -2
  550. package/dist/types/alphatex/src/metadata/structural/track.d.ts +0 -2
  551. package/dist/types/alphatex/src/metadata/structural/voice.d.ts +0 -2
  552. package/dist/types/alphatex/src/properties/beat/ad.d.ts +0 -2
  553. package/dist/types/alphatex/src/properties/beat/au.d.ts +0 -2
  554. package/dist/types/alphatex/src/properties/beat/balance.d.ts +0 -2
  555. package/dist/types/alphatex/src/properties/beat/bank.d.ts +0 -2
  556. package/dist/types/alphatex/src/properties/beat/barre.d.ts +0 -2
  557. package/dist/types/alphatex/src/properties/beat/bd.d.ts +0 -2
  558. package/dist/types/alphatex/src/properties/beat/beam.d.ts +0 -2
  559. package/dist/types/alphatex/src/properties/beat/bu.d.ts +0 -2
  560. package/dist/types/alphatex/src/properties/beat/ch.d.ts +0 -2
  561. package/dist/types/alphatex/src/properties/beat/cre.d.ts +0 -2
  562. package/dist/types/alphatex/src/properties/beat/d.d.ts +0 -2
  563. package/dist/types/alphatex/src/properties/beat/dd.d.ts +0 -2
  564. package/dist/types/alphatex/src/properties/beat/dec.d.ts +0 -2
  565. package/dist/types/alphatex/src/properties/beat/ds.d.ts +0 -2
  566. package/dist/types/alphatex/src/properties/beat/dy.d.ts +0 -2
  567. package/dist/types/alphatex/src/properties/beat/f.d.ts +0 -2
  568. package/dist/types/alphatex/src/properties/beat/fermata.d.ts +0 -2
  569. package/dist/types/alphatex/src/properties/beat/fo.d.ts +0 -2
  570. package/dist/types/alphatex/src/properties/beat/glpf.d.ts +0 -2
  571. package/dist/types/alphatex/src/properties/beat/glpt.d.ts +0 -2
  572. package/dist/types/alphatex/src/properties/beat/gr.d.ts +0 -2
  573. package/dist/types/alphatex/src/properties/beat/instrument.d.ts +0 -2
  574. package/dist/types/alphatex/src/properties/beat/legatoOrigin.d.ts +0 -2
  575. package/dist/types/alphatex/src/properties/beat/lyrics.d.ts +0 -2
  576. package/dist/types/alphatex/src/properties/beat/ot.d.ts +0 -2
  577. package/dist/types/alphatex/src/properties/beat/p.d.ts +0 -2
  578. package/dist/types/alphatex/src/properties/beat/rasg.d.ts +0 -2
  579. package/dist/types/alphatex/src/properties/beat/s.d.ts +0 -2
  580. package/dist/types/alphatex/src/properties/beat/sd.d.ts +0 -2
  581. package/dist/types/alphatex/src/properties/beat/slashed.d.ts +0 -2
  582. package/dist/types/alphatex/src/properties/beat/spd.d.ts +0 -2
  583. package/dist/types/alphatex/src/properties/beat/spe.d.ts +0 -2
  584. package/dist/types/alphatex/src/properties/beat/sph.d.ts +0 -2
  585. package/dist/types/alphatex/src/properties/beat/spu.d.ts +0 -2
  586. package/dist/types/alphatex/src/properties/beat/su.d.ts +0 -2
  587. package/dist/types/alphatex/src/properties/beat/tb.d.ts +0 -2
  588. package/dist/types/alphatex/src/properties/beat/tbe.d.ts +0 -2
  589. package/dist/types/alphatex/src/properties/beat/tempo.d.ts +0 -2
  590. package/dist/types/alphatex/src/properties/beat/timer.d.ts +0 -2
  591. package/dist/types/alphatex/src/properties/beat/tp.d.ts +0 -2
  592. package/dist/types/alphatex/src/properties/beat/tt.d.ts +0 -2
  593. package/dist/types/alphatex/src/properties/beat/tu.d.ts +0 -2
  594. package/dist/types/alphatex/src/properties/beat/txt.d.ts +0 -2
  595. package/dist/types/alphatex/src/properties/beat/v.d.ts +0 -2
  596. package/dist/types/alphatex/src/properties/beat/volume.d.ts +0 -2
  597. package/dist/types/alphatex/src/properties/beat/vs.d.ts +0 -2
  598. package/dist/types/alphatex/src/properties/beat/vw.d.ts +0 -2
  599. package/dist/types/alphatex/src/properties/beat/wahc.d.ts +0 -2
  600. package/dist/types/alphatex/src/properties/beat/waho.d.ts +0 -2
  601. package/dist/types/alphatex/src/properties/note/ac.d.ts +0 -2
  602. package/dist/types/alphatex/src/properties/note/acc.d.ts +0 -2
  603. package/dist/types/alphatex/src/properties/note/ah.d.ts +0 -3
  604. package/dist/types/alphatex/src/properties/note/b.d.ts +0 -2
  605. package/dist/types/alphatex/src/properties/note/be.d.ts +0 -2
  606. package/dist/types/alphatex/src/properties/note/fh.d.ts +0 -2
  607. package/dist/types/alphatex/src/properties/note/g.d.ts +0 -2
  608. package/dist/types/alphatex/src/properties/note/h.d.ts +0 -2
  609. package/dist/types/alphatex/src/properties/note/hac.d.ts +0 -2
  610. package/dist/types/alphatex/src/properties/note/hide.d.ts +0 -2
  611. package/dist/types/alphatex/src/properties/note/iturn.d.ts +0 -2
  612. package/dist/types/alphatex/src/properties/note/lf.d.ts +0 -2
  613. package/dist/types/alphatex/src/properties/note/lht.d.ts +0 -2
  614. package/dist/types/alphatex/src/properties/note/lmordent.d.ts +0 -2
  615. package/dist/types/alphatex/src/properties/note/lr.d.ts +0 -2
  616. package/dist/types/alphatex/src/properties/note/nh.d.ts +0 -2
  617. package/dist/types/alphatex/src/properties/note/ph.d.ts +0 -2
  618. package/dist/types/alphatex/src/properties/note/pm.d.ts +0 -2
  619. package/dist/types/alphatex/src/properties/note/psd.d.ts +0 -2
  620. package/dist/types/alphatex/src/properties/note/psu.d.ts +0 -2
  621. package/dist/types/alphatex/src/properties/note/rf.d.ts +0 -2
  622. package/dist/types/alphatex/src/properties/note/sh.d.ts +0 -2
  623. package/dist/types/alphatex/src/properties/note/sia.d.ts +0 -2
  624. package/dist/types/alphatex/src/properties/note/sib.d.ts +0 -2
  625. package/dist/types/alphatex/src/properties/note/sl.d.ts +0 -2
  626. package/dist/types/alphatex/src/properties/note/slur.d.ts +0 -2
  627. package/dist/types/alphatex/src/properties/note/sod.d.ts +0 -2
  628. package/dist/types/alphatex/src/properties/note/sou.d.ts +0 -2
  629. package/dist/types/alphatex/src/properties/note/ss.d.ts +0 -2
  630. package/dist/types/alphatex/src/properties/note/st.d.ts +0 -2
  631. package/dist/types/alphatex/src/properties/note/string.d.ts +0 -2
  632. package/dist/types/alphatex/src/properties/note/t.d.ts +0 -3
  633. package/dist/types/alphatex/src/properties/note/ten.d.ts +0 -2
  634. package/dist/types/alphatex/src/properties/note/th.d.ts +0 -2
  635. package/dist/types/alphatex/src/properties/note/tr.d.ts +0 -2
  636. package/dist/types/alphatex/src/properties/note/turn.d.ts +0 -2
  637. package/dist/types/alphatex/src/properties/note/umordent.d.ts +0 -2
  638. package/dist/types/alphatex/src/properties/note/v.d.ts +0 -2
  639. package/dist/types/alphatex/src/properties/note/vw.d.ts +0 -2
  640. package/dist/types/alphatex/src/properties/note/x.d.ts +0 -2
  641. package/dist/types/alphatex/src/types.d.ts +0 -161
  642. package/dist/types/lsp/src/index.d.ts +0 -21
  643. package/dist/types/lsp/src/server/completion.d.ts +0 -3
  644. package/dist/types/lsp/src/server/diagnostics.d.ts +0 -2
  645. package/dist/types/lsp/src/server/hover.d.ts +0 -2
  646. package/dist/types/lsp/src/server/index.d.ts +0 -13
  647. package/dist/types/lsp/src/server/signatureHelp.d.ts +0 -2
  648. package/dist/types/lsp/src/server/types.d.ts +0 -15
  649. package/dist/types/lsp/src/server/utils.d.ts +0 -6
  650. package/dist/types/lsp/test/placeholder.test.d.ts +0 -1
  651. package/dist/types/lsp/vite.config.d.ts +0 -2
  652. package/dist/types/tooling/src/typescript.d.ts +0 -9
  653. package/dist/types/tooling/src/vite.d.ts +0 -13
  654. package/dist/types/tooling/src/vite.plugin.dts.d.ts +0 -1
  655. package/dist/types/tooling/src/vite.plugin.min.d.ts +0 -3
  656. package/src/alphatex.tmLanguage.json +0 -151
  657. package/src/index.ts +0 -56
  658. package/src/language-configuration.json +0 -70
  659. package/src/server/completion.ts +0 -553
  660. package/src/server/diagnostics.ts +0 -126
  661. package/src/server/hover.ts +0 -262
  662. package/src/server/index.ts +0 -96
  663. package/src/server/signatureHelp.ts +0 -206
  664. package/src/server/types.ts +0 -28
  665. package/src/server/utils.ts +0 -111
  666. package/test/placeholder.test.ts +0 -3
  667. package/tsconfig.json +0 -3
  668. package/vite.config.ts +0 -21
@@ -1,2550 +0,0 @@
1
- import { type IEventEmitter, type IEventEmitterOfT } from "./EventEmitter";
2
- import type { MidiEventType } from "./midi/MidiEvent";
3
- import { MidiFile } from "./midi/MidiFile";
4
- import { type MidiTickLookup } from "./midi/MidiTickLookup";
5
- import type { Beat } from "./model/Beat";
6
- import type { Note } from "./model/Note";
7
- import type { Score } from "./model/Score";
8
- import type { Track } from "./model/Track";
9
- import { PlayerMode } from "./PlayerSettings";
10
- import type { IContainer } from "./platform/IContainer";
11
- import type { IUiFacade } from "./platform/IUiFacade";
12
- import { ResizeEventArgs } from "./ResizeEventArgs";
13
- import type { IScoreRenderer } from "./rendering/IScoreRenderer";
14
- import type { RenderFinishedEventArgs } from "./rendering/RenderFinishedEventArgs";
15
- import type { BoundsLookup } from "./rendering/utils/BoundsLookup";
16
- import type { Settings } from "./Settings";
17
- import { ActiveBeatsChangedEventArgs } from "./synth/ActiveBeatsChangedEventArgs";
18
- import type { IAlphaSynth } from "./synth/IAlphaSynth";
19
- import { AudioExportOptions, type IAudioExporter } from "./synth/IAudioExporter";
20
- import type { ISynthOutputDevice } from "./synth/ISynthOutput";
21
- import type { MidiEventsPlayedEventArgs } from "./synth/MidiEventsPlayedEventArgs";
22
- import { PlaybackRange } from "./synth/PlaybackRange";
23
- import type { PlaybackRangeChangedEventArgs } from "./synth/PlaybackRangeChangedEventArgs";
24
- import { PlayerState } from "./synth/PlayerState";
25
- import type { PlayerStateChangedEventArgs } from "./synth/PlayerStateChangedEventArgs";
26
- import type { PositionChangedEventArgs } from "./synth/PositionChangedEventArgs";
27
- /**
28
- * This class represents the public API of alphaTab and provides all logic to display
29
- * a music sheet in any UI using the given {@link IUiFacade}
30
- * @param <TSettings> The UI object holding the settings.
31
- * @public
32
- */
33
- export declare class AlphaTabApiBase<TSettings> {
34
- private _startTime;
35
- private _trackIndexes;
36
- private _trackIndexLookup;
37
- private _isDestroyed;
38
- private _score;
39
- private _tracks;
40
- private _actualPlayerMode;
41
- private _player;
42
- private _renderer;
43
- /**
44
- * The actual player mode which is currently active.
45
- * @remarks
46
- * Allows determining whether a backing track or the synthesizer is active in case automatic detection is enabled.
47
- * @category Properties - Player
48
- * @since 1.6.0
49
- */
50
- get actualPlayerMode(): PlayerMode;
51
- /**
52
- * The UI facade used for interacting with the user interface (like the browser).
53
- * @remarks
54
- * The implementation depends on the platform alphaTab is running in (e.g. the web version in the browser, WPF in .net etc.)
55
- * @category Properties - Core
56
- * @since 0.9.4
57
- */
58
- readonly uiFacade: IUiFacade<TSettings>;
59
- /**
60
- * The UI container that holds the whole alphaTab control.
61
- * @remarks
62
- * Gets the UI container that represents the element on which alphaTab was initialized. Note that this is not the raw instance, but a UI framework specific wrapper for alphaTab.
63
- * @category Properties - Core
64
- * @since 0.9.4
65
- * @example
66
- * JavaScript
67
- * ```js
68
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
69
- * const container = api.container;
70
- * ```
71
- *
72
- * @example
73
- * C#
74
- * ```cs
75
- * var api = new AlphaTabApi<MyControl>(...);
76
- * var container = api.Container;
77
- * ```
78
- *
79
- * @example
80
- * Android
81
- * ```kotlin
82
- * val api = AlphaTabApi<MyControl>(...)
83
- * val container = api.container;
84
- * ```
85
- */
86
- readonly container: IContainer;
87
- /**
88
- * The score renderer used for rendering the music sheet.
89
- * @remarks
90
- * This is the low-level API responsible for the actual rendering engine.
91
- * Gets access to the underling {@link IScoreRenderer} that is used for the rendering.
92
- *
93
- * @category Properties - Core
94
- * @since 0.9.4
95
- */
96
- get renderer(): IScoreRenderer;
97
- /**
98
- * The score holding all information about the song being rendered
99
- * @category Properties - Core
100
- * @since 0.9.4
101
- * @example
102
- * JavaScript
103
- * ```js
104
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
105
- * updateScoreInfo(api.score);
106
- * ```
107
- *
108
- * @example
109
- * C#
110
- * ```cs
111
- * var api = new AlphaTabApi<MyControl>(...);
112
- * UpdateScoreInfo(api.Score);
113
- * ```
114
- *
115
- * @example
116
- * Android
117
- * ```kotlin
118
- * val api = AlphaTabApi<MyControl>(...)
119
- * updateScoreInfo(api.score)
120
- * ```
121
- */
122
- get score(): Score | null;
123
- /**
124
- * The settings that are used for rendering the music notation.
125
- * @remarks
126
- * Gets access to the underling {@link Settings} object that is currently used by alphaTab.
127
- *
128
- * @category Properties - Core
129
- * @since 0.9.4
130
- * @example
131
- * JavaScript
132
- * ```js
133
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
134
- * showSettingsModal(api.settings);
135
- * ```
136
- *
137
- * @example
138
- * C#
139
- * ```cs
140
- * var api = new AlphaTabApi<MyControl>(...);
141
- * ShowSettingsDialog(api.Settings);
142
- * ```
143
- *
144
- * @example
145
- * Android
146
- * ```kotlin
147
- * val api = AlphaTabApi<MyControl>(...)
148
- * showSettingsDialog(api.settings)
149
- * ```
150
- */
151
- settings: Settings;
152
- /**
153
- * The list of the tracks that are currently rendered.
154
- *
155
- * @category Properties - Core
156
- * @since 0.9.4
157
- * @example
158
- * JavaScript
159
- * ```js
160
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
161
- * highlightCurrentTracksInTrackSelector(api.tracks);
162
- * ```
163
- *
164
- * @example
165
- * C#
166
- * ```cs
167
- * var api = new AlphaTabApi<MyControl>(...);
168
- * HighlightCurrentTracksInTrackSelector(api.Tracks);
169
- * ```
170
- *
171
- * @example
172
- * Android
173
- * ```kotlin
174
- * val api = AlphaTabApi<MyControl>(...)
175
- * highlightCurrentTracksInTrackSelector(api.tracks)
176
- * ```
177
- */
178
- get tracks(): Track[];
179
- /**
180
- * The UI container that will hold all rendered results.
181
- * @since 0.9.4
182
- * @category Properties - Core
183
- */
184
- readonly canvasElement: IContainer;
185
- /**
186
- * Initializes a new instance of the {@link AlphaTabApiBase} class.
187
- * @param uiFacade The UI facade to use for interacting with the user interface.
188
- * @param settings The UI settings object to use for loading the settings.
189
- */
190
- constructor(uiFacade: IUiFacade<TSettings>, settings: TSettings);
191
- private _setupPlayerWrapper;
192
- /**
193
- * Destroys the alphaTab control and restores the initial state of the UI.
194
- * @remarks
195
- * This function destroys the alphaTab control and tries to restore the initial state of the UI. This might be useful if
196
- * our website is quite dynamic and you need to uninitialize alphaTab from an element again. After destroying alphaTab
197
- * it cannot be used anymore. Any further usage leads to unexpected behavior.
198
- *
199
- * @category Methods - Core
200
- * @since 0.9.4
201
- * @example
202
- * JavaScript
203
- * ```js
204
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
205
- * api.destroy();
206
- * ```
207
- *
208
- * @example
209
- * C#
210
- * ```cs
211
- * var api = new AlphaTabApi<MyControl>(...);
212
- * api.Destroy();
213
- * ```
214
- *
215
- * @example
216
- * Android
217
- * ```kotlin
218
- * val api = AlphaTabApi<MyControl>(...)
219
- * api.destroy()
220
- * ```
221
- */
222
- destroy(): void;
223
- /**
224
- * Applies any changes that were done to the settings object.
225
- * @remarks
226
- * It also informs the {@link renderer} about any new values to consider.
227
- * By default alphaTab will not trigger any re-rendering or settings update just if the settings object itself was changed. This method must be called
228
- * to trigger an update of the settings in all components. Then a re-rendering can be initiated using the {@link render} method.
229
- *
230
- * @category Methods - Core
231
- * @since 0.9.4
232
- * @example
233
- * JavaScript
234
- * ```js
235
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
236
- * api.settings.display.scale = 2.0;
237
- * api.updateSettings();
238
- * api.render();
239
- * ```
240
- *
241
- * @example
242
- * C#
243
- * ```cs
244
- * var api = new AlphaTabApi<MyControl>(...);
245
- *
246
- * api.Settings.Display.Scale = 2.0;
247
- * api.UpdateSettings();
248
- * api.Render()
249
- * ```
250
- *
251
- * @example
252
- * Android
253
- * ```kotlin
254
- * val api = AlphaTabApi<MyControl>(...)
255
- *
256
- * api.settings.display.scale = 2.0
257
- * api.updateSettings()
258
- * api.render()
259
- * ```
260
- */
261
- updateSettings(): void;
262
- private _updateRenderer;
263
- /**
264
- * Initiates a load of the score using the given data.
265
- * @returns true if the data object is supported and a load was initiated, otherwise false
266
- * @param scoreData The data container supported by {@link IUiFacade}. The supported types is depending on the platform:
267
- *
268
- * * A `alphaTab.model.Score` instance (all platforms)
269
- * * A `ArrayBuffer` or `Uint8Array` containing one of the supported file formats (all platforms, native byte array or input streams on other platforms)
270
- * * A url from where to download the binary data of one of the supported file formats (browser only)
271
- *
272
- * @param trackIndexes The indexes of the tracks from the song that should be rendered. If not provided, the first track of the
273
- * song will be shown.
274
- * @category Methods - Player
275
- * @since 0.9.4
276
- * @example
277
- * JavaScript
278
- * ```js
279
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
280
- * api.load('/assets/MyFile.gp');
281
- * ```
282
- *
283
- * @example
284
- * C#
285
- * ```cs
286
- * var api = new AlphaTabApi<MyControl>(...);
287
- * api.Load(System.IO.File.OpenRead("MyFile.gp"));
288
- * ```
289
- *
290
- * @example
291
- * Android
292
- * ```kotlin
293
- * val api = AlphaTabApi<MyControl>(...)
294
- * contentResolver.openInputStream(uri).use {
295
- * api.load(it)
296
- * }
297
- * ```
298
- */
299
- load(scoreData: unknown, trackIndexes?: number[]): boolean;
300
- /**
301
- * Initiates a rendering of the given score.
302
- * @param score The score containing the tracks to be rendered.
303
- * @param trackIndexes The indexes of the tracks from the song that should be rendered. If not provided, the first track of the
304
- * song will be shown.
305
- *
306
- * @category Methods - Core
307
- * @since 0.9.4
308
- * @example
309
- * JavaScript
310
- * ```js
311
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
312
- * api.RenderScore(generateScore(),[ 2, 3 ]);
313
- * ```
314
- *
315
- * @example
316
- * C#
317
- * ```cs
318
- * var api = new AlphaTabApi<MyControl>(...);
319
- * api.RenderScore(GenerateScore(), new double[] { 2, 3 });
320
- * ```
321
- *
322
- * @example
323
- * Android
324
- * ```kotlin
325
- * val api = AlphaTabApi<MyControl>(...)
326
- * api.renderScore(generateScore(), alphaTab.collections.DoubleList(2, 3));
327
- * ```
328
- */
329
- renderScore(score: Score, trackIndexes?: number[]): void;
330
- /**
331
- * Renders the given list of tracks.
332
- * @param tracks The tracks to render. They must all belong to the same score.
333
- *
334
- * @category Methods - Core
335
- * @since 0.9.4
336
- * @example
337
- * JavaScript
338
- * ```js
339
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
340
- * api.renderTracks([api.score.tracks[0], api.score.tracks[1]]);
341
- * ```
342
- *
343
- * @example
344
- * C#
345
- * ```cs
346
- * var api = new AlphaTabApi<MyControl>(...);
347
- * api.RenderTracks(new []{
348
- * api.Score.Tracks[2],
349
- * api.Score.Tracks[3]
350
- * });
351
- * ```
352
- *
353
- * @example
354
- * Android
355
- * ```kotlin
356
- * val api = AlphaTabApi<MyControl>(...)
357
- * api.renderTracks(alphaTab.collections.List(
358
- * api.score.tracks[2],
359
- * api.score.tracks[3]
360
- * }
361
- * ```
362
- */
363
- renderTracks(tracks: Track[]): void;
364
- private _internalRenderTracks;
365
- /**
366
- * @internal
367
- */
368
- triggerResize(): void;
369
- private _appendRenderResult;
370
- private _updateRenderResult;
371
- /**
372
- * Tells alphaTab to render the given alphaTex.
373
- * @param tex The alphaTex code to render.
374
- * @param tracks If set, the given tracks will be rendered, otherwise the first track only will be rendered.
375
- * @category Methods - Core
376
- * @since 0.9.4
377
- *
378
- * @example
379
- * JavaScript
380
- * ```js
381
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
382
- * api.tex("\\title 'Test' . 3.3.4");
383
- * ```
384
- *
385
- * @example
386
- * C#
387
- * ```cs
388
- * var api = new AlphaTabApi<MyControl>(...);
389
- * api.Tex("\\title 'Test' . 3.3.4");
390
- * ```
391
- *
392
- * @example
393
- * Android
394
- * ```kotlin
395
- * val api = AlphaTabApi<MyControl>(...)
396
- * api.tex("\\title 'Test' . 3.3.4");
397
- * ```
398
- */
399
- tex(tex: string, tracks?: number[]): void;
400
- /**
401
- * Triggers a load of the soundfont from the given data.
402
- * @remarks
403
- * AlphaTab only supports SoundFont2 and SoundFont3 {@since 1.4.0} encoded soundfonts for loading. To load a soundfont the player must be enabled in advance.
404
- *
405
- * @param data The data object to decode. The supported data types is depending on the platform.
406
- *
407
- * * A `ArrayBuffer` or `Uint8Array` (all platforms, native byte array or input streams on other platforms)
408
- * * A url from where to download the binary data of one of the supported file formats (browser only)
409
- *
410
- * @param append Whether to fully replace or append the data from the given soundfont.
411
- * @returns `true` if the passed in object is a supported format and loading was initiated, otherwise `false`.
412
- *
413
- * @category Methods - Player
414
- * @since 0.9.4
415
- * @example
416
- * JavaScript
417
- * ```js
418
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
419
- * api.loadSoundFont('/assets/MyFile.sf2');
420
- * ```
421
- *
422
- * @example
423
- * C#
424
- * ```cs
425
- * var api = new AlphaTabApi<MyControl>(...);
426
- * api.LoadSoundFont(System.IO.File.OpenRead("MyFile.sf2"));
427
- * ```
428
- *
429
- * @example
430
- * Android
431
- * ```kotlin
432
- * val api = AlphaTabApi<MyControl>(...)
433
- * contentResolver.openInputStream(uri).use {
434
- * api.loadSoundFont(it)
435
- * }
436
- * ```
437
- */
438
- loadSoundFont(data: unknown, append?: boolean): boolean;
439
- /**
440
- * Unloads all presets from previously loaded SoundFonts.
441
- * @remarks
442
- * This function resets the player internally to not have any SoundFont loaded anymore. This allows you to reduce the memory usage of the page
443
- * if multiple partial SoundFonts are loaded via `loadSoundFont(..., true)`. Depending on the workflow you might also just want to use `loadSoundFont(..., false)` once
444
- * instead of unloading the previous SoundFonts.
445
- *
446
- * @category Methods - Player
447
- * @since 0.9.4
448
- * @example
449
- * JavaScript
450
- * ```js
451
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
452
- * api.loadSoundFont('/assets/guitars.sf2', true);
453
- * api.loadSoundFont('/assets/pianos.sf2', true);
454
- * // ..
455
- * api.resetSoundFonts();
456
- * api.loadSoundFont('/assets/synths.sf2', true);
457
- * ```
458
- *
459
- * @example
460
- * C#
461
- * ```cs
462
- *var api = new AlphaTabApi<MyControl>(...);
463
- *api.LoadSoundFont(System.IO.File.OpenRead("guitars.sf2"), true);
464
- *api.LoadSoundFont(System.IO.File.OpenRead("pianos.sf2"), true);
465
- *...
466
- *api.ResetSoundFonts();
467
- *api.LoadSoundFont(System.IO.File.OpenRead("synths.sf2"), true);
468
- * ```
469
- *
470
- * @example
471
- * Android
472
- * ```kotlin
473
- * val api = AlphaTabApi<MyControl>(...)
474
- * api.loadSoundFont(readResource("guitars.sf2"), true)
475
- * api.loadSoundFont(readResource("pianos.sf2"), true)
476
- * ...
477
- * api.resetSoundFonts()
478
- * api.loadSoundFont(readResource("synths.sf2"), true)
479
- * ```
480
- */
481
- resetSoundFonts(): void;
482
- /**
483
- * Initiates a re-rendering of the current setup.
484
- * @remarks
485
- * If rendering is not yet possible, it will be deferred until the UI changes to be ready for rendering.
486
- *
487
- * @category Methods - Core
488
- * @since 0.9.4
489
- * @example
490
- * JavaScript
491
- * ```js
492
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
493
- * api.render();
494
- * ```
495
- *
496
- * @example
497
- * C#
498
- * ```cs
499
- * var api = new AlphaTabApi<MyControl>(...);
500
- * api.Render();
501
- * ```
502
- *
503
- * @example
504
- * Android
505
- * ```kotlin
506
- * val api = AlphaTabApi<MyControl>(...)
507
- * api.render()
508
- * ```
509
- */
510
- render(): void;
511
- private _tickCache;
512
- /**
513
- * The tick cache allowing lookup of midi ticks to beats.
514
- * @remarks
515
- * Gets the tick cache allowing lookup of midi ticks to beats. If the player is enabled, a midi file will be generated
516
- * for the loaded {@link Score} for later playback. During this generation this tick cache is filled with the
517
- * exact midi ticks when beats are played.
518
- *
519
- * The {@link MidiTickLookup.findBeat} method allows a lookup of the beat related to a given input midi tick.
520
- *
521
- * @category Properties - Player
522
- * @since 1.2.3
523
- * @example
524
- * JavaScript
525
- * ```js
526
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
527
- * const lookupResult = api.tickCache.findBeat(new Set([0, 1]), 100);
528
- * const currentBeat = lookupResult?.currentBeat;
529
- * ```
530
- *
531
- * @example
532
- * C#
533
- * ```cs
534
- * var api = new AlphaTabApi<MyControl>(...);
535
- * var lookupResult = api.TickCache.FindBeat(new AlphaTab.Core.EcmaScript.Set(0, 1), 100);
536
- * var currentBeat = lookupResult?.CurrentBeat;
537
- * ```
538
- *
539
- * @example
540
- * Android
541
- * ```kotlin
542
- * val api = AlphaTabApi<MyControl>(...)
543
- * val lookupResult = api.tickCache.findBeat(alphaTab.core.ecmaScript.Set(0, 1), 100);
544
- * val currentBeat = lookupResult?.CurrentBeat;
545
- * ```
546
- */
547
- get tickCache(): MidiTickLookup | null;
548
- /**
549
- * The tick cache allowing lookup of midi ticks to beats.
550
- * @remarks
551
- * In older versions of alphaTab you can access the `boundsLookup` via {@link IScoreRenderer.boundsLookup} on {@link renderer}.
552
- *
553
- * After the rendering completed alphaTab exposes via this lookup the location of the individual
554
- * notation elements. The lookup provides fast access to the bars and beats at a given location.
555
- * If the {@link CoreSettings.includeNoteBounds} option was activated also the location of the individual notes can be obtained.
556
- *
557
- * The property contains a `BoundsLookup` instance which follows a hierarchical structure that represents
558
- * the tree of rendered elements.
559
- *
560
- * The hierarchy is: `staffSystems > bars(1) > bars(2) > beats > notes`
561
- *
562
- * * `staffSystems` - Represent the bounds of the individual systems ("rows") where staves are contained.
563
- * * `bars(1)` - Represent the bounds of all bars for a particular master bar across all tracks.
564
- * * `bars(2)` - Represent the bounds of an individual bar of a track. The bounds on y-axis span the region of the staff and notes might exceed this bounds.
565
- * * `beats` - Represent the bounds of the individual beats within a track. The bounds on y-axis are equal to the bar bounds.
566
- * * `notes` - Represent the bounds of the individual note heads/numbers within a track.
567
- *
568
- * Each bounds hierarchy have a `visualBounds` and `realBounds`.
569
- *
570
- * * `visualBounds` - Represent the area covering all visually visible elements
571
- * * `realBounds` - Represents the actual bounds of the elements in this beat including whitespace areas.
572
- * * `noteHeadBounds` (only on `notes` level) - Represents the area of the note heads or number based on the staff
573
- *
574
- * You can check out the individual sizes and regions.
575
- * @category Properties - Core
576
- * @since 1.5.0
577
- */
578
- get boundsLookup(): BoundsLookup | null;
579
- /**
580
- * The alphaSynth player used for playback.
581
- * @remarks
582
- * This is the low-level API to the Midi synthesizer used for playback.
583
- * Gets access to the underling {@link IAlphaSynth} that is used for the audio playback.
584
- * @category Properties - Player
585
- * @since 0.9.4
586
- * @example
587
- * JavaScript
588
- * ```js
589
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
590
- * setupPlayerEvents(api.settings);
591
- * ```
592
- *
593
- * @example
594
- * C#
595
- * ```cs
596
- * var api = new AlphaTabApi<MyControl>(...);
597
- * SetupPlayerEvents(api.Player);
598
- * ```
599
- *
600
- * @example
601
- * Android
602
- * ```kotlin
603
- * val api = AlphaTabApi<MyControl>(...)
604
- * setupPlayerEvents(api.player)
605
- * ```
606
- */
607
- get player(): IAlphaSynth | null;
608
- /**
609
- * Whether the player is ready for starting the playback.
610
- * @remarks
611
- * Gets whether the synthesizer is ready for playback. The player is ready for playback when
612
- * all background workers are started, the audio output is initialized, a soundfont is loaded, and a song was loaded into the player as midi file.
613
- * @category Properties - Player
614
- * @since 0.9.4
615
- * @example
616
- * JavaScript
617
- * ```js
618
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
619
- * if(api.isReadyForPlayback)) api.play();
620
- * ```
621
- *
622
- * @example
623
- * C#
624
- * ```cs
625
- * var api = new AlphaTabApi<MyControl>(...);
626
- * if(api.IsReadyForPlayback) api.Play();
627
- * ```
628
- *
629
- * @example
630
- * Android
631
- * ```kotlin
632
- * val api = AlphaTabApi<MyControl>(...)
633
- * if (api.isReadyForPlayback) api.play()
634
- * ```
635
- */
636
- get isReadyForPlayback(): boolean;
637
- /**
638
- * The current player state.
639
- * @remarks
640
- * Gets the current player state, meaning whether it is paused or playing.
641
- * @category Properties - Player
642
- * @since 0.9.4
643
- * @example
644
- * JavaScript
645
- * ```js
646
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
647
- * if(api.playerState != alphaTab.synth.PlayerState.Playing) api.play();
648
- * ```
649
- *
650
- * @example
651
- * C#
652
- * ```cs
653
- * var api = new AlphaTabApi<MyControl>(...);
654
- * if(api.PlayerState != PlayerState.Playing) api.Play();
655
- * ```
656
- *
657
- * @example
658
- * Android
659
- * ```kotlin
660
- * val api = AlphaTabApi<MyControl>(...)
661
- * if (api.playerState != PlayerState.Playing) api.play()
662
- * ```
663
- */
664
- get playerState(): PlayerState;
665
- /**
666
- * The current master volume as percentage (0-1).
667
- * @remarks
668
- * Gets or sets the master volume of the overall audio being played. The volume is annotated in percentage where 1.0 would be the normal volume and 0.5 only 50%.
669
- * @category Properties - Player
670
- * @since 0.9.4
671
- * @example
672
- * JavaScript
673
- * ```js
674
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
675
- * api.masterVolume = 0.5;
676
- * ```
677
- *
678
- * @example
679
- * C#
680
- * ```cs
681
- * var api = new AlphaTabApi<MyControl>(...);
682
- * api.MasterVolume = 0.5;
683
- * ```
684
- *
685
- * @example
686
- * Android
687
- * ```kotlin
688
- * val api = AlphaTabApi<MyControl>(...)
689
- * api.masterVolume = 0.5
690
- * ```
691
- */
692
- get masterVolume(): number;
693
- set masterVolume(value: number);
694
- /**
695
- * The metronome volume as percentage (0-1).
696
- * @remarks
697
- * Gets or sets the volume of the metronome. By default the metronome is disabled but can be enabled by setting the volume different.
698
- * @category Properties - Player
699
- * @defaultValue `0`
700
- * @since 0.9.4
701
- * @example
702
- * JavaScript
703
- * ```js
704
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
705
- * api.metronomeVolume = 0.5;
706
- * ```
707
- *
708
- * @example
709
- * C#
710
- * ```cs
711
- * var api = new AlphaTabApi<MyControl>(...);
712
- * api.MetronomeVolume = 0.5;
713
- * ```
714
- *
715
- * @example
716
- * Android
717
- * ```kotlin
718
- * val api = AlphaTabApi<MyControl>(...)
719
- * api.metronomeVolume = 0.5
720
- * ```
721
- */
722
- get metronomeVolume(): number;
723
- set metronomeVolume(value: number);
724
- /**
725
- * The volume of the count-in metronome ticks.
726
- * @remarks
727
- * Gets or sets the volume of the metronome during the count-in of the song. By default the count-in is disabled but can be enabled by setting the volume different.
728
- * @category Properties - Player
729
- * @since 1.1.0
730
- * @defaultValue `0`
731
- * @example
732
- * JavaScript
733
- * ```js
734
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
735
- * api.countInVolume = 0.5;
736
- * ```
737
- *
738
- * @example
739
- * C#
740
- * ```cs
741
- * var api = new AlphaTabApi<MyControl>(...);
742
- * api.CountInVolume = 0.5;
743
- * ```
744
- *
745
- * @example
746
- * Android
747
- * ```kotlin
748
- * val api = AlphaTabApi<MyControl>(...)
749
- * api.countInVolume = 0.5
750
- * ```
751
- */
752
- get countInVolume(): number;
753
- set countInVolume(value: number);
754
- /**
755
- * The midi events which will trigger the `midiEventsPlayed` event
756
- * @remarks
757
- * Gets or sets the midi events which will trigger the `midiEventsPlayed` event. With this filter set you can enable
758
- * that alphaTab will signal any midi events as they are played by the synthesizer. This allows reacing on various low level
759
- * audio playback elements like notes/rests played or metronome ticks.
760
- *
761
- * Refer to the [related guide](https://alphatab.net/docs/guides/handling-midi-events) to learn more about this feature.
762
- * @defaultValue `[]`
763
- * @category Properties - Player
764
- * @since 1.2.0
765
- * @example
766
- * JavaScript
767
- * ```js
768
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
769
- * api.midiEventsPlayedFilter = [alphaTab.midi.MidiEventType.AlphaTabMetronome];
770
- * api.midiEventsPlayed.on(function(e) {
771
- * for(const midi of e.events) {
772
- * if(midi.isMetronome) {
773
- * console.log('Metronome tick ' + midi.metronomeNumerator);
774
- * }
775
- * }
776
- * });
777
- * ```
778
- *
779
- * @example
780
- * C#
781
- * ```cs
782
- * var api = new AlphaTabApi<MyControl>(...);
783
- * api.MidiEventsPlayedFilter = new MidiEventType[] { AlphaTab.Midi.MidiEventType.AlphaTabMetronome };
784
- * api.MidiEventsPlayed.On(e =>
785
- * {
786
- * foreach(var midi of e.events)
787
- * {
788
- * if(midi is AlphaTab.Midi.AlphaTabMetronomeEvent metronome)
789
- * {
790
- * Console.WriteLine("Metronome tick " + metronome.MetronomeNumerator);
791
- * }
792
- * }
793
- * });
794
- * ```
795
- *
796
- * @example
797
- * Android
798
- * ```kotlin
799
- * val api = AlphaTabApi<MyControl>(...);
800
- * api.midiEventsPlayedFilter = alphaTab.collections.List<alphaTab.midi.MidiEventType>( alphaTab.midi.MidiEventType.AlphaTabMetronome )
801
- * api.midiEventsPlayed.on { e ->
802
- * for (midi in e.events) {
803
- * if(midi instanceof alphaTab.midi.AlphaTabMetronomeEvent && midi.isMetronome) {
804
- * println("Metronome tick " + midi.tick);
805
- * }
806
- * }
807
- * }
808
- * ```
809
- */
810
- get midiEventsPlayedFilter(): MidiEventType[];
811
- set midiEventsPlayedFilter(value: MidiEventType[]);
812
- /**
813
- * The position within the song in midi ticks.
814
- * @category Properties - Player
815
- * @since 0.9.4
816
- * @example
817
- * JavaScript
818
- * ```js
819
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
820
- * api.tickPosition = 4000;
821
- * ```
822
- *
823
- * @example
824
- * C#
825
- * ```cs
826
- * var api = new AlphaTabApi<MyControl>(...);
827
- * api.TickPosition = 4000;
828
- * ```
829
- *
830
- * @example
831
- * Android
832
- * ```kotlin
833
- * val api = AlphaTabApi<MyControl>(...)
834
- * api.tickPosition = 4000
835
- * ```
836
- */
837
- get tickPosition(): number;
838
- set tickPosition(value: number);
839
- /**
840
- * The position within the song in milliseconds
841
- * @category Properties - Player
842
- * @since 0.9.4
843
- * @example
844
- * JavaScript
845
- * ```js
846
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
847
- * api.timePosition = 4000;
848
- * ```
849
- *
850
- * @example
851
- * C#
852
- * ```cs
853
- * var api = new AlphaTabApi<MyControl>(...);
854
- * api.TimePosition = 4000;
855
- * ```
856
- *
857
- * @example
858
- * Android
859
- * ```kotlin
860
- * val api = AlphaTabApi<MyControl>(...)
861
- * api.timePosition = 4000
862
- * ```
863
- */
864
- get timePosition(): number;
865
- set timePosition(value: number);
866
- /**
867
- * The total length of the song in midi ticks.
868
- * @category Properties - Player
869
- * @since 1.6.2
870
- */
871
- get endTick(): number;
872
- /**
873
- * The total length of the song in milliseconds.
874
- * @category Properties - Player
875
- * @since 1.6.2
876
- */
877
- get endTime(): number;
878
- /**
879
- * The range of the song that should be played.
880
- * @remarks
881
- * Gets or sets the range of the song that should be played. The range is defined in midi ticks or the whole song is played if the range is set to null
882
- * @category Properties - Player
883
- * @defaultValue `null`
884
- * @since 0.9.4
885
- * @example
886
- * JavaScript
887
- * ```js
888
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
889
- * api.playbackRange = { startTick: 1000, endTick: 50000 };
890
- * ```
891
- *
892
- * @example
893
- * C#
894
- * ```cs
895
- * var api = new AlphaTabApi<MyControl>(...);
896
- * api.PlaybackRange = new PlaybackRange { StartTick = 1000, EndTick = 50000 };
897
- * ```
898
- *
899
- * @example
900
- * Android
901
- * ```kotlin
902
- * val api = AlphaTabApi<MyControl>(...)
903
- * api.playbackRange = PlaybackRange.apply {
904
- * startTick = 1000
905
- * endTick = 50000
906
- * }
907
- * ```
908
- */
909
- get playbackRange(): PlaybackRange | null;
910
- set playbackRange(value: PlaybackRange | null);
911
- /**
912
- * The current playback speed as percentage
913
- * @remarks
914
- * Controls the current playback speed as percentual value. Normal speed is 1.0 (100%) and 0.5 would be 50%.
915
- * @category Properties - Player
916
- * @defaultValue `1`
917
- * @since 0.9.4
918
- * @example
919
- * JavaScript
920
- * ```js
921
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
922
- * api.playbackSpeed = 0.5;
923
- * ```
924
- *
925
- * @example
926
- * C#
927
- * ```cs
928
- * var api = new AlphaTabApi<MyControl>(...);
929
- * api.PlaybackSpeed = 0.5;
930
- * ```
931
- *
932
- * @example
933
- * Android
934
- * ```kotlin
935
- * val api = AlphaTabApi<MyControl>(...)
936
- * api.playbackSpeed = 0.5
937
- * ```
938
- */
939
- get playbackSpeed(): number;
940
- set playbackSpeed(value: number);
941
- /**
942
- * Whether the playback should automatically restart after it finished.
943
- * @remarks
944
- * This setting controls whether the playback should automatically restart after it finished to create a playback loop.
945
- * @category Properties - Player
946
- * @defaultValue `false`
947
- * @since 0.9.4
948
- * @example
949
- * JavaScript
950
- * ```js
951
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
952
- * api.isLooping = true;
953
- * ```
954
- *
955
- * @example
956
- * C#
957
- * ```cs
958
- * var api = new AlphaTabApi<MyControl>(...);
959
- * api.IsLooping = true;
960
- * ```
961
- *
962
- * @example
963
- * Android
964
- * ```kotlin
965
- * val api = AlphaTabApi<MyControl>(...)
966
- * api.isLooping = true
967
- * ```
968
- */
969
- get isLooping(): boolean;
970
- set isLooping(value: boolean);
971
- private _destroyPlayer;
972
- /**
973
- *
974
- * @returns true if a new player was created, false if no player was created (includes destroy & reuse of the current one)
975
- */
976
- private _setupOrDestroyPlayer;
977
- /**
978
- * Re-creates the midi for the current score and loads it.
979
- * @remarks
980
- * This will result in the player to stop playback. Some setting changes require re-genration of the midi song.
981
- * @category Methods - Player
982
- * @since 1.6.0
983
- */
984
- loadMidiForScore(): void;
985
- /**
986
- * Triggers an update of the sync points for the current score after modification within the data model
987
- * @category Methods - Player
988
- * @since 1.6.0
989
- */
990
- updateSyncPoints(): void;
991
- /**
992
- * Changes the volume of the given tracks.
993
- * @param tracks The tracks for which the volume should be changed.
994
- * @param volume The volume to set for all tracks in percent (0-1)
995
- *
996
- * @remarks
997
- * This will result in a volume change of the primary and secondary midi channel that the track uses for playback.
998
- * If the track shares the channels with another track, all related tracks will be changed as they cannot be distinguished.
999
- * @category Methods - Player
1000
- * @since 0.9.4
1001
- *
1002
- * @example
1003
- * JavaScript
1004
- * ```js
1005
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
1006
- * api.changeTrackVolume([api.score.tracks[0], api.score.tracks[1]], 1.5);
1007
- * api.changeTrackVolume([api.score.tracks[2]], 0.5);
1008
- * ```
1009
- *
1010
- * @example
1011
- * C#
1012
- * ```cs
1013
- * var api = new AlphaTabApi<MyControl>(...);
1014
- * api.ChangeTrackVolume(new Track[] { api.Score.Tracks[0], api.Score.Tracks[1] }, 1.5);
1015
- * api.ChangeTrackVolume(new Track[] { api.Score.Tracks[2] }, 0.5);
1016
- * ```
1017
- *
1018
- * @example
1019
- * Android
1020
- * ```kotlin
1021
- * val api = AlphaTabApi<MyControl>(...);
1022
- * api.changeTrackVolume(alphaTab.collections.List<alphaTab.model.Track>(api.score.tracks[0], api.score.tracks[1]), 1.5);
1023
- * api.changeTrackVolume(alphaTab.collections.List<alphaTab.model.Track>(api.score.tracks[2]), 0.5);
1024
- * ```
1025
- */
1026
- changeTrackVolume(tracks: Track[], volume: number): void;
1027
- /**
1028
- * Changes the given tracks to be played solo or not.
1029
- * @param tracks The list of tracks to play solo or not.
1030
- * @param solo If set to true, the tracks will be added to the solo list. If false, they are removed.
1031
- *
1032
- * @remarks
1033
- * If any track is set to solo, all other tracks are muted, unless they are also flagged as solo.
1034
- * This will result in a solo playback of the primary and secondary midi channel that the track uses for playback.
1035
- * If the track shares the channels with another track, all related tracks will be played as they cannot be distinguished.
1036
- * @category Methods - Player
1037
- * @since 0.9.4
1038
- *
1039
- * @example
1040
- * JavaScript
1041
- * ```js
1042
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
1043
- * api.changeTrackSolo([api.score.tracks[0], api.score.tracks[1]], true);
1044
- * ```
1045
- *
1046
- * @example
1047
- * C#
1048
- * ```cs
1049
- * var api = new AlphaTabApi<MyControl>(...);
1050
- * api.ChangeTrackSolo(new Track[] { api.Score.Tracks[0], api.Score.Tracks[1] }, true);
1051
- * ```
1052
- *
1053
- * @example
1054
- * Android
1055
- * ```kotlin
1056
- * val api = AlphaTabApi<MyControl>(...)
1057
- * api.changeTrackSolo(alphaTab.collections.List<alphaTab.model.Track>(api.score.tracks[0], api.score.tracks[1]), true);
1058
- * ```
1059
- */
1060
- changeTrackSolo(tracks: Track[], solo: boolean): void;
1061
- /**
1062
- * Changes the given tracks to be muted or not.
1063
- * @param tracks The list of track to mute or unmute.
1064
- * @param mute If set to true, the tracks will be muted. If false they are unmuted.
1065
- *
1066
- * @remarks
1067
- * This will result in a muting of the primary and secondary midi channel that the track uses
1068
- * for playback. If the track shares the channels with another track, all tracks will be muted as during playback they cannot be distinguished.
1069
- * @category Methods - Player
1070
- * @since 0.9.4
1071
- *
1072
- * @example
1073
- * JavaScript
1074
- * ```js
1075
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
1076
- * api.changeTrackMute([api.score.tracks[0], api.score.tracks[1]], true);
1077
- * ```
1078
- *
1079
- * @example
1080
- * C#
1081
- * ```cs
1082
- * var api = new AlphaTabApi<MyControl>(...);
1083
- * api.ChangeTrackMute(new Track[] { api.Score.Tracks[0], api.Score.Tracks[1] }, true);
1084
- * ```
1085
- *
1086
- * @example
1087
- * Android
1088
- * ```kotlin
1089
- * val api = AlphaTabApi<MyControl>(...)
1090
- * api.changeTrackMute(alphaTab.collections.List<alphaTab.model.Track>(api.score.tracks[0], api.score.tracks[1]), true);
1091
- * ```
1092
- */
1093
- changeTrackMute(tracks: Track[], mute: boolean): void;
1094
- /**
1095
- * Changes the pitch transpose applied to the given tracks.
1096
- * @param tracks The list of tracks to change.
1097
- * @param semitones The number of semitones to apply as pitch offset.
1098
- *
1099
- * @remarks
1100
- * These pitches are additional to the ones applied to the song via the settings and data model and allows a more live-update via a UI.
1101
- * @category Methods - Player
1102
- * @since 1.4.0
1103
- *
1104
- * @example
1105
- * JavaScript
1106
- * ```js
1107
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
1108
- * api.changeTrackTranspositionPitch([api.score.tracks[0], api.score.tracks[1]], 3);
1109
- * api.changeTrackTranspositionPitch([api.score.tracks[2]], 2);
1110
- * ```
1111
- *
1112
- * @example
1113
- * C#
1114
- * ```cs
1115
- * var api = new AlphaTabApi<MyControl>(...);
1116
- * api.ChangeTrackTranspositionPitch(new Track[] { api.Score.Tracks[0], api.Score.Tracks[1] }, 3);
1117
- * api.ChangeTrackTranspositionPitch(new Track[] { api.Score.Tracks[2] }, 3);
1118
- * ```
1119
- *
1120
- * @example
1121
- * Android
1122
- * ```kotlin
1123
- * val api = AlphaTabApi<MyControl>(...);
1124
- * api.changeTrackTranspositionPitch(alphaTab.collections.List<alphaTab.model.Track>(api.score.tracks[0], api.score.tracks[1]), 3);
1125
- * api.changeTrackTranspositionPitch(alphaTab.collections.List<alphaTab.model.Track>(api.score.tracks[2]), 2);
1126
- * ```
1127
- */
1128
- changeTrackTranspositionPitch(tracks: Track[], semitones: number): void;
1129
- /**
1130
- * Starts the playback of the current song.
1131
- * @returns true if the playback was started, otherwise false. Reasons for not starting can be that the player is not ready or already playing.
1132
- * @category Methods - Player
1133
- * @since 0.9.4
1134
- *
1135
- * @example
1136
- * JavaScript
1137
- * ```js
1138
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
1139
- * api.play();
1140
- * ```
1141
- *
1142
- * @example
1143
- * C#
1144
- * ```cs
1145
- * var api = new AlphaTabApi<MyControl>(...);
1146
- * api.Play();
1147
- * ```
1148
- *
1149
- * @example
1150
- * Android
1151
- * ```kotlin
1152
- * val api = AlphaTabApi<MyControl>(...)
1153
- * api.play()
1154
- * ```
1155
- */
1156
- play(): boolean;
1157
- /**
1158
- * Pauses the playback of the current song.
1159
- * @category Methods - Player
1160
- * @since 0.9.4
1161
- *
1162
- * @example
1163
- * JavaScript
1164
- * ```js
1165
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
1166
- * api.pause();
1167
- * ```
1168
- *
1169
- * @example
1170
- * C#
1171
- * ```cs
1172
- * var api = new AlphaTabApi<MyControl>(...);
1173
- * api.Pause();
1174
- * ```
1175
- *
1176
- * @example
1177
- * Android
1178
- * ```kotlin
1179
- * val api = AlphaTabApi<MyControl>(...)
1180
- * api.pause();
1181
- * ```
1182
- */
1183
- pause(): void;
1184
- /**
1185
- * Toggles between play/pause depending on the current player state.
1186
- * @remarks
1187
- * If the player was playing, it will pause. If it is paused, it will initiate a play.
1188
- * @category Methods - Player
1189
- * @since 0.9.4
1190
- *
1191
- * @example
1192
- * JavaScript
1193
- * ```js
1194
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
1195
- * api.playPause();
1196
- * ```
1197
- *
1198
- * @example
1199
- * C#
1200
- * ```cs
1201
- * var api = new AlphaTabApi<MyControl>(...);
1202
- * api.PlayPause();
1203
- * ```
1204
- *
1205
- * @example
1206
- * Android
1207
- * ```kotlin
1208
- * val api = AlphaTabApi<MyControl>(...)
1209
- * api.playPause()
1210
- * ```
1211
- */
1212
- playPause(): void;
1213
- /**
1214
- * Stops the playback of the current song, and moves the playback position back to the start.
1215
- * @remarks
1216
- * If a dedicated playback range is selected, it will move the playback position to the start of this range, not the whole song.
1217
- * @category Methods - Player
1218
- * @since 0.9.4
1219
- *
1220
- * @example
1221
- * JavaScript
1222
- * ```js
1223
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
1224
- * api.stop();
1225
- * ```
1226
- *
1227
- * @example
1228
- * C#
1229
- * ```cs
1230
- * var api = new AlphaTabApi<MyControl>(...);
1231
- * api.Stop();
1232
- * ```
1233
- *
1234
- * @example
1235
- * Android
1236
- * ```kotlin
1237
- * val api = AlphaTabApi<MyControl>(...)
1238
- * api.stop()
1239
- * ```
1240
- */
1241
- stop(): void;
1242
- /**
1243
- * Triggers the play of the given beat.
1244
- * @param beat the single beat to play
1245
- * @remarks
1246
- * This will stop the any other current ongoing playback.
1247
- * This method can be used in applications when individual beats need to be played for lesson or editor style purposes.
1248
- * The player will not report any change in state or playback position during the playback of the requested beat.
1249
- * It is a playback of audio separate to the main song playback.
1250
- * @returns true if the playback was started, otherwise false. Reasons for not starting can be that the player is not ready or already playing.
1251
- * @category Methods - Player
1252
- * @since 1.1.0
1253
- *
1254
- * @example
1255
- * JavaScript
1256
- * ```js
1257
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
1258
- * api.playBeat(api.score.tracks[0].staves[0].bars[0].voices[0].beats[0]);
1259
- * ```
1260
- *
1261
- * @example
1262
- * C#
1263
- * ```cs
1264
- * var api = new AlphaTabApi<MyControl>(...);
1265
- * api.PlayBeat(api.Score.Tracks[0].Staves[0].Bars[0].Voices[0].Beats[0]);
1266
- * ```
1267
- *
1268
- * @example
1269
- * Android
1270
- * ```kotlin
1271
- * val api = AlphaTabApi<MyControl>(...)
1272
- * api.playBeat(api.score.tracks[0].staves[0].bars[0].voices[0].beats[0])
1273
- * ```
1274
- */
1275
- playBeat(beat: Beat): void;
1276
- /**
1277
- * Triggers the play of the given note.
1278
- * @param note the single note to play
1279
- * @remarks
1280
- * This will stop the any other current ongoing playback.
1281
- * This method can be used in applications when individual notes need to be played for lesson or editor style purposes.
1282
- * The player will not report any change in state or playback position during the playback of the requested note.
1283
- * It is a playback of audio separate to the main song playback.
1284
- * @category Methods - Player
1285
- * @since 1.1.0
1286
- *
1287
- * @example
1288
- * JavaScript
1289
- * ```js
1290
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
1291
- * api.playNote(api.score.tracks[0].staves[0].bars[0].voices[0].beats[0].notes[0]);
1292
- * ```
1293
- *
1294
- * @example
1295
- * C#
1296
- * ```cs
1297
- * var api = new AlphaTabApi<MyControl>(...);
1298
- * api.PlayNote(api.Score.Tracks[0].Staves[0].Bars[0].Voices[0].Beats[0].Notes[0]);
1299
- * ```
1300
- *
1301
- * @example
1302
- * Android
1303
- * ```kotlin
1304
- * val api = AlphaTabApi<MyControl>(...)
1305
- * api.playNote(api.score.tracks[0].staves[0].bars[0].voices[0].beats[0].notes[0]);
1306
- * ```
1307
- */
1308
- playNote(note: Note): void;
1309
- private _cursorWrapper;
1310
- private _barCursor;
1311
- private _beatCursor;
1312
- private _selectionWrapper;
1313
- private _previousTick;
1314
- private _currentBeat;
1315
- private _currentBeatBounds;
1316
- private _isInitialBeatCursorUpdate;
1317
- private _previousStateForCursor;
1318
- private _previousCursorCache;
1319
- private _lastScroll;
1320
- private _destroyCursors;
1321
- private _updateCursors;
1322
- /**
1323
- * updates the cursors to highlight the beat at the specified tick position
1324
- * @param tick
1325
- * @param stop
1326
- * @param shouldScroll whether we should scroll to the bar (if scrolling is active)
1327
- */
1328
- private _cursorUpdateTick;
1329
- /**
1330
- * updates the cursors to highlight the specified beat
1331
- */
1332
- private _cursorUpdateBeat;
1333
- /**
1334
- * Initiates a scroll to the cursor.
1335
- * @since 1.2.3
1336
- * @category Methods - Player
1337
- */
1338
- scrollToCursor(): void;
1339
- private _internalScrollToCursor;
1340
- private _internalCursorUpdateBeat;
1341
- /**
1342
- * This event is fired when the played beat changed.
1343
- *
1344
- * @eventProperty
1345
- * @category Events - Player
1346
- * @since 0.9.4
1347
- *
1348
- * @example
1349
- * JavaScript
1350
- * ```js
1351
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
1352
- * api.playedBeatChanged.on((beat) => {
1353
- * updateFretboard(beat);
1354
- * });
1355
- * ```
1356
- *
1357
- * @example
1358
- * C#
1359
- * ```cs
1360
- * var api = new AlphaTabApi<MyControl>(...);
1361
- * api.PlayedBeatChanged.On(beat =>
1362
- * {
1363
- * UpdateFretboard(beat);
1364
- * });
1365
- * ```
1366
- *
1367
- * @example
1368
- * Android
1369
- * ```kotlin
1370
- * val api = AlphaTabApi<MyControl>(...)
1371
- * api.playedBeatChanged.on { beat ->
1372
- * updateFretboard(beat)
1373
- * }
1374
- * ```
1375
- *
1376
- */
1377
- readonly playedBeatChanged: IEventEmitterOfT<Beat>;
1378
- private _onPlayedBeatChanged;
1379
- /**
1380
- * This event is fired when the currently active beats across all tracks change.
1381
- *
1382
- * @remarks
1383
- * Unlike the {@link playedBeatChanged} event this event contains the beats of all tracks and voices independent of them being rendered.
1384
- *
1385
- * @eventProperty
1386
- * @category Events - Player
1387
- * @since 1.2.3
1388
- *
1389
- * @example
1390
- * JavaScript
1391
- * ```js
1392
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
1393
- * api.activeBeatsChanged.on(args => {
1394
- * updateHighlights(args.activeBeats);
1395
- * });
1396
- * ```
1397
- *
1398
- * @example
1399
- * C#
1400
- * ```cs
1401
- * var api = new AlphaTabApi<MyControl>(...);
1402
- * api.ActiveBeatsChanged.On(args =>
1403
- * {
1404
- * UpdateHighlights(args.ActiveBeats);
1405
- * });
1406
- * ```
1407
- *
1408
- * @example
1409
- * Android
1410
- * ```kotlin
1411
- * val api = AlphaTabApi<MyControl>(...)
1412
- * api.activeBeatsChanged.on { args ->
1413
- * updateHighlights(args.activeBeats)
1414
- * }
1415
- * ```
1416
- *
1417
- */
1418
- readonly activeBeatsChanged: IEventEmitterOfT<ActiveBeatsChangedEventArgs>;
1419
- private _onActiveBeatsChanged;
1420
- private _isBeatMouseDown;
1421
- private _isNoteMouseDown;
1422
- private _selectionStart;
1423
- private _selectionEnd;
1424
- /**
1425
- * This event is fired whenever a the user presses the mouse button on a beat.
1426
- * @eventProperty
1427
- * @category Events - Player
1428
- * @since 0.9.7
1429
- *
1430
- * @example
1431
- * JavaScript
1432
- * ```js
1433
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
1434
- * api.beatMouseDown.on((beat) => {
1435
- * startSelectionOnBeat(beat);
1436
- * });
1437
- * ```
1438
- *
1439
- * @example
1440
- * C#
1441
- * ```cs
1442
- * var api = new AlphaTabApi<MyControl>(...);
1443
- * api.BeatMouseDown.On(beat =>
1444
- * {
1445
- * StartSelectionOnBeat(args);
1446
- * });
1447
- * ```
1448
- *
1449
- * @example
1450
- * Android
1451
- * ```kotlin
1452
- * val api = AlphaTabApi<MyControl>(...)
1453
- * api.beatMouseDown.on { beat ->
1454
- * startSelectionOnBeat(args)
1455
- * }
1456
- * ```
1457
- */
1458
- readonly beatMouseDown: IEventEmitterOfT<Beat>;
1459
- /**
1460
- * This event is fired whenever the user moves the mouse over a beat after the user already pressed the button on a beat.
1461
- * @eventProperty
1462
- * @category Events - Player
1463
- * @since 0.9.7
1464
- *
1465
- * @example
1466
- * JavaScript
1467
- * ```js
1468
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
1469
- * api.beatMouseMove.on((beat) => {
1470
- * expandSelectionToBeat(beat);
1471
- * });
1472
- * ```
1473
- *
1474
- * @example
1475
- * C#
1476
- * ```cs
1477
- * var api = new AlphaTabApi<MyControl>(...);
1478
- * api.BeatMouseMove.On(beat =>
1479
- * {
1480
- * ExpandSelectionToBeat(beat);
1481
- * });
1482
- * ```
1483
- *
1484
- * @example
1485
- * Android
1486
- * ```kotlin
1487
- * val api = AlphaTabApi<MyControl>(...)
1488
- * api.beatMouseMove.on { beat ->
1489
- * expandSelectionToBeat(beat)
1490
- * }
1491
- * ```
1492
- */
1493
- readonly beatMouseMove: IEventEmitterOfT<Beat>;
1494
- /**
1495
- * This event is fired whenever the user releases the mouse after a mouse press on a beat.
1496
- * @remarks
1497
- * This event is fired regardless of whether the mouse was released on a beat.
1498
- * The parameter is null if the mouse was released somewhere beside the beat.
1499
- *
1500
- * @eventProperty
1501
- * @category Events - Player
1502
- * @since 0.9.7
1503
- *
1504
- * @example
1505
- * JavaScript
1506
- * ```js
1507
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
1508
- * api.beatMouseUp.on((beat) => {
1509
- * hideSelection(beat);
1510
- * });
1511
- * ```
1512
- *
1513
- * @example
1514
- * C#
1515
- * ```cs
1516
- * var api = new AlphaTabApi<MyControl>(...);
1517
- * api.BeatMouseUp.On(beat =>
1518
- * {
1519
- * HideSelection(beat);
1520
- * });
1521
- * ```
1522
- *
1523
- * @example
1524
- * Android
1525
- * ```kotlin
1526
- * val api = AlphaTabApi<MyControl>(...)
1527
- * api.beatMouseUp.on { beat ->
1528
- * hideSelection(beat)
1529
- * }
1530
- * ```
1531
- */
1532
- readonly beatMouseUp: IEventEmitterOfT<Beat | null>;
1533
- /**
1534
- * This event is fired whenever a the user presses the mouse button on a note head/number.
1535
- * @remarks
1536
- * This event is fired whenever a the user presses the mouse button on a note.
1537
- * It is only fired if {@link CoreSettings.includeNoteBounds} was set to `true` because
1538
- * only then this hit detection can be done. A click on a note is considered if the note head or the note number on tabs are clicked as documented in {@link boundsLookup}.
1539
- *
1540
- * @eventProperty
1541
- * @category Events - Player
1542
- * @since 1.2.3
1543
- *
1544
- * @example
1545
- * JavaScript
1546
- * ```js
1547
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
1548
- * api.noteMouseDown.on((note) => {
1549
- * api.playNote(note);
1550
- * });
1551
- * ```
1552
- *
1553
- * @example
1554
- * C#
1555
- * ```cs
1556
- * var api = new AlphaTabApi<MyControl>(...);
1557
- * api.NoteMouseDown.On(note =>
1558
- * {
1559
- * api.PlayNote(note);
1560
- * });
1561
- * ```
1562
- *
1563
- * @example
1564
- * Android
1565
- * ```kotlin
1566
- * val api = AlphaTabApi<MyControl>(...)
1567
- * api.noteMouseDown.on { note ->
1568
- * api.playNote(note)
1569
- * }
1570
- * ```
1571
- *
1572
- */
1573
- readonly noteMouseDown: IEventEmitterOfT<Note>;
1574
- /**
1575
- * This event is fired whenever the user moves the mouse over a note after the user already pressed the button on a note.
1576
- * @remarks
1577
- * This event is fired whenever the user moves the mouse over a note after the user already pressed the button on a note.
1578
- * It is only fired if {@link CoreSettings.includeNoteBounds} was set to `true` because
1579
- * only then this hit detection can be done. A click on a note is considered if the note head or the note number on tabs are clicked as documented in {@link boundsLookup}
1580
- *
1581
- * @eventProperty
1582
- * @category Events - Player
1583
- * @since 1.2.3
1584
- *
1585
- * @example
1586
- * JavaScript
1587
- * ```js
1588
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
1589
- * api.noteMouseMove.on((note) => {
1590
- * changeNote(note)
1591
- * });
1592
- * ```
1593
- *
1594
- * @example
1595
- * C#
1596
- * ```cs
1597
- * var api = new AlphaTabApi<MyControl>(...);
1598
- * api.NoteMouseMove.On(note =>
1599
- * {
1600
- * ChangeNote(note);
1601
- * });
1602
- * ```
1603
- *
1604
- * @example
1605
- * Android
1606
- * ```kotlin
1607
- * val api = AlphaTabApi<MyControl>(...)
1608
- * api.noteMouseMove.on { note ->
1609
- * changeNote(note)
1610
- * }
1611
- * ```
1612
- *
1613
- */
1614
- readonly noteMouseMove: IEventEmitterOfT<Note>;
1615
- /**
1616
- * This event is fired whenever the user releases the mouse after a mouse press on a note.
1617
- * @remarks
1618
- * This event is fired whenever a the user presses the mouse button on a note.
1619
- * This event is fired regardless of whether the mouse was released on a note.
1620
- * The parameter is null if the mouse was released somewhere beside the note.
1621
- * It is only fired if {@link CoreSettings.includeNoteBounds} was set to `true` because
1622
- * only then this hit detection can be done. A click on a note is considered if the note head or the note number on tabs are clicked as documented in the {@link boundsLookup}.
1623
- *
1624
- * @eventProperty
1625
- * @category Events - Player
1626
- * @since 1.2.3
1627
- *
1628
- * @example
1629
- * JavaScript
1630
- * ```js
1631
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
1632
- * api.noteMouseUp.on((note) => {
1633
- * api.playNote(note);
1634
- * });
1635
- * ```
1636
- *
1637
- * @example
1638
- * C#
1639
- * ```cs
1640
- * var api = new AlphaTabApi<MyControl>(...);
1641
- * api.NoteMouseUp.On(note =>
1642
- * {
1643
- * api.PlayNote(note);
1644
- * });
1645
- * ```
1646
- *
1647
- * @example
1648
- * Android
1649
- * ```kotlin
1650
- * val api = AlphaTabApi<MyControl>(...)
1651
- * api.noteMouseUp.on { note ->
1652
- * api.playNote(note)
1653
- * }
1654
- * ```
1655
- *
1656
- */
1657
- readonly noteMouseUp: IEventEmitterOfT<Note | null>;
1658
- private get _hasCursor();
1659
- private _onBeatMouseDown;
1660
- private _onNoteMouseDown;
1661
- private _onBeatMouseMove;
1662
- private _onNoteMouseMove;
1663
- private _onBeatMouseUp;
1664
- private _onNoteMouseUp;
1665
- private _updateSelectionCursor;
1666
- private _setupClickHandling;
1667
- private _cursorSelectRange;
1668
- /**
1669
- * This event is fired whenever a new song is loaded.
1670
- * @remarks
1671
- * This event is fired whenever a new song is loaded or changing due to {@link renderScore} or {@link renderTracks} calls.
1672
- * It is fired after the transposition midi pitches from the settings were applied, but before any midi is generated or rendering is started.
1673
- * This allows any modification of the score before further processing.
1674
- *
1675
- * @eventProperty
1676
- * @category Events - Core
1677
- * @since 0.9.4
1678
- *
1679
- * @example
1680
- * JavaScript
1681
- * ```js
1682
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
1683
- * api.scoreLoaded.on((score) => {
1684
- * updateSongInformationInUi(score);
1685
- * });
1686
- * ```
1687
- *
1688
- * @example
1689
- * C#
1690
- * ```cs
1691
- * var api = new AlphaTabApi<MyControl>(...);
1692
- * api.ScoreLoaded.On(score =>
1693
- * {
1694
- * UpdateSongInformationInUi(score);
1695
- * });
1696
- * ```
1697
- *
1698
- * @example
1699
- * Android
1700
- * ```kotlin
1701
- * val api = AlphaTabApi<MyControl>(...)
1702
- * api.scoreLoaded.on { score ->
1703
- * updateSongInformationInUi(score)
1704
- * }
1705
- * ```
1706
- *
1707
- */
1708
- readonly scoreLoaded: IEventEmitterOfT<Score>;
1709
- private _onScoreLoaded;
1710
- /**
1711
- * This event is fired when alphaTab was resized and is about to rerender the music notation.
1712
- * @remarks
1713
- * This event is fired when alphaTab was resized and is about to rerender the music notation. Before the re-rendering on resize
1714
- * the settings will be updated in the related components. This means that any changes to the layout options or other display settings are
1715
- * considered. This allows to implement scenarios where maybe the scale or the layout mode dynamically changes along the resizing.
1716
- *
1717
- * @eventProperty
1718
- * @category Events - Core
1719
- * @since 0.9.4
1720
- *
1721
- * @example
1722
- * JavaScript
1723
- * ```js
1724
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
1725
- * api.resize.on((args) => {
1726
- * args.settings.scale = args.newWidth > 1300
1727
- * ? 1.5
1728
- * : (args.newWidth > 800) ? 1.3 : 1;
1729
- * });
1730
- * ```
1731
- *
1732
- * @example
1733
- * C#
1734
- * ```cs
1735
- * var api = new AlphaTabApi<MyControl>(...);
1736
- * api.Resize.On(args =>
1737
- * {
1738
- * args.Settings.Display.Scale = args.NewWidth > 1300
1739
- * ? 1.5
1740
- * : (args.NewWidth > 800) ? 1.3 : 1;
1741
- * });
1742
- * ```
1743
- *
1744
- * @example
1745
- * Android
1746
- * ```kotlin
1747
- * val api = AlphaTabApi<MyControl>(...)
1748
- * api.resize.on { args ->
1749
- * args.settings.display.scale = args.newWidth > 1300
1750
- * ? 1.5
1751
- * : (args.newWidth > 800) ? 1.3 : 1;
1752
- * });
1753
- * ```
1754
- *
1755
- */
1756
- readonly resize: IEventEmitterOfT<ResizeEventArgs>;
1757
- private _onResize;
1758
- /**
1759
- * This event is fired when the rendering of the whole music sheet is starting.
1760
- * @remarks
1761
- * All preparations are completed and the layout and render sequence is about to start.
1762
- *
1763
- * @eventProperty
1764
- * @category Events - Core
1765
- * @since 0.9.4
1766
- *
1767
- * @example
1768
- * JavaScript
1769
- * ```js
1770
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
1771
- * api.renderStarted.on(() => {
1772
- * updateProgressBar("Rendering");
1773
- * });
1774
- * ```
1775
- *
1776
- * @example
1777
- * C#
1778
- * ```cs
1779
- * var api = new AlphaTabApi<MyControl>(...);
1780
- * api.RenderStarted.On(resized =>
1781
- * {
1782
- * UpdateProgressBar("Rendering");
1783
- * });
1784
- * ```
1785
- *
1786
- * @example
1787
- * Android
1788
- * ```kotlin
1789
- * val api = AlphaTabApi<MyControl>(...)
1790
- * api.renderStarted.on { resized ->
1791
- * updateProgressBar("Rendering");
1792
- * }
1793
- * ```
1794
- *
1795
- */
1796
- readonly renderStarted: IEventEmitterOfT<boolean>;
1797
- private _onRenderStarted;
1798
- /**
1799
- * This event is fired when the rendering of the whole music sheet is finished.
1800
- * @remarks
1801
- * This event is fired when the rendering of the whole music sheet is finished from the render engine side. There might be still tasks open for
1802
- * the display component to visually display the rendered components when this event is notified (e.g. resizing of DOM elements are done).
1803
- *
1804
- * @eventProperty
1805
- * @category Events - Core
1806
- * @since 0.9.4
1807
- *
1808
- * @example
1809
- * JavaScript
1810
- * ```js
1811
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
1812
- * api.renderFinished.on(() => {
1813
- * updateProgressBar("Finishing");
1814
- * });
1815
- * ```
1816
- *
1817
- * @example
1818
- * C#
1819
- * ```cs
1820
- * var api = new AlphaTabApi<MyControl>(...);
1821
- * api.RenderFinished.On(() =>
1822
- * {
1823
- * UpdateProgressBar("Finishing");
1824
- * });
1825
- * ```
1826
- *
1827
- * @example
1828
- * Android
1829
- * ```kotlin
1830
- * val api = AlphaTabApi<MyControl>(...)
1831
- * api.renderFinished.on {
1832
- * updateProgressBar("Finishing")
1833
- * }
1834
- * ```
1835
- *
1836
- */
1837
- readonly renderFinished: IEventEmitterOfT<RenderFinishedEventArgs>;
1838
- private _onRenderFinished;
1839
- /**
1840
- * This event is fired when the rendering of the whole music sheet is finished, and all handlers of `renderFinished` ran.
1841
- * @remarks
1842
- * If {@link CoreSettings.enableLazyLoading} is enabled not all partial images of the music sheet might be rendered.
1843
- * In this case the `renderFinished` event rather represents that the whole music sheet has been layouted and arranged
1844
- * and every partial image can be requested for rendering. If you neeed more fine-grained access
1845
- * to the actual layouting and rendering progress, you need to look at the low-level apis {@link IScoreRenderer.partialLayoutFinished} and
1846
- * {@link IScoreRenderer.partialRenderFinished} accessible via {@link renderer}.
1847
- *
1848
- * @eventProperty
1849
- * @category Events - Core
1850
- * @since 0.9.4
1851
- *
1852
- * @example
1853
- * JavaScript
1854
- * ```js
1855
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
1856
- * api.postRenderFinished.on(() => {
1857
- * hideLoadingIndicator();
1858
- * });
1859
- * ```
1860
- *
1861
- * @example
1862
- * C#
1863
- * ```cs
1864
- * var api = new AlphaTabApi<MyControl>(...);
1865
- * api.PostRenderFinished.On(() =>
1866
- * {
1867
- * HideLoadingIndicator();
1868
- * });
1869
- * ```
1870
- *
1871
- * @example
1872
- * Android
1873
- * ```kotlin
1874
- * val api = AlphaTabApi<MyControl>(...)
1875
- * api.postRenderFinished.on {
1876
- * hideLoadingIndicator();
1877
- * }
1878
- * ```
1879
- *
1880
- */
1881
- readonly postRenderFinished: IEventEmitter;
1882
- private _onPostRenderFinished;
1883
- /**
1884
- * This event is fired when an error within alphatab occurred.
1885
- *
1886
- * @remarks
1887
- * This event is fired when an error within alphatab occurred. Use this event as global error handler to show errors
1888
- * to end-users. Due to the asynchronous nature of alphaTab, no call to the API will directly throw an error if it fails.
1889
- * Instead a signal to this error handlers will be sent.
1890
- *
1891
- * @eventProperty
1892
- * @category Events - Core
1893
- * @since 0.9.4
1894
- *
1895
- * @example
1896
- * JavaScript
1897
- * ```js
1898
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
1899
- * api.error.on((error) {
1900
- * displayError(error);
1901
- * });
1902
- * ```
1903
- *
1904
- * @example
1905
- * C#
1906
- * ```cs
1907
- * var api = new AlphaTabApi<MyControl>(...);
1908
- * api.Error.On((error) =>
1909
- * {
1910
- * DisplayError(error);
1911
- * });
1912
- * ```
1913
- *
1914
- * @example
1915
- * Android
1916
- * ```kotlin
1917
- * val api = AlphaTabApi<MyControl>(...)
1918
- * api.error.on { error ->
1919
- * displayError(error)
1920
- * }
1921
- * ```
1922
- *
1923
- */
1924
- readonly error: IEventEmitterOfT<Error>;
1925
- /**
1926
- * @internal
1927
- */
1928
- onError(error: Error): void;
1929
- /**
1930
- * This event is fired when all required data for playback is loaded and ready.
1931
- * @remarks
1932
- * This event is fired when all required data for playback is loaded and ready. The player is ready for playback when
1933
- * all background workers are started, the audio output is initialized, a soundfont is loaded, and a song was loaded into the player as midi file.
1934
- *
1935
- * @eventProperty
1936
- * @category Events - Player
1937
- * @since 0.9.4
1938
- *
1939
- * @example
1940
- * JavaScript
1941
- * ```js
1942
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
1943
- * api.playerReady.on(() => {
1944
- * enablePlayerControls();
1945
- * });
1946
- * ```
1947
- *
1948
- * @example
1949
- * C#
1950
- * ```cs
1951
- * var api = new AlphaTabApi<MyControl>(...);
1952
- * api.PlayerReady.On(() =>
1953
- * {
1954
- * EnablePlayerControls()
1955
- * });
1956
- * ```
1957
- *
1958
- * @example
1959
- * Android
1960
- * ```kotlin
1961
- * val api = AlphaTabApi<MyControl>(...)
1962
- * api.playerReady.on {
1963
- * enablePlayerControls()
1964
- * }
1965
- * ```
1966
- */
1967
- get playerReady(): IEventEmitter;
1968
- private _onPlayerReady;
1969
- /**
1970
- * This event is fired when the playback of the whole song finished.
1971
- * @remarks
1972
- * This event is finished regardless on whether looping is enabled or not.
1973
- *
1974
- * @eventProperty
1975
- * @category Events - Player
1976
- * @since 0.9.4
1977
- *
1978
- * @example
1979
- * JavaScript
1980
- * ```js
1981
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
1982
- * api.playerFinished.on((args) => {
1983
- * // speed trainer
1984
- * api.playbackSpeed = Math.min(1.0, api.playbackSpeed + 0.1);
1985
- * });
1986
- * api.isLooping = true;
1987
- * api.playbackSpeed = 0.5;
1988
- * api.play()
1989
- * ```
1990
- *
1991
- * @example
1992
- * C#
1993
- * ```cs
1994
- * var api = new AlphaTabApi<MyControl>(...);
1995
- * api.PlayerFinished.On(() =>
1996
- * {
1997
- * // speed trainer
1998
- * api.PlaybackSpeed = Math.Min(1.0, api.PlaybackSpeed + 0.1);
1999
- * });
2000
- * api.IsLooping = true;
2001
- * api.PlaybackSpeed = 0.5;
2002
- * api.Play();
2003
- * ```
2004
- *
2005
- * @example
2006
- * Android
2007
- * ```kotlin
2008
- * val api = AlphaTabApi<MyControl>(...)
2009
- * api.playerFinished.on {
2010
- * // speed trainer
2011
- * api.playbackSpeed = min(1.0, api.playbackSpeed + 0.1);
2012
- * }
2013
- * api.isLooping = true
2014
- * api.playbackSpeed = 0.5
2015
- * api.play()
2016
- * ```
2017
- *
2018
- */
2019
- get playerFinished(): IEventEmitter;
2020
- private _onPlayerFinished;
2021
- /**
2022
- * This event is fired when the SoundFont needed for playback was loaded.
2023
- *
2024
- * @eventProperty
2025
- * @category Events - Player
2026
- * @since 0.9.4
2027
- *
2028
- * @example
2029
- * JavaScript
2030
- * ```js
2031
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
2032
- * api.soundFontLoaded.on(() => {
2033
- * hideSoundFontLoadingIndicator();
2034
- * });
2035
- * ```
2036
- *
2037
- * @example
2038
- * C#
2039
- * ```cs
2040
- * var api = new AlphaTabApi<MyControl>(...);
2041
- * api.SoundFontLoaded.On(() =>
2042
- * {
2043
- * HideSoundFontLoadingIndicator();
2044
- * });
2045
- * ```
2046
- *
2047
- * @example
2048
- * Android
2049
- * ```kotlin
2050
- * val api = AlphaTabApi<MyControl>(...);
2051
- * api.soundFontLoaded.on {
2052
- * hideSoundFontLoadingIndicator();
2053
- * }
2054
- * ```
2055
- *
2056
- */
2057
- get soundFontLoaded(): IEventEmitter;
2058
- private _onSoundFontLoaded;
2059
- /**
2060
- * This event is fired when a Midi file is being loaded.
2061
- *
2062
- * @remarks
2063
- * This event is fired when a Midi file for the song was generated and is being loaded
2064
- * by the synthesizer. This event can be used to inspect or modify the midi events
2065
- * which will be played for the song. This can be used to generate other visual representations
2066
- * of the song.
2067
- *
2068
- * > [!NOTE]
2069
- * > The generated midi file will NOT contain any metronome and count-in related events. The metronome and
2070
- * > count-in ticks are handled within the synthesizer.
2071
- *
2072
- * @eventProperty
2073
- * @category Events - Player
2074
- * @since 1.2.0
2075
- *
2076
- * @example
2077
- * JavaScript
2078
- * ```js
2079
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
2080
- * api.midiLoad.on(file => {
2081
- * initializePianoPractice(file);
2082
- * });
2083
- * ```
2084
- *
2085
- * @example
2086
- * C#
2087
- * ```cs
2088
- * var api = new AlphaTabApi<MyControl>(...);
2089
- * api.MidiLoad.On(file =>
2090
- * {
2091
- * InitializePianoPractice(file);
2092
- * });
2093
- * ```
2094
- *
2095
- * @example
2096
- * Android
2097
- * ```kotlin
2098
- * val api = AlphaTabApi<MyControl>(...)
2099
- * api.midiLoad.on { file ->
2100
- * initializePianoPractice(file)
2101
- * }
2102
- * ```
2103
- *
2104
- */
2105
- readonly midiLoad: IEventEmitterOfT<MidiFile>;
2106
- private _onMidiLoad;
2107
- /**
2108
- * This event is fired when the Midi file needed for playback was loaded.
2109
- *
2110
- * @eventProperty
2111
- * @category Events - Player
2112
- * @since 0.9.4
2113
- *
2114
- * @example
2115
- * JavaScript
2116
- * ```js
2117
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
2118
- * api.midiLoaded.on(e => {
2119
- * hideGeneratingAudioIndicator();
2120
- * updateSongDuration(e.endTime);
2121
- * });
2122
- * ```
2123
- *
2124
- * @example
2125
- * C#
2126
- * ```cs
2127
- * var api = new AlphaTabApi<MyControl>(...);
2128
- * api.MidiLoaded.On(e =>
2129
- * {
2130
- * HideGeneratingAudioIndicator();
2131
- * UpdateSongDuration(e.EndTime);
2132
- * });
2133
- * ```
2134
- *
2135
- * @example
2136
- * Android
2137
- * ```kotlin
2138
- * val api = AlphaTabApi<MyControl>(...)
2139
- * api.midiLoaded.on { e ->
2140
- * hideGeneratingAudioIndicator()
2141
- * updateSongDuration(e.endTime)
2142
- * }
2143
- * ```
2144
- *
2145
- */
2146
- readonly midiLoaded: IEventEmitterOfT<PositionChangedEventArgs>;
2147
- private _onMidiLoaded;
2148
- /**
2149
- * This event is fired when the playback state changed.
2150
- *
2151
- * @eventProperty
2152
- * @category Events - Player
2153
- * @since 0.9.4
2154
- *
2155
- * @example
2156
- * JavaScript
2157
- * ```js
2158
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
2159
- * api.playerStateChanged.on((args) => {
2160
- * updatePlayerControls(args.state, args.stopped);
2161
- * });
2162
- * ```
2163
- *
2164
- * @example
2165
- * C#
2166
- * ```cs
2167
- * var api = new AlphaTabApi<MyControl>(...);
2168
- * api.PlayerStateChanged.On(args =>
2169
- * {
2170
- * UpdatePlayerControls(args);
2171
- * });
2172
- * ```
2173
- *
2174
- * @example
2175
- * Android
2176
- * ```kotlin
2177
- * val api = AlphaTabApi<MyControl>(...)
2178
- * api.playerStateChanged.on { args ->
2179
- * updatePlayerControls(args)
2180
- * }
2181
- * ```
2182
- *
2183
- */
2184
- get playerStateChanged(): IEventEmitterOfT<PlayerStateChangedEventArgs>;
2185
- private _onPlayerStateChanged;
2186
- /**
2187
- * This event is fired when the current playback position of the song changed.
2188
- *
2189
- * @eventProperty
2190
- * @category Events - Player
2191
- * @since 0.9.4
2192
- *
2193
- * @example
2194
- * JavaScript
2195
- * ```js
2196
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
2197
- * api.playerPositionChanged.on((args) => {
2198
- * updatePlayerPosition(args);
2199
- * });
2200
- * ```
2201
- *
2202
- * @example
2203
- * C#
2204
- * ```cs
2205
- * var api = new AlphaTabApi<MyControl>(...);
2206
- * api.PlayerPositionChanged.On(args =>
2207
- * {
2208
- * UpdatePlayerPosition(args);
2209
- * });
2210
- * ```
2211
- *
2212
- * @example
2213
- * Android
2214
- * ```kotlin
2215
- * val api = AlphaTabApi<MyControl>(...)
2216
- * api.playerPositionChanged.on { args ->
2217
- * updatePlayerPosition(args)
2218
- * }
2219
- * ```
2220
- *
2221
- */
2222
- get playerPositionChanged(): IEventEmitterOfT<PositionChangedEventArgs>;
2223
- private _onPlayerPositionChanged;
2224
- /**
2225
- * This event is fired when the synthesizer played certain midi events.
2226
- *
2227
- * @remarks
2228
- * This event is fired when the synthesizer played certain midi events. This allows reacing on various low level
2229
- * audio playback elements like notes/rests played or metronome ticks.
2230
- *
2231
- * Refer to the [related guide](https://www.alphatab.net/docs/guides/handling-midi-events) to learn more about this feature.
2232
- *
2233
- * Also note that the provided data models changed significantly in {@version 1.3.0}. We try to provide backwards compatibility
2234
- * until some extend but highly encourage changing to the new models in case of problems.
2235
- *
2236
- * @eventProperty
2237
- * @category Events - Player
2238
- * @since 1.2.0
2239
- *
2240
- * @example
2241
- * JavaScript
2242
- * ```js
2243
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
2244
- * api.midiEventsPlayedFilter = [alphaTab.midi.MidiEventType.AlphaTabMetronome];
2245
- * api.midiEventsPlayed.on(function(e) {
2246
- * for(const midi of e.events) {
2247
- * if(midi.isMetronome) {
2248
- * console.log('Metronome tick ' + midi.tick);
2249
- * }
2250
- * }
2251
- * });
2252
- * ```
2253
- *
2254
- * @example
2255
- * C#
2256
- * ```cs
2257
- * var api = new AlphaTabApi<MyControl>(...);
2258
- * api.MidiEventsPlayedFilter = new MidiEventType[] { AlphaTab.Midi.MidiEventType.AlphaTabMetronome };
2259
- * api.MidiEventsPlayed.On(e =>
2260
- * {
2261
- * foreach(var midi of e.events)
2262
- * {
2263
- * if(midi is AlphaTab.Midi.AlphaTabMetronomeEvent sysex && sysex.IsMetronome)
2264
- * {
2265
- * Console.WriteLine("Metronome tick " + midi.Tick);
2266
- * }
2267
- * }
2268
- * });
2269
- * ```
2270
- *
2271
- * @example
2272
- * Android
2273
- * ```kotlin
2274
- * val api = AlphaTabApi<MyControl>(...);
2275
- * api.midiEventsPlayedFilter = alphaTab.collections.List<alphaTab.midi.MidiEventType>( alphaTab.midi.MidiEventType.AlphaTabMetronome )
2276
- * api.midiEventsPlayed.on { e ->
2277
- * for (midi in e.events) {
2278
- * if(midi instanceof alphaTab.midi.AlphaTabMetronomeEvent && midi.isMetronome) {
2279
- * println("Metronome tick " + midi.tick);
2280
- * }
2281
- * }
2282
- * }
2283
- * ```
2284
- * @see {@link MidiEvent}
2285
- * @see {@link TimeSignatureEvent}
2286
- * @see {@link AlphaTabMetronomeEvent}
2287
- * @see {@link AlphaTabRestEvent}
2288
- * @see {@link NoteOnEvent}
2289
- * @see {@link NoteOffEvent}
2290
- * @see {@link ControlChangeEvent}
2291
- * @see {@link ProgramChangeEvent}
2292
- * @see {@link TempoChangeEvent}
2293
- * @see {@link PitchBendEvent}
2294
- * @see {@link NoteBendEvent}
2295
- * @see {@link EndOfTrackEvent}
2296
- * @see {@link MetaEvent}
2297
- * @see {@link MetaDataEvent}
2298
- * @see {@link MetaNumberEvent}
2299
- * @see {@link Midi20PerNotePitchBendEvent}
2300
- * @see {@link SystemCommonEvent}
2301
- * @see {@link SystemExclusiveEvent}
2302
- */
2303
- get midiEventsPlayed(): IEventEmitterOfT<MidiEventsPlayedEventArgs>;
2304
- private _onMidiEventsPlayed;
2305
- /**
2306
- * This event is fired when the playback range changed.
2307
- *
2308
- * @eventProperty
2309
- * @category Events - Player
2310
- * @since 1.2.3
2311
- *
2312
- * @example
2313
- * JavaScript
2314
- * ```js
2315
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
2316
- * api.playbackRangeChanged.on((args) => {
2317
- * if (args.playbackRange) {
2318
- * highlightRangeInProgressBar(args.playbackRange.startTick, args.playbackRange.endTick);
2319
- * } else {
2320
- * clearHighlightInProgressBar();
2321
- * }
2322
- * });
2323
- * ```
2324
- *
2325
- * @example
2326
- * C#
2327
- * ```cs
2328
- * var api = new AlphaTabApi<MyControl>(...);
2329
- * api.PlaybackRangeChanged.On(args =>
2330
- * {
2331
- * if (args.PlaybackRange != null)
2332
- * {
2333
- * HighlightRangeInProgressBar(args.PlaybackRange.StartTick, args.PlaybackRange.EndTick);
2334
- * }
2335
- * else
2336
- * {
2337
- * ClearHighlightInProgressBar();
2338
- * }
2339
- * });
2340
- * ```
2341
- *
2342
- * @example
2343
- * Android
2344
- * ```kotlin
2345
- * val api = AlphaTabApi<MyControl>(...)
2346
- * api.playbackRangeChanged.on { args ->
2347
- * val playbackRange = args.playbackRange
2348
- * if (playbackRange != null) {
2349
- * highlightRangeInProgressBar(playbackRange.startTick, playbackRange.endTick)
2350
- * } else {
2351
- * clearHighlightInProgressBar()
2352
- * }
2353
- * }
2354
- * ```
2355
- *
2356
- */
2357
- get playbackRangeChanged(): IEventEmitterOfT<PlaybackRangeChangedEventArgs>;
2358
- private _onPlaybackRangeChanged;
2359
- /**
2360
- * This event is fired when a settings update was requested.
2361
- *
2362
- * @eventProperty
2363
- * @category Events - Core
2364
- * @since 1.6.0
2365
- *
2366
- * @example
2367
- * JavaScript
2368
- * ```js
2369
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
2370
- * api.settingsUpdated.on(() => {
2371
- * updateSettingsUI(api.settings);
2372
- * });
2373
- * ```
2374
- *
2375
- * @example
2376
- * C#
2377
- * ```cs
2378
- * var api = new AlphaTabApi<MyControl>(...);
2379
- * api.SettingsUpdated.On(() =>
2380
- * {
2381
- * UpdateSettingsUI(api.settings);
2382
- * });
2383
- * ```
2384
- *
2385
- * @example
2386
- * Android
2387
- * ```kotlin
2388
- * val api = AlphaTabApi<MyControl>(...)
2389
- * api.SettingsUpdated.on {
2390
- * updateSettingsUI(api.settings)
2391
- * }
2392
- * ```
2393
- *
2394
- */
2395
- readonly settingsUpdated: IEventEmitter;
2396
- private _onSettingsUpdated;
2397
- /**
2398
- * Loads and lists the available output devices which can be used by the player.
2399
- * @returns the list of available devices or an empty list if there are no permissions, or the player is not enabled.
2400
- *
2401
- * @remarks
2402
- * Will request permissions if needed.
2403
- *
2404
- * The values provided, can be passed into {@link setOutputDevice} to change dynamically the output device on which
2405
- * the sound is played.
2406
- *
2407
- * In the web version this functionality relies on experimental APIs and might not yet be available in all browsers. https://caniuse.com/mdn-api_audiocontext_sinkid
2408
- * @category Methods - Player
2409
- * @since 1.5.0
2410
- *
2411
- * @example
2412
- * JavaScript
2413
- * ```js
2414
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
2415
- * const devices = await api.enumerateOutputDevices();
2416
- *
2417
- * buildDeviceSelector(devices, async selectedDevice => {
2418
- * await api.setOutputDevice(selectedDevice);
2419
- * });
2420
- * ```
2421
- *
2422
- * @example
2423
- * C#
2424
- * ```cs
2425
- * var api = new AlphaTabApi<MyControl>(...);
2426
- * var devices = await api.EnumerateOutputDevices();
2427
- *
2428
- * BuildDeviceSelector(devices, async selectedDevice => {
2429
- * await api.SetOutputDevice(selectedDevice);
2430
- * });
2431
- * ```
2432
- *
2433
- * @example
2434
- * Android
2435
- * ```kotlin
2436
- * fun init() = kotlinx.coroutines.runBlocking {
2437
- * val api = AlphaTabApi<MyControl>(...)
2438
- * val devices = api.enumerateOutputDevices().await()
2439
- *
2440
- * buildDeviceSelector(devices, fun (selectedDevice) {
2441
- * suspend {
2442
- * await api.setOutputDevice(selectedDevice)
2443
- * }
2444
- * });
2445
- * }
2446
- * ```
2447
- */
2448
- enumerateOutputDevices(): Promise<ISynthOutputDevice[]>;
2449
- /**
2450
- * Changes the output device which should be used for playing the audio (player must be enabled).
2451
- * @param device The output device to use, or null to switch to the default device.
2452
- *
2453
- * @remarks
2454
- * Use {@link enumerateOutputDevices} to load the list of available devices.
2455
- *
2456
- * In the web version this functionality relies on experimental APIs and might not yet be available in all browsers. https://caniuse.com/mdn-api_audiocontext_sinkid
2457
- * @category Methods - Player
2458
- * @since 1.5.0
2459
- *
2460
- * @example
2461
- * JavaScript
2462
- * ```js
2463
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
2464
- * const devices = await api.enumerateOutputDevices();
2465
- *
2466
- * buildDeviceSelector(devices, async selectedDevice => {
2467
- * await api.setOutputDevice(selectedDevice);
2468
- * });
2469
- * ```
2470
- *
2471
- * @example
2472
- * C#
2473
- * ```cs
2474
- * var api = new AlphaTabApi<MyControl>(...);
2475
- * var devices = await api.EnumerateOutputDevices();
2476
- *
2477
- * BuildDeviceSelector(devices, async selectedDevice => {
2478
- * await api.SetOutputDevice(selectedDevice);
2479
- * });
2480
- * ```
2481
- *
2482
- * @example
2483
- * Android
2484
- * ```kotlin
2485
- * fun init() = kotlinx.coroutines.runBlocking {
2486
- * val api = AlphaTabApi<MyControl>(...)
2487
- * val devices = api.enumerateOutputDevices().await()
2488
- *
2489
- * buildDeviceSelector(devices, fun (selectedDevice) {
2490
- * suspend {
2491
- * await api.setOutputDevice(selectedDevice)
2492
- * }
2493
- * });
2494
- * }
2495
- * ```
2496
- */
2497
- setOutputDevice(device: ISynthOutputDevice | null): Promise<void>;
2498
- /**
2499
- * The currently configured output device if changed via {@link setOutputDevice}.
2500
- * @returns The custom configured output device which was set via {@link setOutputDevice} or `null`
2501
- * if the default outputDevice is used.
2502
- * The output device might change dynamically if devices are connected/disconnected (e.g. bluetooth headset).
2503
- *
2504
- * @remarks
2505
- * Assumes {@link setOutputDevice} has been used.
2506
- * In the web version this functionality relies on experimental APIs and might not yet be available in all browsers. https://caniuse.com/mdn-api_audiocontext_sinkid
2507
- *
2508
- * @category Methods - Player
2509
- * @since 1.5.0
2510
- *
2511
- * @example
2512
- * JavaScript
2513
- * ```js
2514
- * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
2515
- * updateOutputDeviceUI(await api.getOutputDevice())
2516
- * ```
2517
- *
2518
- * @example
2519
- * C#
2520
- * ```cs
2521
- * var api = new AlphaTabApi<MyControl>(...);
2522
- * UpdateOutputDeviceUI(await api.GetOutputDevice())
2523
- * ```
2524
- *
2525
- * @example
2526
- * Android
2527
- * ```kotlin
2528
- * fun init() = kotlinx.coroutines.runBlocking {
2529
- * val api = AlphaTabApi<MyControl>(...)
2530
- * updateOutputDeviceUI(api.getOutputDevice().await())
2531
- * }
2532
- * ```
2533
- *
2534
- */
2535
- getOutputDevice(): Promise<ISynthOutputDevice | null>;
2536
- /**
2537
- * Starts the audio export for the currently loaded song.
2538
- * @remarks
2539
- * This will not export or use any backing track media but will always use the synthesizer to generate the output.
2540
- * This method works with any PlayerMode active but changing the mode during export can lead to unexpected side effects.
2541
- *
2542
- * See [Audio Export](https://www.alphatab.net/docs/guides/audio-export) for further guidance how to use this feature.
2543
- *
2544
- * @param options The export options.
2545
- * @category Methods - Player
2546
- * @since 1.6.0
2547
- * @returns An exporter instance to export the audio in a streaming fashion.
2548
- */
2549
- exportAudio(options: AudioExportOptions): Promise<IAudioExporter>;
2550
- }