@coderline/alphatab-language-server 1.8.0-alpha.1643 → 1.8.0-alpha.1645

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.
package/dist/server.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * alphaTab Language Server v1.8.0-alpha.1643 (develop, build 1643)
2
+ * alphaTab Language Server v1.8.0-alpha.1645 (develop, build 1645)
3
3
  *
4
4
  * Copyright © 2025, Daniel Kuschny and Contributors, All rights reserved.
5
5
  *
@@ -41,6 +41,7 @@ const ac = {
41
41
  GraceType: alphaTab.model.GraceType,
42
42
  FermataType: alphaTab.model.FermataType,
43
43
  AlphaTexAccidentalMode: alphaTab.importer.alphaTex.AlphaTexAccidentalMode,
44
+ AlphaTexVoiceMode: alphaTab.importer.alphaTex.AlphaTexVoiceMode,
44
45
  NoteAccidentalMode: alphaTab.model.NoteAccidentalMode,
45
46
  BarreShape: alphaTab.model.BarreShape,
46
47
  Ottavia: alphaTab.model.Ottavia,
@@ -120,6 +121,18 @@ const alphaTexMappedEnumMapping = {
120
121
  Auto: { snippet: 'auto', shortDescription: 'Automatic (Based on Pitch)' },
121
122
  Explicit: { snippet: 'explicit', shortDescription: 'Explicit (as Written)' }
122
123
  },
124
+ AlphaTexVoiceMode: {
125
+ StaffWise: {
126
+ snippet: 'staffWise',
127
+ shortDescription: 'Staff-Wise voices',
128
+ longDescription: 'A new voice resets to bar 1 from where the notation of a new voice can be added.'
129
+ },
130
+ BarWise: {
131
+ snippet: 'barWise',
132
+ shortDescription: 'Bar-Wise voices',
133
+ longDescription: 'A new voice adds a new voice to the current bar only.'
134
+ }
135
+ },
123
136
  NoteAccidentalMode: {
124
137
  Default: { snippet: 'default', shortDescription: 'Auto-detect the accidentals', aliases: ['d'] },
125
138
  ForceNone: { snippet: 'forceNone', shortDescription: 'Force no accidentals', aliases: ['-'] },
@@ -5042,6 +5055,78 @@ const db = {
5042
5055
  examples: ``
5043
5056
  };
5044
5057
 
5058
+ const voiceMode = {
5059
+ tag: '\\voiceMode',
5060
+ snippet: '\\voiceMode $1 $0',
5061
+ shortDescription: 'Changes the mode how voices are treated',
5062
+ longDescription: `
5063
+ Changes the mode how alphaTab should treat voices when adding \`\\voice\`.
5064
+
5065
+ You can either choose to write voice-by-voice where each voice has all bars defined.
5066
+ You write bar-by-bar where a new voice is only added to the current bar.
5067
+ `,
5068
+ signatures: [
5069
+ {
5070
+ parameters: [
5071
+ {
5072
+ name: 'mode',
5073
+ shortDescription: 'The mode which should be active',
5074
+ parseMode: alphaTab.importer.alphaTex.ArgumentListParseTypesMode.Required,
5075
+ ...enumParameter('AlphaTexVoiceMode')
5076
+ }
5077
+ ]
5078
+ }
5079
+ ],
5080
+ examples: [`
5081
+ \\title "Staff Wise Voices"
5082
+ \\voiceMode staffWise
5083
+ // Voice 1
5084
+ \\voice
5085
+ // Bar 1 Voice 1
5086
+ C4*4 |
5087
+ // Bar 2 Voice 1
5088
+ C5*4 |
5089
+ // Bar 3 Voice 1
5090
+ C6*4
5091
+ // Voice 2
5092
+ \\voice
5093
+ // Bar 1 Voice 2
5094
+ C3*4 |
5095
+ // Bar 2 Voice 2
5096
+ C4*4 |
5097
+ // Bar 3 Voice 2
5098
+ C5 * 4
5099
+ `,
5100
+ `
5101
+ \\title "Bar Wise Voices"
5102
+ \\voiceMode barWise
5103
+ // Bar 1
5104
+ // Bar 1 Voice 1
5105
+ \\voice
5106
+ C4*4
5107
+ // Bar 1 Voice 2
5108
+ \\voice
5109
+ C3*4
5110
+ |
5111
+ // Bar 2
5112
+ // Bar 2 Voice 1
5113
+ \\voice
5114
+ C5*4
5115
+ // Bar 2 Voice 2
5116
+ \\voice
5117
+ C4*4
5118
+ |
5119
+ // Bar 3
5120
+ // Bar 3 Voice 1
5121
+ \\voice
5122
+ C6*4
5123
+ // Bar 3 Voice 2
5124
+ \\voice
5125
+ C5 * 4
5126
+ `
5127
+ ]
5128
+ };
5129
+
5045
5130
  const extendBarLines = {
5046
5131
  tag: '\\extendBarLines',
5047
5132
  snippet: '\\extendBarLines',
@@ -5091,7 +5176,7 @@ const instrumentMeta = {
5091
5176
  const structuralMetaData = metadata(track, staff, voice);
5092
5177
  const scoreMetaData = metadata(title, subtitle, artist, album, words, music, wordsAndMusic, copyright, copyright2, instructions, notices, tab, systemsLayout, defaultSystemsLayout, showDynamics, hideDynamics, useSystemSignSeparator, multiBarRest, bracketExtendMode, singleTrackTrackNamePolicy, multiTrackTrackNamePolicy, firstSystemTrackNameMode, otherSystemsTrackNameMode, firstSystemTrackNameOrientation, otherSystemsTrackNameOrientation, extendBarLines);
5093
5178
  const staffMetaData = metadata(tuning, chord, capo, lyrics, articulation, displayTranspose, transpose, instrumentMeta);
5094
- const barMetaData = metadata(ts, ro, rc, ae, ks, clef, ottava, tempo, tf, ac, section, jump, ft, simile, barlineLeft, barlineRight, scale, width, sync, accidentals, spd, sph, spu, db);
5179
+ const barMetaData = metadata(ts, ro, rc, ae, ks, clef, ottava, tempo, tf, ac, section, jump, ft, simile, barlineLeft, barlineRight, scale, width, sync, accidentals, spd, sph, spu, db, voiceMode);
5095
5180
  const allMetadata = new Map([
5096
5181
  ...structuralMetaData.entries(),
5097
5182
  ...scoreMetaData.entries(),