@coderline/alphatab-monaco 1.8.0-alpha.1670 → 1.8.0-alpha.1673
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 +59 -2
- package/package.json +3 -3
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.1673 (develop, build 1673)
|
|
3
3
|
*
|
|
4
4
|
* Copyright © 2026, Daniel Kuschny and Contributors, All rights reserved.
|
|
5
5
|
*
|
|
@@ -5395,10 +5395,67 @@ const barNumberDisplay = {
|
|
|
5395
5395
|
]
|
|
5396
5396
|
};
|
|
5397
5397
|
|
|
5398
|
+
const beaming = {
|
|
5399
|
+
tag: '\\beaming',
|
|
5400
|
+
snippet: '\\beaming ($1 $2) $0',
|
|
5401
|
+
shortDescription: 'Set the time signature',
|
|
5402
|
+
longDescription: `
|
|
5403
|
+
Defines a custom beaming rule defining how beams of certain durations should be beamed.
|
|
5404
|
+
|
|
5405
|
+
To define how beats should be beamed we need 2 parts:
|
|
5406
|
+
|
|
5407
|
+
1. A duration with which we splitup the bars
|
|
5408
|
+
2. A list of group sizes defining how many split-parts should be beamed together.
|
|
5409
|
+
|
|
5410
|
+
The beaming rules go hand-in-hand with the time signature as the rules need to properly
|
|
5411
|
+
define the groups for the whole beat.
|
|
5412
|
+
|
|
5413
|
+
Let's take a simple example of a 4/4 time signature. If we want to ensure that the beats within the quarter notes are
|
|
5414
|
+
beamed together we can write variants like this:
|
|
5415
|
+
|
|
5416
|
+
a. \`\\beaming (4 1 1 1 1)\`
|
|
5417
|
+
b. \`\\beaming (8 2 2 2 2)\`
|
|
5418
|
+
c. \`\\beaming (16 4 4 4 4)\`
|
|
5419
|
+
|
|
5420
|
+
We slice the bar into 4, 8 or 16 parts. Then we add "groups" to those parts. If two beats start in the same group, they can be beamed together.
|
|
5421
|
+
Simple as that.
|
|
5422
|
+
|
|
5423
|
+
There are some common guidelines on how beaming "should be done" and alphaTab ships a wide range of defaults. But in case of more specialized time signatures,
|
|
5424
|
+
you can also customize the beaming as you need by slicing the bar and grouping the beats as needed.
|
|
5425
|
+
`,
|
|
5426
|
+
signatures: [
|
|
5427
|
+
{
|
|
5428
|
+
parameters: [
|
|
5429
|
+
{
|
|
5430
|
+
name: 'duration',
|
|
5431
|
+
shortDescription: 'The note duration defining the smallest group size',
|
|
5432
|
+
parseMode: alphaTab.importer.alphaTex.ArgumentListParseTypesMode.Required,
|
|
5433
|
+
type: alphaTab.importer.alphaTex.AlphaTexNodeType.Number
|
|
5434
|
+
},
|
|
5435
|
+
{
|
|
5436
|
+
name: 'groups',
|
|
5437
|
+
shortDescription: 'For every group the number of notes contained in the group.',
|
|
5438
|
+
parseMode: alphaTab.importer.alphaTex.ArgumentListParseTypesMode.ValueListWithoutParenthesis,
|
|
5439
|
+
type: alphaTab.importer.alphaTex.AlphaTexNodeType.Number
|
|
5440
|
+
}
|
|
5441
|
+
]
|
|
5442
|
+
}
|
|
5443
|
+
],
|
|
5444
|
+
examples: `
|
|
5445
|
+
\\ts (4 4)
|
|
5446
|
+
\\beaming (8 4 2 2)
|
|
5447
|
+
C4.8 * 8 |
|
|
5448
|
+
|
|
5449
|
+
\\ts (4 4)
|
|
5450
|
+
\\beaming (8 4 4)
|
|
5451
|
+
C4.8 * 8
|
|
5452
|
+
`
|
|
5453
|
+
};
|
|
5454
|
+
|
|
5398
5455
|
const structuralMetaData = metadata(track, staff, voice);
|
|
5399
5456
|
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, hideEmptyStaves, hideEmptyStavesInFirstSystem, showSingleStaffBrackets, defaultBarNumberDisplay);
|
|
5400
5457
|
const staffMetaData = metadata(tuning, chord, capo, lyrics, articulation, displayTranspose, transpose, instrumentMeta);
|
|
5401
|
-
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, barNumberDisplay);
|
|
5458
|
+
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, barNumberDisplay, beaming);
|
|
5402
5459
|
const allMetadata = new Map([
|
|
5403
5460
|
...structuralMetaData.entries(),
|
|
5404
5461
|
...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.1673",
|
|
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.1673",
|
|
35
|
+
"@coderline/alphatab-language-server": "^1.8.0-alpha.1673",
|
|
36
36
|
"monaco-editor": "^0.55.1",
|
|
37
37
|
"vscode-languageserver-types": "^3.17.5",
|
|
38
38
|
"vscode-oniguruma": "^2.0.1",
|