@coderline/alphatab-monaco 1.8.0-alpha.1643 → 1.8.0-alpha.1646
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/alphaTab.monaco.mjs +1 -1
- package/dist/alphatex.mjs +1 -1
- package/dist/lsp.mjs +1 -1
- package/dist/lspMonacoMappings.mjs +1 -1
- package/dist/textmate.mjs +1 -1
- package/dist/types.mjs +1 -1
- package/dist/worker.mjs +119 -3
- package/package.json +4 -4
package/dist/alphaTab.monaco.mjs
CHANGED
package/dist/alphatex.mjs
CHANGED
package/dist/lsp.mjs
CHANGED
package/dist/textmate.mjs
CHANGED
package/dist/types.mjs
CHANGED
package/dist/worker.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* alphaTab Monaco v1.8.0-alpha.
|
|
2
|
+
* alphaTab Monaco v1.8.0-alpha.1646 (develop, build 1646)
|
|
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,109 @@ 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
|
+
|
|
5130
|
+
const chordDiagramsInScore = {
|
|
5131
|
+
tag: '\\chordDiagramsInScore',
|
|
5132
|
+
snippet: '\\chordDiagramsInScore',
|
|
5133
|
+
shortDescription: 'Show inline chord diagrams in score.',
|
|
5134
|
+
longDescription: `Configures whether chord diagrams are shown inline in the score..`,
|
|
5135
|
+
signatures: [
|
|
5136
|
+
{
|
|
5137
|
+
parameters: [
|
|
5138
|
+
{
|
|
5139
|
+
name: 'visibility',
|
|
5140
|
+
shortDescription: 'The visibility of the diagrams',
|
|
5141
|
+
parseMode: alphaTab.importer.alphaTex.ArgumentListParseTypesMode.Optional,
|
|
5142
|
+
defaultValue: 'true',
|
|
5143
|
+
type: alphaTab.importer.alphaTex.AlphaTexNodeType.Ident,
|
|
5144
|
+
values: [
|
|
5145
|
+
{ name: 'true', snippet: 'true', shortDescription: 'Show the diagrams' },
|
|
5146
|
+
{ name: 'false', snippet: 'false', shortDescription: 'Hide the diagrams' }
|
|
5147
|
+
]
|
|
5148
|
+
}
|
|
5149
|
+
]
|
|
5150
|
+
}
|
|
5151
|
+
],
|
|
5152
|
+
examples: [
|
|
5153
|
+
`
|
|
5154
|
+
\\chordDiagramsInScore
|
|
5155
|
+
\\chord ("E" 0 0 1 2 2 0)
|
|
5156
|
+
(0.1 0.2 1.3 2.4 2.5 0.6){ch "E"}
|
|
5157
|
+
`
|
|
5158
|
+
]
|
|
5159
|
+
};
|
|
5160
|
+
|
|
5045
5161
|
const extendBarLines = {
|
|
5046
5162
|
tag: '\\extendBarLines',
|
|
5047
5163
|
snippet: '\\extendBarLines',
|
|
@@ -5089,9 +5205,9 @@ const instrumentMeta = {
|
|
|
5089
5205
|
};
|
|
5090
5206
|
|
|
5091
5207
|
const structuralMetaData = metadata(track, staff, voice);
|
|
5092
|
-
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);
|
|
5208
|
+
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, chordDiagramsInScore);
|
|
5093
5209
|
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);
|
|
5210
|
+
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
5211
|
const allMetadata = new Map([
|
|
5096
5212
|
...structuralMetaData.entries(),
|
|
5097
5213
|
...scoreMetaData.entries(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coderline/alphatab-monaco",
|
|
3
|
-
"version": "1.8.0-alpha.
|
|
3
|
+
"version": "1.8.0-alpha.1646",
|
|
4
4
|
"description": "A Monaco editor integration for alphaTab providing coding assistance for alphaTex.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"guitar",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"test": "mocha"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@coderline/alphatab": "^1.8.0-alpha.
|
|
35
|
-
"@coderline/alphatab-language-server": "^1.8.0-alpha.
|
|
34
|
+
"@coderline/alphatab": "^1.8.0-alpha.1646",
|
|
35
|
+
"@coderline/alphatab-language-server": "^1.8.0-alpha.1646",
|
|
36
36
|
"monaco-editor": "^0.54.0",
|
|
37
37
|
"vscode-languageserver-types": "^3.17.5",
|
|
38
38
|
"vscode-oniguruma": "^2.0.1",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@biomejs/biome": "^2.2.6",
|
|
43
|
-
"@microsoft/api-extractor": "^7.
|
|
43
|
+
"@microsoft/api-extractor": "^7.55.2",
|
|
44
44
|
"@types/chai": "^5.2.2",
|
|
45
45
|
"@types/mocha": "^10.0.10",
|
|
46
46
|
"@types/node": "^24.8.1",
|