@dsebastien/music-notation 0.22.0 → 0.23.0

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 (46) hide show
  1. package/README.md +1 -1
  2. package/dist/blocks/renderers.d.ts +8 -1
  3. package/dist/chord/generate.d.ts +2 -0
  4. package/dist/chord/words.d.ts +4 -0
  5. package/dist/export/image.d.ts +2 -0
  6. package/dist/fretboard/exercise.d.ts +0 -16
  7. package/dist/fretboard/positions.d.ts +0 -17
  8. package/dist/i18n/en/diagrams.d.ts +139 -0
  9. package/dist/i18n/en/index.d.ts +532 -0
  10. package/dist/i18n/en/parse.d.ts +249 -0
  11. package/dist/i18n/en/play.d.ts +82 -0
  12. package/dist/i18n/en/timed.d.ts +75 -0
  13. package/dist/i18n/fr/diagrams.d.ts +139 -0
  14. package/dist/i18n/fr/index.d.ts +7 -0
  15. package/dist/i18n/fr/parse.d.ts +249 -0
  16. package/dist/i18n/fr/play.d.ts +82 -0
  17. package/dist/i18n/fr/timed.d.ts +72 -0
  18. package/dist/i18n/index.d.ts +3 -0
  19. package/dist/i18n/language.d.ts +543 -0
  20. package/dist/i18n/messages.d.ts +11 -0
  21. package/dist/i18n/page.d.ts +7 -0
  22. package/dist/i18n/translate.d.ts +21 -0
  23. package/dist/index.d.ts +3 -0
  24. package/dist/index.js +2111 -525
  25. package/dist/index.js.map +66 -52
  26. package/dist/keyboard/scale-fingering.d.ts +1 -1
  27. package/dist/music-notation.css +25 -0
  28. package/dist/music-notation.publish.min.js +62 -37
  29. package/dist/music-notation.tab.min.js +32 -7
  30. package/dist/picking/pattern.d.ts +0 -7
  31. package/dist/playback/bar-parts.d.ts +4 -0
  32. package/dist/playback/controls.d.ts +23 -2
  33. package/dist/playback/copy-image.d.ts +6 -5
  34. package/dist/playback/engine.d.ts +34 -0
  35. package/dist/publish/auto.d.ts +2 -0
  36. package/dist/publish/index.js +2080 -527
  37. package/dist/publish/index.js.map +66 -52
  38. package/dist/tab/auto.d.ts +2 -0
  39. package/dist/tab/follow-scroll.d.ts +65 -0
  40. package/dist/tab/index.d.ts +54 -2
  41. package/dist/tab/index.js +1586 -76
  42. package/dist/tab/index.js.map +24 -9
  43. package/dist/tab/note-names.d.ts +50 -0
  44. package/dist/voicings/index.js +1323 -79
  45. package/dist/voicings/index.js.map +23 -10
  46. package/package.json +1 -1
package/dist/tab/index.js CHANGED
@@ -165,6 +165,1147 @@ function scaleSpelling(scale) {
165
165
  }
166
166
  var scaleTypes = () => Scale.names();
167
167
 
168
+ // src/i18n/en/diagrams.ts
169
+ var enDiagrams = {
170
+ "render.layout.orientation": 'Unknown orientation "{text}": use vertical or horizontal',
171
+ "render.layout.hand": 'Unknown hand "{text}": use left or right',
172
+ "render.rootMark.invalid": 'root-mark: write color or shape, got "{text}"',
173
+ "render.rootListsOnly": "root only applies to lists of notes on fretboards and keyboards (notes: C E G with root: C): a chord has its own root",
174
+ "render.unknownChord": `Didn't recognize "{written}": try {suggestions}`,
175
+ "render.tuning": 'Unknown tuning "{text}"',
176
+ "render.yesNo": '{key} must be yes or no, got "{text}"',
177
+ "render.hand.left": "left hand",
178
+ "render.hand.right": "right hand",
179
+ "render.positions.exerciseOne": "exercise plays one position: write position: 1 (not positions:)",
180
+ "render.positions.needsSet": "positions needs a scale or a chord: e.g. A minor pentatonic or arpeggio: Am7",
181
+ "render.positions.arpeggioCaged": "Arpeggios use CAGED shapes, not 3nps: leave shape out",
182
+ "render.positions.range": "positions: use all, or numbers from 1 to {count} for {title}",
183
+ "render.positions.fromMinor": " (from {root}m)",
184
+ "render.positions.arpeggioTitle": "{title} arpeggio",
185
+ "render.positions.shapeTitle": "{name}, {shape} shape",
186
+ "render.positions.npsTitle": "{name}, 3nps {n}{from}",
187
+ "render.positions.boxTitle": "{name}, box {n}{from}",
188
+ "render.fingering.handTitle": "{title}, {hand}",
189
+ "render.voicings.notBoth": "Use triads or voicings, not both",
190
+ "render.voicings.fretted": "voicings are for guitar and other fretted instruments",
191
+ "render.voicings.noFrets": 'voicings finds the frets itself: remove "{value}"',
192
+ "render.voicings.needsChord": "voicings needs a chord: e.g. A Major",
193
+ "render.voicings.instrument": 'Unknown instrument "{instrument}": use guitar, or give a tuning',
194
+ "render.voicings.maxStrings": "voicings works on up to {max} strings",
195
+ "render.voicings.count": "voicings: use all, or a number from 1 to {max}",
196
+ "render.voicings.area": 'area: use open, or frets like 5-9 (up to 24), got "{area}"',
197
+ "render.voicings.rootString": "root-string: use a string number from 1 (the highest) to {count}",
198
+ "render.voicings.inversion": 'inversion: use 0 (root), 1, 2, 3 or any, got "{inversion}"',
199
+ "render.voicings.manyStringsAny": "On {count} strings, inversion: any needs six strings or fewer: add e.g. strings: 1-6",
200
+ "render.voicings.wideArea": "a wide area",
201
+ "render.voicings.oneWidening": "On {count} strings, use one of {list} at a time",
202
+ "render.noVoicing.gaps": "strings {strings} aren't next to each other: add gaps: yes",
203
+ "render.noVoicing.rootString": "root-string {string} isn't among strings {strings}",
204
+ "render.noVoicing.inversion": "{symbol} has {notes} notes: inversion goes up to {max}",
205
+ "render.noVoicing.bass": "No voicing of {chord} has its bass on string {string}: try another root-string",
206
+ "render.noVoicing.none": "No playable voicing of {chord} fits: widen the area, allow open strings or add stretch: yes",
207
+ "render.triads.noFrets": 'triads finds the frets itself: remove "{value}"',
208
+ "render.triads.fretted": "triads are for guitar and other fretted instruments: give a tuning",
209
+ "render.triads.strings": "triads: give three strings next to each other, e.g. 1-3 or 2-4",
210
+ "render.triads.inversion": 'inversion: use 0 (root position), 1, 2 or any, got "{inversion}"',
211
+ "render.triads.keyInversion": "With a key, pick one inversion: 0, 1 or 2",
212
+ "render.triads.key": 'Unknown key "{text}": use e.g. key: G major or key: E minor',
213
+ "render.triads.needsChord": "triads needs a chord (e.g. G) or a key (key: G major)",
214
+ "render.triads.notTriad": "{symbol} isn't a triad (three notes): try voicings: all",
215
+ "render.triads.none": "No triad fits on these strings: try another string set",
216
+ "render.transitions.needsFrom": "Add the chord you hold: from: C (with its frets: from: C x32010)",
217
+ "render.transitions.fretted": "Transitions are for guitar and other fretted instruments: give a tuning",
218
+ "render.transitions.notBoth": "Use from and to, or progression, not both",
219
+ "render.transitions.refused": `"{key}" can't be used with {with}`,
220
+ "render.transitions.maxStrings": "Transitions work on up to {max} strings",
221
+ "render.transitions.twoChords": "progression: give two chords or more, e.g. G D Em C",
222
+ "render.transitions.maxChords": "progression: at most {max} chords",
223
+ "render.transitions.noVoicings": "No playable voicings for this progression",
224
+ "render.transitions.needsTo": "Add the next chord: to: D",
225
+ "render.transitions.noHeld": "No playable voicing of {chord}: add its frets",
226
+ "render.transitions.stringCount": '"{frets}" has {have} strings, the tuning {count}',
227
+ "render.transitions.count": "count: use a number from 1 to {max}",
228
+ "render.transitions.noTarget": "No playable voicing of {chord}",
229
+ "render.modes.none": '"{value}" has no modes: use e.g. modes: C major',
230
+ "render.modes.refused": `"{key}" can't be used with modes: only {allowed}`,
231
+ "render.row.notShared": `"{key}" can't be shared: move it to a diagram. Shared settings: {allowed}`,
232
+ "render.row.columns": 'columns must be a whole number from 1 to 12, got "{text}"',
233
+ "render.row.needsDiagram": 'Add a diagram after the shared settings: a "---" line, then the diagram',
234
+ "render.row.max": "At most {max} diagrams per block, found {found}",
235
+ "render.row.columnsShared": '"columns" goes in the shared settings, before the first "---"',
236
+ "render.row.ownRow": '"{key}" draws its own row: use it in a block of its own',
237
+ "render.row.exercise": "exercise draws a tab under one diagram: use it in a block of its own",
238
+ "render.row.diagram": "diagram {n}: {message}",
239
+ "render.row.sharedHint": ' (shared settings before the first "---" may only hold: {allowed})',
240
+ "fretboard.capo": "Capo {fret}",
241
+ "fretboard.title": "Fretboard: {title}",
242
+ "fretboard.note.open": "{note} open",
243
+ "fretboard.note.fret": "{note} at fret {fret}",
244
+ "fretboard.note.root": " (root)",
245
+ "fretboard.string": "String {n} ({name}): {notes}.",
246
+ "fretboard.pick.open": "String {string}, open",
247
+ "fretboard.pick.fret": "String {string}, fret {fret}",
248
+ "fretboard.exercise.direction": 'exercise: use up, down or up-down, got "{text}"',
249
+ "fretboard.exercise.rhythm": 'rhythm: use 8ths, triplets or 16ths, got "{text}"',
250
+ "fretboard.exercise.scale": 'Unknown scale "{text}"',
251
+ "fretboard.exercise.chord": 'Unknown chord "{text}"',
252
+ "fretboard.exercise.needsSet": "An exercise needs a scale or an arpeggio: e.g. scale: A minor or arpeggio: Am7",
253
+ "fretboard.exercise.arpeggioCaged": "Arpeggios use CAGED shapes: position 1 to 5, or shape: E, D, C, A or G (not 3nps)",
254
+ "fretboard.exercise.positions": "{title} has {count} {system} positions: use position 1 to {count}",
255
+ "fretboard.exercise.tuning": 'Unknown tuning "{text}"',
256
+ "fretboard.exercise.capo": "capo: use a fret from 1 to 12 (0 for none), got {text}",
257
+ "fretboard.positions.numbering": 'numbering: use minor (positions from the relative minor), got "{text}"',
258
+ "fretboard.positions.numberingPentatonic": "numbering: minor is for major pentatonic positions (e.g. A major pentatonic), not {title}",
259
+ "fretboard.positions.numberingCaged": "numbering: minor numbers boxes and 3nps positions, not CAGED shapes",
260
+ "fretboard.positions.position": 'position must be a whole number from 1, got "{text}"',
261
+ "fretboard.positions.shape": 'Unknown shape "{text}": use C, A, G, E, D or 3nps',
262
+ "keyboard.fingering.finger": 'fingering: fingers go from 1 (thumb) to 5 (little finger), got "{text}"',
263
+ "keyboard.fingering.autoNeedsScale": "fingering: auto goes with a major or minor scale (scale: G major): write one finger per note, e.g. fingering: 1 2 3 4 5",
264
+ "keyboard.fingering.autoUnknown": "fingering: auto knows the major, natural minor, harmonic minor and melodic minor scales: write the fingers for {scale}, root to root, e.g. fingering: 1 2 3 1 2 3 4 5",
265
+ "keyboard.piano.shell": "Shell voicings need a third and a seventh or sixth (C7, Cmaj7, Cm7, C6): {symbol} has none",
266
+ "keyboard.piano.rootless": "Rootless voicings are for major, minor, dominant (sus4 too) and half-diminished seventh or sixth chords and major or minor triads (Cmaj7, Cm7, C7, C7sus4, Cm7b5, C6, C, Cm): not {symbol}",
267
+ "keyboard.piano.octave": 'octave: use a number from 0 to 8, got "{text}"',
268
+ "keyboard.piano.inversion": 'inversion: use 0 (root position), 1, 2 or 3, got "{text}"',
269
+ "keyboard.piano.slashInversion": "{symbol} already says its bass: leave inversion out",
270
+ "keyboard.piano.inversionStyle": "inversion goes with close or open voicings, not {style}",
271
+ "keyboard.piano.inversionMax": "{symbol} has {notes} notes: inversion goes up to {max}",
272
+ "keyboard.piano.open": "Open voicings need three notes or more: {symbol} has {notes}",
273
+ "keyboard.piano.offKeys": "octave {octave} puts {symbol} off the piano's keys: try octave 3 or 4",
274
+ "keyboard.piano.inversionWord": 'inversion: use root, first, second, third (or 0 to 3), got "{text}"',
275
+ "keyboard.piano.octaveMiddle": `octave: use a number from 0 to 8 (4 is middle C's), got "{text}"`,
276
+ "keyboard.piano.voicing": 'voicing: use close, open, shell, shell R-7, rootless A or rootless B, got "{text}"',
277
+ "keyboard.piano.key": 'Unknown key "{text}": use e.g. key: C minor or key: Eb',
278
+ "keyboard.piano.resolvesTo": 'resolves-to: write a chord, e.g. resolves-to: Cm, got "{text}"',
279
+ "keyboard.piano.hands": 'hands: use left+right, left or right, got "{text}"',
280
+ "keyboard.title": "Keyboard: {title}",
281
+ "keyboard.hand": "{hand}: {keys}",
282
+ "keyboard.handMark.left": "LH",
283
+ "keyboard.handMark.right": "RH",
284
+ "keyboard.whiteKey": "White key {n}",
285
+ "keyboard.blackKey": "Black key {n}",
286
+ "keyboard.lit.root": "root",
287
+ "keyboard.lit.finger": "finger {finger}",
288
+ "keyboard.lit.keys": "Keys: {keys}.",
289
+ "circle.label": "Circle of fifths, {key}: {signature}{accidentals}; chords: {chords}",
290
+ "circle.or": "or",
291
+ "circle.mode.major": "major",
292
+ "circle.mode.minor": "minor",
293
+ "circle.mode.ionian": "ionian",
294
+ "circle.mode.dorian": "dorian",
295
+ "circle.mode.phrygian": "phrygian",
296
+ "circle.mode.lydian": "lydian",
297
+ "circle.mode.mixolydian": "mixolydian",
298
+ "circle.mode.aeolian": "aeolian",
299
+ "circle.mode.locrian": "locrian",
300
+ "circle.key": 'Unknown key "{text}": use e.g. key: G, key: Em or key: D dorian',
301
+ "circle.mode": 'Unknown mode "{text}": use major, minor, dorian, phrygian, lydian, mixolydian or locrian',
302
+ "circle.modeTwice": "key: {key} already says {mode}: leave out mode or write the key's note alone",
303
+ "circle.chords": 'chords: use triads or sevenths, got "{text}"',
304
+ "circle.dominant": 'dominant: use major (V, from the harmonic minor) or minor (v), got "{text}"',
305
+ "keyboard.piano.unknownChord": 'Unknown chord "{symbol}"'
306
+ };
307
+
308
+ // src/i18n/en/parse.ts
309
+ var enParse = {
310
+ "blocks.source.expected": 'Expected "key: value", got "{line}"',
311
+ "blocks.source.strings": "strings: use string numbers from 1 (the highest) to {count}, e.g. 1-4",
312
+ "blocks.caption.fingeringChordOnly": "caption: fingering is for chord blocks: use formula or none here",
313
+ "blocks.caption.useAll": 'caption: use fingering (the fingering in words), formula (notes and intervals), fingering, formula (both) or none, got "{written}"',
314
+ "blocks.caption.useFormula": 'caption: use formula (notes and intervals) or none, got "{written}"',
315
+ "blocks.noteSet.chordOrArpeggio": "Use chord or arpeggio, not both",
316
+ "blocks.noteSet.invalidRoot": 'Invalid root "{root}": use a note name, e.g. root: C',
317
+ "blocks.noteSet.notAList": '"{head}" is not a list of notes: use e.g. notes: C Eb G',
318
+ "blocks.noteSet.addNotesForRoot": "Add the notes for the root: e.g. notes: C Eb G",
319
+ "blocks.noteSet.addRoot": "Add a root note: C {scale}",
320
+ "blocks.noteSet.addSource": 'Add "scale:", "chord:" or "notes:"',
321
+ "blocks.noteSet.rootListsOnlyScale": "root only applies to lists of notes (notes: C E G): a scale has its own root",
322
+ "blocks.noteSet.rootListsOnlyChord": "root only applies to lists of notes (notes: C E G): a chord has its own root",
323
+ "blocks.noteSet.unknownLabelsFingers": 'Unknown labels "{value}": use notes, degrees, intervals, fingers or none',
324
+ "blocks.noteSet.unknownLabels": 'Unknown labels "{value}": use notes, degrees, intervals or none',
325
+ "blocks.noteSet.invalidNotes": 'Invalid notes "{notes}"',
326
+ "blocks.noteSet.unknownScale": 'Unknown scale "{scale}"',
327
+ "blocks.noteSet.unknownChord": 'Unknown chord "{chord}"',
328
+ "blocks.noteSet.notAScaleChordOrList": '"{head}" is not a scale, chord or list of notes',
329
+ "blocks.noteSet.highlightNeedsIntervals": "highlight needs a scale, a chord or a root: a list of notes has no intervals (add e.g. root: C)",
330
+ "blocks.noteSet.notInSet": `"{label}" isn't in {title}: use its intervals (R, b3, 5…)`,
331
+ "theory.key.needsSharps": "{name} needs {count} sharps: write {write}",
332
+ "theory.key.needsFlats": "{name} needs {count} flats: write {write}",
333
+ "theory.key.noSignature": "no ♯ or ♭",
334
+ "theory.harmonize.unknownScale": 'Unknown scale "{text}": use e.g. key: G major, key: A harmonic minor or key: D dorian',
335
+ "theory.harmonize.sevenNotes": "harmonize needs a scale of 7 notes: {name} has {count}",
336
+ "theory.harmonize.noNamedChord": "not a named chord",
337
+ "theory.harmonize.noFifth": "no perfect fifth",
338
+ "theory.harmonize.noFourthOrSecond": "no perfect fourth or major second",
339
+ "blocks.progression.yesNo": '{key} must be yes or no, got "{text}"',
340
+ "blocks.progression.majorMinorKeys": 'Progression keys are major or minor: write key: {tonic} major or key: {tonic} minor, got "{text}"',
341
+ "blocks.progression.unknownKey": 'Unknown key "{text}": use e.g. key: G, key: Em or key: F# minor',
342
+ "blocks.progression.unread": `Didn't read "{token}": write roman numerals (I V vi IV, bVII, V7, V/V, I6, V65), Nashville numbers (1 5 6m 4) or chords (G D Em C)`,
343
+ "blocks.progression.harmonizeKind": 'harmonize: write triads, sevenths, sus or power, got "{kind}"',
344
+ "blocks.progression.harmonizeNothing": "harmonize: write triads, sevenths, sus or power, got nothing",
345
+ "blocks.progression.harmonizeNoChords": "harmonize draws the chords of the scale: leave out the chords ({written})",
346
+ "blocks.progression.addScale": "Add the scale: e.g. key: A harmonic minor",
347
+ "blocks.progression.transposeWhole": "transpose must be a whole number of semitones, e.g. transpose: -2",
348
+ "blocks.progression.addChords": "Add the chords: e.g. I V vi IV with key: G, 1 5 6m 4, or G D Em C",
349
+ "blocks.progression.addKey": "Add the key: e.g. key: G or key: E minor",
350
+ "blocks.progression.unknownTuning": 'Unknown tuning "{text}"',
351
+ "blocks.progression.tempo": 'tempo: write beats a minute from {min} to {max}, got "{text}"',
352
+ "blocks.progression.strum": "strum: write beats, bar, arpeggio or a strumming pattern (D DU UDU): {reason}",
353
+ "blocks.progression.key": "Key: {name}",
354
+ "blocks.progression.blues": "(blues)",
355
+ "blocks.progression.orKeys": "(or {list})",
356
+ "blocks.progression.leftOut": "Left out: {list}",
357
+ "blocks.progression.leftOutDegree": "degree {degree} ({note}), {reason}",
358
+ "blocks.progression.unknownInstrument": 'Unknown instrument "{instrument}": use guitar or piano',
359
+ "blocks.progression.numerals": 'numerals: use roman, nashville or none, got "{style}"',
360
+ "blocks.progression.voiceLeadingPiano": "voice-leading is for piano: add instrument: piano",
361
+ "blocks.progression.pianoOnly": "{key} is for piano chords: add instrument: piano",
362
+ "blocks.progression.voiceLeadingHands": "voice-leading goes with hands: left+right (a left-hand bass under each chord), not left or right alone",
363
+ "blocks.progression.voiceLeadingOrKey": "Use voice-leading or {key}, not both",
364
+ "blocks.progression.addChordsAfterShared": 'Add the chords after the shared settings, after a "---" line',
365
+ "blocks.progression.maxChords": "At most {max} chords per block, found {count}",
366
+ "theory.chord.suggest": "{root}, {root}m, {root}7 or {spelled} {quality}",
367
+ "blocks.render.maxStrings": "At most {max} strings",
368
+ "blocks.render.invalidRange": 'Invalid range "{text}": use e.g. C3-B4',
369
+ "blocks.render.maxKeys": "At most {max} keys: give a smaller range, e.g. range: C3-B5",
370
+ "blocks.render.wholeFrom1": '{what} must be a whole number from 1, got "{text}"',
371
+ "blocks.render.unrecognized": `Didn't recognize "{written}": try {suggestions}`,
372
+ "blocks.render.rootForListsOnly": "root only applies to lists of notes on fretboards and keyboards (notes: C E G with root: C): a chord has its own root",
373
+ "blocks.chord.capoNotPiano": "capo is for guitar and other fretted instruments, not piano",
374
+ "blocks.chord.pitchesGivenKeys": "{given} goes with a chord symbol: pitches are already the keys to play",
375
+ "blocks.chord.autoNeedsSymbol": "fingering: auto goes with a chord symbol: write the fingers, e.g. 1 3 5",
376
+ "blocks.chord.invalidPitches": 'Invalid pitches "{text}"',
377
+ "blocks.chord.autoCovers": "fingering: auto covers triads and four-note chords (sevenths, sixths) in close position, and rootless and shell voicings one hand can reach: write the fingers, e.g. fingering: 1 2 3 4 5",
378
+ "blocks.chord.addSymbolOrPitches": 'Add a chord symbol or "pitches:"',
379
+ "blocks.chord.unknownInstrument": 'Unknown instrument "{instrument}": use guitar or piano, or give a tuning',
380
+ "blocks.chord.invalidFrets": 'Invalid frets "{text}": use e.g. x02220',
381
+ "blocks.chord.nutAtCapo": "With frets-from: nut, every sounding fret is at the capo ({capo}) or above: write x for strings behind it",
382
+ "blocks.chord.capoMaxFret": "With capo {capo}, frets go up to {max}",
383
+ "blocks.chord.fingersCount": '"{text}" has {fingers} fingers for {strings} strings',
384
+ "blocks.chord.noVoicing": 'No voicing {n} found for "{symbol}": add "frets:"',
385
+ "blocks.chord.addFretsFor": 'Add "frets:" for {symbol} (e.g. frets: x02220)',
386
+ "blocks.chord.addSymbolAndFrets": 'Add a chord symbol and "frets:"',
387
+ "blocks.chord.positionAboveLowest": "position {base} is above the lowest fretted note (fret {fret})",
388
+ "blocks.chord.tuningStrings": "The tuning has {tuning} strings, the frets {frets}",
389
+ "blocks.chord.soundsTitle": "{sounding} ({shape} shape)",
390
+ "blocks.chord.captionFormulaChord": "caption: formula needs a chord the library knows: add its symbol (e.g. symbol: A)",
391
+ "blocks.chord.captionFormulaSet": "caption: formula needs a chord or a scale the library knows: add chord: or scale:",
392
+ "blocks.chord.soundsTitleNeedsChord": "sounds: title needs a chord the library knows: add its symbol (e.g. symbol: A)",
393
+ "blocks.chord.soundsNeedsCapo": "sounds goes with a capo: add e.g. capo: 2",
394
+ "blocks.chord.soundsYesNeedsChord": "sounds: yes needs a chord the library knows: add its symbol (e.g. symbol: A), or write the chord: sounds: B",
395
+ "blocks.chord.soundsMismatch": "With capo {capo}, {shape} sounds {sounding}, not {value}: write sounds: {sounding} (or sounds: yes)",
396
+ "blocks.chord.unknownLabels": 'Unknown labels "{text}": use fingers, intervals, notes or none',
397
+ "blocks.chord.labelsNeedChord": "labels: {value} needs a chord the library knows",
398
+ "blocks.keyboard.autoBothAlone": "fingering: auto both draws two keyboards: put it in a block of its own, not in a --- row",
399
+ "blocks.keyboard.fingersCount": "fingering has {fingers} fingers: {title} needs {needed}, one per note from the root up to the root above",
400
+ "blocks.keyboard.fingersForNotes": "fingering has {fingers} fingers for {notes} notes: one finger per note, in the order written",
401
+ "blocks.keyboard.keyTwice": "A key is listed twice: one finger per key",
402
+ "blocks.keyboard.pastRange": "The fingered notes go past the range: widen range: or leave it out",
403
+ "blocks.keyboard.handTitleLeft": "{title}, left hand",
404
+ "blocks.keyboard.handTitleRight": "{title}, right hand",
405
+ "blocks.fretboard.invalidFrets": 'Invalid frets "{text}": use e.g. 5-8',
406
+ "blocks.fretboard.maxFret": "Frets go up to {max}",
407
+ "blocks.fretboard.nutStartsAtCapo": "With frets-from: nut, frets start at the capo ({capo}) or above: e.g. frets: {capo}-{example}",
408
+ "blocks.fretboard.numberingNeedsPosition": "numbering goes with a position: e.g. position: 1 or positions: all",
409
+ "blocks.fretboard.positionsNeedSet": "Positions need a scale or a chord: e.g. scale: A minor or arpeggio: Am7",
410
+ "blocks.fretboard.arpeggioCaged": "Arpeggios use CAGED shapes: position 1 to 5, or shape: E, D, C, A or G (not 3nps)",
411
+ "blocks.fretboard.positionCount": "{title} has {count} {named} positions: use position 1 to {count}",
412
+ "blocks.fretboard.positionNotFit": "{title}, position {n} doesn't fit in frets {from}-{to}: widen frets: or leave it out",
413
+ "blocks.fretboard.rhythmNeedsExercise": "rhythm goes with exercise: e.g. exercise: up-down",
414
+ "blocks.fretboard.exerciseNeedsPosition": "exercise plays one position: add position: 1 (or shape: E)",
415
+ "blocks.fretboard.invalidTempo": 'Invalid tempo "{text}": use beats a minute from 20 to 240, e.g. tempo: 80',
416
+ "blocks.fretboard.arpeggioTitle": "{name} arpeggio",
417
+ "blocks.fretboard.fromMinor": " (from {minor}m)",
418
+ "blocks.fretboard.shapeTitle": "{name}, {shape} shape",
419
+ "blocks.fretboard.threeNpsTitle": "{name}, 3nps {n}{from}",
420
+ "blocks.fretboard.boxTitle": "{name}, box {n}{from}",
421
+ "blocks.scalesFor.both": "Use scales-for (chords) or scales-for-notes, not both",
422
+ "blocks.scalesFor.findsItself": '{key} finds the scale itself: remove "{what}"',
423
+ "blocks.scalesFor.addChords": "Add the chords: e.g. scales-for: G D Em C",
424
+ "blocks.scalesFor.addNotes": "Add the notes: e.g. scales-for-notes: C D E G A",
425
+ "blocks.scalesFor.unreadChords": `Didn't read the chords "{text}": use chord symbols, e.g. scales-for: G D Em C`,
426
+ "blocks.scalesFor.unreadNotes": `Didn't read the notes "{text}": use note names, e.g. scales-for-notes: C D E G A`,
427
+ "blocks.scalesFor.outside": ", {notes} outside",
428
+ "blocks.scalesFor.bluesTitle": "{tonic} blues scale for {listed} (or {pentatonic}, {mixolydian})",
429
+ "blocks.scalesFor.title": "{name} for {listed}{outside}",
430
+ "chord.capo.fret": 'capo: use a fret from 1 to {max}, got "{text}"',
431
+ "chord.capo.fretsFrom": 'frets-from: use capo (the default) or nut, got "{text}"',
432
+ "theory.naming.write": "naming: write letters, solfege or german",
433
+ "theory.naming.writeDirective": "naming: write {letters}, {solfege} or {german}",
434
+ "chord.words.ordinalFirst": "1st",
435
+ "chord.words.ordinalSt": "{n}st",
436
+ "chord.words.ordinalNd": "{n}nd",
437
+ "chord.words.ordinalRd": "{n}rd",
438
+ "chord.words.ordinalTh": "{n}th",
439
+ "chord.words.listAnd": "{head} and {last}",
440
+ "chord.words.guitarIndex": "Index",
441
+ "chord.words.guitarMiddle": "Middle",
442
+ "chord.words.guitarRing": "Ring",
443
+ "chord.words.guitarPinky": "Pinky",
444
+ "chord.words.guitarThumb": "Thumb",
445
+ "chord.words.guitarFinger": "Finger {finger}",
446
+ "chord.words.pianoThumb": "thumb",
447
+ "chord.words.pianoIndex": "index finger",
448
+ "chord.words.pianoMiddle": "middle finger",
449
+ "chord.words.pianoRing": "ring finger",
450
+ "chord.words.pianoLittle": "little finger",
451
+ "chord.words.pianoFinger": "finger {finger}",
452
+ "chord.words.lowName": "low {name}",
453
+ "chord.words.highName": "high {name}",
454
+ "chord.words.stringNamed": "the {name} string",
455
+ "chord.words.stringsNamed": "the {names} strings",
456
+ "chord.words.stringNumberedNote": "the {n} string ({note})",
457
+ "chord.words.stringNumbered": "the {n} string",
458
+ "chord.words.capoFrom": "Capo on the {fret} fret: frets count from the capo.",
459
+ "chord.words.capoNut": "Capo on the {fret} fret.",
460
+ "chord.words.allMuted": "Every string is muted: no note sounds.",
461
+ "chord.words.strumSix": "Strum all six strings.",
462
+ "chord.words.strumAll": "Strum every string.",
463
+ "chord.words.strumFrom": "Strum from {from}.",
464
+ "chord.words.strumFromTo": "Strum from {from} to {to}.",
465
+ "chord.words.press": "Press {string} at the {fret} fret.",
466
+ "chord.words.fingerOn": "{finger} on {strings}, {fret} fret.",
467
+ "chord.words.fingerBars": "{finger} bars the {fret} fret, strings {from} to {to}.",
468
+ "chord.words.fingerAlsoOn": "{finger} also on {string}, {fret} fret.",
469
+ "chord.words.muteOne": "Mute {list}: let a fretting finger touch it lightly.",
470
+ "chord.words.mutePlural": "Mute {list}: let a fretting finger touch them lightly.",
471
+ "chord.words.groupRingOpenOne": "The {list} string rings open.",
472
+ "chord.words.groupRingOpenPlural": "The {list} strings ring open.",
473
+ "chord.words.groupRingCapoOne": "The {list} string rings at the capo.",
474
+ "chord.words.groupRingCapoPlural": "The {list} strings ring at the capo.",
475
+ "chord.words.ringOpenOne": "{list} rings open.",
476
+ "chord.words.ringOpenPlural": "{list} ring open.",
477
+ "chord.words.ringCapoOne": "{list} rings at the capo.",
478
+ "chord.words.ringCapoPlural": "{list} ring at the capo.",
479
+ "chord.words.pianoFingerOn": "{finger} on {key}",
480
+ "chord.words.pianoAlsoPlay": "{fingered}, and also play {list}",
481
+ "chord.words.sentence": "{text}.",
482
+ "chord.words.play": "Play {list}.",
483
+ "chord.words.leftHand": "Left hand: {part}.",
484
+ "chord.words.rightHand": "Right hand: {part}.",
485
+ "chord.transition.fingerIndex": "index finger",
486
+ "chord.transition.fingerMiddle": "middle finger",
487
+ "chord.transition.fingerRing": "ring finger",
488
+ "chord.transition.fingerPinky": "pinky",
489
+ "chord.transition.fingerThumb": "thumb",
490
+ "chord.transition.fingerOther": "finger",
491
+ "chord.transition.keep": "Keep your {finger} on {string}'s {fret} fret.",
492
+ "chord.transition.slide": "Slide your {finger} along {string} from fret {from} to {to}.",
493
+ "chord.transition.moveUp": "Move your hand up {shift} frets.",
494
+ "chord.transition.moveDown": "Move your hand down {shift} frets.",
495
+ "chord.transition.lift": "Lift all your fingers together and place them as one shape.",
496
+ "chord.guitar.capoCaption": "Capo {capo}",
497
+ "chord.guitar.capoCaptionSounds": "Capo {capo}, sounds {sounds}",
498
+ "chord.guitar.diagram": "Chord diagram",
499
+ "chord.guitar.diagramTitled": "{title} chord diagram",
500
+ "chord.guitar.rootOnString": "The root is on string {list}.",
501
+ "chord.guitar.rootOnStrings": "The root is on strings {list}.",
502
+ "chord.triads.rootPosition": "root position",
503
+ "chord.triads.firstInversion": "1st inversion",
504
+ "chord.triads.secondInversion": "2nd inversion",
505
+ "theory.formula.chord": "{written} ({root} {words}{bass}): {notes}.",
506
+ "theory.formula.inTheBass": ", {bass} in the bass",
507
+ "theory.formula.formula": "Formula {formula}.",
508
+ "theory.formula.alsoWritten": "Also written {list}.",
509
+ "theory.formula.scale": "{title}: {notes}.",
510
+ "theory.formula.steps": "Steps {steps}.",
511
+ "chords.chart.chorus": "Chorus",
512
+ "chords.chart.bridge": "Bridge",
513
+ "chords.chart.tab": "Tab",
514
+ "chords.chart.grid": "Grid",
515
+ "chords.chart.key": "Key {key}",
516
+ "chords.chart.capo": "Capo {capo}",
517
+ "chords.chart.tempo": "{bpm} BPM",
518
+ "chords.chart.transposed": "Transposed {amount}",
519
+ "chords.chart.sounds": "{title} (sounds {sounding})",
520
+ "chords.chart.moreNotDrawn": "{count} more chords not drawn (at most {max})",
521
+ "chords.chart.missing": "No diagram for {names}: give the shape with {how}",
522
+ "chords.chart.howPiano": "{syntax} (semitones above the root, e.g. keys 0 4 7)",
523
+ "chords.chart.howGuitar": "{syntax} (one fret per string, x for a muted one)",
524
+ "chords.define.needsName": "{syntax} needs a chord name: e.g. {example}",
525
+ "chords.define.baseFret": "{at}: base-fret takes one whole number from 1 to 24, e.g. base-fret 3",
526
+ "chords.define.frets": "{at}: frets takes one value per string (2 to {max}): a fret from 0 to 24, or x for a muted string, e.g. frets x 0 2 2 1 0",
527
+ "chords.define.keys": "{at}: keys takes semitones above the root, from 0 to {max}, e.g. keys 0 4 7",
528
+ "chords.define.copy": "{at}: {word} takes the name of one chord, e.g. {word} Am",
529
+ "chords.define.unknown": '{at}: unknown "{word}": use base-fret, frets, fingers, keys, copy, display or diagram',
530
+ "chords.define.fingersCount": "{at}: fingers has {fingers} values for {strings} strings: give one per string (0 for none)",
531
+ "chords.define.reaches": "{at}: the shape reaches fret {top}: frets go up to {max}",
532
+ "chords.directive.diagrams": "{at}: use on, off, top or bottom",
533
+ "chord.shape.open": "Open",
534
+ "chord.shape.caged": "{letter} shape",
535
+ "chord.shape.cagedStrings": "{letter} shape (strings {strings})",
536
+ "chord.shape.power": "Power chord",
537
+ "chord.shape.triad": "Triad",
538
+ "chord.shape.shell": "Shell",
539
+ "chord.shape.drop": "Drop {n} (strings {strings})",
540
+ "chord.shape.hendrix": "Hendrix chord",
541
+ "chord.shape.openBass": "Open bass",
542
+ "chord.shape.openStrings": "Open strings",
543
+ "chord.shape.strings": "Strings {strings}",
544
+ "blocks.function.tonic": "tonic",
545
+ "blocks.function.subdominant": "subdominant",
546
+ "blocks.function.dominant": "dominant",
547
+ "blocks.function.secondaryDominant": "secondary dominant",
548
+ "blocks.function.neapolitan": "neapolitan",
549
+ "blocks.function.borrowed": "borrowed",
550
+ "blocks.function.chromatic": "chromatic",
551
+ "blocks.function.tonicization": "tonicization",
552
+ "blocks.function.passing": "passing",
553
+ "theory.marks.characteristic": ", characteristic notes: {notes}",
554
+ "theory.marks.different": ", different from the compared scale: {notes}",
555
+ "theory.marks.chordTones": ", chord tones: {notes}"
556
+ };
557
+
558
+ // src/i18n/en/play.ts
559
+ var enPlay = {
560
+ "playback.bar": "Playback",
561
+ "playback.diagram": "Diagram",
562
+ "playback.place": "({n} of {total})",
563
+ "playback.playItem": "Play {name}",
564
+ "playback.playAll": "Play all in turn",
565
+ "playback.play": "Play",
566
+ "playback.stop": "Stop",
567
+ "playback.loop": "Loop",
568
+ "playback.countIn": "Count-in",
569
+ "playback.click": "Click",
570
+ "playback.sound": "Sound",
571
+ "playback.guitar": "Guitar",
572
+ "playback.piano": "Piano",
573
+ "playback.tempo": "Tempo (BPM)",
574
+ "playback.unit.bpm": "BPM",
575
+ "playback.unit.ms": "ms",
576
+ "playback.strum": "Strum (ms between strings)",
577
+ "playback.dotted": "counts dotted quarters",
578
+ "playback.strumPattern.bar": "Play the strumming pattern",
579
+ "playback.picking.bar": "Play the picking pattern",
580
+ "playback.progression.bar": "Play the chords in time",
581
+ "playback.progression.play": "Play in time",
582
+ "playback.strumChoice": "Strum",
583
+ "playback.strum.beats": "On the beats",
584
+ "playback.strum.bar": "Once a bar",
585
+ "playback.strum.arpeggio": "Arpeggio",
586
+ "playback.strum.pattern": "Pattern",
587
+ "playback.copy.button": "Copy as image",
588
+ "playback.copy.hint": "Shift+click copies the whole block",
589
+ "playback.copy.bar": "Image",
590
+ "playback.copy.copied": "Copied",
591
+ "playback.copy.refused": "Allow clipboard access for this page, then try again.",
592
+ "playback.copy.unsupported": "This browser can't copy images: use a recent Chrome, Edge, Safari or Firefox.",
593
+ "playback.copy.failed": "The image couldn't be made.",
594
+ "playback.full.enter": "Full screen",
595
+ "playback.full.exit": "Exit full screen",
596
+ "playback.redraw.sounds": "{heading} (sounds {chord})",
597
+ "playback.redraw.guitar": "{name}, drawn for guitar",
598
+ "playback.redraw.piano": "{name}, drawn for piano",
599
+ "playback.engine.invalid": 'engine: use generaluser, sonivox or light, got "{value}"',
600
+ "tab.source.staves": 'staves: use tab, score or both, got "{value}"',
601
+ "tab.source.layout": 'layout: use page or line, got "{value}"',
602
+ "tab.source.names": 'names: use on or off, got "{value}"',
603
+ "tab.source.tracks": 'tracks: use track numbers from 1, got "{value}"',
604
+ "tab.source.empty": "Write the music in alphaTex, or give a file: {example}",
605
+ "tab.sound.loadFailed": "Couldn't load the soundfont ({url})",
606
+ "tab.error.at": "line {line}, column {column}: ",
607
+ "tab.error.textTab": "Couldn't draw this text tab: {message}",
608
+ "tab.error.fileRead": `Couldn't read "{file}": {message}`,
609
+ "tab.error.fileMissing": `Couldn't find the file "{file}"`,
610
+ "tab.error.fileUnknown": `Couldn't read "{file}": not a score file alphaTab knows`,
611
+ "tab.player.cantPlay": "Can't play: {message}",
612
+ "tab.player.metronome": "Metronome",
613
+ "tab.player.pause": "Pause",
614
+ "tab.names": "Note names",
615
+ "tab.follow": "Follow the music",
616
+ "tab.followPaused": "Follow the music (paused while you scroll: Play or click to follow again)",
617
+ "tab.view.group": "View",
618
+ "tab.view.tab": "Tab",
619
+ "tab.view.score": "Score",
620
+ "tab.view.both": "Both",
621
+ "tab.view.whatTab": "tablature",
622
+ "tab.view.whatScore": "standard notation",
623
+ "tab.view.whatBoth": "standard notation and tablature",
624
+ "tab.view.drawAs": "Draw as {what}",
625
+ "tab.view.drawAsWritten": "Draw as {what} (this block's staves: line)",
626
+ "tab.view.drawAsDefault": "Draw as {what} (the default: the block has no staves: line)",
627
+ "tab.view.keep": "Keep this view",
628
+ "tab.view.keepTitle": "Write staves: {staves} at the top of the block",
629
+ "tab.tempo.group": "Tempo",
630
+ "tab.tempo.slower": "Slower",
631
+ "tab.tempo.faster": "Faster",
632
+ "tab.tempo.toPercent": "Show the speed in percent",
633
+ "tab.tempo.toBpm": "Show the speed in BPM",
634
+ "tab.tempo.reset": "Back to 100 %",
635
+ "tab.tempo.inBpm": "Tempo in BPM",
636
+ "tab.tempo.inPercent": "Speed in percent",
637
+ "tab.tempo.title": "Tempo: {bpm} BPM, {percent} % of {tempo} BPM",
638
+ "tab.tempo.speedTitle": "Speed: {percent} %"
639
+ };
640
+
641
+ // src/i18n/en/timed.ts
642
+ var enTimed = {
643
+ "strum.time.invalid": 'Invalid time "{text}": use e.g. time: 4/4, 3/4 or 6/8',
644
+ "strum.swing.invalid": 'Invalid swing "{text}": write swing: yes (a triplet swing, a shuffle), no, or a percentage from 50 (straight) to 75, e.g. swing: 60%',
645
+ "strum.subdivision.invalid": 'Invalid subdivision "{text}": use 8ths, 16ths or triplets',
646
+ "strum.triplets.quarterBeat68": "Triplets need a quarter-note beat (time: 4/4, 3/4…); for a 6/8 feel use time: 6/8 with 8ths",
647
+ "strum.triplets.quarterBeat": "Triplets need a quarter-note beat (time: 4/4, 3/4…); for this time use 8ths or 16ths",
648
+ "strum.subdivision.tooLong": "8ths are longer than a beat of x/{unit}: use subdivision: 16ths",
649
+ "strum.chord.notRecognizedTry": `Didn't recognize the chord "{chord}": try {suggestions}`,
650
+ "strum.chord.empty": 'Empty chord "[]": write the chord inside, e.g. [G]',
651
+ "strum.chord.notRecognized": `Didn't recognize the chord "{chord}"`,
652
+ "strum.line.bracketMissing": 'Missing "]" after "{text}": write e.g. [G]',
653
+ "strum.line.barInGhost": "A bar line inside ( ): close the ghost strums first",
654
+ "strum.line.accentAndGhost": "A strum is either accented (D>) or a ghost strum ((D)), not both",
655
+ "strum.line.ghostNested": "Ghost strums can't be nested: write (U), not ((U))",
656
+ "strum.line.parenUnopened": '")" without "(": write a ghost strum as (U)',
657
+ "strum.help": "write D or ↓ (down), U or ↑ (up), X (muted), - (no strum), > after a strum for an accent, (U) for a ghost strum, [G] for a chord change",
658
+ "strum.line.notUnderstood": `Didn't understand "{char}" in "{line}": {help}`,
659
+ "strum.line.accentNeedsStrum": "An accent needs a strum: write D> or U>",
660
+ "strum.line.ghostNoRests": "Write ghost strums as (D) or (U), without rests inside",
661
+ "strum.line.parenUnclosed": 'Missing ")" in "{line}": write a ghost strum as (U)',
662
+ "strum.line.chordEndsPattern": "The chord [{chord}] ends the pattern: put it before a strum or a -",
663
+ "strum.pattern.chordLineAlone": "A chord line needs a pattern line under it, e.g. D - D U - U D U",
664
+ "strum.pattern.missing": "Write a strumming pattern, e.g. D - D U - U D U (or D DU UDU)",
665
+ "strum.key.unknown": 'Unknown key "{key}": use time, subdivision, swing, chord, tempo, tuning, title or pattern',
666
+ "strum.swing.withTriplets": "Triplets and swing are two ways to write a shuffle: keep subdivision: triplets (D - U on each beat), or write 8ths with swing: yes",
667
+ "strum.swing.compound": "{time} already has three {unit} a beat: remove swing: (it swings 8ths or 16ths in 4/4, 3/4, 2/4…)",
668
+ "strum.swing.oneSlot": "Swing plays pairs of slots inside a beat, and a beat of {time} in {subdivision} has one slot: write subdivision: 16ths, or time: 4/4",
669
+ "strum.tempo.invalid": 'Invalid tempo "{text}": use beats a minute from {min} to {max}, e.g. tempo: 90',
670
+ "strum.bars.tooMany": "At most {max} bars in one pattern: split it into several blocks",
671
+ "strum.chord.pastEnd": "The chord {chord} is past the end of its pattern line: move it over a strum",
672
+ "strum.count.bar.one": "{n} bar",
673
+ "strum.count.bar.other": "{n} bars",
674
+ "strum.count.slot.one": "{n} slot",
675
+ "strum.count.slot.other": "{n} slots",
676
+ "strum.count.barsAndSlots": "{bars} and {slots}",
677
+ "strum.count.spill": '{time} in {subdivision} has {perBar} slots a bar, but "{written}" takes {slots} ({count}): put a | where each bar ends{orTime}',
678
+ "strum.count.spillOrTime": ", or write {time}",
679
+ "strum.count.mismatch": '{time} in {subdivision} has {perBar} slots a bar, but "{written}" has {n}: fill each bar with - (no strum){alternatives}',
680
+ "strum.count.alternative.first": " or write {item}",
681
+ "strum.count.alternative.next": ", {item}",
682
+ "strum.count.alternative.last": " or {item}",
683
+ "strum.note.one": "Read as {read}, then {n} beat with no strum: write a symbol for every slot (- for no strum) to place the strums yourself.",
684
+ "strum.note.other": "Read as {read}, then {n} beats with no strum: write a symbol for every slot (- for no strum) to place the strums yourself.",
685
+ "strum.feel.swing": "Swing",
686
+ "strum.feel.swingPercent": "Swing {percent}%",
687
+ "strum.feel.swing16": "16th swing",
688
+ "strum.feel.swing16Percent": "16th swing {percent}%",
689
+ "strum.name": "Strumming pattern {written}, {time}, {subdivision}{feel}",
690
+ "strum.name.titled": "{title}: strumming pattern {written}, {time}, {subdivision}{feel}",
691
+ "strum.name.feel": ", {feel}",
692
+ "strum.tuning.unknown": 'Unknown tuning "{tuning}": use e.g. tuning: standard, drop d, ukulele or E2 A2 D3 G3 B3 E4',
693
+ "strum.tuning.tooManyStrings": "At most 12 strings",
694
+ "strum.tuning.unknownGiven": 'Unknown tuning "{tuning}"',
695
+ "picking.help": "write p (the thumb on the bass), p' (the alternate bass), i, m, a (strings 3, 2, 1), a string number from 1 (the highest), - for a rest, + between notes picked together (p+a)",
696
+ "picking.token.notUnderstood": `Didn't understand "{token}": {help}`,
697
+ "picking.string.missing": "String {n} doesn't exist: strings go from 1 (the highest) to {strings}",
698
+ "picking.bar.slots": "A bar of {time} in {subdivision} has {perBar} slots, found {found}{between}: add notes or rests (-) so each bar has {perBar}, or change time:",
699
+ "picking.bar.betweenBarLines": " between bar lines",
700
+ "picking.key.unknown": 'Unknown key "{key}": use time, subdivision, swing, chord, chords, tempo, tuning, title or pattern',
701
+ "picking.swing.pairs": "Swing plays pairs of 8ths or 16ths inside a beat: remove swing:, or write time: 4/4 with 8ths",
702
+ "picking.tempo.invalid": 'Invalid tempo "{text}": use beats a minute from {min} to {max}, e.g. tempo: 80',
703
+ "picking.pattern.twice": "Write the pattern once: as pattern: or as pattern lines, not both",
704
+ "picking.pattern.missing": "Write a pattern: a line such as p i m a p i m a, or pattern: travis, alternate bass or 1-2-3-4",
705
+ "picking.chords.tooMany": "At most {max} chords, found {found}",
706
+ "picking.tuning.unknown": 'Unknown tuning "{tuning}": use e.g. tuning: standard, drop d, open g or E2 A2 D3 G3 B3 E4',
707
+ "picking.name": "Picking pattern {written}, {time}, {subdivision}{over}",
708
+ "picking.name.titled": "{title}: picking pattern {written}, {time}, {subdivision}{over}",
709
+ "picking.name.over": ", over {chords}",
710
+ "picking.voicing.none": "No playable voicing of {chord} for this tuning",
711
+ "export.image.title": "Music notation"
712
+ };
713
+
714
+ // src/i18n/en/index.ts
715
+ var en = {
716
+ ...enParse,
717
+ ...enDiagrams,
718
+ ...enTimed,
719
+ ...enPlay
720
+ };
721
+
722
+ // src/i18n/fr/diagrams.ts
723
+ var frDiagrams = {
724
+ "render.layout.orientation": "Orientation inconnue « {text} » : utilisez vertical ou horizontal",
725
+ "render.layout.hand": "Main inconnue « {text} » : utilisez left ou right",
726
+ "render.rootMark.invalid": "root-mark : écrivez color ou shape, reçu « {text} »",
727
+ "render.rootListsOnly": "root ne s'applique qu'aux listes de notes sur les manches et les claviers (notes: C E G avec root: C) : un accord a sa propre fondamentale",
728
+ "render.unknownChord": "« {written} » n'est pas reconnu : essayez {suggestions}",
729
+ "render.tuning": "Accordage inconnu « {text} »",
730
+ "render.yesNo": "{key} doit valoir yes ou no, reçu « {text} »",
731
+ "render.hand.left": "main gauche",
732
+ "render.hand.right": "main droite",
733
+ "render.positions.exerciseOne": "exercise joue une seule position : écrivez position: 1 (et non positions:)",
734
+ "render.positions.needsSet": "positions demande une gamme ou un accord : par exemple A minor pentatonic ou arpeggio: Am7",
735
+ "render.positions.arpeggioCaged": "Les arpèges utilisent les formes CAGED, pas 3nps : retirez shape",
736
+ "render.positions.range": "positions : utilisez all, ou des nombres de 1 à {count} pour {title}",
737
+ "render.positions.fromMinor": " (depuis {root}m)",
738
+ "render.positions.arpeggioTitle": "Arpège de {title}",
739
+ "render.positions.shapeTitle": "{name}, forme {shape}",
740
+ "render.positions.npsTitle": "{name}, 3nps {n}{from}",
741
+ "render.positions.boxTitle": "{name}, position {n}{from}",
742
+ "render.fingering.handTitle": "{title}, {hand}",
743
+ "render.voicings.notBoth": "Utilisez triads ou voicings, pas les deux",
744
+ "render.voicings.fretted": "voicings sert à la guitare et aux autres instruments à frettes",
745
+ "render.voicings.noFrets": "voicings trouve seul les cases : retirez « {value} »",
746
+ "render.voicings.needsChord": "voicings demande un accord : par exemple A Major",
747
+ "render.voicings.instrument": "Instrument inconnu « {instrument} » : utilisez guitar, ou donnez un accordage",
748
+ "render.voicings.maxStrings": "voicings fonctionne jusqu'à {max} cordes",
749
+ "render.voicings.count": "voicings : utilisez all, ou un nombre de 1 à {max}",
750
+ "render.voicings.area": "area : utilisez open, ou des cases comme 5-9 (jusqu'à 24), reçu « {area} »",
751
+ "render.voicings.rootString": "root-string : utilisez un numéro de corde de 1 (la plus aiguë) à {count}",
752
+ "render.voicings.inversion": "inversion : utilisez 0 (fondamentale), 1, 2, 3 ou any, reçu « {inversion} »",
753
+ "render.voicings.manyStringsAny": "Sur {count} cordes, inversion: any demande six cordes ou moins : ajoutez par exemple strings: 1-6",
754
+ "render.voicings.wideArea": "une zone large",
755
+ "render.voicings.oneWidening": "Sur {count} cordes, utilisez un seul élargissement à la fois parmi {list}",
756
+ "render.noVoicing.gaps": "Les cordes {strings} ne sont pas côte à côte : ajoutez gaps: yes",
757
+ "render.noVoicing.rootString": "root-string {string} ne fait pas partie des cordes {strings}",
758
+ "render.noVoicing.inversion": "{symbol} a {notes} notes : inversion va jusqu'à {max}",
759
+ "render.noVoicing.bass": "Aucun voicing de {chord} n'a sa basse sur la corde {string} : essayez une autre root-string",
760
+ "render.noVoicing.none": "Aucun voicing jouable de {chord} ne convient : élargissez la zone, autorisez les cordes à vide ou ajoutez stretch: yes",
761
+ "render.triads.noFrets": "triads trouve seul les cases : retirez « {value} »",
762
+ "render.triads.fretted": "triads sert à la guitare et aux autres instruments à frettes : donnez un accordage",
763
+ "render.triads.strings": "triads : donnez trois cordes côte à côte, par exemple 1-3 ou 2-4",
764
+ "render.triads.inversion": "inversion : utilisez 0 (position fondamentale), 1, 2 ou any, reçu « {inversion} »",
765
+ "render.triads.keyInversion": "Avec une tonalité, choisissez un seul renversement : 0, 1 ou 2",
766
+ "render.triads.key": "Tonalité inconnue « {text} » : utilisez par exemple key: G major ou key: E minor",
767
+ "render.triads.needsChord": "triads demande un accord (par exemple G) ou une tonalité (key: G major)",
768
+ "render.triads.notTriad": "{symbol} n'est pas une triade (trois notes) : essayez voicings: all",
769
+ "render.triads.none": "Aucune triade ne tient sur ces cordes : essayez un autre groupe de cordes",
770
+ "render.transitions.needsFrom": "Ajoutez l'accord que vous tenez : from: C (avec ses cases : from: C x32010)",
771
+ "render.transitions.fretted": "Les transitions servent à la guitare et aux autres instruments à frettes : donnez un accordage",
772
+ "render.transitions.notBoth": "Utilisez from et to, ou progression, pas les deux",
773
+ "render.transitions.refused": "« {key} » ne peut pas s'utiliser avec {with}",
774
+ "render.transitions.maxStrings": "Les transitions fonctionnent jusqu'à {max} cordes",
775
+ "render.transitions.twoChords": "progression : donnez au moins deux accords, par exemple G D Em C",
776
+ "render.transitions.maxChords": "progression : {max} accords au plus",
777
+ "render.transitions.noVoicings": "Aucun voicing jouable pour cette progression",
778
+ "render.transitions.needsTo": "Ajoutez l'accord suivant : to: D",
779
+ "render.transitions.noHeld": "Aucun voicing jouable de {chord} : ajoutez ses cases",
780
+ "render.transitions.stringCount": "« {frets} » compte {have} cordes, l'accordage {count}",
781
+ "render.transitions.count": "count : utilisez un nombre de 1 à {max}",
782
+ "render.transitions.noTarget": "Aucun voicing jouable de {chord}",
783
+ "render.modes.none": "« {value} » n'a pas de modes : utilisez par exemple modes: C major",
784
+ "render.modes.refused": "« {key} » ne peut pas s'utiliser avec modes : seulement {allowed}",
785
+ "render.row.notShared": "« {key} » ne peut pas être partagé : déplacez-le dans un diagramme. Réglages partagés : {allowed}",
786
+ "render.row.columns": "columns doit être un nombre entier de 1 à 12, reçu « {text} »",
787
+ "render.row.needsDiagram": "Ajoutez un diagramme après les réglages partagés : une ligne « --- », puis le diagramme",
788
+ "render.row.max": "{max} diagrammes au plus par bloc, {found} trouvés",
789
+ "render.row.columnsShared": "« columns » va dans les réglages partagés, avant le premier « --- »",
790
+ "render.row.ownRow": "« {key} » dessine sa propre rangée : utilisez-le dans un bloc à part",
791
+ "render.row.exercise": "exercise dessine une tablature sous un seul diagramme : utilisez-le dans un bloc à part",
792
+ "render.row.diagram": "diagramme {n} : {message}",
793
+ "render.row.sharedHint": " (les réglages partagés avant le premier « --- » ne peuvent contenir que : {allowed})",
794
+ "fretboard.capo": "Capodastre {fret}",
795
+ "fretboard.title": "Manche : {title}",
796
+ "fretboard.note.open": "{note} à vide",
797
+ "fretboard.note.fret": "{note} case {fret}",
798
+ "fretboard.note.root": " (fondamentale)",
799
+ "fretboard.string": "Corde {n} ({name}) : {notes}.",
800
+ "fretboard.pick.open": "Corde {string}, à vide",
801
+ "fretboard.pick.fret": "Corde {string}, case {fret}",
802
+ "fretboard.exercise.direction": "exercise : utilisez up, down ou up-down, reçu « {text} »",
803
+ "fretboard.exercise.rhythm": "rhythm : utilisez 8ths, triplets ou 16ths, reçu « {text} »",
804
+ "fretboard.exercise.scale": "Gamme inconnue « {text} »",
805
+ "fretboard.exercise.chord": "Accord inconnu « {text} »",
806
+ "fretboard.exercise.needsSet": "Un exercice demande une gamme ou un arpège : par exemple scale: A minor ou arpeggio: Am7",
807
+ "fretboard.exercise.arpeggioCaged": "Les arpèges utilisent les formes CAGED : position 1 à 5, ou shape: E, D, C, A ou G (pas 3nps)",
808
+ "fretboard.exercise.positions": "{title} a {count} positions {system} : utilisez position 1 à {count}",
809
+ "fretboard.exercise.tuning": "Accordage inconnu « {text} »",
810
+ "fretboard.exercise.capo": "capo : utilisez une case de 1 à 12 (0 pour aucun), reçu {text}",
811
+ "fretboard.positions.numbering": "numbering : utilisez minor (positions depuis le relatif mineur), reçu « {text} »",
812
+ "fretboard.positions.numberingPentatonic": "numbering: minor sert aux positions de la pentatonique majeure (par exemple A major pentatonic), pas à {title}",
813
+ "fretboard.positions.numberingCaged": "numbering: minor numérote les positions en boîtes et 3nps, pas les formes CAGED",
814
+ "fretboard.positions.position": "position doit être un nombre entier à partir de 1, reçu « {text} »",
815
+ "fretboard.positions.shape": "Forme inconnue « {text} » : utilisez C, A, G, E, D ou 3nps",
816
+ "keyboard.fingering.finger": "fingering : les doigts vont de 1 (pouce) à 5 (auriculaire), reçu « {text} »",
817
+ "keyboard.fingering.autoNeedsScale": "fingering: auto va avec une gamme majeure ou mineure (scale: G major) : écrivez un doigt par note, par exemple fingering: 1 2 3 4 5",
818
+ "keyboard.fingering.autoUnknown": "fingering: auto connaît les gammes majeures, mineures naturelles, mineures harmoniques et mineures mélodiques : écrivez les doigts pour {scale}, de la fondamentale à la fondamentale, par exemple fingering: 1 2 3 1 2 3 4 5",
819
+ "keyboard.piano.shell": "Les voicings shell demandent une tierce et une septième ou une sixte (C7, Cmaj7, Cm7, C6) : {symbol} n'en a pas",
820
+ "keyboard.piano.rootless": "Les voicings rootless servent aux accords de septième ou de sixte majeurs, mineurs, de dominante (sus4 aussi) et demi-diminués, et aux triades majeures ou mineures (Cmaj7, Cm7, C7, C7sus4, Cm7b5, C6, C, Cm) : pas à {symbol}",
821
+ "keyboard.piano.octave": "octave : utilisez un nombre de 0 à 8, reçu « {text} »",
822
+ "keyboard.piano.inversion": "inversion : utilisez 0 (position fondamentale), 1, 2 ou 3, reçu « {text} »",
823
+ "keyboard.piano.slashInversion": "{symbol} indique déjà sa basse : retirez inversion",
824
+ "keyboard.piano.inversionStyle": "inversion va avec les voicings close ou open, pas {style}",
825
+ "keyboard.piano.inversionMax": "{symbol} a {notes} notes : inversion va jusqu'à {max}",
826
+ "keyboard.piano.open": "Les voicings open demandent trois notes ou plus : {symbol} en a {notes}",
827
+ "keyboard.piano.offKeys": "octave {octave} place {symbol} hors du clavier du piano : essayez octave 3 ou 4",
828
+ "keyboard.piano.inversionWord": "inversion : utilisez root, first, second, third (ou 0 à 3), reçu « {text} »",
829
+ "keyboard.piano.octaveMiddle": "octave : utilisez un nombre de 0 à 8 (4 est celle du do central), reçu « {text} »",
830
+ "keyboard.piano.voicing": "voicing : utilisez close, open, shell, shell R-7, rootless A ou rootless B, reçu « {text} »",
831
+ "keyboard.piano.key": "Tonalité inconnue « {text} » : utilisez par exemple key: C minor ou key: Eb",
832
+ "keyboard.piano.resolvesTo": "resolves-to : écrivez un accord, par exemple resolves-to: Cm, reçu « {text} »",
833
+ "keyboard.piano.hands": "hands : utilisez left+right, left ou right, reçu « {text} »",
834
+ "keyboard.title": "Clavier : {title}",
835
+ "keyboard.hand": "{hand} : {keys}",
836
+ "keyboard.handMark.left": "MG",
837
+ "keyboard.handMark.right": "MD",
838
+ "keyboard.whiteKey": "Touche blanche {n}",
839
+ "keyboard.blackKey": "Touche noire {n}",
840
+ "keyboard.lit.root": "fondamentale",
841
+ "keyboard.lit.finger": "doigt {finger}",
842
+ "keyboard.lit.keys": "Touches : {keys}.",
843
+ "circle.label": "Cycle des quintes, {key} : {signature}{accidentals} ; accords : {chords}",
844
+ "circle.or": "ou",
845
+ "circle.mode.major": "majeur",
846
+ "circle.mode.minor": "mineur",
847
+ "circle.mode.ionian": "ionien",
848
+ "circle.mode.dorian": "dorien",
849
+ "circle.mode.phrygian": "phrygien",
850
+ "circle.mode.lydian": "lydien",
851
+ "circle.mode.mixolydian": "mixolydien",
852
+ "circle.mode.aeolian": "éolien",
853
+ "circle.mode.locrian": "locrien",
854
+ "circle.key": "Tonalité inconnue « {text} » : utilisez par exemple key: G, key: Em ou key: D dorian",
855
+ "circle.mode": "Mode inconnu « {text} » : utilisez major, minor, dorian, phrygian, lydian, mixolydian ou locrian",
856
+ "circle.modeTwice": "key: {key} indique déjà {mode} : retirez mode ou écrivez seulement la note de la tonalité",
857
+ "circle.chords": "chords : utilisez triads ou sevenths, reçu « {text} »",
858
+ "circle.dominant": "dominant : utilisez major (V, issu du mineur harmonique) ou minor (v), reçu « {text} »",
859
+ "keyboard.piano.unknownChord": "Accord inconnu « {symbol} »"
860
+ };
861
+
862
+ // src/i18n/fr/parse.ts
863
+ var frParse = {
864
+ "blocks.source.expected": 'Attendu "clé: valeur", reçu "{line}"',
865
+ "blocks.source.strings": "strings: utilisez des numéros de corde de 1 (la plus aiguë) à {count}, par ex. 1-4",
866
+ "blocks.caption.fingeringChordOnly": "caption: fingering ne sert qu'aux blocs d'accord : utilisez formula ou none ici",
867
+ "blocks.caption.useAll": 'caption: utilisez fingering (le doigté en toutes lettres), formula (notes et intervalles), fingering, formula (les deux) ou none, reçu "{written}"',
868
+ "blocks.caption.useFormula": 'caption: utilisez formula (notes et intervalles) ou none, reçu "{written}"',
869
+ "blocks.noteSet.chordOrArpeggio": "Utilisez chord ou arpeggio, pas les deux",
870
+ "blocks.noteSet.invalidRoot": 'Fondamentale "{root}" invalide : utilisez un nom de note, par ex. root: C',
871
+ "blocks.noteSet.notAList": `"{head}" n'est pas une liste de notes : utilisez par ex. notes: C Eb G`,
872
+ "blocks.noteSet.addNotesForRoot": "Ajoutez les notes de la fondamentale : par ex. notes: C Eb G",
873
+ "blocks.noteSet.addRoot": "Ajoutez une fondamentale : C {scale}",
874
+ "blocks.noteSet.addSource": 'Ajoutez "scale:", "chord:" ou "notes:"',
875
+ "blocks.noteSet.rootListsOnlyScale": "root ne s'applique qu'aux listes de notes (notes: C E G) : une gamme a sa propre fondamentale",
876
+ "blocks.noteSet.rootListsOnlyChord": "root ne s'applique qu'aux listes de notes (notes: C E G) : un accord a sa propre fondamentale",
877
+ "blocks.noteSet.unknownLabelsFingers": 'labels "{value}" inconnu : utilisez notes, degrees, intervals, fingers ou none',
878
+ "blocks.noteSet.unknownLabels": 'labels "{value}" inconnu : utilisez notes, degrees, intervals ou none',
879
+ "blocks.noteSet.invalidNotes": 'Notes "{notes}" invalides',
880
+ "blocks.noteSet.unknownScale": 'Gamme "{scale}" inconnue',
881
+ "blocks.noteSet.unknownChord": 'Accord "{chord}" inconnu',
882
+ "blocks.noteSet.notAScaleChordOrList": `"{head}" n'est ni une gamme, ni un accord, ni une liste de notes`,
883
+ "blocks.noteSet.highlightNeedsIntervals": "highlight demande une gamme, un accord ou une fondamentale : une liste de notes n'a pas d'intervalles (ajoutez par ex. root: C)",
884
+ "blocks.noteSet.notInSet": `"{label}" n'est pas dans {title} : utilisez ses intervalles (R, b3, 5…)`,
885
+ "theory.key.needsSharps": "{name} demande {count} dièses : écrivez {write}",
886
+ "theory.key.needsFlats": "{name} demande {count} bémols : écrivez {write}",
887
+ "theory.key.noSignature": "sans ♯ ni ♭",
888
+ "theory.harmonize.unknownScale": 'Gamme "{text}" inconnue : utilisez par ex. key: G major, key: A harmonic minor ou key: D dorian',
889
+ "theory.harmonize.sevenNotes": "harmonize demande une gamme de 7 notes : {name} en a {count}",
890
+ "theory.harmonize.noNamedChord": "pas un accord nommé",
891
+ "theory.harmonize.noFifth": "pas de quinte juste",
892
+ "theory.harmonize.noFourthOrSecond": "pas de quarte juste ni de seconde majeure",
893
+ "blocks.progression.yesNo": '{key} doit valoir yes ou no, reçu "{text}"',
894
+ "blocks.progression.majorMinorKeys": `Les tonalités d'une progression sont majeures ou mineures : écrivez key: {tonic} major ou key: {tonic} minor, reçu "{text}"`,
895
+ "blocks.progression.unknownKey": 'Tonalité "{text}" inconnue : utilisez par ex. key: G, key: Em ou key: F# minor',
896
+ "blocks.progression.unread": `"{token}" n'est pas compris : écrivez des chiffres romains (I V vi IV, bVII, V7, V/V, I6, V65), des chiffres Nashville (1 5 6m 4) ou des accords (G D Em C)`,
897
+ "blocks.progression.harmonizeKind": 'harmonize : écrivez triads, sevenths, sus ou power, reçu "{kind}"',
898
+ "blocks.progression.harmonizeNothing": "harmonize : écrivez triads, sevenths, sus ou power, rien reçu",
899
+ "blocks.progression.harmonizeNoChords": "harmonize dessine les accords de la gamme : retirez les accords ({written})",
900
+ "blocks.progression.addScale": "Ajoutez la gamme : par ex. key: A harmonic minor",
901
+ "blocks.progression.transposeWhole": "transpose doit être un nombre entier de demi-tons, par ex. transpose: -2",
902
+ "blocks.progression.addChords": "Ajoutez les accords : par ex. I V vi IV avec key: G, 1 5 6m 4, ou G D Em C",
903
+ "blocks.progression.addKey": "Ajoutez la tonalité : par ex. key: G ou key: E minor",
904
+ "blocks.progression.unknownTuning": 'Accordage "{text}" inconnu',
905
+ "blocks.progression.tempo": 'tempo: écrivez un nombre de temps par minute de {min} à {max}, reçu "{text}"',
906
+ "blocks.progression.strum": "strum: écrivez beats, bar, arpeggio ou un rythme de grattage (D DU UDU) : {reason}",
907
+ "blocks.progression.key": "Tonalité : {name}",
908
+ "blocks.progression.blues": "(blues)",
909
+ "blocks.progression.orKeys": "(ou {list})",
910
+ "blocks.progression.leftOut": "Écartés : {list}",
911
+ "blocks.progression.leftOutDegree": "degré {degree} ({note}), {reason}",
912
+ "blocks.progression.unknownInstrument": 'Instrument "{instrument}" inconnu : utilisez guitar ou piano',
913
+ "blocks.progression.numerals": 'numerals: utilisez roman, nashville ou none, reçu "{style}"',
914
+ "blocks.progression.voiceLeadingPiano": "voice-leading ne sert qu'au piano : ajoutez instrument: piano",
915
+ "blocks.progression.pianoOnly": "{key} ne sert qu'aux accords de piano : ajoutez instrument: piano",
916
+ "blocks.progression.voiceLeadingHands": "voice-leading va avec hands: left+right (une basse à la main gauche sous chaque accord), pas avec une seule main",
917
+ "blocks.progression.voiceLeadingOrKey": "Utilisez voice-leading ou {key}, pas les deux",
918
+ "blocks.progression.addChordsAfterShared": 'Ajoutez les accords après les réglages communs, après une ligne "---"',
919
+ "blocks.progression.maxChords": "Au plus {max} accords par bloc, {count} trouvés",
920
+ "theory.chord.suggest": "{root}, {root}m, {root}7 ou {spelled} {quality}",
921
+ "blocks.render.maxStrings": "Au plus {max} cordes",
922
+ "blocks.render.invalidRange": 'Étendue "{text}" invalide : utilisez par ex. C3-B4',
923
+ "blocks.render.maxKeys": "Au plus {max} touches : donnez une étendue plus petite, par ex. range: C3-B5",
924
+ "blocks.render.wholeFrom1": '{what} doit être un nombre entier à partir de 1, reçu "{text}"',
925
+ "blocks.render.unrecognized": `"{written}" n'est pas reconnu : essayez {suggestions}`,
926
+ "blocks.render.rootForListsOnly": "root ne s'applique qu'aux listes de notes sur les manches et les claviers (notes: C E G avec root: C) : un accord a sa propre fondamentale",
927
+ "blocks.chord.capoNotPiano": "capo ne sert qu'à la guitare et aux autres instruments à frettes, pas au piano",
928
+ "blocks.chord.pitchesGivenKeys": "{given} va avec un symbole d'accord : pitches donne déjà les touches à jouer",
929
+ "blocks.chord.autoNeedsSymbol": "fingering: auto va avec un symbole d'accord : écrivez les doigts, par ex. 1 3 5",
930
+ "blocks.chord.invalidPitches": 'Hauteurs "{text}" invalides',
931
+ "blocks.chord.autoCovers": "fingering: auto couvre les accords de trois sons et de quatre sons (septièmes, sixtes) en position serrée, ainsi que les voicings sans fondamentale et « shell » qu'une main peut atteindre : écrivez les doigts, par ex. fingering: 1 2 3 4 5",
932
+ "blocks.chord.addSymbolOrPitches": `Ajoutez un symbole d'accord ou "pitches:"`,
933
+ "blocks.chord.unknownInstrument": 'Instrument "{instrument}" inconnu : utilisez guitar ou piano, ou donnez un accordage',
934
+ "blocks.chord.invalidFrets": 'Cases "{text}" invalides : utilisez par ex. x02220',
935
+ "blocks.chord.nutAtCapo": "Avec frets-from: nut, chaque case jouée est au capodastre ({capo}) ou au-delà : écrivez x pour les cordes en deçà",
936
+ "blocks.chord.capoMaxFret": "Avec un capodastre en {capo}, les cases vont jusqu'à {max}",
937
+ "blocks.chord.fingersCount": '"{text}" donne {fingers} doigts pour {strings} cordes',
938
+ "blocks.chord.noVoicing": 'Aucun voicing {n} trouvé pour "{symbol}" : ajoutez "frets:"',
939
+ "blocks.chord.addFretsFor": 'Ajoutez "frets:" pour {symbol} (par ex. frets: x02220)',
940
+ "blocks.chord.addSymbolAndFrets": `Ajoutez un symbole d'accord et "frets:"`,
941
+ "blocks.chord.positionAboveLowest": "position {base} est au-dessus de la note frettée la plus grave (case {fret})",
942
+ "blocks.chord.tuningStrings": "L'accordage a {tuning} cordes, les cases {frets}",
943
+ "blocks.chord.soundsTitle": "{sounding} (forme {shape})",
944
+ "blocks.chord.captionFormulaChord": "caption: formula demande un accord que la bibliothèque connaît : ajoutez son symbole (par ex. symbol: A)",
945
+ "blocks.chord.captionFormulaSet": "caption: formula demande un accord ou une gamme que la bibliothèque connaît : ajoutez chord: ou scale:",
946
+ "blocks.chord.soundsTitleNeedsChord": "sounds: title demande un accord que la bibliothèque connaît : ajoutez son symbole (par ex. symbol: A)",
947
+ "blocks.chord.soundsNeedsCapo": "sounds va avec un capodastre : ajoutez par ex. capo: 2",
948
+ "blocks.chord.soundsYesNeedsChord": "sounds: yes demande un accord que la bibliothèque connaît : ajoutez son symbole (par ex. symbol: A), ou écrivez l'accord : sounds: B",
949
+ "blocks.chord.soundsMismatch": "Avec un capodastre en {capo}, {shape} sonne {sounding}, pas {value} : écrivez sounds: {sounding} (ou sounds: yes)",
950
+ "blocks.chord.unknownLabels": 'labels "{text}" inconnu : utilisez fingers, intervals, notes ou none',
951
+ "blocks.chord.labelsNeedChord": "labels: {value} demande un accord que la bibliothèque connaît",
952
+ "blocks.keyboard.autoBothAlone": "fingering: auto both dessine deux claviers : mettez-le dans un bloc à part, pas dans une rangée séparée par ---",
953
+ "blocks.keyboard.fingersCount": "fingering donne {fingers} doigts : {title} en demande {needed}, un par note de la fondamentale à la fondamentale supérieure",
954
+ "blocks.keyboard.fingersForNotes": "fingering donne {fingers} doigts pour {notes} notes : un doigt par note, dans l'ordre écrit",
955
+ "blocks.keyboard.keyTwice": "Une touche est citée deux fois : un doigt par touche",
956
+ "blocks.keyboard.pastRange": "Les notes doigtées dépassent l'étendue : élargissez range: ou retirez-le",
957
+ "blocks.keyboard.handTitleLeft": "{title}, main gauche",
958
+ "blocks.keyboard.handTitleRight": "{title}, main droite",
959
+ "blocks.fretboard.invalidFrets": 'Cases "{text}" invalides : utilisez par ex. 5-8',
960
+ "blocks.fretboard.maxFret": "Les cases vont jusqu'à {max}",
961
+ "blocks.fretboard.nutStartsAtCapo": "Avec frets-from: nut, les cases commencent au capodastre ({capo}) ou au-delà : par ex. frets: {capo}-{example}",
962
+ "blocks.fretboard.numberingNeedsPosition": "numbering va avec une position : par ex. position: 1 ou positions: all",
963
+ "blocks.fretboard.positionsNeedSet": "Les positions demandent une gamme ou un accord : par ex. scale: A minor ou arpeggio: Am7",
964
+ "blocks.fretboard.arpeggioCaged": "Les arpèges utilisent les formes CAGED : position 1 à 5, ou shape: E, D, C, A ou G (pas 3nps)",
965
+ "blocks.fretboard.positionCount": "{title} a {count} positions {named} : utilisez position 1 à {count}",
966
+ "blocks.fretboard.positionNotFit": "{title}, la position {n} ne tient pas dans les cases {from}-{to} : élargissez frets: ou retirez-le",
967
+ "blocks.fretboard.rhythmNeedsExercise": "rhythm va avec exercise : par ex. exercise: up-down",
968
+ "blocks.fretboard.exerciseNeedsPosition": "exercise joue une position : ajoutez position: 1 (ou shape: E)",
969
+ "blocks.fretboard.invalidTempo": 'Tempo "{text}" invalide : utilisez un nombre de temps par minute de 20 à 240, par ex. tempo: 80',
970
+ "blocks.fretboard.arpeggioTitle": "{name} (arpège)",
971
+ "blocks.fretboard.fromMinor": " (depuis {minor}m)",
972
+ "blocks.fretboard.shapeTitle": "{name}, forme {shape}",
973
+ "blocks.fretboard.threeNpsTitle": "{name}, 3nps {n}{from}",
974
+ "blocks.fretboard.boxTitle": "{name}, boîte {n}{from}",
975
+ "blocks.scalesFor.both": "Utilisez scales-for (accords) ou scales-for-notes, pas les deux",
976
+ "blocks.scalesFor.findsItself": '{key} trouve la gamme seul : retirez "{what}"',
977
+ "blocks.scalesFor.addChords": "Ajoutez les accords : par ex. scales-for: G D Em C",
978
+ "blocks.scalesFor.addNotes": "Ajoutez les notes : par ex. scales-for-notes: C D E G A",
979
+ "blocks.scalesFor.unreadChords": `Accords "{text}" non compris : utilisez des symboles d'accord, par ex. scales-for: G D Em C`,
980
+ "blocks.scalesFor.unreadNotes": 'Notes "{text}" non comprises : utilisez des noms de notes, par ex. scales-for-notes: C D E G A',
981
+ "blocks.scalesFor.outside": ", {notes} en dehors",
982
+ "blocks.scalesFor.bluesTitle": "Gamme blues de {tonic} pour {listed} (ou {pentatonic}, {mixolydian})",
983
+ "blocks.scalesFor.title": "{name} pour {listed}{outside}",
984
+ "chord.capo.fret": 'capo: utilisez une case de 1 à {max}, reçu "{text}"',
985
+ "chord.capo.fretsFrom": 'frets-from: utilisez capo (par défaut) ou nut, reçu "{text}"',
986
+ "theory.naming.write": "naming: écrivez letters, solfege ou german",
987
+ "theory.naming.writeDirective": "naming: écrivez {letters}, {solfege} ou {german}",
988
+ "chord.words.ordinalFirst": "1re",
989
+ "chord.words.ordinalSt": "{n}e",
990
+ "chord.words.ordinalNd": "{n}e",
991
+ "chord.words.ordinalRd": "{n}e",
992
+ "chord.words.ordinalTh": "{n}e",
993
+ "chord.words.listAnd": "{head} et {last}",
994
+ "chord.words.guitarIndex": "Index",
995
+ "chord.words.guitarMiddle": "Majeur",
996
+ "chord.words.guitarRing": "Annulaire",
997
+ "chord.words.guitarPinky": "Auriculaire",
998
+ "chord.words.guitarThumb": "Pouce",
999
+ "chord.words.guitarFinger": "Doigt {finger}",
1000
+ "chord.words.pianoThumb": "pouce",
1001
+ "chord.words.pianoIndex": "index",
1002
+ "chord.words.pianoMiddle": "majeur",
1003
+ "chord.words.pianoRing": "annulaire",
1004
+ "chord.words.pianoLittle": "auriculaire",
1005
+ "chord.words.pianoFinger": "doigt {finger}",
1006
+ "chord.words.lowName": "{name} grave",
1007
+ "chord.words.highName": "{name} aiguë",
1008
+ "chord.words.stringNamed": "la corde {name}",
1009
+ "chord.words.stringsNamed": "les cordes {names}",
1010
+ "chord.words.stringNumberedNote": "la {n} corde ({note})",
1011
+ "chord.words.stringNumbered": "la {n} corde",
1012
+ "chord.words.capoFrom": "Capodastre sur la {fret} case : les cases se comptent à partir du capodastre.",
1013
+ "chord.words.capoNut": "Capodastre sur la {fret} case.",
1014
+ "chord.words.allMuted": "Toutes les cordes sont étouffées : aucune note ne sonne.",
1015
+ "chord.words.strumSix": "Grattez les six cordes.",
1016
+ "chord.words.strumAll": "Grattez toutes les cordes.",
1017
+ "chord.words.strumFrom": "Grattez à partir de {from}.",
1018
+ "chord.words.strumFromTo": "Grattez de {from} à {to}.",
1019
+ "chord.words.press": "Appuyez sur {string}, à la {fret} case.",
1020
+ "chord.words.fingerOn": "{finger} sur {strings}, {fret} case.",
1021
+ "chord.words.fingerBars": "{finger} fait le barré à la {fret} case, cordes {from} à {to}.",
1022
+ "chord.words.fingerAlsoOn": "{finger} aussi sur {string}, {fret} case.",
1023
+ "chord.words.muteOne": "Étouffez {list} : effleurez-la avec un doigt de la main qui frette.",
1024
+ "chord.words.mutePlural": "Étouffez {list} : effleurez-les avec un doigt de la main qui frette.",
1025
+ "chord.words.groupRingOpenOne": "La corde {list} sonne à vide.",
1026
+ "chord.words.groupRingOpenPlural": "Les cordes {list} sonnent à vide.",
1027
+ "chord.words.groupRingCapoOne": "La corde {list} sonne au capodastre.",
1028
+ "chord.words.groupRingCapoPlural": "Les cordes {list} sonnent au capodastre.",
1029
+ "chord.words.ringOpenOne": "{list} sonne à vide.",
1030
+ "chord.words.ringOpenPlural": "{list} sonnent à vide.",
1031
+ "chord.words.ringCapoOne": "{list} sonne au capodastre.",
1032
+ "chord.words.ringCapoPlural": "{list} sonnent au capodastre.",
1033
+ "chord.words.pianoFingerOn": "{finger} sur {key}",
1034
+ "chord.words.pianoAlsoPlay": "{fingered}, et jouez aussi {list}",
1035
+ "chord.words.sentence": "{text}.",
1036
+ "chord.words.play": "Jouez {list}.",
1037
+ "chord.words.leftHand": "Main gauche : {part}.",
1038
+ "chord.words.rightHand": "Main droite : {part}.",
1039
+ "chord.transition.fingerIndex": "l'index",
1040
+ "chord.transition.fingerMiddle": "le majeur",
1041
+ "chord.transition.fingerRing": "l'annulaire",
1042
+ "chord.transition.fingerPinky": "l'auriculaire",
1043
+ "chord.transition.fingerThumb": "le pouce",
1044
+ "chord.transition.fingerOther": "le doigt",
1045
+ "chord.transition.keep": "Gardez {finger} sur la {fret} case de {string}.",
1046
+ "chord.transition.slide": "Faites glisser {finger} le long de {string}, de la case {from} à la case {to}.",
1047
+ "chord.transition.moveUp": "Déplacez la main de {shift} cases vers le haut.",
1048
+ "chord.transition.moveDown": "Déplacez la main de {shift} cases vers le bas.",
1049
+ "chord.transition.lift": "Levez tous les doigts ensemble et posez-les d'un bloc.",
1050
+ "chord.guitar.capoCaption": "Capodastre {capo}",
1051
+ "chord.guitar.capoCaptionSounds": "Capodastre {capo}, sonne {sounds}",
1052
+ "chord.guitar.diagram": "Diagramme d'accord",
1053
+ "chord.guitar.diagramTitled": "Diagramme de l'accord {title}",
1054
+ "chord.guitar.rootOnString": "La fondamentale est sur la corde {list}.",
1055
+ "chord.guitar.rootOnStrings": "La fondamentale est sur les cordes {list}.",
1056
+ "chord.triads.rootPosition": "état fondamental",
1057
+ "chord.triads.firstInversion": "1er renversement",
1058
+ "chord.triads.secondInversion": "2e renversement",
1059
+ "theory.formula.chord": "{written} ({root} {words}{bass}) : {notes}.",
1060
+ "theory.formula.inTheBass": ", {bass} à la basse",
1061
+ "theory.formula.formula": "Formule {formula}.",
1062
+ "theory.formula.alsoWritten": "S'écrit aussi {list}.",
1063
+ "theory.formula.scale": "{title} : {notes}.",
1064
+ "theory.formula.steps": "Écarts {steps}.",
1065
+ "chords.chart.chorus": "Refrain",
1066
+ "chords.chart.bridge": "Pont",
1067
+ "chords.chart.tab": "Tablature",
1068
+ "chords.chart.grid": "Grille d'accords",
1069
+ "chords.chart.key": "Tonalité {key}",
1070
+ "chords.chart.capo": "Capodastre {capo}",
1071
+ "chords.chart.tempo": "{bpm} BPM",
1072
+ "chords.chart.transposed": "Transposé de {amount}",
1073
+ "chords.chart.sounds": "{title} (sonne {sounding})",
1074
+ "chords.chart.moreNotDrawn": "{count} accords de plus non dessinés (au plus {max})",
1075
+ "chords.chart.missing": "Pas de diagramme pour {names} : donnez la forme avec {how}",
1076
+ "chords.chart.howPiano": "{syntax} (demi-tons au-dessus de la fondamentale, par ex. keys 0 4 7)",
1077
+ "chords.chart.howGuitar": "{syntax} (une case par corde, x pour une corde étouffée)",
1078
+ "chords.define.needsName": "{syntax} demande un nom d'accord : par ex. {example}",
1079
+ "chords.define.baseFret": "{at} : base-fret prend un nombre entier de 1 à 24, par ex. base-fret 3",
1080
+ "chords.define.frets": "{at} : frets prend une valeur par corde (de 2 à {max}) : une case de 0 à 24, ou x pour une corde étouffée, par ex. frets x 0 2 2 1 0",
1081
+ "chords.define.keys": "{at} : keys prend des demi-tons au-dessus de la fondamentale, de 0 à {max}, par ex. keys 0 4 7",
1082
+ "chords.define.copy": "{at} : {word} prend le nom d'un seul accord, par ex. {word} Am",
1083
+ "chords.define.unknown": '{at} : "{word}" est inconnu : utilisez base-fret, frets, fingers, keys, copy, display ou diagram',
1084
+ "chords.define.fingersCount": "{at} : fingers a {fingers} valeurs pour {strings} cordes : donnez-en une par corde (0 pour aucune)",
1085
+ "chords.define.reaches": "{at} : la forme atteint la case {top} : les cases vont jusqu'à {max}",
1086
+ "chords.directive.diagrams": "{at} : utilisez on, off, top ou bottom",
1087
+ "chord.shape.open": "Accord ouvert",
1088
+ "chord.shape.caged": "forme {letter}",
1089
+ "chord.shape.cagedStrings": "forme {letter} (cordes {strings})",
1090
+ "chord.shape.power": "Power chord",
1091
+ "chord.shape.triad": "Triade",
1092
+ "chord.shape.shell": "Shell",
1093
+ "chord.shape.drop": "Drop {n} (cordes {strings})",
1094
+ "chord.shape.hendrix": "Accord Hendrix",
1095
+ "chord.shape.openBass": "Basse à vide",
1096
+ "chord.shape.openStrings": "Cordes à vide",
1097
+ "chord.shape.strings": "Cordes {strings}",
1098
+ "blocks.function.tonic": "tonique",
1099
+ "blocks.function.subdominant": "sous-dominante",
1100
+ "blocks.function.dominant": "dominante",
1101
+ "blocks.function.secondaryDominant": "dominante secondaire",
1102
+ "blocks.function.neapolitan": "napolitaine",
1103
+ "blocks.function.borrowed": "emprunté",
1104
+ "blocks.function.chromatic": "chromatique",
1105
+ "blocks.function.tonicization": "tonicisation",
1106
+ "blocks.function.passing": "de passage",
1107
+ "theory.marks.characteristic": ", notes caractéristiques : {notes}",
1108
+ "theory.marks.different": ", différentes de la gamme comparée : {notes}",
1109
+ "theory.marks.chordTones": ", notes de l'accord : {notes}"
1110
+ };
1111
+
1112
+ // src/i18n/fr/play.ts
1113
+ var frPlay = {
1114
+ "playback.bar": "Lecture",
1115
+ "playback.diagram": "Diagramme",
1116
+ "playback.place": "({n} sur {total})",
1117
+ "playback.playItem": "Lire : {name}",
1118
+ "playback.playAll": "Tout lire à la suite",
1119
+ "playback.play": "Lecture",
1120
+ "playback.stop": "Arrêter",
1121
+ "playback.loop": "Boucle",
1122
+ "playback.countIn": "Décompte",
1123
+ "playback.click": "Clic",
1124
+ "playback.sound": "Son",
1125
+ "playback.guitar": "Guitare",
1126
+ "playback.piano": "Piano",
1127
+ "playback.tempo": "Tempo (BPM)",
1128
+ "playback.unit.bpm": "BPM",
1129
+ "playback.unit.ms": "ms",
1130
+ "playback.strum": "Grattage (ms entre les cordes)",
1131
+ "playback.dotted": "compte des noires pointées",
1132
+ "playback.strumPattern.bar": "Lire le motif de grattage",
1133
+ "playback.picking.bar": "Lire le motif de picking",
1134
+ "playback.progression.bar": "Lire les accords en rythme",
1135
+ "playback.progression.play": "Lire en rythme",
1136
+ "playback.strumChoice": "Grattage",
1137
+ "playback.strum.beats": "À chaque temps",
1138
+ "playback.strum.bar": "Une fois par mesure",
1139
+ "playback.strum.arpeggio": "Arpège",
1140
+ "playback.strum.pattern": "Motif",
1141
+ "playback.copy.button": "Copier comme image",
1142
+ "playback.copy.hint": "Maj+clic copie tout le bloc",
1143
+ "playback.copy.bar": "Image",
1144
+ "playback.copy.copied": "Copié",
1145
+ "playback.copy.refused": "Autorisez l'accès au presse-papiers pour cette page, puis réessayez.",
1146
+ "playback.copy.unsupported": "Ce navigateur ne peut pas copier d'images : utilisez une version récente de Chrome, Edge, Safari ou Firefox.",
1147
+ "playback.copy.failed": "L'image n'a pas pu être créée.",
1148
+ "playback.full.enter": "Plein écran",
1149
+ "playback.full.exit": "Quitter le plein écran",
1150
+ "playback.redraw.sounds": "{heading} (sonne {chord})",
1151
+ "playback.redraw.guitar": "{name}, dessiné pour la guitare",
1152
+ "playback.redraw.piano": "{name}, dessiné pour le piano",
1153
+ "playback.engine.invalid": "engine: utilisez generaluser, sonivox ou light, reçu « {value} »",
1154
+ "tab.source.staves": "staves: utilisez tab, score ou both, reçu « {value} »",
1155
+ "tab.source.layout": "layout: utilisez page ou line, reçu « {value} »",
1156
+ "tab.source.names": "names: utilisez on ou off, reçu « {value} »",
1157
+ "tab.source.tracks": "tracks: utilisez des numéros de piste à partir de 1, reçu « {value} »",
1158
+ "tab.source.empty": "Écrivez la musique en alphaTex, ou indiquez un fichier : {example}",
1159
+ "tab.sound.loadFailed": "Impossible de charger la banque de sons ({url})",
1160
+ "tab.error.at": "ligne {line}, colonne {column} : ",
1161
+ "tab.error.textTab": "Impossible de dessiner cette tablature en texte : {message}",
1162
+ "tab.error.fileRead": "Impossible de lire « {file} » : {message}",
1163
+ "tab.error.fileMissing": "Fichier « {file} » introuvable",
1164
+ "tab.error.fileUnknown": "Impossible de lire « {file} » : ce n'est pas un fichier de partition connu d'alphaTab",
1165
+ "tab.player.cantPlay": "Lecture impossible : {message}",
1166
+ "tab.player.metronome": "Métronome",
1167
+ "tab.player.pause": "Pause",
1168
+ "tab.names": "Noms des notes",
1169
+ "tab.follow": "Suivre la musique",
1170
+ "tab.followPaused": "Suivre la musique (en pause pendant que vous faites défiler : lancez la lecture ou cliquez pour suivre de nouveau)",
1171
+ "tab.view.group": "Vue",
1172
+ "tab.view.tab": "Tablature",
1173
+ "tab.view.score": "Partition",
1174
+ "tab.view.both": "Les deux",
1175
+ "tab.view.whatTab": "tablature",
1176
+ "tab.view.whatScore": "notation standard",
1177
+ "tab.view.whatBoth": "notation standard et tablature",
1178
+ "tab.view.drawAs": "Afficher en {what}",
1179
+ "tab.view.drawAsWritten": "Afficher en {what} (la ligne staves: du bloc)",
1180
+ "tab.view.drawAsDefault": "Afficher en {what} (valeur par défaut : le bloc n'a pas de ligne staves:)",
1181
+ "tab.view.keep": "Conserver cette vue",
1182
+ "tab.view.keepTitle": "Écrire staves: {staves} en haut du bloc",
1183
+ "tab.tempo.group": "Tempo",
1184
+ "tab.tempo.slower": "Plus lent",
1185
+ "tab.tempo.faster": "Plus rapide",
1186
+ "tab.tempo.toPercent": "Afficher la vitesse en pourcentage",
1187
+ "tab.tempo.toBpm": "Afficher la vitesse en BPM",
1188
+ "tab.tempo.reset": "Revenir à 100 %",
1189
+ "tab.tempo.inBpm": "Tempo en BPM",
1190
+ "tab.tempo.inPercent": "Vitesse en pourcentage",
1191
+ "tab.tempo.title": "Tempo : {bpm} BPM, {percent} % de {tempo} BPM",
1192
+ "tab.tempo.speedTitle": "Vitesse : {percent} %"
1193
+ };
1194
+
1195
+ // src/i18n/fr/timed.ts
1196
+ var frTimed = {
1197
+ "strum.time.invalid": "Chiffrage « {text} » invalide : écrivez par exemple time: 4/4, 3/4 ou 6/8",
1198
+ "strum.swing.invalid": "Swing « {text} » invalide : écrivez swing: yes (un swing ternaire, un shuffle), no, ou un pourcentage de 50 (droit) à 75, par exemple swing: 60%",
1199
+ "strum.subdivision.invalid": "Subdivision « {text} » invalide : utilisez 8ths, 16ths ou triplets",
1200
+ "strum.triplets.quarterBeat68": "Les triolets demandent un temps à la noire (time: 4/4, 3/4…) ; pour une pulsation en 6/8, écrivez time: 6/8 avec 8ths",
1201
+ "strum.triplets.quarterBeat": "Les triolets demandent un temps à la noire (time: 4/4, 3/4…) ; pour ce chiffrage, utilisez 8ths ou 16ths",
1202
+ "strum.subdivision.tooLong": "Les croches sont plus longues qu’un temps de x/{unit} : écrivez subdivision: 16ths",
1203
+ "strum.chord.notRecognizedTry": "Accord « {chord} » non reconnu : essayez {suggestions}",
1204
+ "strum.chord.empty": "Accord vide « [] » : écrivez l’accord entre les crochets, par exemple [G]",
1205
+ "strum.chord.notRecognized": "Accord « {chord} » non reconnu",
1206
+ "strum.line.bracketMissing": "« ] » manquant après « {text} » : écrivez par exemple [G]",
1207
+ "strum.line.barInGhost": "Une barre de mesure à l’intérieur de ( ) : fermez d’abord les coups fantômes",
1208
+ "strum.line.accentAndGhost": "Un coup est soit accentué (D>), soit fantôme ((D)), pas les deux",
1209
+ "strum.line.ghostNested": "Les coups fantômes ne peuvent pas être imbriqués : écrivez (U), pas ((U))",
1210
+ "strum.line.parenUnopened": "« ) » sans « ( » : écrivez un coup fantôme ainsi : (U)",
1211
+ "strum.help": "écrivez D ou ↓ (vers le bas), U ou ↑ (vers le haut), X (étouffé), - (pas de coup), > après un coup pour un accent, (U) pour un coup fantôme, [G] pour un changement d’accord",
1212
+ "strum.line.notUnderstood": "« {char} » non compris dans « {line} » : {help}",
1213
+ "strum.line.accentNeedsStrum": "Un accent demande un coup : écrivez D> ou U>",
1214
+ "strum.line.ghostNoRests": "Écrivez les coups fantômes (D) ou (U), sans silence à l’intérieur",
1215
+ "strum.line.parenUnclosed": "« ) » manquant dans « {line} » : écrivez un coup fantôme ainsi : (U)",
1216
+ "strum.line.chordEndsPattern": "L’accord [{chord}] termine le rythme : placez-le avant un coup ou un -",
1217
+ "strum.pattern.chordLineAlone": "Une ligne d’accords demande une ligne de rythme dessous, par exemple D - D U - U D U",
1218
+ "strum.pattern.missing": "Écrivez un rythme de strumming, par exemple D - D U - U D U (ou D DU UDU)",
1219
+ "strum.key.unknown": "Clé « {key} » inconnue : utilisez time, subdivision, swing, chord, tempo, tuning, title ou pattern",
1220
+ "strum.swing.withTriplets": "Les triolets et le swing sont deux façons d’écrire un shuffle : gardez subdivision: triplets (D - U sur chaque temps), ou écrivez 8ths avec swing: yes",
1221
+ "strum.swing.compound": "{time} a déjà trois {unit} par temps : retirez swing: (il swingue les 8ths ou les 16ths en 4/4, 3/4, 2/4…)",
1222
+ "strum.swing.oneSlot": "Le swing joue des paires de positions dans un temps, et un temps de {time} en {subdivision} n’a qu’une position : écrivez subdivision: 16ths, ou time: 4/4",
1223
+ "strum.tempo.invalid": "Tempo « {text} » invalide : utilisez un nombre de temps par minute de {min} à {max}, par exemple tempo: 90",
1224
+ "strum.bars.tooMany": "{max} mesures au plus dans un rythme : découpez-le en plusieurs blocs",
1225
+ "strum.chord.pastEnd": "L’accord {chord} dépasse la fin de sa ligne de rythme : déplacez-le au-dessus d’un coup",
1226
+ "strum.count.bar.one": "{n} mesure",
1227
+ "strum.count.bar.other": "{n} mesures",
1228
+ "strum.count.slot.one": "{n} position",
1229
+ "strum.count.slot.other": "{n} positions",
1230
+ "strum.count.barsAndSlots": "{bars} et {slots}",
1231
+ "strum.count.spill": "{time} en {subdivision} compte {perBar} positions par mesure, mais « {written} » en prend {slots} ({count}) : mettez un | à la fin de chaque mesure{orTime}",
1232
+ "strum.count.spillOrTime": ", ou écrivez {time}",
1233
+ "strum.count.mismatch": "{time} en {subdivision} compte {perBar} positions par mesure, mais « {written} » en a {n} : remplissez chaque mesure avec - (pas de coup){alternatives}",
1234
+ "strum.count.alternative.first": " ou écrivez {item}",
1235
+ "strum.count.alternative.next": ", {item}",
1236
+ "strum.count.alternative.last": " ou {item}",
1237
+ "strum.note.one": "Lu comme {read}, puis {n} temps sans coup : écrivez un symbole pour chaque position (- pour pas de coup) afin de placer vous-même les coups.",
1238
+ "strum.note.other": "Lu comme {read}, puis {n} temps sans coup : écrivez un symbole pour chaque position (- pour pas de coup) afin de placer vous-même les coups.",
1239
+ "strum.feel.swing": "Swing",
1240
+ "strum.feel.swingPercent": "Swing {percent} %",
1241
+ "strum.feel.swing16": "Swing en doubles croches",
1242
+ "strum.feel.swing16Percent": "Swing en doubles croches {percent} %",
1243
+ "strum.name": "Rythme de strumming {written}, {time}, {subdivision}{feel}",
1244
+ "strum.name.titled": "{title} : rythme de strumming {written}, {time}, {subdivision}{feel}",
1245
+ "strum.name.feel": ", {feel}",
1246
+ "strum.tuning.unknown": "Accordage « {tuning} » inconnu : utilisez par exemple tuning: standard, drop d, ukulele ou E2 A2 D3 G3 B3 E4",
1247
+ "strum.tuning.tooManyStrings": "12 cordes au plus",
1248
+ "strum.tuning.unknownGiven": "Accordage « {tuning} » inconnu",
1249
+ "picking.help": "écrivez p (le pouce sur la basse), p’ (la basse alternée), i, m, a (cordes 3, 2, 1), un numéro de corde à partir de 1 (la plus aiguë), - pour un silence, + entre des notes jouées ensemble (p+a)",
1250
+ "picking.token.notUnderstood": "« {token} » non compris : {help}",
1251
+ "picking.string.missing": "La corde {n} n’existe pas : les cordes vont de 1 (la plus aiguë) à {strings}",
1252
+ "picking.bar.slots": "Une mesure de {time} en {subdivision} compte {perBar} positions, {found} trouvées{between} : ajoutez des notes ou des silences (-) pour que chaque mesure en ait {perBar}, ou changez time:",
1253
+ "picking.bar.betweenBarLines": " entre les barres de mesure",
1254
+ "picking.key.unknown": "Clé « {key} » inconnue : utilisez time, subdivision, swing, chord, chords, tempo, tuning, title ou pattern",
1255
+ "picking.swing.pairs": "Le swing joue des paires de 8ths ou de 16ths dans un temps : retirez swing:, ou écrivez time: 4/4 avec 8ths",
1256
+ "picking.tempo.invalid": "Tempo « {text} » invalide : utilisez un nombre de temps par minute de {min} à {max}, par exemple tempo: 80",
1257
+ "picking.pattern.twice": "Écrivez le motif une seule fois : avec pattern: ou avec des lignes de motif, pas les deux",
1258
+ "picking.pattern.missing": "Écrivez un motif : une ligne comme p i m a p i m a, ou pattern: travis, alternate bass ou 1-2-3-4",
1259
+ "picking.chords.tooMany": "{max} accords au plus, {found} trouvés",
1260
+ "picking.tuning.unknown": "Accordage « {tuning} » inconnu : utilisez par exemple tuning: standard, drop d, open g ou E2 A2 D3 G3 B3 E4",
1261
+ "picking.name": "Motif de picking {written}, {time}, {subdivision}{over}",
1262
+ "picking.name.titled": "{title} : motif de picking {written}, {time}, {subdivision}{over}",
1263
+ "picking.name.over": ", sur {chords}",
1264
+ "picking.voicing.none": "Aucun doigté jouable de {chord} pour cet accordage",
1265
+ "export.image.title": "Notation musicale"
1266
+ };
1267
+
1268
+ // src/i18n/fr/index.ts
1269
+ var fr = {
1270
+ ...frParse,
1271
+ ...frDiagrams,
1272
+ ...frTimed,
1273
+ ...frPlay
1274
+ };
1275
+
1276
+ // src/i18n/language.ts
1277
+ var TABLES = { en, fr };
1278
+ var LANGUAGES_OF_TEXTS = Object.keys(TABLES);
1279
+ function languageOf(value) {
1280
+ if (typeof value !== "string")
1281
+ return null;
1282
+ const code = value.trim().toLowerCase().split(/[-_]/)[0];
1283
+ return LANGUAGES_OF_TEXTS.includes(code) ? code : null;
1284
+ }
1285
+
1286
+ // src/i18n/translate.ts
1287
+ var current = "en";
1288
+ var currentLanguage = () => current;
1289
+ function withLanguage(language, fn) {
1290
+ const before = current;
1291
+ current = language ?? current;
1292
+ try {
1293
+ return fn();
1294
+ } finally {
1295
+ current = before;
1296
+ }
1297
+ }
1298
+ function fill(text, params) {
1299
+ if (!params)
1300
+ return text;
1301
+ return text.replace(/\{(\w+)\}/g, (whole, name) => (name in params) ? String(params[name]) : whole);
1302
+ }
1303
+ function translatorFor(language) {
1304
+ return (key, ...params) => fill(TABLES[language][key] ?? TABLES.en[key], params[0]);
1305
+ }
1306
+ var translator = () => translatorFor(current);
1307
+ var t = (key, ...params) => translatorFor(current)(key, ...params);
1308
+
168
1309
  // src/theory/note-set.ts
169
1310
  function markClasses(set, chroma, marks = {}) {
170
1311
  const classes = [];
@@ -183,7 +1324,7 @@ function describeMarks(set, marks = {}) {
183
1324
  const characteristic = names(marks.characteristic);
184
1325
  const different = names(marks.different);
185
1326
  const tones = names(marks.chordTones);
186
- return (characteristic.length ? `, characteristic notes: ${characteristic.join(" ")}` : "") + (different.length ? `, different from the compared scale: ${different.join(" ")}` : "") + (tones.length ? `, chord tones: ${tones.join(" ")}` : "");
1327
+ return (characteristic.length ? t("theory.marks.characteristic", { notes: characteristic.join(" ") }) : "") + (different.length ? t("theory.marks.different", { notes: different.join(" ") }) : "") + (tones.length ? t("theory.marks.chordTones", { notes: tones.join(" ") }) : "");
187
1328
  }
188
1329
  var memberFor = (set, chroma) => set.members.find((m) => m.chroma === chroma);
189
1330
  var memberOf = (set, midi) => set.pitches && !set.pitches.includes(midi) ? undefined : memberFor(set, (midi % 12 + 12) % 12);
@@ -390,14 +1531,18 @@ function parseChord(symbol) {
390
1531
 
391
1532
  // src/theory/naming.ts
392
1533
  var NAMINGS = ["letters", "solfege", "german"];
393
- var NAMING_ERROR = "naming: write letters, solfege or german";
394
- var DIRECTIVE_ERROR = "naming: write {naming: letters}, {naming: solfege} or {naming: german}";
1534
+ var namingError = () => t("theory.naming.write");
1535
+ var directiveError = () => t("theory.naming.writeDirective", {
1536
+ letters: "{naming: letters}",
1537
+ solfege: "{naming: solfege}",
1538
+ german: "{naming: german}"
1539
+ });
395
1540
  var plain2 = (text) => text.trim().toLowerCase().normalize("NFD").replace(/[̀-ͯ]/g, "");
396
1541
  function parseNaming(text) {
397
1542
  const value = plain2(text);
398
1543
  if (NAMINGS.includes(value))
399
1544
  return value;
400
- throw new Error(NAMING_ERROR);
1545
+ throw new Error(namingError());
401
1546
  }
402
1547
  function namingOf(value) {
403
1548
  if (typeof value !== "string")
@@ -579,7 +1724,7 @@ function lettersInBlock(language, text) {
579
1724
  if (naming)
580
1725
  result.naming = naming;
581
1726
  else
582
- result.warning = DIRECTIVE_ERROR;
1727
+ result.warning = directiveError();
583
1728
  }
584
1729
  }
585
1730
  const naming = result.naming ?? "letters";
@@ -739,7 +1884,7 @@ function shownText(text, naming) {
739
1884
  if (!/^[A-G]/.test(part))
740
1885
  return part;
741
1886
  const next = word(i, 1);
742
- if (next === "shape")
1887
+ if (next === "shape" || word(i, -1) === "forme")
743
1888
  return part;
744
1889
  const octave = OCTAVE.exec(part);
745
1890
  if (octave) {
@@ -747,7 +1892,7 @@ function shownText(text, naming) {
747
1892
  if (amongNotes || !/^[5679]$/.test(octave[2]))
748
1893
  return `${noteInNaming(octave[1], naming)}${octave[2]}`;
749
1894
  }
750
- if (part === "A" && next && /^[a-z]/.test(next) && !AFTER_A_NOTE.has(next))
1895
+ if (part === "A" && currentLanguage() === "en" && next && /^[a-z]/.test(next) && !AFTER_A_NOTE.has(next))
751
1896
  return part;
752
1897
  if (parseChord(part))
753
1898
  return chordInNaming(part, naming);
@@ -757,28 +1902,28 @@ function shownText(text, naming) {
757
1902
  return part;
758
1903
  }).join("");
759
1904
  }
760
- var current = "letters";
1905
+ var current2 = "letters";
761
1906
  var verbatim = [];
762
1907
  function withNaming(naming, draw, titles = []) {
763
- const before = [current, verbatim];
764
- current = naming;
1908
+ const before = [current2, verbatim];
1909
+ current2 = naming;
765
1910
  verbatim = titles.filter(Boolean);
766
1911
  try {
767
1912
  return draw();
768
1913
  } finally {
769
- [current, verbatim] = before;
1914
+ [current2, verbatim] = before;
770
1915
  }
771
1916
  }
772
1917
  function shown(text) {
773
- if (current === "letters" || !text)
1918
+ if (current2 === "letters" || !text)
774
1919
  return text;
775
1920
  for (const title of verbatim) {
776
1921
  if (text === title)
777
1922
  return text;
778
1923
  if (text.startsWith(`${title},`))
779
- return title + shownText(text.slice(title.length), current);
1924
+ return title + shownText(text.slice(title.length), current2);
780
1925
  }
781
- return shownText(text, current);
1926
+ return shownText(text, current2);
782
1927
  }
783
1928
 
784
1929
  // src/render/dom.ts
@@ -1792,6 +2937,51 @@ function textTabToAlphaTex(text) {
1792
2937
  `);
1793
2938
  }
1794
2939
 
2940
+ // src/playback/engine.ts
2941
+ var ENGINES = ["generaluser", "sonivox", "light"];
2942
+ function engineOf(value) {
2943
+ if (typeof value !== "string")
2944
+ return null;
2945
+ const name = value.trim().toLowerCase();
2946
+ return ENGINES.includes(name) ? name : null;
2947
+ }
2948
+ function engineOrder(wish) {
2949
+ return wish ? [wish, ...ENGINES.filter((engine) => engine !== wish)] : [...ENGINES];
2950
+ }
2951
+ function chooseEngine(wish, has) {
2952
+ for (const engine of engineOrder(wish)) {
2953
+ const value = has(engine);
2954
+ if (value !== null && value !== undefined && value !== false)
2955
+ return { engine, value };
2956
+ }
2957
+ return null;
2958
+ }
2959
+ var LINE = /^[ \t]*engine[ \t]*:[ \t]*(.*?)[ \t]*(?:\r?\n|$)/gim;
2960
+ var DIRECTIVE = /^[ \t]*\{[ \t]*engine[ \t]*:[ \t]*(.*?)[ \t]*\}[ \t]*(?:\r?\n|$)/gim;
2961
+ function blockEngine(source, chart = false) {
2962
+ let engine = null;
2963
+ const rest = source.replace(chart ? DIRECTIVE : LINE, (_line, value) => {
2964
+ const read = engineOf(value);
2965
+ if (!read) {
2966
+ throw new Error(t("playback.engine.invalid", { value }));
2967
+ }
2968
+ engine = read;
2969
+ return "";
2970
+ });
2971
+ return { engine, source: rest };
2972
+ }
2973
+ function engineWish(el) {
2974
+ return engineOf(el?.closest("[data-mn-engine]")?.getAttribute("data-mn-engine"));
2975
+ }
2976
+ function pageEngine(options) {
2977
+ if (!options || typeof options !== "object" || !("play" in options))
2978
+ return;
2979
+ const play = options.play;
2980
+ if (!play || typeof play !== "object" || !("engine" in play))
2981
+ return;
2982
+ return engineOf(play.engine) ?? undefined;
2983
+ }
2984
+
1795
2985
  // src/playback/bar-parts.ts
1796
2986
  var ICONS = {
1797
2987
  play: "M4 2.5v11l9-5.5z",
@@ -1803,9 +2993,20 @@ var ICONS = {
1803
2993
  click: "M3 5v6M8 5v6M13 5v6",
1804
2994
  copy: "M2.5 3.5h11v9h-11zM2.5 11l3.5-3.5 3 3 2-2 2.5 2.5M10.5 6.5h.01",
1805
2995
  full: "M2.5 6V2.5H6M10 2.5h3.5V6M13.5 10v3.5H10M6 13.5H2.5V10",
2996
+ names: "M3.5 13.5 8 2.5l4.5 11M5.3 9.5h5.4",
2997
+ follow: "M8 5a3 3 0 1 0 0 6a3 3 0 0 0 0-6M8 1.5v2M8 12.5v2M1.5 8h2M12.5 8h2",
1806
2998
  exit: "M6 2.5V6H2.5M13.5 6H10V2.5M10 13.5V10h3.5M2.5 10H6v3.5"
1807
2999
  };
1808
- var STROKED = new Set(["loop", "count", "click", "copy", "full", "exit"]);
3000
+ var STROKED = new Set([
3001
+ "loop",
3002
+ "count",
3003
+ "click",
3004
+ "copy",
3005
+ "full",
3006
+ "exit",
3007
+ "follow",
3008
+ "names"
3009
+ ]);
1809
3010
  function icon(doc, name) {
1810
3011
  const root = svg(doc, "svg", {
1811
3012
  class: `mn-play-icon mn-play-icon-${name}${STROKED.has(name) ? " mn-play-icon-line" : ""}`,
@@ -1956,7 +3157,8 @@ function backgroundBehind(el) {
1956
3157
  function fullScreenControl(doc, block, surface, follow = () => {}, options = {}) {
1957
3158
  const redraws = options.redraws !== false;
1958
3159
  const win = doc.defaultView;
1959
- const button = iconButton(doc, "mn-tab-full", "Full screen", "full");
3160
+ const tr = translator();
3161
+ const button = iconButton(doc, "mn-tab-full", tr("playback.full.enter"), "full");
1960
3162
  button.classList.add("mn-play-full");
1961
3163
  let on = false;
1962
3164
  let browser = false;
@@ -1975,7 +3177,7 @@ function fullScreenControl(doc, block, surface, follow = () => {}, options = {})
1975
3177
  block.classList.toggle("mn-fullscreen", on);
1976
3178
  button.classList.toggle("mn-on", on);
1977
3179
  button.setAttribute("aria-pressed", String(on));
1978
- button.title = on ? "Exit full screen" : "Full screen";
3180
+ button.title = on ? tr("playback.full.exit") : tr("playback.full.enter");
1979
3181
  button.replaceChildren(icon(doc, on ? "exit" : "full"));
1980
3182
  };
1981
3183
  const enter = () => {
@@ -2176,6 +3378,173 @@ function addFullScreen(doc, bar, block, on = true) {
2176
3378
  return () => full.destroy();
2177
3379
  }
2178
3380
 
3381
+ // src/tab/follow-scroll.ts
3382
+ function moveToShow(view, target, margin = 0) {
3383
+ const top = view.top + margin;
3384
+ const bottom = view.bottom - margin;
3385
+ if (target.bottom - target.top >= bottom - top)
3386
+ return Math.round(target.top - top);
3387
+ if (target.top < top)
3388
+ return Math.round(target.top - top);
3389
+ if (target.bottom > bottom)
3390
+ return Math.round(target.bottom - bottom);
3391
+ return 0;
3392
+ }
3393
+ function spanToShow(system, view, margin = 0) {
3394
+ const height = system.bottom - system.top;
3395
+ const both = { top: system.top, bottom: system.bottom + height };
3396
+ return both.bottom - both.top <= view.bottom - view.top - 2 * margin ? both : system;
3397
+ }
3398
+ var SCROLLS = new Set(["auto", "scroll", "overlay"]);
3399
+ function scrollerOf(el) {
3400
+ const win = el.ownerDocument.defaultView;
3401
+ if (!win)
3402
+ return null;
3403
+ const root = el.ownerDocument.scrollingElement ?? el.ownerDocument.documentElement;
3404
+ for (let node = el;node; node = node.parentElement) {
3405
+ if (node === root || node === el.ownerDocument.body)
3406
+ return null;
3407
+ if (!(node instanceof win.HTMLElement))
3408
+ continue;
3409
+ if (SCROLLS.has(win.getComputedStyle(node).overflowY) && node.scrollHeight > node.clientHeight + 1)
3410
+ return node;
3411
+ }
3412
+ return null;
3413
+ }
3414
+ var SCROLL_KEYS2 = new Set(["PageUp", "PageDown", "Home", "End", "ArrowUp", "ArrowDown"]);
3415
+ function followScroll(el, options = {}) {
3416
+ const doc = el.ownerDocument;
3417
+ const win = doc.defaultView;
3418
+ const margin = options.margin ?? 16;
3419
+ let on = options.on === true;
3420
+ let paused = false;
3421
+ let last = null;
3422
+ const tell = () => options.changed?.({ on, active: on && !paused });
3423
+ const pause = () => {
3424
+ if (!on || paused)
3425
+ return;
3426
+ paused = true;
3427
+ tell();
3428
+ };
3429
+ const byHand = (event) => {
3430
+ const target = event.target;
3431
+ if (!target || typeof target.contains !== "function")
3432
+ return;
3433
+ if (target.contains(el) || el.contains(target))
3434
+ pause();
3435
+ };
3436
+ const key = (event) => {
3437
+ if (SCROLL_KEYS2.has(event.key))
3438
+ byHand(event);
3439
+ };
3440
+ doc.addEventListener("wheel", byHand, { passive: true, capture: true });
3441
+ doc.addEventListener("touchmove", byHand, { passive: true, capture: true });
3442
+ doc.addEventListener("keydown", key, true);
3443
+ return {
3444
+ on: () => on,
3445
+ active: () => on && !paused,
3446
+ set(next) {
3447
+ if (on === next && !paused)
3448
+ return;
3449
+ on = next;
3450
+ paused = false;
3451
+ last = null;
3452
+ tell();
3453
+ },
3454
+ press() {
3455
+ if (on && paused)
3456
+ paused = false;
3457
+ else
3458
+ on = !on;
3459
+ last = null;
3460
+ tell();
3461
+ },
3462
+ playing() {
3463
+ last = null;
3464
+ if (!paused)
3465
+ return;
3466
+ paused = false;
3467
+ tell();
3468
+ },
3469
+ show(system, covered = 0) {
3470
+ if (!on || paused || !win)
3471
+ return;
3472
+ if (system.bottom <= system.top)
3473
+ return;
3474
+ const scroller = scrollerOf(el);
3475
+ const box = scroller?.getBoundingClientRect();
3476
+ const view = {
3477
+ top: Math.max(0, box?.top ?? 0),
3478
+ bottom: Math.min(win.innerHeight, box?.bottom ?? win.innerHeight) - covered
3479
+ };
3480
+ if (view.bottom - view.top <= 2 * margin)
3481
+ return;
3482
+ const at = Math.round(system.top + (scroller ? scroller.scrollTop : win.scrollY));
3483
+ if (last !== null && Math.abs(at - last) < 2)
3484
+ return;
3485
+ last = at;
3486
+ const move = moveToShow(view, spanToShow(system, view, margin), margin);
3487
+ if (!move)
3488
+ return;
3489
+ const how = { top: move, behavior: "smooth" };
3490
+ if (scroller)
3491
+ scroller.scrollBy(how);
3492
+ else
3493
+ win.scrollBy(how);
3494
+ },
3495
+ destroy() {
3496
+ doc.removeEventListener("wheel", byHand, true);
3497
+ doc.removeEventListener("touchmove", byHand, true);
3498
+ doc.removeEventListener("keydown", key, true);
3499
+ }
3500
+ };
3501
+ }
3502
+
3503
+ // src/tab/note-names.ts
3504
+ function namesOfBeat(beat, naming, flats) {
3505
+ if (beat.isRest)
3506
+ return [];
3507
+ return beat.notes.filter((note) => !note.isDead && !note.isTieDestination && Number.isFinite(note.realValue)).sort((a, b) => b.realValue - a.realValue).map((note) => noteInNaming(nameOf((note.realValue % 12 + 12) % 12, flats), naming));
3508
+ }
3509
+ function nameNotes(score, naming = "letters") {
3510
+ const undo = [];
3511
+ for (const track of score.tracks) {
3512
+ for (const staff of track.staves) {
3513
+ if (staff.isPercussion)
3514
+ continue;
3515
+ const beats = staff.bars.flatMap((bar) => bar.voices.flatMap((voice) => voice.beats.map((beat) => ({ bar, beat }))));
3516
+ const sung = beats.some(({ beat }) => (beat.lyrics?.length ?? 0) > 0);
3517
+ for (const { bar, beat } of beats) {
3518
+ const key = Number(bar.keySignature ?? bar.masterBar?.keySignature ?? 0);
3519
+ const names = namesOfBeat(beat, naming, key < 0);
3520
+ if (!names.length)
3521
+ continue;
3522
+ if (!sung) {
3523
+ const before = beat.lyrics;
3524
+ beat.lyrics = names;
3525
+ undo.push(() => beat.lyrics = before);
3526
+ } else if (!beat.text) {
3527
+ const before = beat.text;
3528
+ beat.text = names.join(" ");
3529
+ undo.push(() => beat.text = before);
3530
+ }
3531
+ }
3532
+ }
3533
+ }
3534
+ return () => {
3535
+ for (const back of undo.splice(0))
3536
+ back();
3537
+ };
3538
+ }
3539
+ function namesOf(value) {
3540
+ const v = value.trim().toLowerCase();
3541
+ if (v === "on" || v === "yes" || v === "true")
3542
+ return true;
3543
+ if (v === "off" || v === "no" || v === "false")
3544
+ return false;
3545
+ return null;
3546
+ }
3547
+
2179
3548
  // src/tab/score-fit.ts
2180
3549
  var SCORE_SCALES = [1, 1.25, 1.5, 1.75, 2, 2.5, 3];
2181
3550
  function scoreFit(apply, fits) {
@@ -2259,11 +3628,12 @@ function typed(text, unit, tempo) {
2259
3628
  return unit === "bpm" && tempo ? speedFor(n, tempo) : clamp(n / 100);
2260
3629
  }
2261
3630
  function tempoControl(doc, options) {
3631
+ const tr = translator();
2262
3632
  let speed = 1;
2263
3633
  let unit = options.unit ?? "bpm";
2264
3634
  const field = html(doc, "span", "mn-tempo");
2265
3635
  field.setAttribute("role", "group");
2266
- field.setAttribute("aria-label", "Tempo");
3636
+ field.setAttribute("aria-label", tr("tab.tempo.group"));
2267
3637
  const button = (cls, text, label) => {
2268
3638
  const b = html(doc, "button", cls, text);
2269
3639
  b.type = "button";
@@ -2271,15 +3641,15 @@ function tempoControl(doc, options) {
2271
3641
  b.title = label;
2272
3642
  return b;
2273
3643
  };
2274
- const down = button("mn-tempo-down", "−", "Slower");
2275
- const up = button("mn-tempo-up", "+", "Faster");
3644
+ const down = button("mn-tempo-down", "−", tr("tab.tempo.slower"));
3645
+ const up = button("mn-tempo-up", "+", tr("tab.tempo.faster"));
2276
3646
  const input = html(doc, "input", "mn-tempo-value");
2277
3647
  input.type = "text";
2278
3648
  input.inputMode = "numeric";
2279
3649
  input.size = 3;
2280
3650
  input.autocomplete = "off";
2281
- const unitButton = button("mn-tempo-unit", "BPM", "Show the speed in percent");
2282
- const other = button("mn-tempo-other", "", "Back to 100 %");
3651
+ const unitButton = button("mn-tempo-unit", "BPM", tr("tab.tempo.toPercent"));
3652
+ const other = button("mn-tempo-other", "", tr("tab.tempo.reset"));
2283
3653
  let editing = false;
2284
3654
  input.addEventListener("input", () => editing = true);
2285
3655
  const shownUnit = () => options.tempo() ? unit : "percent";
@@ -2288,16 +3658,20 @@ function tempoControl(doc, options) {
2288
3658
  const w = written(speed, shownUnit(), tempo);
2289
3659
  if (!editing)
2290
3660
  input.value = w.value;
2291
- input.setAttribute("aria-label", w.unit === "BPM" ? "Tempo in BPM" : "Speed in percent");
3661
+ input.setAttribute("aria-label", w.unit === "BPM" ? tr("tab.tempo.inBpm") : tr("tab.tempo.inPercent"));
2292
3662
  unitButton.textContent = w.unit;
2293
3663
  unitButton.hidden = !tempo;
2294
- const toOther = shownUnit() === "bpm" ? "percent" : "BPM";
2295
- unitButton.setAttribute("aria-label", `Show the speed in ${toOther}`);
2296
- unitButton.title = `Show the speed in ${toOther}`;
3664
+ const toOther = tr(shownUnit() === "bpm" ? "tab.tempo.toPercent" : "tab.tempo.toBpm");
3665
+ unitButton.setAttribute("aria-label", toOther);
3666
+ unitButton.title = toOther;
2297
3667
  other.textContent = w.other ? `· ${w.other}` : "";
2298
3668
  other.hidden = !w.other;
2299
3669
  other.disabled = speed === 1;
2300
- field.title = tempo ? `Tempo: ${bpmOf(speed, tempo)} BPM, ${Math.round(speed * 100)} % of ${Math.round(tempo)} BPM` : `Speed: ${Math.round(speed * 100)} %`;
3670
+ field.title = tempo ? tr("tab.tempo.title", {
3671
+ bpm: bpmOf(speed, tempo),
3672
+ percent: Math.round(speed * 100),
3673
+ tempo: Math.round(tempo)
3674
+ }) : tr("tab.tempo.speedTitle", { percent: Math.round(speed * 100) });
2301
3675
  down.disabled = speed <= SPEED_MIN;
2302
3676
  up.disabled = speed >= SPEED_MAX;
2303
3677
  };
@@ -2510,7 +3884,7 @@ var alphaTabCdn = (version = ALPHATAB_VERSION) => {
2510
3884
  soundFont: `${base}/soundfont/sonivox.sf3`
2511
3885
  };
2512
3886
  };
2513
- async function loadSounds(api, doc, assets, sounds, add = false) {
3887
+ async function loadSounds(api, doc, assets, sounds, add = false, tr = translator()) {
2514
3888
  const win = doc.defaultView;
2515
3889
  const made = local(doc);
2516
3890
  let files = null;
@@ -2526,7 +3900,7 @@ async function loadSounds(api, doc, assets, sounds, add = false) {
2526
3900
  files = null;
2527
3901
  }
2528
3902
  if (!files)
2529
- throw new Error(`Couldn't load the soundfont (${assets.soundFont})`);
3903
+ throw new Error(tr("tab.sound.loadFailed", { url: assets.soundFont }));
2530
3904
  } else
2531
3905
  files = [assets.soundFont];
2532
3906
  }
@@ -2542,7 +3916,17 @@ async function loadSounds(api, doc, assets, sounds, add = false) {
2542
3916
  });
2543
3917
  return kind;
2544
3918
  }
2545
- var SETTING = /^\s*(staves|file|tracks?)\s*:\s*(.*)$/i;
3919
+ function tabEngine(assets, wish) {
3920
+ const chosen = chooseEngine(wish, (engine) => engine === "generaluser" ? Boolean(assets.instruments) : engine === "sonivox");
3921
+ return chosen?.engine === "generaluser" ? "generaluser" : "sonivox";
3922
+ }
3923
+ function engineAssets(assets, wish) {
3924
+ if (!assets.instruments || tabEngine(assets, wish) === "generaluser")
3925
+ return assets;
3926
+ const { instruments: _left, ...whole } = assets;
3927
+ return whole;
3928
+ }
3929
+ var SETTING = /^\s*(staves|file|tracks?|engine|layout|names)\s*:\s*(.*)$/i;
2546
3930
  function parseTabSource(language, source) {
2547
3931
  const lines = source.split(/\r?\n/);
2548
3932
  const out = {
@@ -2550,6 +3934,9 @@ function parseTabSource(language, source) {
2550
3934
  stavesWritten: false,
2551
3935
  file: null,
2552
3936
  tracks: null,
3937
+ engine: null,
3938
+ layout: "page",
3939
+ names: null,
2553
3940
  tex: "",
2554
3941
  texLine: 0,
2555
3942
  fromText: false
@@ -2567,16 +3954,33 @@ function parseTabSource(language, source) {
2567
3954
  if (key === "staves") {
2568
3955
  const v = value.toLowerCase();
2569
3956
  if (v !== "tab" && v !== "score" && v !== "both") {
2570
- throw new Error(`staves: use tab, score or both, got "${value}"`);
3957
+ throw new Error(t("tab.source.staves", { value }));
2571
3958
  }
2572
3959
  out.staves = v;
2573
3960
  out.stavesWritten = true;
2574
3961
  } else if (key === "file") {
2575
3962
  out.file = value.replace(/^!?\[\[|\]\]$/g, "").split(/[|#]/)[0].trim() || null;
3963
+ } else if (key === "engine") {
3964
+ const engine = engineOf(value);
3965
+ if (!engine) {
3966
+ throw new Error(t("playback.engine.invalid", { value }));
3967
+ }
3968
+ out.engine = engine;
3969
+ } else if (key === "layout") {
3970
+ const v = value.toLowerCase();
3971
+ if (v !== "page" && v !== "line") {
3972
+ throw new Error(t("tab.source.layout", { value }));
3973
+ }
3974
+ out.layout = v;
3975
+ } else if (key === "names") {
3976
+ const names = namesOf(value);
3977
+ if (names === null)
3978
+ throw new Error(t("tab.source.names", { value }));
3979
+ out.names = names;
2576
3980
  } else {
2577
3981
  const tracks = value.split(/[\s,]+/).filter(Boolean).map(Number);
2578
3982
  if (!tracks.length || tracks.some((t) => !Number.isInteger(t) || t < 1)) {
2579
- throw new Error(`tracks: use track numbers from 1, got "${value}"`);
3983
+ throw new Error(t("tab.source.tracks", { value }));
2580
3984
  }
2581
3985
  out.tracks = tracks;
2582
3986
  }
@@ -2587,7 +3991,7 @@ function parseTabSource(language, source) {
2587
3991
  out.tex = lines.slice(i).join(`
2588
3992
  `).trimEnd();
2589
3993
  if (!out.file && !out.tex)
2590
- throw new Error("Write the music in alphaTex, or give a file: [[Song.gp]]");
3994
+ throw new Error(t("tab.source.empty", { example: "[[Song.gp]]" }));
2591
3995
  const converted = out.file ? null : textTabToAlphaTex(out.tex);
2592
3996
  if (converted !== null) {
2593
3997
  out.tex = converted;
@@ -2595,7 +3999,10 @@ function parseTabSource(language, source) {
2595
3999
  }
2596
4000
  return out;
2597
4001
  }
2598
- function messageOf(error, lineOffset) {
4002
+ function messageOf(error, lineOffset, tr) {
4003
+ return diagnosis(error, lineOffset, tr).message;
4004
+ }
4005
+ function diagnosis(error, lineOffset, tr) {
2599
4006
  const cause = error?.cause ?? error;
2600
4007
  for (const kind of ["lexerDiagnostics", "parserDiagnostics", "semanticDiagnostics"]) {
2601
4008
  const items = cause?.[kind]?.items;
@@ -2603,11 +4010,19 @@ function messageOf(error, lineOffset) {
2603
4010
  continue;
2604
4011
  const first = items.find((d) => d.severity === 2 && d.message);
2605
4012
  if (first) {
2606
- const at = first.start && lineOffset !== null ? `line ${first.start.line + lineOffset}, column ${first.start.col}: ` : "";
2607
- return `${at}${first.message}`;
4013
+ if (first.start && lineOffset !== null) {
4014
+ const line = first.start.line + lineOffset;
4015
+ const column = first.start.col;
4016
+ return {
4017
+ message: `${tr("tab.error.at", { line, column })}${first.message}`,
4018
+ line,
4019
+ column
4020
+ };
4021
+ }
4022
+ return { message: first.message };
2608
4023
  }
2609
4024
  }
2610
- return error instanceof Error ? error.message : String(error);
4025
+ return { message: error instanceof Error ? error.message : String(error) };
2611
4026
  }
2612
4027
  var NEUTRAL_CLEF = 0;
2613
4028
  function chooseStaves(staves, score) {
@@ -2707,7 +4122,8 @@ var time = (ms) => {
2707
4122
  return `${Math.floor(s / 60)}:${String(s % 60).padStart(2, "0")}`;
2708
4123
  };
2709
4124
  function playerBar(doc, api, alphaTab, assets, volume, tempoOptions = {}) {
2710
- const bar = playBar(doc, "mn-tab-bar", "Playback");
4125
+ const tr = translator();
4126
+ const bar = playBar(doc, "mn-tab-bar", tr("playback.bar"));
2711
4127
  const state = { loop: false, metronome: false, countIn: false, speed: 1 };
2712
4128
  const level = () => volumeOf(volume);
2713
4129
  let cant = () => {};
@@ -2739,7 +4155,7 @@ function playerBar(doc, api, alphaTab, assets, volume, tempoOptions = {}) {
2739
4155
  });
2740
4156
  api.updateSettings();
2741
4157
  const sounds = api.score ? soundsOfScore(api.score) : { programs: [], drums: false };
2742
- loadSounds(api, doc, assets, sounds).then(() => {
4158
+ loadSounds(api, doc, assets, sounds, false, tr).then(() => {
2743
4159
  loaded = true;
2744
4160
  settle();
2745
4161
  }, (e) => {
@@ -2762,7 +4178,7 @@ function playerBar(doc, api, alphaTab, assets, volume, tempoOptions = {}) {
2762
4178
  if (api.player)
2763
4179
  apply();
2764
4180
  };
2765
- const play = iconButton(doc, "mn-play-toggle", "Play", "play");
4181
+ const play = iconButton(doc, "mn-play-toggle", tr("playback.play"), "play");
2766
4182
  play.addEventListener("click", () => {
2767
4183
  start().then((ok) => {
2768
4184
  if (ok)
@@ -2771,25 +4187,25 @@ function playerBar(doc, api, alphaTab, assets, volume, tempoOptions = {}) {
2771
4187
  });
2772
4188
  cant = (message) => {
2773
4189
  play.disabled = true;
2774
- play.title = `Can't play: ${message}`;
4190
+ play.title = tr("tab.player.cantPlay", { message });
2775
4191
  play.setAttribute("aria-label", play.title);
2776
4192
  };
2777
- const stop = iconButton(doc, "mn-tab-stop", "Stop", "stop");
4193
+ const stop = iconButton(doc, "mn-tab-stop", tr("playback.stop"), "stop");
2778
4194
  stop.addEventListener("click", () => live(() => api.stop()));
2779
4195
  const toggles = () => live(() => {
2780
4196
  api.isLooping = state.loop;
2781
4197
  api.metronomeVolume = state.metronome ? 1 : 0;
2782
4198
  api.countInVolume = state.countIn ? 1 : 0;
2783
4199
  });
2784
- const loop = pressedButton(doc, "mn-tab-loop", "Loop", "loop", false, (on) => {
4200
+ const loop = pressedButton(doc, "mn-tab-loop", tr("playback.loop"), "loop", false, (on) => {
2785
4201
  state.loop = on;
2786
4202
  toggles();
2787
4203
  });
2788
- const metronome = pressedButton(doc, "mn-tab-click", "Metronome", "click", false, (on) => {
4204
+ const metronome = pressedButton(doc, "mn-tab-click", tr("tab.player.metronome"), "click", false, (on) => {
2789
4205
  state.metronome = on;
2790
4206
  toggles();
2791
4207
  });
2792
- const countIn = pressedButton(doc, "mn-tab-count", "Count-in", "count", false, (on) => {
4208
+ const countIn = pressedButton(doc, "mn-tab-count", tr("playback.countIn"), "count", false, (on) => {
2793
4209
  state.countIn = on;
2794
4210
  toggles();
2795
4211
  });
@@ -2809,7 +4225,7 @@ function playerBar(doc, api, alphaTab, assets, volume, tempoOptions = {}) {
2809
4225
  api.playerStateChanged.on((e) => {
2810
4226
  const playing = Number(e.state) === Number(alphaTab.synth.PlayerState.Playing);
2811
4227
  play.replaceChildren(icon(doc, playing ? "pause" : "play"));
2812
- play.title = playing ? "Pause" : "Play";
4228
+ play.title = playing ? tr("tab.player.pause") : tr("playback.play");
2813
4229
  play.setAttribute("aria-label", play.title);
2814
4230
  });
2815
4231
  api.playerPositionChanged.on((e) => {
@@ -2834,22 +4250,22 @@ function hasTablature(score, tracks) {
2834
4250
  return score.tracks.some((track, i) => (!tracks || tracks.includes(i + 1)) && track.staves.some((staff) => !staff.isPercussion && staff.tuning.length > 0));
2835
4251
  }
2836
4252
  var VIEWS = [
2837
- { staves: "tab", label: "Tab", what: "tablature" },
2838
- { staves: "score", label: "Score", what: "standard notation" },
2839
- { staves: "both", label: "Both", what: "standard notation and tablature" }
4253
+ { staves: "tab", label: "tab.view.tab", what: "tab.view.whatTab" },
4254
+ { staves: "score", label: "tab.view.score", what: "tab.view.whatScore" },
4255
+ { staves: "both", label: "tab.view.both", what: "tab.view.whatBoth" }
2840
4256
  ];
2841
4257
  function viewControl(doc, own, choose, keep) {
4258
+ const tr = translator();
2842
4259
  const group = html(doc, "span", "mn-tab-views");
2843
4260
  group.setAttribute("role", "group");
2844
- group.setAttribute("aria-label", "View");
4261
+ group.setAttribute("aria-label", tr("tab.view.group"));
2845
4262
  let current = own.staves;
2846
- const keepButton = keep ? html(doc, "button", "mn-tab-keep", "Keep this view") : null;
4263
+ const keepButton = keep ? html(doc, "button", "mn-tab-keep", tr("tab.view.keep")) : null;
2847
4264
  const buttons = VIEWS.map(({ staves, label, what }) => {
2848
- const b = html(doc, "button", "mn-tab-view", label);
4265
+ const b = html(doc, "button", "mn-tab-view", tr(label));
2849
4266
  b.type = "button";
2850
4267
  b.dataset["staves"] = staves;
2851
- const mine = staves !== own.staves ? "" : own.written ? ` (this block's staves: line)` : " (the default: the block has no staves: line)";
2852
- b.title = `Draw as ${what}${mine}`;
4268
+ b.title = staves !== own.staves ? tr("tab.view.drawAs", { what: tr(what) }) : own.written ? tr("tab.view.drawAsWritten", { what: tr(what) }) : tr("tab.view.drawAsDefault", { what: tr(what) });
2853
4269
  b.addEventListener("click", () => {
2854
4270
  if (staves === current)
2855
4271
  return;
@@ -2868,7 +4284,7 @@ function viewControl(doc, own, choose, keep) {
2868
4284
  }
2869
4285
  if (keepButton) {
2870
4286
  keepButton.hidden = current === own.staves;
2871
- keepButton.title = `Write staves: ${current} at the top of the block`;
4287
+ keepButton.title = tr("tab.view.keepTitle", { staves: current });
2872
4288
  }
2873
4289
  };
2874
4290
  if (keepButton && keep) {
@@ -2881,6 +4297,8 @@ function viewControl(doc, own, choose, keep) {
2881
4297
  }
2882
4298
  function renderTab(language, source, host, options) {
2883
4299
  const doc = host.ownerDocument;
4300
+ const lang = languageOf(options.language) ?? "en";
4301
+ const tr = translatorFor(lang);
2884
4302
  const el = html(doc, "div", `mn-block mn-block-${language} mn-tab`);
2885
4303
  host.appendChild(el);
2886
4304
  let api = null;
@@ -2897,10 +4315,10 @@ function renderTab(language, source, host, options) {
2897
4315
  resolve(result);
2898
4316
  };
2899
4317
  });
2900
- const fail = (message) => {
4318
+ const fail = (message, place = {}) => {
2901
4319
  el.replaceChildren(html(doc, "div", "mn-error-message", `${language}: ${message}`));
2902
4320
  el.classList.add("mn-error");
2903
- settle({ ok: false, error: message });
4321
+ settle({ ok: false, error: message, ...place });
2904
4322
  };
2905
4323
  if (!source.trim()) {
2906
4324
  el.classList.add("mn-empty");
@@ -2908,7 +4326,7 @@ function renderTab(language, source, host, options) {
2908
4326
  } else {
2909
4327
  (async () => {
2910
4328
  await Promise.resolve();
2911
- const parsed = parseTabSource(language, source);
4329
+ const parsed = withLanguage(lang, () => parseTabSource(language, source));
2912
4330
  const own = {
2913
4331
  staves: parsed.stavesWritten ? parsed.staves : options.defaultStaves ?? parsed.staves,
2914
4332
  written: parsed.stavesWritten
@@ -2920,6 +4338,8 @@ function renderTab(language, source, host, options) {
2920
4338
  throw new Error("alphaTab isn't loaded");
2921
4339
  const surface = html(doc, "div", "mn-tab-surface");
2922
4340
  el.appendChild(surface);
4341
+ const line = parsed.layout === "line";
4342
+ el.classList.toggle("mn-tab-line", line);
2923
4343
  const { assets } = options;
2924
4344
  const made = local(doc);
2925
4345
  const settings = {
@@ -2932,7 +4352,8 @@ function renderTab(language, source, host, options) {
2932
4352
  },
2933
4353
  display: {
2934
4354
  staveProfile: "Default",
2935
- resources: colorsOf(el)
4355
+ resources: colorsOf(el),
4356
+ ...line ? { layoutMode: at.LayoutMode?.Horizontal ?? 1 } : {}
2936
4357
  },
2937
4358
  player: {
2938
4359
  playerMode: at.PlayerMode.Disabled,
@@ -2949,20 +4370,29 @@ function renderTab(language, source, host, options) {
2949
4370
  return;
2950
4371
  }
2951
4372
  options.onApi?.(current);
4373
+ let named = parsed.names ?? options.names === true;
4374
+ const naming = namingOf(options.naming) ?? "letters";
4375
+ let unname = null;
2952
4376
  let written = [];
2953
4377
  current.scoreLoaded.on((score) => {
2954
4378
  written = score.tracks.flatMap((t) => t.staves.map((s) => ({ showSlash: s.showSlash, showNumbered: s.showNumbered })));
2955
4379
  chooseStaves(view, score);
2956
4380
  tablature = hasTablature(score, parsed.tracks);
2957
4381
  hideDefaultDynamics(score, parsed.file ? null : parsed.tex);
4382
+ unname = null;
4383
+ if (named)
4384
+ unname = nameNotes(score, naming);
2958
4385
  });
2959
4386
  hideCredit(current, surface);
2960
4387
  let bar = null;
2961
- current.renderFinished.on(() => {
4388
+ current.renderFinished.on(() => withLanguage(lang, () => {
2962
4389
  if (settled || gone)
2963
4390
  return;
2964
4391
  if (options.player !== false) {
2965
- bar = playerBar(doc, current, at, assets, options.volume, options);
4392
+ const wish = parsed.engine ?? engineOf(options.engine);
4393
+ if (parsed.engine)
4394
+ el.setAttribute("data-mn-engine", parsed.engine);
4395
+ bar = playerBar(doc, current, at, engineAssets(assets, wish), options.volume, options);
2966
4396
  unbar = bar.destroy;
2967
4397
  speedOf = bar.speed;
2968
4398
  el.appendChild(bar.bar);
@@ -2977,6 +4407,75 @@ function renderTab(language, source, host, options) {
2977
4407
  chooseStaves(staves, score);
2978
4408
  current.render();
2979
4409
  }, options.onKeepView));
4410
+ bar.bar.appendChild(pressedButton(doc, "mn-tab-names", tr("tab.names"), "names", named, (on) => {
4411
+ named = on;
4412
+ const score = current.score;
4413
+ if (gone || !score)
4414
+ return;
4415
+ unname?.();
4416
+ unname = on ? nameNotes(score, naming) : null;
4417
+ current.render();
4418
+ }));
4419
+ let full = null;
4420
+ let fullFollows = false;
4421
+ let fullWish = true;
4422
+ const inFull = () => full?.active() ?? false;
4423
+ const followButton = iconButton(doc, "mn-tab-follow", tr("tab.follow"), "follow");
4424
+ const showFollow = () => {
4425
+ const on = inFull() ? fullWish : follow.on();
4426
+ const paused = inFull() ? fullWish && !fullFollows : on && !follow.active();
4427
+ followButton.setAttribute("aria-pressed", String(on));
4428
+ followButton.classList.toggle("mn-on", on);
4429
+ followButton.classList.toggle("mn-follow-paused", paused);
4430
+ followButton.title = paused ? tr("tab.followPaused") : tr("tab.follow");
4431
+ };
4432
+ const applyScroll = () => {
4433
+ const along = line ? at.ScrollMode.Continuous : at.ScrollMode.OffScreen;
4434
+ const mode = inFull() ? fullFollows && fullWish ? along : at.ScrollMode.Off : line && follow.active() ? along : at.ScrollMode.Off;
4435
+ if (current.settings.player.scrollMode !== mode) {
4436
+ current.settings.player.scrollMode = mode;
4437
+ current.updateSettings();
4438
+ }
4439
+ showFollow();
4440
+ };
4441
+ const follow = followScroll(el, { on: line, changed: applyScroll });
4442
+ if (line) {
4443
+ current.settings.player.scrollOffsetX = -24;
4444
+ current.settings.player.scrollMode = at.ScrollMode.Continuous;
4445
+ current.updateSettings();
4446
+ }
4447
+ followButton.addEventListener("click", () => {
4448
+ if (!inFull())
4449
+ return follow.press();
4450
+ if (fullWish && !fullFollows)
4451
+ full?.playing();
4452
+ else
4453
+ fullWish = !fullWish;
4454
+ applyScroll();
4455
+ });
4456
+ current.playerStateChanged.on((e) => {
4457
+ if (Number(e.state) === Number(at.synth?.PlayerState.Playing))
4458
+ follow.playing();
4459
+ });
4460
+ const shown = bar;
4461
+ current.playerPositionChanged.on(() => {
4462
+ if (line || inFull() || !follow.active())
4463
+ return;
4464
+ const cursor = surface.querySelector(".at-cursor-bar");
4465
+ if (!cursor)
4466
+ return;
4467
+ const { top, bottom } = cursor.getBoundingClientRect();
4468
+ follow.show({ top, bottom }, shown.bar.offsetHeight + 12);
4469
+ });
4470
+ showFollow();
4471
+ bar.bar.appendChild(followButton);
4472
+ {
4473
+ const off = unbar;
4474
+ unbar = () => {
4475
+ follow.destroy();
4476
+ off();
4477
+ };
4478
+ }
2980
4479
  if (options.fullScreen !== false) {
2981
4480
  let page = null;
2982
4481
  const fit = scoreFit((scale, stretch) => {
@@ -2992,13 +4491,14 @@ function renderTab(language, source, host, options) {
2992
4491
  current.updateSettings();
2993
4492
  current.render();
2994
4493
  }, () => surface.scrollHeight <= surface.clientHeight + 1);
2995
- const full = fullScreenControl(doc, el, surface, (on) => {
2996
- current.settings.player.scrollMode = on ? at.ScrollMode.OffScreen : at.ScrollMode.Off;
2997
- current.updateSettings();
4494
+ const control = fullScreenControl(doc, el, surface, (on) => {
4495
+ fullFollows = on;
4496
+ applyScroll();
2998
4497
  }, { changed: (on) => on ? fit.enter() : fit.leave() });
4498
+ full = control;
2999
4499
  current.postRenderFinished.on(() => {
3000
4500
  const area = surface.querySelector(".at-surface");
3001
- if (area && full.active()) {
4501
+ if (area && control.active()) {
3002
4502
  const bottom = Math.max(0, ...[...area.children].map((part) => {
3003
4503
  const p = part;
3004
4504
  return p.offsetTop + p.offsetHeight;
@@ -3010,13 +4510,13 @@ function renderTab(language, source, host, options) {
3010
4510
  });
3011
4511
  current.playerStateChanged.on((e) => {
3012
4512
  if (Number(e.state) === Number(at.synth.PlayerState.Playing))
3013
- full.playing();
4513
+ control.playing();
3014
4514
  });
3015
- current.renderFinished.on(() => full.drawn());
3016
- bar.bar.appendChild(full.button);
4515
+ current.renderFinished.on(() => control.drawn());
4516
+ bar.bar.appendChild(control.button);
3017
4517
  const off = unbar;
3018
4518
  unbar = () => {
3019
- full.destroy();
4519
+ control.destroy();
3020
4520
  off();
3021
4521
  };
3022
4522
  }
@@ -3027,13 +4527,18 @@ function renderTab(language, source, host, options) {
3027
4527
  });
3028
4528
  }
3029
4529
  settle({ ok: true, error: null });
3030
- });
4530
+ }));
3031
4531
  current.error.on((e) => {
3032
- const message = parsed.fromText ? `Couldn't draw this text tab: ${messageOf(e, null)}` : messageOf(e, parsed.texLine);
4532
+ const found = parsed.fromText ? null : diagnosis(e, parsed.texLine, tr);
4533
+ const message = found ? found.message : tr("tab.error.textTab", { message: messageOf(e, null, tr) });
4534
+ const place = {
4535
+ ...found?.line !== undefined ? { line: found.line } : {},
4536
+ ...found?.column !== undefined ? { column: found.column } : {}
4537
+ };
3033
4538
  if (settled)
3034
4539
  bar?.failed(message);
3035
4540
  else
3036
- fail(message);
4541
+ fail(message, place);
3037
4542
  });
3038
4543
  const tracks = parsed.tracks?.map((t) => t - 1);
3039
4544
  if (parsed.file) {
@@ -3041,15 +4546,18 @@ function renderTab(language, source, host, options) {
3041
4546
  try {
3042
4547
  bytes = options.resolveFile ? await options.resolveFile(parsed.file) : null;
3043
4548
  } catch (e) {
3044
- throw new Error(`Couldn't read "${parsed.file}": ${e instanceof Error ? e.message : String(e)}`, { cause: e });
4549
+ throw new Error(tr("tab.error.fileRead", {
4550
+ file: parsed.file,
4551
+ message: e instanceof Error ? e.message : String(e)
4552
+ }), { cause: e });
3045
4553
  }
3046
4554
  if (gone)
3047
4555
  return;
3048
4556
  if (!bytes)
3049
- throw new Error(`Couldn't find the file "${parsed.file}"`);
4557
+ throw new Error(tr("tab.error.fileMissing", { file: parsed.file }));
3050
4558
  const loaded = current.load(made.bytes(bytes), tracks);
3051
4559
  if (!loaded)
3052
- throw new Error(`Couldn't read "${parsed.file}": not a score file alphaTab knows`);
4560
+ throw new Error(tr("tab.error.fileUnknown", { file: parsed.file }));
3053
4561
  } else {
3054
4562
  current.tex(parsed.tex, tracks ?? "all");
3055
4563
  }
@@ -3282,6 +4790,7 @@ export {
3282
4790
  alphaTabCdn,
3283
4791
  chordSheetToChordPro,
3284
4792
  createSoundfontPlayer,
4793
+ engineAssets,
3285
4794
  exportGp7,
3286
4795
  exportMidi,
3287
4796
  hideDefaultDynamics,
@@ -3290,8 +4799,9 @@ export {
3290
4799
  renderTab,
3291
4800
  scoreToAlphaTex,
3292
4801
  soundfontPlayer,
4802
+ tabEngine,
3293
4803
  textTabToAlphaTex
3294
4804
  };
3295
4805
 
3296
- //# debugId=E1D3DD446F8C393264756E2164756E21
4806
+ //# debugId=37A8745896787F9F64756E2164756E21
3297
4807
  //# sourceMappingURL=index.js.map