@dsebastien/music-notation 0.24.0 → 0.26.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.
- package/README.md +3 -2
- package/dist/chord/simplify.d.ts +56 -0
- package/dist/chords/chart.d.ts +55 -3
- package/dist/chords/chordpro.d.ts +4 -0
- package/dist/chords/easier.d.ts +39 -0
- package/dist/i18n/en/index.d.ts +10 -0
- package/dist/i18n/en/parse.d.ts +2 -0
- package/dist/i18n/en/play.d.ts +8 -0
- package/dist/i18n/fr/parse.d.ts +2 -0
- package/dist/i18n/fr/play.d.ts +8 -0
- package/dist/i18n/language.d.ts +11 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +739 -35
- package/dist/index.js.map +20 -16
- package/dist/music-notation.publish.min.js +35 -35
- package/dist/music-notation.tab.min.js +7 -7
- package/dist/playback/controls.d.ts +32 -1
- package/dist/playback/effects.d.ts +142 -0
- package/dist/playback/guitar-tone.d.ts +10 -2
- package/dist/playback/player.d.ts +14 -0
- package/dist/playback/progression-bar.d.ts +6 -1
- package/dist/playback/sound-menu.d.ts +21 -0
- package/dist/publish/index.js +727 -31
- package/dist/publish/index.js.map +19 -15
- package/dist/tab/index.d.ts +7 -0
- package/dist/tab/index.js +488 -1
- package/dist/tab/index.js.map +11 -9
- package/dist/tab/room.d.ts +45 -0
- package/dist/voicings/index.js +21 -1
- package/dist/voicings/index.js.map +6 -6
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/*! @dsebastien/music-notation 0.
|
|
2
|
-
(()=>{var ln=["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"],cn=["C","Db","D","Eb","E","F","Gb","G","Ab","A","Bb","B"],_e={C:0,D:2,E:4,F:5,G:7,A:9,B:11};function oe(e){let t=/^([A-Ga-g])([#♯b♭]*)$/.exec(e.trim());if(!t)return null;let n=_e[t[1].toUpperCase()];for(let o of t[2])n+=o==="#"||o==="♯"?1:-1;return(n%12+12)%12}function Ae(e){let t=/^([A-Ga-g][#♯b♭]*)(-?\d)$/.exec(e.trim());if(!t)return null;let n=oe(t[1]);if(n===null)return null;let o=_e[t[1][0].toUpperCase()],r=Math.round((n-o)/12);return(Number(t[2])+1)*12+n-r*12}var Se=(e,t=!1)=>(t?cn:ln)[((Math.round(e)||0)%12+12)%12];var We=(e,t=!1)=>`${Se(e,t)}${Math.floor(e/12)-1}`;var Ke={"render.layout.orientation":'Unknown orientation "{text}": use vertical or horizontal',"render.layout.hand":'Unknown hand "{text}": use left or right',"render.rootMark.invalid":'root-mark: write color or shape, got "{text}"',"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","render.unknownChord":`Didn't recognize "{written}": try {suggestions}`,"render.tuning":'Unknown tuning "{text}"',"render.yesNo":'{key} must be yes or no, got "{text}"',"render.hand.left":"left hand","render.hand.right":"right hand","render.positions.exerciseOne":"exercise plays one position: write position: 1 (not positions:)","render.positions.needsSet":"positions needs a scale or a chord: e.g. A minor pentatonic or arpeggio: Am7","render.positions.arpeggioCaged":"Arpeggios use CAGED shapes, not 3nps: leave shape out","render.positions.range":"positions: use all, or numbers from 1 to {count} for {title}","render.positions.fromMinor":" (from {root}m)","render.positions.arpeggioTitle":"{title} arpeggio","render.positions.shapeTitle":"{name}, {shape} shape","render.positions.npsTitle":"{name}, 3nps {n}{from}","render.positions.boxTitle":"{name}, box {n}{from}","render.fingering.handTitle":"{title}, {hand}","render.voicings.notBoth":"Use triads or voicings, not both","render.voicings.fretted":"voicings are for guitar and other fretted instruments","render.voicings.noFrets":'voicings finds the frets itself: remove "{value}"',"render.voicings.needsChord":"voicings needs a chord: e.g. A Major","render.voicings.instrument":'Unknown instrument "{instrument}": use guitar, or give a tuning',"render.voicings.maxStrings":"voicings works on up to {max} strings","render.voicings.count":"voicings: use all, or a number from 1 to {max}","render.voicings.area":'area: use open, or frets like 5-9 (up to 24), got "{area}"',"render.voicings.rootString":"root-string: use a string number from 1 (the highest) to {count}","render.voicings.inversion":'inversion: use 0 (root), 1, 2, 3 or any, got "{inversion}"',"render.voicings.manyStringsAny":"On {count} strings, inversion: any needs six strings or fewer: add e.g. strings: 1-6","render.voicings.wideArea":"a wide area","render.voicings.oneWidening":"On {count} strings, use one of {list} at a time","render.noVoicing.gaps":"strings {strings} aren't next to each other: add gaps: yes","render.noVoicing.rootString":"root-string {string} isn't among strings {strings}","render.noVoicing.inversion":"{symbol} has {notes} notes: inversion goes up to {max}","render.noVoicing.bass":"No voicing of {chord} has its bass on string {string}: try another root-string","render.noVoicing.none":"No playable voicing of {chord} fits: widen the area, allow open strings or add stretch: yes","render.triads.noFrets":'triads finds the frets itself: remove "{value}"',"render.triads.fretted":"triads are for guitar and other fretted instruments: give a tuning","render.triads.strings":"triads: give three strings next to each other, e.g. 1-3 or 2-4","render.triads.inversion":'inversion: use 0 (root position), 1, 2 or any, got "{inversion}"',"render.triads.keyInversion":"With a key, pick one inversion: 0, 1 or 2","render.triads.key":'Unknown key "{text}": use e.g. key: G major or key: E minor',"render.triads.needsChord":"triads needs a chord (e.g. G) or a key (key: G major)","render.triads.notTriad":"{symbol} isn't a triad (three notes): try voicings: all","render.triads.none":"No triad fits on these strings: try another string set","render.transitions.needsFrom":"Add the chord you hold: from: C (with its frets: from: C x32010)","render.transitions.fretted":"Transitions are for guitar and other fretted instruments: give a tuning","render.transitions.notBoth":"Use from and to, or progression, not both","render.transitions.refused":`"{key}" can't be used with {with}`,"render.transitions.maxStrings":"Transitions work on up to {max} strings","render.transitions.twoChords":"progression: give two chords or more, e.g. G D Em C","render.transitions.maxChords":"progression: at most {max} chords","render.transitions.noVoicings":"No playable voicings for this progression","render.transitions.needsTo":"Add the next chord: to: D","render.transitions.noHeld":"No playable voicing of {chord}: add its frets","render.transitions.stringCount":'"{frets}" has {have} strings, the tuning {count}',"render.transitions.count":"count: use a number from 1 to {max}","render.transitions.noTarget":"No playable voicing of {chord}","render.modes.none":'"{value}" has no modes: use e.g. modes: C major',"render.modes.refused":`"{key}" can't be used with modes: only {allowed}`,"render.row.notShared":`"{key}" can't be shared: move it to a diagram. Shared settings: {allowed}`,"render.row.columns":'columns must be a whole number from 1 to 12, got "{text}"',"render.row.needsDiagram":'Add a diagram after the shared settings: a "---" line, then the diagram',"render.row.max":"At most {max} diagrams per block, found {found}","render.row.columnsShared":'"columns" goes in the shared settings, before the first "---"',"render.row.ownRow":'"{key}" draws its own row: use it in a block of its own',"render.row.exercise":"exercise draws a tab under one diagram: use it in a block of its own","render.row.diagram":"diagram {n}: {message}","render.row.sharedHint":' (shared settings before the first "---" may only hold: {allowed})',"fretboard.capo":"Capo {fret}","fretboard.title":"Fretboard: {title}","fretboard.note.open":"{note} open","fretboard.note.fret":"{note} at fret {fret}","fretboard.note.root":" (root)","fretboard.string":"String {n} ({name}): {notes}.","fretboard.pick.open":"String {string}, open","fretboard.pick.fret":"String {string}, fret {fret}","fretboard.exercise.direction":'exercise: use up, down or up-down, got "{text}"',"fretboard.exercise.rhythm":'rhythm: use 8ths, triplets or 16ths, got "{text}"',"fretboard.exercise.scale":'Unknown scale "{text}"',"fretboard.exercise.chord":'Unknown chord "{text}"',"fretboard.exercise.needsSet":"An exercise needs a scale or an arpeggio: e.g. scale: A minor or arpeggio: Am7","fretboard.exercise.arpeggioCaged":"Arpeggios use CAGED shapes: position 1 to 5, or shape: E, D, C, A or G (not 3nps)","fretboard.exercise.positions":"{title} has {count} {system} positions: use position 1 to {count}","fretboard.exercise.tuning":'Unknown tuning "{text}"',"fretboard.exercise.capo":"capo: use a fret from 1 to 12 (0 for none), got {text}","fretboard.positions.numbering":'numbering: use minor (positions from the relative minor), got "{text}"',"fretboard.positions.numberingPentatonic":"numbering: minor is for major pentatonic positions (e.g. A major pentatonic), not {title}","fretboard.positions.numberingCaged":"numbering: minor numbers boxes and 3nps positions, not CAGED shapes","fretboard.positions.position":'position must be a whole number from 1, got "{text}"',"fretboard.positions.shape":'Unknown shape "{text}": use C, A, G, E, D or 3nps',"keyboard.fingering.finger":'fingering: fingers go from 1 (thumb) to 5 (little finger), got "{text}"',"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","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","keyboard.piano.shell":"Shell voicings need a third and a seventh or sixth (C7, Cmaj7, Cm7, C6): {symbol} has none","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}","keyboard.piano.octave":'octave: use a number from 0 to 8, got "{text}"',"keyboard.piano.inversion":'inversion: use 0 (root position), 1, 2 or 3, got "{text}"',"keyboard.piano.slashInversion":"{symbol} already says its bass: leave inversion out","keyboard.piano.inversionStyle":"inversion goes with close or open voicings, not {style}","keyboard.piano.inversionMax":"{symbol} has {notes} notes: inversion goes up to {max}","keyboard.piano.open":"Open voicings need three notes or more: {symbol} has {notes}","keyboard.piano.offKeys":"octave {octave} puts {symbol} off the piano's keys: try octave 3 or 4","keyboard.piano.inversionWord":'inversion: use root, first, second, third (or 0 to 3), got "{text}"',"keyboard.piano.octaveMiddle":`octave: use a number from 0 to 8 (4 is middle C's), got "{text}"`,"keyboard.piano.voicing":'voicing: use close, open, shell, shell R-7, rootless A or rootless B, got "{text}"',"keyboard.piano.key":'Unknown key "{text}": use e.g. key: C minor or key: Eb',"keyboard.piano.resolvesTo":'resolves-to: write a chord, e.g. resolves-to: Cm, got "{text}"',"keyboard.piano.hands":'hands: use left+right, left or right, got "{text}"',"keyboard.title":"Keyboard: {title}","keyboard.hand":"{hand}: {keys}","keyboard.handMark.left":"LH","keyboard.handMark.right":"RH","keyboard.whiteKey":"White key {n}","keyboard.blackKey":"Black key {n}","keyboard.lit.root":"root","keyboard.lit.finger":"finger {finger}","keyboard.lit.keys":"Keys: {keys}.","circle.label":"Circle of fifths, {key}: {signature}{accidentals}; chords: {chords}","circle.or":"or","circle.mode.major":"major","circle.mode.minor":"minor","circle.mode.ionian":"ionian","circle.mode.dorian":"dorian","circle.mode.phrygian":"phrygian","circle.mode.lydian":"lydian","circle.mode.mixolydian":"mixolydian","circle.mode.aeolian":"aeolian","circle.mode.locrian":"locrian","circle.key":'Unknown key "{text}": use e.g. key: G, key: Em or key: D dorian',"circle.mode":'Unknown mode "{text}": use major, minor, dorian, phrygian, lydian, mixolydian or locrian',"circle.modeTwice":"key: {key} already says {mode}: leave out mode or write the key's note alone","circle.chords":'chords: use triads or sevenths, got "{text}"',"circle.dominant":'dominant: use major (V, from the harmonic minor) or minor (v), got "{text}"',"keyboard.piano.unknownChord":'Unknown chord "{symbol}"'};var Ye={"blocks.source.expected":'Expected "key: value", got "{line}"',"blocks.source.strings":"strings: use string numbers from 1 (the highest) to {count}, e.g. 1-4","blocks.caption.fingeringChordOnly":"caption: fingering is for chord blocks: use formula or none here","blocks.caption.useAll":'caption: use fingering (the fingering in words), formula (notes and intervals), fingering, formula (both) or none, got "{written}"',"blocks.caption.useFormula":'caption: use formula (notes and intervals) or none, got "{written}"',"blocks.noteSet.chordOrArpeggio":"Use chord or arpeggio, not both","blocks.noteSet.invalidRoot":'Invalid root "{root}": use a note name, e.g. root: C',"blocks.noteSet.notAList":'"{head}" is not a list of notes: use e.g. notes: C Eb G',"blocks.noteSet.addNotesForRoot":"Add the notes for the root: e.g. notes: C Eb G","blocks.noteSet.addRoot":"Add a root note: C {scale}","blocks.noteSet.addSource":'Add "scale:", "chord:" or "notes:"',"blocks.noteSet.rootListsOnlyScale":"root only applies to lists of notes (notes: C E G): a scale has its own root","blocks.noteSet.rootListsOnlyChord":"root only applies to lists of notes (notes: C E G): a chord has its own root","blocks.noteSet.unknownLabelsFingers":'Unknown labels "{value}": use notes, degrees, intervals, fingers or none',"blocks.noteSet.unknownLabels":'Unknown labels "{value}": use notes, degrees, intervals or none',"blocks.noteSet.invalidNotes":'Invalid notes "{notes}"',"blocks.noteSet.unknownScale":'Unknown scale "{scale}"',"blocks.noteSet.unknownChord":'Unknown chord "{chord}"',"blocks.noteSet.notAScaleChordOrList":'"{head}" is not a scale, chord or list of notes',"blocks.noteSet.highlightNeedsIntervals":"highlight needs a scale, a chord or a root: a list of notes has no intervals (add e.g. root: C)","blocks.noteSet.notInSet":`"{label}" isn't in {title}: use its intervals (R, b3, 5…)`,"theory.key.needsSharps":"{name} needs {count} sharps: write {write}","theory.key.needsFlats":"{name} needs {count} flats: write {write}","theory.key.noSignature":"no ♯ or ♭","theory.harmonize.unknownScale":'Unknown scale "{text}": use e.g. key: G major, key: A harmonic minor or key: D dorian',"theory.harmonize.sevenNotes":"harmonize needs a scale of 7 notes: {name} has {count}","theory.harmonize.noNamedChord":"not a named chord","theory.harmonize.noFifth":"no perfect fifth","theory.harmonize.noFourthOrSecond":"no perfect fourth or major second","blocks.progression.yesNo":'{key} must be yes or no, got "{text}"',"blocks.progression.majorMinorKeys":'Progression keys are major or minor: write key: {tonic} major or key: {tonic} minor, got "{text}"',"blocks.progression.unknownKey":'Unknown key "{text}": use e.g. key: G, key: Em or key: F# minor',"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)`,"blocks.progression.harmonizeKind":'harmonize: write triads, sevenths, sus or power, got "{kind}"',"blocks.progression.harmonizeNothing":"harmonize: write triads, sevenths, sus or power, got nothing","blocks.progression.harmonizeNoChords":"harmonize draws the chords of the scale: leave out the chords ({written})","blocks.progression.addScale":"Add the scale: e.g. key: A harmonic minor","blocks.progression.transposeWhole":"transpose must be a whole number of semitones, e.g. transpose: -2","blocks.progression.addChords":"Add the chords: e.g. I V vi IV with key: G, 1 5 6m 4, or G D Em C","blocks.progression.addKey":"Add the key: e.g. key: G or key: E minor","blocks.progression.unknownTuning":'Unknown tuning "{text}"',"blocks.progression.tempo":'tempo: write beats a minute from {min} to {max}, got "{text}"',"blocks.progression.strum":"strum: write beats, bar, arpeggio or a strumming pattern (D DU UDU): {reason}","blocks.progression.key":"Key: {name}","blocks.progression.blues":"(blues)","blocks.progression.orKeys":"(or {list})","blocks.progression.leftOut":"Left out: {list}","blocks.progression.leftOutDegree":"degree {degree} ({note}), {reason}","blocks.progression.unknownInstrument":'Unknown instrument "{instrument}": use guitar or piano',"blocks.progression.numerals":'numerals: use roman, nashville or none, got "{style}"',"blocks.progression.voiceLeadingPiano":"voice-leading is for piano: add instrument: piano","blocks.progression.pianoOnly":"{key} is for piano chords: add instrument: piano","blocks.progression.voiceLeadingHands":"voice-leading goes with hands: left+right (a left-hand bass under each chord), not left or right alone","blocks.progression.voiceLeadingOrKey":"Use voice-leading or {key}, not both","blocks.progression.addChordsAfterShared":'Add the chords after the shared settings, after a "---" line',"blocks.progression.maxChords":"At most {max} chords per block, found {count}","theory.chord.suggest":"{root}, {root}m, {root}7 or {spelled} {quality}","blocks.render.maxStrings":"At most {max} strings","blocks.render.invalidRange":'Invalid range "{text}": use e.g. C3-B4',"blocks.render.maxKeys":"At most {max} keys: give a smaller range, e.g. range: C3-B5","blocks.render.wholeFrom1":'{what} must be a whole number from 1, got "{text}"',"blocks.render.unrecognized":`Didn't recognize "{written}": try {suggestions}`,"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","blocks.chord.capoNotPiano":"capo is for guitar and other fretted instruments, not piano","blocks.chord.pitchesGivenKeys":"{given} goes with a chord symbol: pitches are already the keys to play","blocks.chord.autoNeedsSymbol":"fingering: auto goes with a chord symbol: write the fingers, e.g. 1 3 5","blocks.chord.invalidPitches":'Invalid pitches "{text}"',"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","blocks.chord.addSymbolOrPitches":'Add a chord symbol or "pitches:"',"blocks.chord.unknownInstrument":'Unknown instrument "{instrument}": use guitar or piano, or give a tuning',"blocks.chord.invalidFrets":'Invalid frets "{text}": use e.g. x02220',"blocks.chord.nutAtCapo":"With frets-from: nut, every sounding fret is at the capo ({capo}) or above: write x for strings behind it","blocks.chord.capoMaxFret":"With capo {capo}, frets go up to {max}","blocks.chord.fingersCount":'"{text}" has {fingers} fingers for {strings} strings',"blocks.chord.noVoicing":'No voicing {n} found for "{symbol}": add "frets:"',"blocks.chord.addFretsFor":'Add "frets:" for {symbol} (e.g. frets: x02220)',"blocks.chord.addSymbolAndFrets":'Add a chord symbol and "frets:"',"blocks.chord.positionAboveLowest":"position {base} is above the lowest fretted note (fret {fret})","blocks.chord.tuningStrings":"The tuning has {tuning} strings, the frets {frets}","blocks.chord.soundsTitle":"{sounding} ({shape} shape)","blocks.chord.captionFormulaChord":"caption: formula needs a chord the library knows: add its symbol (e.g. symbol: A)","blocks.chord.captionFormulaSet":"caption: formula needs a chord or a scale the library knows: add chord: or scale:","blocks.chord.soundsTitleNeedsChord":"sounds: title needs a chord the library knows: add its symbol (e.g. symbol: A)","blocks.chord.soundsNeedsCapo":"sounds goes with a capo: add e.g. capo: 2","blocks.chord.soundsYesNeedsChord":"sounds: yes needs a chord the library knows: add its symbol (e.g. symbol: A), or write the chord: sounds: B","blocks.chord.soundsMismatch":"With capo {capo}, {shape} sounds {sounding}, not {value}: write sounds: {sounding} (or sounds: yes)","blocks.chord.unknownLabels":'Unknown labels "{text}": use fingers, intervals, notes or none',"blocks.chord.labelsNeedChord":"labels: {value} needs a chord the library knows","blocks.keyboard.autoBothAlone":"fingering: auto both draws two keyboards: put it in a block of its own, not in a --- row","blocks.keyboard.fingersCount":"fingering has {fingers} fingers: {title} needs {needed}, one per note from the root up to the root above","blocks.keyboard.fingersForNotes":"fingering has {fingers} fingers for {notes} notes: one finger per note, in the order written","blocks.keyboard.keyTwice":"A key is listed twice: one finger per key","blocks.keyboard.pastRange":"The fingered notes go past the range: widen range: or leave it out","blocks.keyboard.handTitleLeft":"{title}, left hand","blocks.keyboard.handTitleRight":"{title}, right hand","blocks.fretboard.invalidFrets":'Invalid frets "{text}": use e.g. 5-8',"blocks.fretboard.maxFret":"Frets go up to {max}","blocks.fretboard.nutStartsAtCapo":"With frets-from: nut, frets start at the capo ({capo}) or above: e.g. frets: {capo}-{example}","blocks.fretboard.numberingNeedsPosition":"numbering goes with a position: e.g. position: 1 or positions: all","blocks.fretboard.positionsNeedSet":"Positions need a scale or a chord: e.g. scale: A minor or arpeggio: Am7","blocks.fretboard.arpeggioCaged":"Arpeggios use CAGED shapes: position 1 to 5, or shape: E, D, C, A or G (not 3nps)","blocks.fretboard.positionCount":"{title} has {count} {named} positions: use position 1 to {count}","blocks.fretboard.positionNotFit":"{title}, position {n} doesn't fit in frets {from}-{to}: widen frets: or leave it out","blocks.fretboard.rhythmNeedsExercise":"rhythm goes with exercise: e.g. exercise: up-down","blocks.fretboard.exerciseNeedsPosition":"exercise plays one position: add position: 1 (or shape: E)","blocks.fretboard.invalidTempo":'Invalid tempo "{text}": use beats a minute from 20 to 240, e.g. tempo: 80',"blocks.fretboard.arpeggioTitle":"{name} arpeggio","blocks.fretboard.fromMinor":" (from {minor}m)","blocks.fretboard.shapeTitle":"{name}, {shape} shape","blocks.fretboard.threeNpsTitle":"{name}, 3nps {n}{from}","blocks.fretboard.boxTitle":"{name}, box {n}{from}","blocks.scalesFor.both":"Use scales-for (chords) or scales-for-notes, not both","blocks.scalesFor.findsItself":'{key} finds the scale itself: remove "{what}"',"blocks.scalesFor.addChords":"Add the chords: e.g. scales-for: G D Em C","blocks.scalesFor.addNotes":"Add the notes: e.g. scales-for-notes: C D E G A","blocks.scalesFor.unreadChords":`Didn't read the chords "{text}": use chord symbols, e.g. scales-for: G D Em C`,"blocks.scalesFor.unreadNotes":`Didn't read the notes "{text}": use note names, e.g. scales-for-notes: C D E G A`,"blocks.scalesFor.outside":", {notes} outside","blocks.scalesFor.bluesTitle":"{tonic} blues scale for {listed} (or {pentatonic}, {mixolydian})","blocks.scalesFor.title":"{name} for {listed}{outside}","chord.capo.fret":'capo: use a fret from 1 to {max}, got "{text}"',"chord.capo.fretsFrom":'frets-from: use capo (the default) or nut, got "{text}"',"theory.naming.write":"naming: write letters, solfege or german","theory.naming.writeDirective":"naming: write {letters}, {solfege} or {german}","chord.words.ordinalFirst":"1st","chord.words.ordinalSt":"{n}st","chord.words.ordinalNd":"{n}nd","chord.words.ordinalRd":"{n}rd","chord.words.ordinalTh":"{n}th","chord.words.listAnd":"{head} and {last}","chord.words.guitarIndex":"Index","chord.words.guitarMiddle":"Middle","chord.words.guitarRing":"Ring","chord.words.guitarPinky":"Pinky","chord.words.guitarThumb":"Thumb","chord.words.guitarFinger":"Finger {finger}","chord.words.pianoThumb":"thumb","chord.words.pianoIndex":"index finger","chord.words.pianoMiddle":"middle finger","chord.words.pianoRing":"ring finger","chord.words.pianoLittle":"little finger","chord.words.pianoFinger":"finger {finger}","chord.words.lowName":"low {name}","chord.words.highName":"high {name}","chord.words.stringNamed":"the {name} string","chord.words.stringsNamed":"the {names} strings","chord.words.stringNumberedNote":"the {n} string ({note})","chord.words.stringNumbered":"the {n} string","chord.words.capoFrom":"Capo on the {fret} fret: frets count from the capo.","chord.words.capoNut":"Capo on the {fret} fret.","chord.words.allMuted":"Every string is muted: no note sounds.","chord.words.strumSix":"Strum all six strings.","chord.words.strumAll":"Strum every string.","chord.words.strumFrom":"Strum from {from}.","chord.words.strumFromTo":"Strum from {from} to {to}.","chord.words.press":"Press {string} at the {fret} fret.","chord.words.fingerOn":"{finger} on {strings}, {fret} fret.","chord.words.fingerBars":"{finger} bars the {fret} fret, strings {from} to {to}.","chord.words.fingerAlsoOn":"{finger} also on {string}, {fret} fret.","chord.words.muteOne":"Mute {list}: let a fretting finger touch it lightly.","chord.words.mutePlural":"Mute {list}: let a fretting finger touch them lightly.","chord.words.groupRingOpenOne":"The {list} string rings open.","chord.words.groupRingOpenPlural":"The {list} strings ring open.","chord.words.groupRingCapoOne":"The {list} string rings at the capo.","chord.words.groupRingCapoPlural":"The {list} strings ring at the capo.","chord.words.ringOpenOne":"{list} rings open.","chord.words.ringOpenPlural":"{list} ring open.","chord.words.ringCapoOne":"{list} rings at the capo.","chord.words.ringCapoPlural":"{list} ring at the capo.","chord.words.pianoFingerOn":"{finger} on {key}","chord.words.pianoAlsoPlay":"{fingered}, and also play {list}","chord.words.sentence":"{text}.","chord.words.play":"Play {list}.","chord.words.leftHand":"Left hand: {part}.","chord.words.rightHand":"Right hand: {part}.","chord.transition.fingerIndex":"index finger","chord.transition.fingerMiddle":"middle finger","chord.transition.fingerRing":"ring finger","chord.transition.fingerPinky":"pinky","chord.transition.fingerThumb":"thumb","chord.transition.fingerOther":"finger","chord.transition.keep":"Keep your {finger} on {string}'s {fret} fret.","chord.transition.slide":"Slide your {finger} along {string} from fret {from} to {to}.","chord.transition.moveUp":"Move your hand up {shift} frets.","chord.transition.moveDown":"Move your hand down {shift} frets.","chord.transition.lift":"Lift all your fingers together and place them as one shape.","chord.guitar.capoCaption":"Capo {capo}","chord.guitar.capoCaptionSounds":"Capo {capo}, sounds {sounds}","chord.guitar.diagram":"Chord diagram","chord.guitar.diagramTitled":"{title} chord diagram","chord.guitar.rootOnString":"The root is on string {list}.","chord.guitar.rootOnStrings":"The root is on strings {list}.","chord.triads.rootPosition":"root position","chord.triads.firstInversion":"1st inversion","chord.triads.secondInversion":"2nd inversion","theory.formula.chord":"{written} ({root} {words}{bass}): {notes}.","theory.formula.inTheBass":", {bass} in the bass","theory.formula.formula":"Formula {formula}.","theory.formula.alsoWritten":"Also written {list}.","theory.formula.scale":"{title}: {notes}.","theory.formula.steps":"Steps {steps}.","chords.chart.chorus":"Chorus","chords.chart.bridge":"Bridge","chords.chart.tab":"Tab","chords.chart.grid":"Grid","chords.chart.key":"Key {key}","chords.chart.capo":"Capo {capo}","chords.chart.tempo":"{bpm} BPM","chords.chart.transposed":"Transposed {amount}","chords.chart.sounds":"{title} (sounds {sounding})","chords.chart.moreNotDrawn":"{count} more chords not drawn (at most {max})","chords.chart.missing":"No diagram for {names}: give the shape with {how}","chords.chart.howPiano":"{syntax} (semitones above the root, e.g. keys 0 4 7)","chords.chart.howGuitar":"{syntax} (one fret per string, x for a muted one)","chords.define.needsName":"{syntax} needs a chord name: e.g. {example}","chords.define.baseFret":"{at}: base-fret takes one whole number from 1 to 24, e.g. base-fret 3","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","chords.define.keys":"{at}: keys takes semitones above the root, from 0 to {max}, e.g. keys 0 4 7","chords.define.copy":"{at}: {word} takes the name of one chord, e.g. {word} Am","chords.define.unknown":'{at}: unknown "{word}": use base-fret, frets, fingers, keys, copy, display or diagram',"chords.define.fingersCount":"{at}: fingers has {fingers} values for {strings} strings: give one per string (0 for none)","chords.define.reaches":"{at}: the shape reaches fret {top}: frets go up to {max}","chords.directive.diagrams":"{at}: use on, off, top or bottom","chord.shape.open":"Open","chord.shape.caged":"{letter} shape","chord.shape.cagedStrings":"{letter} shape (strings {strings})","chord.shape.power":"Power chord","chord.shape.triad":"Triad","chord.shape.shell":"Shell","chord.shape.drop":"Drop {n} (strings {strings})","chord.shape.hendrix":"Hendrix chord","chord.shape.openBass":"Open bass","chord.shape.openStrings":"Open strings","chord.shape.strings":"Strings {strings}","blocks.function.tonic":"tonic","blocks.function.subdominant":"subdominant","blocks.function.dominant":"dominant","blocks.function.secondaryDominant":"secondary dominant","blocks.function.neapolitan":"neapolitan","blocks.function.borrowed":"borrowed","blocks.function.chromatic":"chromatic","blocks.function.tonicization":"tonicization","blocks.function.passing":"passing","theory.marks.characteristic":", characteristic notes: {notes}","theory.marks.different":", different from the compared scale: {notes}","theory.marks.chordTones":", chord tones: {notes}"};var Xe={"playback.bar":"Playback","playback.diagram":"Diagram","playback.place":"({n} of {total})","playback.playItem":"Play {name}","playback.playAll":"Play all in turn","playback.play":"Play","playback.stop":"Stop","playback.loop":"Loop","playback.countIn":"Count-in","playback.click":"Click","playback.sound":"Sound","playback.guitar":"Guitar","playback.piano":"Piano","playback.tempo":"Tempo (BPM)","playback.unit.bpm":"BPM","playback.unit.ms":"ms","playback.strum":"Strum (ms between strings)","playback.dotted":"counts dotted quarters","playback.strumPattern.bar":"Play the strumming pattern","playback.picking.bar":"Play the picking pattern","playback.progression.bar":"Play the chords in time","playback.progression.play":"Play in time","playback.strumChoice":"Strum","playback.strum.beats":"On the beats","playback.strum.bar":"Once a bar","playback.strum.arpeggio":"Arpeggio","playback.strum.pattern":"Pattern","playback.copy.button":"Copy as image","playback.copy.hint":"Shift+click copies the whole block","playback.copy.bar":"Image","playback.copy.copied":"Copied","playback.copy.refused":"Allow clipboard access for this page, then try again.","playback.copy.unsupported":"This browser can't copy images: use a recent Chrome, Edge, Safari or Firefox.","playback.copy.failed":"The image couldn't be made.","playback.full.enter":"Full screen","playback.full.exit":"Exit full screen","playback.redraw.sounds":"{heading} (sounds {chord})","playback.redraw.guitar":"{name}, drawn for guitar","playback.redraw.piano":"{name}, drawn for piano","playback.engine.invalid":'engine: use generaluser, sonivox or light, got "{value}"',"playback.guitar.invalid":'guitar: use steel, nylon, clean or overdrive, got "{value}"',"tab.source.staves":'staves: use tab, score or both, got "{value}"',"tab.source.layout":'layout: use page or line, got "{value}"',"tab.source.names":'names: use on or off, got "{value}"',"tab.source.tracks":'tracks: use track numbers from 1, got "{value}"',"tab.source.empty":"Write the music in alphaTex, or give a file: {example}","tab.sound.loadFailed":"Couldn't load the soundfont ({url})","tab.error.at":"line {line}, column {column}: ","tab.error.textTab":"Couldn't draw this text tab: {message}","tab.error.fileRead":`Couldn't read "{file}": {message}`,"tab.error.fileMissing":`Couldn't find the file "{file}"`,"tab.error.fileUnknown":`Couldn't read "{file}": not a score file alphaTab knows`,"tab.player.cantPlay":"Can't play: {message}","tab.player.metronome":"Metronome","tab.player.pause":"Pause","tab.names":"Note names","tab.follow":"Follow the music","tab.followPaused":"Follow the music (paused while you scroll: Play or click to follow again)","tab.view.group":"View","tab.view.tab":"Tab","tab.view.score":"Score","tab.view.both":"Both","tab.view.whatTab":"tablature","tab.view.whatScore":"standard notation","tab.view.whatBoth":"standard notation and tablature","tab.view.drawAs":"Draw as {what}","tab.view.drawAsWritten":"Draw as {what} (this block's staves: line)","tab.view.drawAsDefault":"Draw as {what} (the default: the block has no staves: line)","tab.view.keep":"Keep this view","tab.view.keepTitle":"Write staves: {staves} at the top of the block","tab.tempo.group":"Tempo","tab.tempo.slower":"Slower","tab.tempo.faster":"Faster","tab.tempo.toPercent":"Show the speed in percent","tab.tempo.toBpm":"Show the speed in BPM","tab.tempo.reset":"Back to 100 %","tab.tempo.inBpm":"Tempo in BPM","tab.tempo.inPercent":"Speed in percent","tab.tempo.title":"Tempo: {bpm} BPM, {percent} % of {tempo} BPM","tab.tempo.speedTitle":"Speed: {percent} %"};var Ze={"strum.time.invalid":'Invalid time "{text}": use e.g. time: 4/4, 3/4 or 6/8',"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%',"strum.subdivision.invalid":'Invalid subdivision "{text}": use 8ths, 16ths or triplets',"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","strum.triplets.quarterBeat":"Triplets need a quarter-note beat (time: 4/4, 3/4…); for this time use 8ths or 16ths","strum.subdivision.tooLong":"8ths are longer than a beat of x/{unit}: use subdivision: 16ths","strum.chord.notRecognizedTry":`Didn't recognize the chord "{chord}": try {suggestions}`,"strum.chord.empty":'Empty chord "[]": write the chord inside, e.g. [G]',"strum.chord.notRecognized":`Didn't recognize the chord "{chord}"`,"strum.line.bracketMissing":'Missing "]" after "{text}": write e.g. [G]',"strum.line.barInGhost":"A bar line inside ( ): close the ghost strums first","strum.line.accentAndGhost":"A strum is either accented (D>) or a ghost strum ((D)), not both","strum.line.ghostNested":"Ghost strums can't be nested: write (U), not ((U))","strum.line.parenUnopened":'")" without "(": write a ghost strum as (U)',"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","strum.line.notUnderstood":`Didn't understand "{char}" in "{line}": {help}`,"strum.line.accentNeedsStrum":"An accent needs a strum: write D> or U>","strum.line.ghostNoRests":"Write ghost strums as (D) or (U), without rests inside","strum.line.parenUnclosed":'Missing ")" in "{line}": write a ghost strum as (U)',"strum.line.chordEndsPattern":"The chord [{chord}] ends the pattern: put it before a strum or a -","strum.pattern.chordLineAlone":"A chord line needs a pattern line under it, e.g. D - D U - U D U","strum.pattern.missing":"Write a strumming pattern, e.g. D - D U - U D U (or D DU UDU)","strum.key.unknown":'Unknown key "{key}": use time, subdivision, swing, chord, tempo, tuning, title or pattern',"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","strum.swing.compound":"{time} already has three {unit} a beat: remove swing: (it swings 8ths or 16ths in 4/4, 3/4, 2/4…)","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","strum.tempo.invalid":'Invalid tempo "{text}": use beats a minute from {min} to {max}, e.g. tempo: 90',"strum.bars.tooMany":"At most {max} bars in one pattern: split it into several blocks","strum.chord.pastEnd":"The chord {chord} is past the end of its pattern line: move it over a strum","strum.count.bar.one":"{n} bar","strum.count.bar.other":"{n} bars","strum.count.slot.one":"{n} slot","strum.count.slot.other":"{n} slots","strum.count.barsAndSlots":"{bars} and {slots}","strum.count.spill":'{time} in {subdivision} has {perBar} slots a bar, but "{written}" takes {slots} ({count}): put a | where each bar ends{orTime}',"strum.count.spillOrTime":", or write {time}","strum.count.mismatch":'{time} in {subdivision} has {perBar} slots a bar, but "{written}" has {n}: fill each bar with - (no strum){alternatives}',"strum.count.alternative.first":" or write {item}","strum.count.alternative.next":", {item}","strum.count.alternative.last":" or {item}","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.","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.","strum.feel.swing":"Swing","strum.feel.swingPercent":"Swing {percent}%","strum.feel.swing16":"16th swing","strum.feel.swing16Percent":"16th swing {percent}%","strum.name":"Strumming pattern {written}, {time}, {subdivision}{feel}","strum.name.titled":"{title}: strumming pattern {written}, {time}, {subdivision}{feel}","strum.name.feel":", {feel}","strum.tuning.unknown":'Unknown tuning "{tuning}": use e.g. tuning: standard, drop d, ukulele or E2 A2 D3 G3 B3 E4',"strum.tuning.tooManyStrings":"At most 12 strings","strum.tuning.unknownGiven":'Unknown tuning "{tuning}"',"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)","picking.token.notUnderstood":`Didn't understand "{token}": {help}`,"picking.string.missing":"String {n} doesn't exist: strings go from 1 (the highest) to {strings}","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:","picking.bar.betweenBarLines":" between bar lines","picking.key.unknown":'Unknown key "{key}": use time, subdivision, swing, chord, chords, tempo, tuning, title or pattern',"picking.swing.pairs":"Swing plays pairs of 8ths or 16ths inside a beat: remove swing:, or write time: 4/4 with 8ths","picking.tempo.invalid":'Invalid tempo "{text}": use beats a minute from {min} to {max}, e.g. tempo: 80',"picking.pattern.twice":"Write the pattern once: as pattern: or as pattern lines, not both","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","picking.chords.tooMany":"At most {max} chords, found {found}","picking.tuning.unknown":'Unknown tuning "{tuning}": use e.g. tuning: standard, drop d, open g or E2 A2 D3 G3 B3 E4',"picking.name":"Picking pattern {written}, {time}, {subdivision}{over}","picking.name.titled":"{title}: picking pattern {written}, {time}, {subdivision}{over}","picking.name.over":", over {chords}","picking.voicing.none":"No playable voicing of {chord} for this tuning","export.image.title":"Music notation"};var Je={...Ye,...Ke,...Ze,...Xe};var Qe={"render.layout.orientation":"Orientation inconnue « {text} » : utilisez vertical ou horizontal","render.layout.hand":"Main inconnue « {text} » : utilisez left ou right","render.rootMark.invalid":"root-mark : écrivez color ou shape, reçu « {text} »","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","render.unknownChord":"« {written} » n'est pas reconnu : essayez {suggestions}","render.tuning":"Accordage inconnu « {text} »","render.yesNo":"{key} doit valoir yes ou no, reçu « {text} »","render.hand.left":"main gauche","render.hand.right":"main droite","render.positions.exerciseOne":"exercise joue une seule position : écrivez position: 1 (et non positions:)","render.positions.needsSet":"positions demande une gamme ou un accord : par exemple A minor pentatonic ou arpeggio: Am7","render.positions.arpeggioCaged":"Les arpèges utilisent les formes CAGED, pas 3nps : retirez shape","render.positions.range":"positions : utilisez all, ou des nombres de 1 à {count} pour {title}","render.positions.fromMinor":" (depuis {root}m)","render.positions.arpeggioTitle":"Arpège de {title}","render.positions.shapeTitle":"{name}, forme {shape}","render.positions.npsTitle":"{name}, 3nps {n}{from}","render.positions.boxTitle":"{name}, position {n}{from}","render.fingering.handTitle":"{title}, {hand}","render.voicings.notBoth":"Utilisez triads ou voicings, pas les deux","render.voicings.fretted":"voicings sert à la guitare et aux autres instruments à frettes","render.voicings.noFrets":"voicings trouve seul les cases : retirez « {value} »","render.voicings.needsChord":"voicings demande un accord : par exemple A Major","render.voicings.instrument":"Instrument inconnu « {instrument} » : utilisez guitar, ou donnez un accordage","render.voicings.maxStrings":"voicings fonctionne jusqu'à {max} cordes","render.voicings.count":"voicings : utilisez all, ou un nombre de 1 à {max}","render.voicings.area":"area : utilisez open, ou des cases comme 5-9 (jusqu'à 24), reçu « {area} »","render.voicings.rootString":"root-string : utilisez un numéro de corde de 1 (la plus aiguë) à {count}","render.voicings.inversion":"inversion : utilisez 0 (fondamentale), 1, 2, 3 ou any, reçu « {inversion} »","render.voicings.manyStringsAny":"Sur {count} cordes, inversion: any demande six cordes ou moins : ajoutez par exemple strings: 1-6","render.voicings.wideArea":"une zone large","render.voicings.oneWidening":"Sur {count} cordes, utilisez une seule option à la fois parmi {list}","render.noVoicing.gaps":"Les cordes {strings} ne sont pas côte à côte : ajoutez gaps: yes","render.noVoicing.rootString":"root-string {string} ne fait pas partie des cordes {strings}","render.noVoicing.inversion":"{symbol} a {notes} notes : inversion va jusqu'à {max}","render.noVoicing.bass":"Aucun voicing de {chord} n'a sa basse sur la corde {string} : essayez une autre root-string","render.noVoicing.none":"Aucun voicing jouable de {chord} ne convient : élargissez la zone, autorisez les cordes à vide ou ajoutez stretch: yes","render.triads.noFrets":"triads trouve seul les cases : retirez « {value} »","render.triads.fretted":"triads sert à la guitare et aux autres instruments à frettes : donnez un accordage","render.triads.strings":"triads : donnez trois cordes côte à côte, par exemple 1-3 ou 2-4","render.triads.inversion":"inversion : utilisez 0 (position fondamentale), 1, 2 ou any, reçu « {inversion} »","render.triads.keyInversion":"Avec une tonalité, choisissez un seul renversement : 0, 1 ou 2","render.triads.key":"Tonalité inconnue « {text} » : utilisez par exemple key: G major ou key: E minor","render.triads.needsChord":"triads demande un accord (par exemple G) ou une tonalité (key: G major)","render.triads.notTriad":"{symbol} n'est pas une triade (trois notes) : essayez voicings: all","render.triads.none":"Aucune triade ne tient sur ces cordes : essayez un autre groupe de cordes","render.transitions.needsFrom":"Ajoutez l'accord que vous tenez : from: C (avec ses cases : from: C x32010)","render.transitions.fretted":"Les transitions servent à la guitare et aux autres instruments à frettes : donnez un accordage","render.transitions.notBoth":"Utilisez from et to, ou progression, pas les deux","render.transitions.refused":"« {key} » ne peut pas s'utiliser avec {with}","render.transitions.maxStrings":"Les transitions fonctionnent jusqu'à {max} cordes","render.transitions.twoChords":"progression : donnez au moins deux accords, par exemple G D Em C","render.transitions.maxChords":"progression : {max} accords au plus","render.transitions.noVoicings":"Aucun voicing jouable pour cette progression","render.transitions.needsTo":"Ajoutez l'accord suivant : to: D","render.transitions.noHeld":"Aucun voicing jouable de {chord} : ajoutez ses cases","render.transitions.stringCount":"« {frets} » compte {have} cordes, l'accordage {count}","render.transitions.count":"count : utilisez un nombre de 1 à {max}","render.transitions.noTarget":"Aucun voicing jouable de {chord}","render.modes.none":"« {value} » n'a pas de modes : utilisez par exemple modes: C major","render.modes.refused":"« {key} » ne peut pas s'utiliser avec modes : seulement {allowed}","render.row.notShared":"« {key} » ne peut pas être partagé : déplacez-le dans un diagramme. Réglages partagés : {allowed}","render.row.columns":"columns doit être un nombre entier de 1 à 12, reçu « {text} »","render.row.needsDiagram":"Ajoutez un diagramme après les réglages partagés : une ligne « --- », puis le diagramme","render.row.max":"{max} diagrammes au plus par bloc, {found} trouvés","render.row.columnsShared":"« columns » va dans les réglages partagés, avant le premier « --- »","render.row.ownRow":"« {key} » dessine sa propre rangée : utilisez-le dans un bloc à part","render.row.exercise":"exercise dessine une tablature sous un seul diagramme : utilisez-le dans un bloc à part","render.row.diagram":"diagramme {n} : {message}","render.row.sharedHint":" (les réglages partagés avant le premier « --- » ne peuvent contenir que : {allowed})","fretboard.capo":"Capodastre {fret}","fretboard.title":"Manche : {title}","fretboard.note.open":"{note} à vide","fretboard.note.fret":"{note} case {fret}","fretboard.note.root":" (fondamentale)","fretboard.string":"Corde {n} ({name}) : {notes}.","fretboard.pick.open":"Corde {string}, à vide","fretboard.pick.fret":"Corde {string}, case {fret}","fretboard.exercise.direction":"exercise : utilisez up, down ou up-down, reçu « {text} »","fretboard.exercise.rhythm":"rhythm : utilisez 8ths, triplets ou 16ths, reçu « {text} »","fretboard.exercise.scale":"Gamme inconnue « {text} »","fretboard.exercise.chord":"Accord inconnu « {text} »","fretboard.exercise.needsSet":"Un exercice demande une gamme ou un arpège : par exemple scale: A minor ou arpeggio: Am7","fretboard.exercise.arpeggioCaged":"Les arpèges utilisent les formes CAGED : position 1 à 5, ou shape: E, D, C, A ou G (pas 3nps)","fretboard.exercise.positions":"{title} a {count} positions {system} : utilisez position 1 à {count}","fretboard.exercise.tuning":"Accordage inconnu « {text} »","fretboard.exercise.capo":"capo : utilisez une case de 1 à 12 (0 pour aucun), reçu {text}","fretboard.positions.numbering":"numbering : utilisez minor (positions depuis le relatif mineur), reçu « {text} »","fretboard.positions.numberingPentatonic":"numbering: minor sert aux positions de la pentatonique majeure (par exemple A major pentatonic), pas à {title}","fretboard.positions.numberingCaged":"numbering: minor numérote les positions (« box ») et 3nps, pas les formes CAGED","fretboard.positions.position":"position doit être un nombre entier à partir de 1, reçu « {text} »","fretboard.positions.shape":"Forme inconnue « {text} » : utilisez C, A, G, E, D ou 3nps","keyboard.fingering.finger":"fingering : les doigts vont de 1 (pouce) à 5 (auriculaire), reçu « {text} »","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","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","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","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}","keyboard.piano.octave":"octave : utilisez un nombre de 0 à 8, reçu « {text} »","keyboard.piano.inversion":"inversion : utilisez 0 (position fondamentale), 1, 2 ou 3, reçu « {text} »","keyboard.piano.slashInversion":"{symbol} indique déjà sa basse : retirez inversion","keyboard.piano.inversionStyle":"inversion va avec les voicings close ou open, pas {style}","keyboard.piano.inversionMax":"{symbol} a {notes} notes : inversion va jusqu'à {max}","keyboard.piano.open":"Les voicings open demandent trois notes ou plus : {symbol} en a {notes}","keyboard.piano.offKeys":"octave {octave} place {symbol} hors du clavier du piano : essayez octave 3 ou 4","keyboard.piano.inversionWord":"inversion : utilisez root, first, second, third (ou 0 à 3), reçu « {text} »","keyboard.piano.octaveMiddle":"octave : utilisez un nombre de 0 à 8 (4 est celle du do central), reçu « {text} »","keyboard.piano.voicing":"voicing : utilisez close, open, shell, shell R-7, rootless A ou rootless B, reçu « {text} »","keyboard.piano.key":"Tonalité inconnue « {text} » : utilisez par exemple key: C minor ou key: Eb","keyboard.piano.resolvesTo":"resolves-to : écrivez un accord, par exemple resolves-to: Cm, reçu « {text} »","keyboard.piano.hands":"hands : utilisez left+right, left ou right, reçu « {text} »","keyboard.title":"Clavier : {title}","keyboard.hand":"{hand} : {keys}","keyboard.handMark.left":"MG","keyboard.handMark.right":"MD","keyboard.whiteKey":"Touche blanche {n}","keyboard.blackKey":"Touche noire {n}","keyboard.lit.root":"fondamentale","keyboard.lit.finger":"doigt {finger}","keyboard.lit.keys":"Touches : {keys}.","circle.label":"Cycle des quintes, {key} : {signature}{accidentals} ; accords : {chords}","circle.or":"ou","circle.mode.major":"majeur","circle.mode.minor":"mineur","circle.mode.ionian":"ionien","circle.mode.dorian":"dorien","circle.mode.phrygian":"phrygien","circle.mode.lydian":"lydien","circle.mode.mixolydian":"mixolydien","circle.mode.aeolian":"éolien","circle.mode.locrian":"locrien","circle.key":"Tonalité inconnue « {text} » : utilisez par exemple key: G, key: Em ou key: D dorian","circle.mode":"Mode inconnu « {text} » : utilisez major, minor, dorian, phrygian, lydian, mixolydian ou locrian","circle.modeTwice":"key: {key} indique déjà {mode} : retirez mode ou écrivez seulement la note de la tonalité","circle.chords":"chords : utilisez triads ou sevenths, reçu « {text} »","circle.dominant":"dominant : utilisez major (V, issu du mineur harmonique) ou minor (v), reçu « {text} »","keyboard.piano.unknownChord":"Accord inconnu « {symbol} »"};var et={"blocks.source.expected":'Attendu "clé: valeur", reçu "{line}"',"blocks.source.strings":"strings: utilisez des numéros de corde de 1 (la plus aiguë) à {count}, par ex. 1-4","blocks.caption.fingeringChordOnly":"caption: fingering ne sert qu'aux blocs d'accord : utilisez formula ou none ici","blocks.caption.useAll":'caption: utilisez fingering (le doigté en toutes lettres), formula (notes et intervalles), fingering, formula (les deux) ou none, reçu "{written}"',"blocks.caption.useFormula":'caption: utilisez formula (notes et intervalles) ou none, reçu "{written}"',"blocks.noteSet.chordOrArpeggio":"Utilisez chord ou arpeggio, pas les deux","blocks.noteSet.invalidRoot":'Fondamentale "{root}" invalide : utilisez un nom de note, par ex. root: C',"blocks.noteSet.notAList":`"{head}" n'est pas une liste de notes : utilisez par ex. notes: C Eb G`,"blocks.noteSet.addNotesForRoot":"Ajoutez les notes de la fondamentale : par ex. notes: C Eb G","blocks.noteSet.addRoot":"Ajoutez une fondamentale : C {scale}","blocks.noteSet.addSource":'Ajoutez "scale:", "chord:" ou "notes:"',"blocks.noteSet.rootListsOnlyScale":"root ne s'applique qu'aux listes de notes (notes: C E G) : une gamme a sa propre fondamentale","blocks.noteSet.rootListsOnlyChord":"root ne s'applique qu'aux listes de notes (notes: C E G) : un accord a sa propre fondamentale","blocks.noteSet.unknownLabelsFingers":'labels "{value}" inconnu : utilisez notes, degrees, intervals, fingers ou none',"blocks.noteSet.unknownLabels":'labels "{value}" inconnu : utilisez notes, degrees, intervals ou none',"blocks.noteSet.invalidNotes":'Notes "{notes}" invalides',"blocks.noteSet.unknownScale":'Gamme "{scale}" inconnue',"blocks.noteSet.unknownChord":'Accord "{chord}" inconnu',"blocks.noteSet.notAScaleChordOrList":`"{head}" n'est ni une gamme, ni un accord, ni une liste de notes`,"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)","blocks.noteSet.notInSet":`"{label}" n'est pas dans {title} : utilisez ses intervalles (R, b3, 5…)`,"theory.key.needsSharps":"{name} demande {count} dièses : écrivez {write}","theory.key.needsFlats":"{name} demande {count} bémols : écrivez {write}","theory.key.noSignature":"sans ♯ ni ♭","theory.harmonize.unknownScale":'Gamme "{text}" inconnue : utilisez par ex. key: G major, key: A harmonic minor ou key: D dorian',"theory.harmonize.sevenNotes":"harmonize demande une gamme de 7 notes : {name} en a {count}","theory.harmonize.noNamedChord":"pas un accord nommé","theory.harmonize.noFifth":"pas de quinte juste","theory.harmonize.noFourthOrSecond":"pas de quarte juste ni de seconde majeure","blocks.progression.yesNo":'{key} doit valoir yes ou no, reçu "{text}"',"blocks.progression.majorMinorKeys":`Les tonalités d'une progression sont majeures ou mineures : écrivez key: {tonic} major ou key: {tonic} minor, reçu "{text}"`,"blocks.progression.unknownKey":'Tonalité "{text}" inconnue : utilisez par ex. key: G, key: Em ou key: F# minor',"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)`,"blocks.progression.harmonizeKind":'harmonize : écrivez triads, sevenths, sus ou power, reçu "{kind}"',"blocks.progression.harmonizeNothing":"harmonize : écrivez triads, sevenths, sus ou power, rien reçu","blocks.progression.harmonizeNoChords":"harmonize dessine les accords de la gamme : retirez les accords ({written})","blocks.progression.addScale":"Ajoutez la gamme : par ex. key: A harmonic minor","blocks.progression.transposeWhole":"transpose doit être un nombre entier de demi-tons, par ex. transpose: -2","blocks.progression.addChords":"Ajoutez les accords : par ex. I V vi IV avec key: G, 1 5 6m 4, ou G D Em C","blocks.progression.addKey":"Ajoutez la tonalité : par ex. key: G ou key: E minor","blocks.progression.unknownTuning":'Accordage "{text}" inconnu',"blocks.progression.tempo":'tempo: écrivez un nombre de temps par minute de {min} à {max}, reçu "{text}"',"blocks.progression.strum":"strum: écrivez beats, bar, arpeggio ou un rythme de grattage (D DU UDU) : {reason}","blocks.progression.key":"Tonalité : {name}","blocks.progression.blues":"(blues)","blocks.progression.orKeys":"(ou {list})","blocks.progression.leftOut":"Écartés : {list}","blocks.progression.leftOutDegree":"degré {degree} ({note}), {reason}","blocks.progression.unknownInstrument":'Instrument "{instrument}" inconnu : utilisez guitar ou piano',"blocks.progression.numerals":'numerals: utilisez roman, nashville ou none, reçu "{style}"',"blocks.progression.voiceLeadingPiano":"voice-leading ne sert qu'au piano : ajoutez instrument: piano","blocks.progression.pianoOnly":"{key} ne sert qu'aux accords de piano : ajoutez instrument: piano","blocks.progression.voiceLeadingHands":"voice-leading va avec hands: left+right (une basse à la main gauche sous chaque accord), pas avec une seule main","blocks.progression.voiceLeadingOrKey":"Utilisez voice-leading ou {key}, pas les deux","blocks.progression.addChordsAfterShared":'Ajoutez les accords après les réglages communs, après une ligne "---"',"blocks.progression.maxChords":"Au plus {max} accords par bloc, {count} trouvés","theory.chord.suggest":"{root}, {root}m, {root}7 ou {spelled} {quality}","blocks.render.maxStrings":"Au plus {max} cordes","blocks.render.invalidRange":'Étendue "{text}" invalide : utilisez par ex. C3-B4',"blocks.render.maxKeys":"Au plus {max} touches : donnez une étendue plus petite, par ex. range: C3-B5","blocks.render.wholeFrom1":'{what} doit être un nombre entier à partir de 1, reçu "{text}"',"blocks.render.unrecognized":`"{written}" n'est pas reconnu : essayez {suggestions}`,"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","blocks.chord.capoNotPiano":"capo ne sert qu'à la guitare et aux autres instruments à frettes, pas au piano","blocks.chord.pitchesGivenKeys":"{given} va avec un symbole d'accord : pitches donne déjà les touches à jouer","blocks.chord.autoNeedsSymbol":"fingering: auto va avec un symbole d'accord : écrivez les doigts, par ex. 1 3 5","blocks.chord.invalidPitches":'Hauteurs "{text}" invalides',"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","blocks.chord.addSymbolOrPitches":`Ajoutez un symbole d'accord ou "pitches:"`,"blocks.chord.unknownInstrument":'Instrument "{instrument}" inconnu : utilisez guitar ou piano, ou donnez un accordage',"blocks.chord.invalidFrets":'Cases "{text}" invalides : utilisez par ex. x02220',"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çà","blocks.chord.capoMaxFret":"Avec un capodastre en {capo}, les cases vont jusqu'à {max}","blocks.chord.fingersCount":'"{text}" donne {fingers} doigts pour {strings} cordes',"blocks.chord.noVoicing":'Aucun voicing {n} trouvé pour "{symbol}" : ajoutez "frets:"',"blocks.chord.addFretsFor":'Ajoutez "frets:" pour {symbol} (par ex. frets: x02220)',"blocks.chord.addSymbolAndFrets":`Ajoutez un symbole d'accord et "frets:"`,"blocks.chord.positionAboveLowest":"position {base} est au-dessus de la note frettée la plus grave (case {fret})","blocks.chord.tuningStrings":"L'accordage a {tuning} cordes, les cases {frets}","blocks.chord.soundsTitle":"{sounding} (forme {shape})","blocks.chord.captionFormulaChord":"caption: formula demande un accord que la bibliothèque connaît : ajoutez son symbole (par ex. symbol: A)","blocks.chord.captionFormulaSet":"caption: formula demande un accord ou une gamme que la bibliothèque connaît : ajoutez chord: ou scale:","blocks.chord.soundsTitleNeedsChord":"sounds: title demande un accord que la bibliothèque connaît : ajoutez son symbole (par ex. symbol: A)","blocks.chord.soundsNeedsCapo":"sounds va avec un capodastre : ajoutez par ex. capo: 2","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","blocks.chord.soundsMismatch":"Avec un capodastre en {capo}, {shape} sonne {sounding}, pas {value} : écrivez sounds: {sounding} (ou sounds: yes)","blocks.chord.unknownLabels":'labels "{text}" inconnu : utilisez fingers, intervals, notes ou none',"blocks.chord.labelsNeedChord":"labels: {value} demande un accord que la bibliothèque connaît","blocks.keyboard.autoBothAlone":"fingering: auto both dessine deux claviers : mettez-le dans un bloc à part, pas dans une rangée séparée par ---","blocks.keyboard.fingersCount":"fingering donne {fingers} doigts : {title} en demande {needed}, un par note de la fondamentale à la fondamentale supérieure","blocks.keyboard.fingersForNotes":"fingering donne {fingers} doigts pour {notes} notes : un doigt par note, dans l'ordre écrit","blocks.keyboard.keyTwice":"Une touche est citée deux fois : un doigt par touche","blocks.keyboard.pastRange":"Les notes doigtées dépassent l'étendue : élargissez range: ou retirez-le","blocks.keyboard.handTitleLeft":"{title}, main gauche","blocks.keyboard.handTitleRight":"{title}, main droite","blocks.fretboard.invalidFrets":'Cases "{text}" invalides : utilisez par ex. 5-8',"blocks.fretboard.maxFret":"Les cases vont jusqu'à {max}","blocks.fretboard.nutStartsAtCapo":"Avec frets-from: nut, les cases commencent au capodastre ({capo}) ou au-delà : par ex. frets: {capo}-{example}","blocks.fretboard.numberingNeedsPosition":"numbering va avec une position : par ex. position: 1 ou positions: all","blocks.fretboard.positionsNeedSet":"Les positions demandent une gamme ou un accord : par ex. scale: A minor ou arpeggio: Am7","blocks.fretboard.arpeggioCaged":"Les arpèges utilisent les formes CAGED : position 1 à 5, ou shape: E, D, C, A ou G (pas 3nps)","blocks.fretboard.positionCount":"{title} a {count} positions {named} : utilisez position 1 à {count}","blocks.fretboard.positionNotFit":"{title}, la position {n} ne tient pas dans les cases {from}-{to} : élargissez frets: ou retirez-le","blocks.fretboard.rhythmNeedsExercise":"rhythm va avec exercise : par ex. exercise: up-down","blocks.fretboard.exerciseNeedsPosition":"exercise joue une position : ajoutez position: 1 (ou shape: E)","blocks.fretboard.invalidTempo":'Tempo "{text}" invalide : utilisez un nombre de temps par minute de 20 à 240, par ex. tempo: 80',"blocks.fretboard.arpeggioTitle":"{name} (arpège)","blocks.fretboard.fromMinor":" (depuis {minor}m)","blocks.fretboard.shapeTitle":"{name}, forme {shape}","blocks.fretboard.threeNpsTitle":"{name}, 3nps {n}{from}","blocks.fretboard.boxTitle":"{name}, position {n}{from}","blocks.scalesFor.both":"Utilisez scales-for (accords) ou scales-for-notes, pas les deux","blocks.scalesFor.findsItself":'{key} trouve la gamme seul : retirez "{what}"',"blocks.scalesFor.addChords":"Ajoutez les accords : par ex. scales-for: G D Em C","blocks.scalesFor.addNotes":"Ajoutez les notes : par ex. scales-for-notes: C D E G A","blocks.scalesFor.unreadChords":`Accords "{text}" non compris : utilisez des symboles d'accord, par ex. scales-for: G D Em C`,"blocks.scalesFor.unreadNotes":'Notes "{text}" non comprises : utilisez des noms de notes, par ex. scales-for-notes: C D E G A',"blocks.scalesFor.outside":", {notes} en dehors","blocks.scalesFor.bluesTitle":"Gamme blues de {tonic} pour {listed} (ou {pentatonic}, {mixolydian})","blocks.scalesFor.title":"{name} pour {listed}{outside}","chord.capo.fret":'capo: utilisez une case de 1 à {max}, reçu "{text}"',"chord.capo.fretsFrom":'frets-from: utilisez capo (par défaut) ou nut, reçu "{text}"',"theory.naming.write":"naming: écrivez letters, solfege ou german","theory.naming.writeDirective":"naming: écrivez {letters}, {solfege} ou {german}","chord.words.ordinalFirst":"1re","chord.words.ordinalSt":"{n}e","chord.words.ordinalNd":"{n}e","chord.words.ordinalRd":"{n}e","chord.words.ordinalTh":"{n}e","chord.words.listAnd":"{head} et {last}","chord.words.guitarIndex":"Index","chord.words.guitarMiddle":"Majeur","chord.words.guitarRing":"Annulaire","chord.words.guitarPinky":"Auriculaire","chord.words.guitarThumb":"Pouce","chord.words.guitarFinger":"Doigt {finger}","chord.words.pianoThumb":"pouce","chord.words.pianoIndex":"index","chord.words.pianoMiddle":"majeur","chord.words.pianoRing":"annulaire","chord.words.pianoLittle":"auriculaire","chord.words.pianoFinger":"doigt {finger}","chord.words.lowName":"{name} grave","chord.words.highName":"{name} aiguë","chord.words.stringNamed":"la corde {name}","chord.words.stringsNamed":"les cordes {names}","chord.words.stringNumberedNote":"la {n} corde ({note})","chord.words.stringNumbered":"la {n} corde","chord.words.capoFrom":"Capodastre sur la {fret} case : les cases se comptent à partir du capodastre.","chord.words.capoNut":"Capodastre sur la {fret} case.","chord.words.allMuted":"Toutes les cordes sont étouffées : aucune note ne sonne.","chord.words.strumSix":"Grattez les six cordes.","chord.words.strumAll":"Grattez toutes les cordes.","chord.words.strumFrom":"Grattez à partir de {from}.","chord.words.strumFromTo":"Grattez de {from} à {to}.","chord.words.press":"Appuyez sur {string}, à la {fret} case.","chord.words.fingerOn":"{finger} sur {strings}, {fret} case.","chord.words.fingerBars":"{finger} fait le barré à la {fret} case, cordes {from} à {to}.","chord.words.fingerAlsoOn":"{finger} aussi sur {string}, {fret} case.","chord.words.muteOne":"Étouffez {list} : laissez un doigt de l'accord l'effleurer.","chord.words.mutePlural":"Étouffez {list} : laissez un doigt de l'accord les effleurer.","chord.words.groupRingOpenOne":"La corde {list} sonne à vide.","chord.words.groupRingOpenPlural":"Les cordes {list} sonnent à vide.","chord.words.groupRingCapoOne":"La corde {list} sonne au capodastre.","chord.words.groupRingCapoPlural":"Les cordes {list} sonnent au capodastre.","chord.words.ringOpenOne":"{list} sonne à vide.","chord.words.ringOpenPlural":"{list} sonnent à vide.","chord.words.ringCapoOne":"{list} sonne au capodastre.","chord.words.ringCapoPlural":"{list} sonnent au capodastre.","chord.words.pianoFingerOn":"{finger} sur {key}","chord.words.pianoAlsoPlay":"{fingered}, et jouez aussi {list}","chord.words.sentence":"{text}.","chord.words.play":"Jouez {list}.","chord.words.leftHand":"Main gauche : {part}.","chord.words.rightHand":"Main droite : {part}.","chord.transition.fingerIndex":"l'index","chord.transition.fingerMiddle":"le majeur","chord.transition.fingerRing":"l'annulaire","chord.transition.fingerPinky":"l'auriculaire","chord.transition.fingerThumb":"le pouce","chord.transition.fingerOther":"le doigt","chord.transition.keep":"Gardez {finger} sur la {fret} case de {string}.","chord.transition.slide":"Faites glisser {finger} le long de {string}, de la case {from} à la case {to}.","chord.transition.moveUp":"Déplacez la main de {shift} cases vers le haut.","chord.transition.moveDown":"Déplacez la main de {shift} cases vers le bas.","chord.transition.lift":"Levez tous les doigts ensemble et posez-les d'un bloc.","chord.guitar.capoCaption":"Capodastre {capo}","chord.guitar.capoCaptionSounds":"Capodastre {capo}, sonne {sounds}","chord.guitar.diagram":"Diagramme d'accord","chord.guitar.diagramTitled":"Diagramme de l'accord {title}","chord.guitar.rootOnString":"La fondamentale est sur la corde {list}.","chord.guitar.rootOnStrings":"La fondamentale est sur les cordes {list}.","chord.triads.rootPosition":"état fondamental","chord.triads.firstInversion":"1er renversement","chord.triads.secondInversion":"2e renversement","theory.formula.chord":"{written} ({root} {words}{bass}) : {notes}.","theory.formula.inTheBass":", {bass} à la basse","theory.formula.formula":"Formule {formula}.","theory.formula.alsoWritten":"S'écrit aussi {list}.","theory.formula.scale":"{title} : {notes}.","theory.formula.steps":"Intervalles {steps}.","chords.chart.chorus":"Refrain","chords.chart.bridge":"Pont","chords.chart.tab":"Tablature","chords.chart.grid":"Grille d'accords","chords.chart.key":"Tonalité {key}","chords.chart.capo":"Capodastre {capo}","chords.chart.tempo":"{bpm} BPM","chords.chart.transposed":"Transposé de {amount}","chords.chart.sounds":"{title} (sonne {sounding})","chords.chart.moreNotDrawn":"{count} accords de plus non dessinés (au plus {max})","chords.chart.missing":"Pas de diagramme pour {names} : donnez la forme avec {how}","chords.chart.howPiano":"{syntax} (demi-tons au-dessus de la fondamentale, par ex. keys 0 4 7)","chords.chart.howGuitar":"{syntax} (une case par corde, x pour une corde étouffée)","chords.define.needsName":"{syntax} demande un nom d'accord : par ex. {example}","chords.define.baseFret":"{at} : base-fret prend un nombre entier de 1 à 24, par ex. base-fret 3","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","chords.define.keys":"{at} : keys prend des demi-tons au-dessus de la fondamentale, de 0 à {max}, par ex. keys 0 4 7","chords.define.copy":"{at} : {word} prend le nom d'un seul accord, par ex. {word} Am","chords.define.unknown":'{at} : "{word}" est inconnu : utilisez base-fret, frets, fingers, keys, copy, display ou diagram',"chords.define.fingersCount":"{at} : fingers a {fingers} valeurs pour {strings} cordes : donnez-en une par corde (0 pour aucune)","chords.define.reaches":"{at} : la forme atteint la case {top} : les cases vont jusqu'à {max}","chords.directive.diagrams":"{at} : utilisez on, off, top ou bottom","chord.shape.open":"Accord ouvert","chord.shape.caged":"forme {letter}","chord.shape.cagedStrings":"forme {letter} (cordes {strings})","chord.shape.power":"Power chord","chord.shape.triad":"Triade","chord.shape.shell":"Shell","chord.shape.drop":"Drop {n} (cordes {strings})","chord.shape.hendrix":"Accord Hendrix","chord.shape.openBass":"Basse à vide","chord.shape.openStrings":"Cordes à vide","chord.shape.strings":"Cordes {strings}","blocks.function.tonic":"tonique","blocks.function.subdominant":"sous-dominante","blocks.function.dominant":"dominante","blocks.function.secondaryDominant":"dominante secondaire","blocks.function.neapolitan":"napolitaine","blocks.function.borrowed":"emprunté","blocks.function.chromatic":"chromatique","blocks.function.tonicization":"tonicisation","blocks.function.passing":"de passage","theory.marks.characteristic":", notes caractéristiques : {notes}","theory.marks.different":", différentes de la gamme comparée : {notes}","theory.marks.chordTones":", notes de l'accord : {notes}"};var tt={"playback.bar":"Lecture","playback.diagram":"Diagramme","playback.place":"({n} sur {total})","playback.playItem":"Lire : {name}","playback.playAll":"Tout lire à la suite","playback.play":"Lecture","playback.stop":"Arrêter","playback.loop":"Boucle","playback.countIn":"Décompte","playback.click":"Clic","playback.sound":"Son","playback.guitar":"Guitare","playback.piano":"Piano","playback.tempo":"Tempo (BPM)","playback.unit.bpm":"BPM","playback.unit.ms":"ms","playback.strum":"Grattage (ms entre les cordes)","playback.dotted":"compte des noires pointées","playback.strumPattern.bar":"Lire le motif de grattage","playback.picking.bar":"Lire le motif de picking","playback.progression.bar":"Lire les accords en rythme","playback.progression.play":"Lire en rythme","playback.strumChoice":"Grattage","playback.strum.beats":"À chaque temps","playback.strum.bar":"Une fois par mesure","playback.strum.arpeggio":"Arpège","playback.strum.pattern":"Motif","playback.copy.button":"Copier comme image","playback.copy.hint":"Maj+clic copie tout le bloc","playback.copy.bar":"Image","playback.copy.copied":"Copié","playback.copy.refused":"Autorisez l'accès au presse-papiers pour cette page, puis réessayez.","playback.copy.unsupported":"Ce navigateur ne peut pas copier d'images : utilisez une version récente de Chrome, Edge, Safari ou Firefox.","playback.copy.failed":"L'image n'a pas pu être créée.","playback.full.enter":"Plein écran","playback.full.exit":"Quitter le plein écran","playback.redraw.sounds":"{heading} (sonne {chord})","playback.redraw.guitar":"{name}, dessiné pour la guitare","playback.redraw.piano":"{name}, dessiné pour le piano","playback.engine.invalid":"engine: utilisez generaluser, sonivox ou light, reçu « {value} »","playback.guitar.invalid":"guitar: utilisez steel, nylon, clean ou overdrive, reçu « {value} »","tab.source.staves":"staves: utilisez tab, score ou both, reçu « {value} »","tab.source.layout":"layout: utilisez page ou line, reçu « {value} »","tab.source.names":"names: utilisez on ou off, reçu « {value} »","tab.source.tracks":"tracks: utilisez des numéros de piste à partir de 1, reçu « {value} »","tab.source.empty":"Écrivez la musique en alphaTex, ou indiquez un fichier : {example}","tab.sound.loadFailed":"Impossible de charger la banque de sons ({url})","tab.error.at":"ligne {line}, colonne {column} : ","tab.error.textTab":"Impossible de dessiner cette tablature en texte : {message}","tab.error.fileRead":"Impossible de lire « {file} » : {message}","tab.error.fileMissing":"Fichier « {file} » introuvable","tab.error.fileUnknown":"Impossible de lire « {file} » : ce n'est pas un fichier de partition connu d'alphaTab","tab.player.cantPlay":"Lecture impossible : {message}","tab.player.metronome":"Métronome","tab.player.pause":"Pause","tab.names":"Noms des notes","tab.follow":"Suivre la musique","tab.followPaused":"Suivre la musique (en pause pendant que vous faites défiler : lancez la lecture ou cliquez pour suivre de nouveau)","tab.view.group":"Vue","tab.view.tab":"Tablature","tab.view.score":"Partition","tab.view.both":"Les deux","tab.view.whatTab":"tablature","tab.view.whatScore":"notation standard","tab.view.whatBoth":"notation standard et tablature","tab.view.drawAs":"Afficher en {what}","tab.view.drawAsWritten":"Afficher en {what} (la ligne staves: du bloc)","tab.view.drawAsDefault":"Afficher en {what} (valeur par défaut : le bloc n'a pas de ligne staves:)","tab.view.keep":"Conserver cette vue","tab.view.keepTitle":"Écrire staves: {staves} en haut du bloc","tab.tempo.group":"Tempo","tab.tempo.slower":"Plus lent","tab.tempo.faster":"Plus rapide","tab.tempo.toPercent":"Afficher la vitesse en pourcentage","tab.tempo.toBpm":"Afficher la vitesse en BPM","tab.tempo.reset":"Revenir à 100 %","tab.tempo.inBpm":"Tempo en BPM","tab.tempo.inPercent":"Vitesse en pourcentage","tab.tempo.title":"Tempo : {bpm} BPM, {percent} % de {tempo} BPM","tab.tempo.speedTitle":"Vitesse : {percent} %"};var nt={"strum.time.invalid":"Chiffrage « {text} » invalide : écrivez par exemple time: 4/4, 3/4 ou 6/8","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%","strum.subdivision.invalid":"Subdivision « {text} » invalide : utilisez 8ths, 16ths ou triplets","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","strum.triplets.quarterBeat":"Les triolets demandent un temps à la noire (time: 4/4, 3/4…) ; pour ce chiffrage, utilisez 8ths ou 16ths","strum.subdivision.tooLong":"Les croches sont plus longues qu’un temps de x/{unit} : écrivez subdivision: 16ths","strum.chord.notRecognizedTry":"Accord « {chord} » non reconnu : essayez {suggestions}","strum.chord.empty":"Accord vide « [] » : écrivez l’accord entre les crochets, par exemple [G]","strum.chord.notRecognized":"Accord « {chord} » non reconnu","strum.line.bracketMissing":"« ] » manquant après « {text} » : écrivez par exemple [G]","strum.line.barInGhost":"Une barre de mesure à l’intérieur de ( ) : fermez d’abord les coups fantômes","strum.line.accentAndGhost":"Un coup est soit accentué (D>), soit fantôme ((D)), pas les deux","strum.line.ghostNested":"Les coups fantômes ne peuvent pas être imbriqués : écrivez (U), pas ((U))","strum.line.parenUnopened":"« ) » sans « ( » : écrivez un coup fantôme ainsi : (U)","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","strum.line.notUnderstood":"« {char} » non compris dans « {line} » : {help}","strum.line.accentNeedsStrum":"Un accent demande un coup : écrivez D> ou U>","strum.line.ghostNoRests":"Écrivez les coups fantômes (D) ou (U), sans silence à l’intérieur","strum.line.parenUnclosed":"« ) » manquant dans « {line} » : écrivez un coup fantôme ainsi : (U)","strum.line.chordEndsPattern":"L’accord [{chord}] termine le rythme : placez-le avant un coup ou un -","strum.pattern.chordLineAlone":"Une ligne d’accords demande une ligne de rythme dessous, par exemple D - D U - U D U","strum.pattern.missing":"Écrivez une rythmique, par exemple D - D U - U D U (ou D DU UDU)","strum.key.unknown":"Clé « {key} » inconnue : utilisez time, subdivision, swing, chord, tempo, tuning, title ou pattern","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","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…)","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","strum.tempo.invalid":"Tempo « {text} » invalide : utilisez un nombre de temps par minute de {min} à {max}, par exemple tempo: 90","strum.bars.tooMany":"{max} mesures au plus dans un rythme : découpez-le en plusieurs blocs","strum.chord.pastEnd":"L’accord {chord} dépasse la fin de sa ligne de rythme : déplacez-le au-dessus d’un coup","strum.count.bar.one":"{n} mesure","strum.count.bar.other":"{n} mesures","strum.count.slot.one":"{n} position","strum.count.slot.other":"{n} positions","strum.count.barsAndSlots":"{bars} et {slots}","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}","strum.count.spillOrTime":", ou écrivez {time}","strum.count.mismatch":"{time} en {subdivision} compte {perBar} positions par mesure, mais « {written} » en a {n} : remplissez chaque mesure avec - (pas de coup){alternatives}","strum.count.alternative.first":" ou écrivez {item}","strum.count.alternative.next":", {item}","strum.count.alternative.last":" ou {item}","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.","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.","strum.feel.swing":"Swing","strum.feel.swingPercent":"Swing {percent} %","strum.feel.swing16":"Swing en doubles croches","strum.feel.swing16Percent":"Swing en doubles croches {percent} %","strum.name":"Rythmique {written}, {time}, {subdivision}{feel}","strum.name.titled":"{title} : rythmique {written}, {time}, {subdivision}{feel}","strum.name.feel":", {feel}","strum.tuning.unknown":"Accordage « {tuning} » inconnu : utilisez par exemple tuning: standard, drop d, ukulele ou E2 A2 D3 G3 B3 E4","strum.tuning.tooManyStrings":"12 cordes au plus","strum.tuning.unknownGiven":"Accordage « {tuning} » inconnu","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)","picking.token.notUnderstood":"« {token} » non compris : {help}","picking.string.missing":"La corde {n} n’existe pas : les cordes vont de 1 (la plus aiguë) à {strings}","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:","picking.bar.betweenBarLines":" entre les barres de mesure","picking.key.unknown":"Clé « {key} » inconnue : utilisez time, subdivision, swing, chord, chords, tempo, tuning, title ou pattern","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","picking.tempo.invalid":"Tempo « {text} » invalide : utilisez un nombre de temps par minute de {min} à {max}, par exemple tempo: 80","picking.pattern.twice":"Écrivez le motif une seule fois : avec pattern: ou avec des lignes de motif, pas les deux","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","picking.chords.tooMany":"{max} accords au plus, {found} trouvés","picking.tuning.unknown":"Accordage « {tuning} » inconnu : utilisez par exemple tuning: standard, drop d, open g ou E2 A2 D3 G3 B3 E4","picking.name":"Motif de picking {written}, {time}, {subdivision}{over}","picking.name.titled":"{title} : motif de picking {written}, {time}, {subdivision}{over}","picking.name.over":", sur {chords}","picking.voicing.none":"Aucune position jouable de {chord} pour cet accordage","export.image.title":"Notation musicale"};var ot={...et,...Qe,...nt,...tt};var ce={en:Je,fr:ot},un=Object.keys(ce);function X(e){if(typeof e!=="string")return null;let t=e.trim().toLowerCase().split(/[-_]/)[0];return un.includes(t)?t:null}var Z="en";function Ee(e,t){let n=Z;Z=e??Z;try{return t()}finally{Z=n}}function dn(e,t){if(!t)return e;return e.replace(/\{(\w+)\}/g,(n,o)=>(o in t)?String(t[o]):n)}function ue(e){return(t,...n)=>dn(ce[e][t]??ce.en[t],n[0])}var V=()=>ue(Z),I=(e,...t)=>ue(Z)(e,...t);var mn=["letters","solfege","german"],pn=()=>I("theory.naming.write");var gn=(e)=>e.trim().toLowerCase().normalize("NFD").replace(/[̀-ͯ]/g,"");function hn(e){let t=gn(e);if(mn.includes(t))return t;throw Error(pn())}function de(e){if(typeof e!=="string")return null;try{return hn(e)}catch{return null}}var fn={C:"Do",D:"Ré",E:"Mi",F:"Fa",G:"Sol",A:"La",B:"Si"},bn={"#":"♯","♯":"♯",b:"♭","♭":"♭","##":"♯♯",x:"♯♯",bb:"♭♭","♭♭":"♭♭","♯♯":"♯♯"};function rt(e,t){if(t==="letters")return e;let n=/^([A-G])(##|bb|♯♯|♭♭|#|b|♯|♭|x)?$/.exec(e.trim());if(!n)return e;let[,o,r=""]=n;if(t==="solfege")return`${fn[o]}${bn[r]??""}`;if(o!=="B")return e.trim();return r==="b"||r==="♭"?"B":`H${r}`}var yn="http://www.w3.org/2000/svg",kn=(e,t)=>{for(let[n,o]of Object.entries(t))if(o!==void 0)e.setAttribute(n,String(o))};function Ce(e,t,n={},o=[]){let r=e.createElementNS(yn,t);kn(r,n);for(let i of o)if(i)r.appendChild(i);return r}function D(e,t,n,o){let r=e.createElement(t);if(n)r.className=n;if(o!==void 0)r.textContent=o;return r}var zr=`mn-name-${Math.random().toString(36).slice(2,8)}-`;var vn=new Map(Object.entries({standard:"E2 A2 D3 G3 B3 E4","drop d":"D2 A2 D3 G3 B3 E4","drop c":"C2 G2 C3 F3 A3 D4","drop b":"B1 F#2 B2 E3 G#3 C#4","drop a":"A1 E2 A2 D3 F#3 B3","double drop d":"D2 A2 D3 G3 B3 D4",dadgad:"D2 A2 D3 G3 A3 D4","open g":"D2 G2 D3 G3 B3 D4","open d":"D2 A2 D3 F#3 A3 D4","open e":"E2 B2 E3 G#3 B3 E4","open c":"C2 G2 C3 G3 C4 E4","open a":"E2 A2 E3 A3 C#4 E4","half step down":"Eb2 Ab2 Db3 Gb3 Bb3 Eb4","whole step down":"D2 G2 C3 F3 A3 D4","modal c6":"C2 A2 C3 G3 C4 E4",c6:"C2 A2 C3 G3 C4 E4",bass:"E1 A1 D2 G2",ukulele:"G4 C4 E4 A4"}));function me(e){let t=e.trim(),n=vn.get(t.toLowerCase().replace(/\s*\(.*\)$/,""));if(n)return me(n);let o=t.split(/[\s,]+/).filter(Boolean);if(o.length>1&&o.every((s)=>Ae(s)!==null))return o.map((s)=>Ae(s));let r=o.length>1?o:t.match(/[A-G][#♯b♭]?|[a-g][#♯♭]?/g)??[];if(r.length<2||r.join("")!==o.join(""))return null;let i=[];for(let s of r){let c=oe(s);if(c===null)return null;let l=i[i.length-1];if(l===void 0){let u=[28,40,52].map((a)=>a-a%12+c);i.push(u.reduce((a,d)=>Math.abs(d-40)<Math.abs(a-40)?d:a))}else{let u=l-l%12+c;while(u<=l)u+=12;i.push(u)}}return i}var wn=/^\s*([A-Ga-g][#b]?|[1-8](?=\s*[|:]))?\s*[|:]?/,xn=/^[-0-9xX|:hpbrsvt/\\~^().*<>\s]*$/,Tn=/^\s*([A-Za-z][A-Za-z0-9. -]{0,14}?)\s*[|:]([-xXoOgfdb#@*+|:\s]*)$/,An=new Map(Object.entries({hihat:"h hh hat hihat hihats","hihat-open":"oh openhat openhihat","hihat-foot":"hf fh hp ph pedal hihatfoot hihatpedal",crash:"c c1 cc cr cy cym crash crash1 cymbal",crash2:"c2 cr2 crash2",ride:"r rd rc ride",splash:"sp spl splash",china:"ch cn chi china",cowbell:"cb cow cowbell",snare:"s sd sn sr snare snaredrum",tom1:"t t1 ht tom1 hightom hitom",tom2:"t2 mt tom2 midtom",tom3:"t3 lt tom3 lowtom",floor:"f ft fl t4 tom4 floor floortom",kick:"b bd bs k kd bass kick bassdrum kickdrum"}).flatMap(([e,t])=>t.split(" ").map((n)=>[n,e])));function Sn(e,t){let n=t==="#";switch(e){case"hihat":return t==="o"||t==="O"?"HiHatOpen":"HiHatClosed";case"hihat-open":return"HiHatOpen";case"hihat-foot":return"PedalHiHatHit";case"crash":return n?"CrashHighChoke":"CrashHighHit";case"crash2":return n?"CrashMediumChoke":"CrashMediumHit";case"ride":return n?"RideChoke":"RideMiddle";case"splash":return n?"SplashChoke":"SplashHit";case"china":return n?"ChinaChoke":"ChinaHit";case"cowbell":return"CowbellMediumHit";case"snare":return"SnareHit";case"tom1":return"HighTomHit";case"tom2":return"MidTomHit";case"tom3":return"LowTomHit";case"floor":return"VeryLowTomHit";case"kick":return"KickHit"}}var En=(e)=>e==="X"||e==="O"?["ac"]:e==="g"?["g"]:[],Cn=/[^-0-9xXoOgfdbhprsvt/\\~^().*<>#@+|:\s]|<(?!\d)/,Mn=/^\s*(?:[xX]\s*\d{1,3}|\d{1,3}\s*[xX])\s*$/;function zn(e){let t=e.lastIndexOf("|");if(t<0)return{line:e,text:null};let n=e.slice(t+1),o=n.trim();if(!o)return{line:e,text:null};return Cn.test(o)||Mn.test(o)||/^\s/.test(n)&&!o.includes("--")?{line:e.slice(0,t+1),text:o}:{line:e,text:null}}function Ln(e){let{line:t,text:n}=zn(e.trimEnd()),o=null,r=wn.exec(t),i=t.slice(r[0].length);if(xn.test(i)&&(t.match(/-/g)?.length??0)>=4&&(t.includes("|")||/^\s*[A-Ga-g][#b]?\s*[-|:]/.test(t)))o={name:r[1]??null,body:i,offset:r[0].length,barred:/[|:]$/.test(r[0])};let s=null,c=Tn.exec(t),l=c?c[1].toLowerCase().replace(/[ .-]/g,""):"",u=An.get(l);if(c&&u&&(c[2].match(/[^\s|:]/g)?.length??0)>=4)s={drum:u,name:l,body:c[2],lettered:/^[A-Ga-g]$/.test(c[1])};return o||s?{string:o,drum:s,text:n}:null}var ht=(e)=>[...new Set(e.map((t)=>t.text).filter((t)=>t!==null))];function Nn(e){let t=[],n=0;for(let o=2;o<e.length-1;o++){let[r,i]=[e[n].string.name,e[n+1].string.name];if(r!==null&&e[o].string.name===r&&e[o+1].string.name===i&&o-n>=2)t.push(e.slice(n,o)),n=o}return t.push(e.slice(n)),t}function Fn(e){let t=[],n=[];for(let o of e){if(n.some((r)=>r.drum.name===o.drum.name))t.push(n),n=[];n.push(o)}return t.push(n),t}var Dn=/^[\sPpMm.\-_|=~]*$/,Pn=/P\.?M/i;function On(e){if(!Dn.test(e)||!Pn.test(e))return[];let t=[];for(let n=0;n<e.length;n++){let o=e[n];if((o==="P"||o==="p")&&/^\.?[Mm]/.test(e.slice(n+1,n+3)))t.push([n,n]);else if(o!==" "&&t.length)t[t.length-1][1]=n}return t}function st(e,t=null){return Nn(e).flatMap((n,o)=>{let r=n.map((u)=>u.string.name);if(n.length<3&&r.some((u)=>u===null))return[];let i=n.map((u)=>u.string.body),s=n[0].string.offset,c=new Set;if(o===0&&t!==null)for(let[u,a]of On(t))for(let d=Math.max(u,s);d<=a;d++)c.add(d-s);let l=n.some((u)=>!u.string.barred);return[{kind:"strings",names:r,lines:i,texts:ht(n),muted:c,openStart:l}]})}function it(e,t){if(!e.length)return[];if(e.every((r)=>r.drum)&&e.some((r)=>!r.string||!r.drum.lettered||/[xXoOgfdb#@*+]/.test(r.drum.body)))return Fn(e).map((r)=>({kind:"drums",drums:r.map((i)=>i.drum.drum),lines:r.map((i)=>i.drum.body),texts:ht(r)}));if(e.every((r)=>r.string))return st(e,t);let n=[],o=[];for(let r of[...e,null])if(r?.string)o.push(r);else{if(o.length)n.push(...st(o,n.length?null:t));o=[]}return n}function Gn(e){let t=[],n=[],o=null,r=null;for(let i of e.split(/\r?\n/)){let s=Ln(i);if(s){if(!n.length)o=r;n.push(s)}else t.push(...it(n,o)),n=[];r=i}return t.push(...it(n,o)),t}function at(e,t){let n=Math.max(...e.map((l)=>l.length)),o=e.map((l)=>l.padEnd(n,"-")),r=[],i=[],s=!1,c=0;for(let l=0;l<n;l++){if(o.every((m)=>m[l]==="|"||m[l]===":")){if(s)r.push({beats:i,start:c,end:l});i=[],s=!1,c=l+1;continue}if(o.some((m)=>m[l]!==" "))s=!0;let{beat:u,skip:a,at:d}=t(o,l);if(u.length)i.push({notes:u,col:d??l});l+=a}if(s)r.push({beats:i,start:c,end:n});return r}var re=(e)=>e!==void 0&&e>="0"&&e<="9",lt=(e,t)=>(e==="1"||e==="2")&&re(t)&&Number(e+t)<=24;function Rn(e){let t=new Map,n=new Map,o=new Set,r=(i)=>{let s=i,c=e[s]==="(";if(c)s++;if(!re(e[s]))return{fret:null,next:i};let l=lt(e[s],e[s+1])?2:1,u=Number(e.slice(s,s+l));for(let a=0;a<l;a++)o.add(s+a);if(s+=l,c&&e[s]===")")s++;return{fret:u,next:s}};for(let i=0;i<e.length;){if(!re(e[i])||o.has(i)){i++;continue}let s=lt(e[i],e[i+1])?2:1,c=Number(e.slice(i,i+s));t.set(i,{fret:c,width:s});let l=[],u=e[i-1],a=i+s;if(u==="<"&&e[a]===">")l.push("nh"),a++;else if((u==="/"||u==="\\")&&!/[\d)>]/.test(e[i-2]??"-"))l.push(u==="/"?"sib":"sia");if(e[a]==="b"||e[a]==="^"){let p=r(a+1);a=p.next;let y=[0,(p.fret!==null&&p.fret>c?Math.min(p.fret-c,4):2)*2];if(e[a]==="r"){let h=r(a+1);a=h.next;let g=h.fret===null?0:(h.fret-c)*2;y.push(Math.min(y[1],Math.max(0,g)))}l.push(`b (${y.join(" ")})`)}if(e[a]==="~"||e[a]==="v"){l.push("v");while(e[a]==="~"||e[a]==="v")a++}let d=e[a],m=re(e[a+1])||e[a+1]==="("&&re(e[a+2]);if((d==="h"||d==="p")&&m)l.push("h");else if(d==="/"||d==="\\"||d==="s"){if(m)l.push("sl");else if(d!=="s")l.push(d==="/"?"sou":"sod")}if(l.length)n.set(i,l);i+=s}return{frets:t,effects:n}}var Un=(e,t,n=[])=>(o,r)=>{let i=[],s=new Set,c=r,l=!1,u=(a,d)=>{let m=o[a][d],p=t.has(d)?["pm"]:[];if(m==="x"||m==="X"){i.push({tex:`x.${n[a]??a+1}`,effects:p}),s.add(a);return}let f=e[a].frets.get(d);if(!f)return;if(f.width===2&&d===r)l=!0;if(o[a][d-1]==="<")c=Math.min(c,d-1);i.push({tex:`${f.fret}.${n[a]??a+1}`,effects:[...e[a].effects.get(d)??[],...p],string:n[a]??a+1}),s.add(a)};if(o.forEach((a,d)=>u(d,r)),l)o.forEach((a,d)=>s.has(d)||u(d,r+1));return{beat:i,skip:l?1:0,at:c}},he={3:[64,59,55],4:[43,38,33,28],5:[43,38,33,28,23],6:[64,59,55,50,45,40],7:[64,59,55,50,45,40,35]},ct=[64,59,55,50,45,40,35,30],Me={names:["E","A","D","G","B","E"],midis:[40,45,50,55,59,64]},Bn=["E A D G","B E A D G"],ze=(e)=>e[0].toUpperCase()+e.slice(1);function Le(e){let t=e.length;if(e.every((n)=>n!==null&&/^\d$/.test(n)))return e.every((n)=>ct[Number(n)-1])?e.map((n)=>ct[Number(n)-1]):null;if(e.every((n)=>n!==null&&/^[A-Ga-g]/.test(n))){let n=[...e].reverse(),o=n.map(ze).join(" ");if(Bn.includes(o))return me(o).map((s)=>s-12).reverse();let r=[...Me.names.keys()].filter((s)=>n.every((c,l)=>Me.names[s+l]===ze(c)));if(r.length){let s=r.length>1&&n[0]==="e"?r.at(-1):r[0];return Me.midis.slice(s,s+t).reverse()}if(t===1){let s=oe(ze(e[0]));return s===null?null:[48+(s-48+120)%12]}let i=me(o);if(i)return i.reverse()}return he[t]??null}function jn(e){let t=[...he[6]],n=t.indexOf(e);if(n<0)n=t.reduce((o,r,i)=>Math.abs(r-e)<Math.abs(t[o]-e)?i:o,0),t[n]=e;return{tuning:t,string:n+1}}function In(e){if(e.length===1){let{tuning:o,string:r}=jn(e[0]);return{tuning:o,strings:[r]}}let t=he[6];if(e.length>5)return null;let n=e.map((o)=>t.indexOf(o));if(n[0]<0||n.some((o,r)=>o!==n[0]+r))return null;return{tuning:[...t],strings:n.map((o)=>o+1)}}var $n=(e)=>(t,n)=>{let o=[];return t.forEach((r,i)=>{let s=r[n];if(!/[xXoOgfdb#@*+]/.test(s))return;let c=Sn(e[i],s);if(!o.some((l)=>l.tex===c))o.push({tex:c,effects:En(s)})}),{beat:o,skip:0}},ft=[[24,1,!0],[16,1,!1],[12,2,!0],[8,2,!1],[6,4,!0],[4,4,!1],[3,8,!0],[2,8,!1],[1,16,!1]];function ut(e){let t=[];for(let n=e;n>0;){let[o,r,i]=ft.find(([s])=>s<=n);t.push({duration:r,dotted:i}),n-=o}return t}var q={ts:[4,4],length:16,beat:4,grids:[1,2,4,8,16]},dt={ts:[3,4],length:12,beat:4,grids:[1,3,6,12]},Hn={ts:[6,8],length:12,beat:6,grids:[1,2,6,12]},Vn={ts:[12,8],length:24,beat:6,grids:[1,2,4,12,24]};function qn(e,t){let n=new Map;for(let r=1;r<e.length;r++){let i=e[r]-e[r-1],s=t[r]-t[r-1];if((n.get(i)??s)!==s)return!1;n.set(i,s)}let o=[...n].sort((r,i)=>r[0]-i[0]);return o.every(([,r],i)=>i===0||r>=o[i-1][1])}var _n=new Set(ft.map(([e])=>e));function Wn(e,t,[n,o],r,i,s){let c=o/t;if(c<1||i&&!Number.isInteger(c))return null;let l=[],u=0;for(let a of e){let d=(a-n)/c,m=Math.round(d),p=Math.abs(d-m)*c;if(m<0||m>=t||p>r+0.000000001||l.length&&m*(s/t)<=l.at(-1))return null;u=Math.max(u,p),l.push(m*(s/t))}if(!i&&l.some((a,d)=>!_n.has((l[d+1]??s)-a)))return null;return qn(e,l)?{at:l,error:u}:null}function Ne(e,t,n,o=q){if(!e.length)return[];let r=[[n,t-n],[n,t]];for(let i=1;i<n;i++)r.push([i,t-i]);if(e[0]>n)r.push([0,t]);for(let[i,s]of[[0.4,!1],[1,!1],[0.4,!0]])for(let c of o.grids){let l=r.map((u)=>Wn(e,c,u,i,s,o.length)).filter((u)=>u!==null);if(l.length)return l.reduce((u,a)=>a.error<u.error?a:u).at}return null}function ge(e,t,n=t.length){let o=[],{beat:r,length:i}=t;for(let s=e;s<n;){let c=i===4*r&&s%(2*r)===0&&s<=i/2?[2*r]:[],u=(s%2?[1]:s%r?[2,1]:[...c,r,2,1]).find((a)=>a<=n-s);o.push({beat:-1,sixteenths:u}),s+=u}return o}function Kn(e,t=q,n=[]){let o=e.slice(1).map((s,c)=>s-e[c]),r=new Map;for(let s of o)r.set(s,(r.get(s)??0)+1);let i=[...r].reduce((s,c)=>!s||c[1]>s[1]||c[1]===s[1]&&c[0]<s[0]?c:s,null)?.[0];for(let s of[2,1]){let c=e.map((u,a)=>s*(a<o.length?Math.max(1,Math.round(o[a]/i)):1)),l=c.reduce((u,a)=>u+a,0);if(s===2)for(let u of n){if(l<=t.length)break;if(u+1>=c.length||c[u]!==2)continue;let a=Math.max(1,c[u+1]-1);l-=1+c[u+1]-a,c[u]=1,c[u+1]=a}if(l>t.length)continue;return[...c.map((u,a)=>({beat:a,sixteenths:u})),...ge(l,t)]}return e.map((s,c)=>({beat:c,sixteenths:1}))}var Yn=new Set(["h","sl"]),Xn=(e)=>e.flatMap((t,n)=>t.notes.some((o)=>o.effects.some((r)=>Yn.has(r)))?[n]:[]);function Zn(e,t,n){let o=n.length,r=e.part==="whole"?e.width:t,i=e.part==="end"?t-e.width:0,s=e.beats.map((a)=>a.col+i);if(e.part==="start"&&s.length){let a=Ne([...s,e.width],r,e.pad,n);if(a){let d=a.pop(),m=a[0]>0?[{beat:-1,sixteenths:a[0]}]:[];return a.forEach((p,f)=>m.push({beat:f,sixteenths:(a[f+1]??d)-p})),[...m,...ge(d,n)]}}let c=Ne(s,r,e.pad,n);if(!c){let a=Kn(e.beats.map((p)=>p.col),n,Xn(e.beats));if(e.part!=="end")return a;let d=a.filter((p)=>p.beat>=0),m=d.reduce((p,f)=>p+f.sixteenths,0);return e.pickup?d:[...ge(0,n,o-m),...d]}let l=c[0],u=l===0||e.pickup?[]:e.part==="end"?ge(0,n,l):[{beat:-1,sixteenths:l}];return c.forEach((a,d)=>u.push({beat:d,sixteenths:(c[d+1]??o)-a})),u}var Jn=(e)=>e.reduce((t,n)=>n.beats.length?Math.min(t,n.beats[0].col-n.start):t,3);function mt(e,t,n,o){let r=Math.max(...e.map((i)=>i.length));return{bars:t,pad:Jn(t),texts:n,openStart:o&&t[0]?.start===0,openEnd:t.at(-1)?.end===r}}function Qn(e){let t=[];for(let n of e)n.bars.forEach((o,r)=>{if((r>0||!n.openStart)&&(r<n.bars.length-1||!n.openEnd)&&o.beats.length)t.push(o.end-o.start)});if(t.length<2)return null;return t.sort((n,o)=>n-o),t[t.length>>1]}function bt(e){let t=new Map;for(let o of e)t.set(o,(t.get(o)??0)+1);let n;for(let[o,r]of t)if(!n||r>n.count||r===n.count&&o<n.value)n={value:o,count:r};return n}function eo(e,t){if(t===null)return q;let n=[];for(let a of e)a.bars.forEach((d,m)=>{let p=(m>0||!a.openStart)&&(m<a.bars.length-1||!a.openEnd),f=d.end-d.start;if(p&&d.beats.length&&Math.abs(f-t)<=1)n.push({bar:d,pad:a.pad})});let o=new Map;for(let{bar:a}of n)for(let d=1;d<a.beats.length;d++){let m=a.beats[d].col-a.beats[d-1].col;o.set(m,(o.get(m)??0)+1)}let r=Math.max(0,...o.values()),i=Math.min(...[...o].filter(([,a])=>a*2>=r).map(([a])=>a));if(n.length<2||!Number.isFinite(i))return q;let s=[],c=0,l=0;for(let{bar:a,pad:d}of n){let m=a.beats.map((g)=>(g.col-a.start-d)/i);if(m.some((g)=>Math.abs(g-Math.round(g))*i>0.40000000100000005)){s.push(0);continue}let p=m.map(Math.round),f=Math.max(Math.ceil((a.end-a.start-d)/i-0.5),p.at(-1)+1);if(s.push(f),f!==6)continue;let y=a.beats.reduce((g,b)=>b.notes.reduce((k,w)=>Math.max(k,w.string??0),g),0),h=p.filter((g,b)=>a.beats[b].notes.some((k)=>k.string===y));for(let g of[p,h.length<p.length?h:[]])if(g.some((b)=>b!==0&&b%2===0)&&g.every((b)=>b%2===0))c++;else if(g.includes(3)&&g.every((b)=>b%3===0))l++}let u=bt(s);if(u.count*3<n.length*2)return q;if(u.value===3)return dt;if(u.value===6)return c>l?dt:Hn;return u.value===12?Vn:q}function to(e,t){let n=(i)=>t!==null&&i<=t*2/3,o=[],r=null;return e.forEach((i,s)=>{let c=o.length,l=e[s+1];i.bars.forEach((a,d)=>{let m=a.beats.map((h)=>({notes:h.notes,col:h.col-a.start})),p={beats:m,width:a.end-a.start,pad:i.pad,part:"whole",pickup:!1,text:null},f=d===0&&r!==null;if(r&&d===0){let h=r.width-i.pad;p={...r,beats:[...r.beats,...m.map((g)=>({notes:g.notes,col:g.col+h}))],width:r.width+p.width-i.pad},r=null}if(d===i.bars.length-1&&n(p.width)){let h=l?.bars[0],g=h?p.width+h.end-h.start-l.pad:0;if(h&&(i.openEnd||n(h.end-h.start)&&(l.openStart||g<=t*1.25))){if(p.beats.length||!i.openEnd)r=p;return}if(i.openEnd&&!f){if(!p.beats.length)return;p.part="start"}}let y=!o.length;if(d===0&&!f&&p.part==="whole"&&n(p.width)&&p.beats.length){if(y||i.openStart)p.part="end",p.pickup=y}o.push(p)});let u=r??(o.length>c?o.at(-1):null);if(i.texts.length&&u){let a=i.texts.join(" / ");u.text=u.text?`${u.text} / ${a}`:a}}),o}function no(e,t){return e.flatMap((n)=>{if(n.part!=="whole"||n.beats.length<2)return[n];let o=n.beats.map((d)=>d.col);if(Ne(o,n.width,n.pad,t))return[n];let r=o.slice(1).map((d,m)=>d-o[m]),i=bt(r).value,s=r.reduce((d,m)=>d+Math.max(1,Math.round(m/i)),1),c=t.length/2,l=i*c;if(s<=c||n.width-n.pad<l*1.5)return[n];let u=Math.floor((o.at(-1)-n.pad)/l)+1,a=Array.from({length:u},()=>[]);for(let d of n.beats){let m=Math.min(u-1,Math.max(0,Math.floor((d.col-n.pad)/l)));while(m<u-1&&d.col>=n.pad+(m+1)*l)m++;while(m>0&&d.col<n.pad+m*l)m--;a[m].push({notes:d.notes,col:d.col-m*l})}return a.map((d,m)=>({beats:d,width:n.pad+l,pad:n.pad,part:"whole",pickup:!1,text:m===u-1?n.text:null}))})}var oo=(e)=>`"${e.replace(/[\\"]/g,(t)=>`\\${t}`)}"`,pe=(e,t)=>t.length?`${e}{${t.join(" ")}}`:e;function ro(e,t){if(!e.length)return pe("r",t);if(e.length===1)return pe(e[0].tex,[...e[0].effects,...t]);return pe(`(${e.map((n)=>pe(n.tex,n.effects)).join(" ")})`,t)}var pt=new Set(["h","sl","sou","sod"]);function so(e,t){if(t===1)return[e];let n=[e.map((o)=>({...o,effects:o.effects.filter((r)=>!pt.has(r))}))];for(let o=1;o<t;o++)n.push(e.filter((r)=>r.string!==void 0).map((r)=>({tex:`-.${r.string}`,effects:r.effects.filter((i)=>i==="pm"||o===t-1&&pt.has(i))})));return n}function gt(e,t){let n=0;return e.map(({beats:r,rhythm:i,text:s,pickup:c})=>{let l=[];if(!r.length)for(let d of t===q?[{duration:1,dotted:!1}]:ut(t.length))l.push({notes:[],...d});for(let{beat:d,sixteenths:m}of i){let p=ut(m),f=so(d>=0?r[d]:[],p.length);p.forEach((y,h)=>l.push({notes:f[h],...y}))}let u=l.length-1;while(u>0&&!l[u].notes.length)u--;if(!l[u].notes.length)u=l.length-1;let a=l.map((d,m)=>{let p=d.dotted?["d"]:[];if(s&&m===u)p.push(`txt ${oo(s)}`);let f=d.duration===n?"":`:${d.duration} `;return n=d.duration,f+ro(d.notes,p)}).join(" ");return c?`\\ac ${a}`:a}).join(` |
|
|
3
|
-
`)}function
|
|
4
|
-
`);let
|
|
5
|
-
`)}var Fe=["generaluser","sonivox","light"];function fe(e){if(typeof e!=="string")return null;let t=e.trim().toLowerCase();return Fe.includes(t)?t:null}function io(e){return e?[e,...Fe.filter((t)=>t!==e)]:[...Fe]}function kt(e,t){for(let n of io(e)){let o=t(n);if(o!==null&&o!==void 0&&o!==!1)return{engine:n,value:o}}return null}function vt(e){if(!e||typeof e!=="object"||!("play"in e))return;let t=e.play;if(!t||typeof t!=="object"||!("engine"in t))return;return fe(t.engine)??void 0}var wt=["steel","nylon","clean","overdrive"],be="steel",De={steel:25,nylon:24,clean:27,overdrive:29};var ao={play:"M4 2.5v11l9-5.5z",pause:"M4 3h3v10H4zM9 3h3v10H9z",stop:"M4 4h8v8H4z",all:"M1.5 2.5v11l6.5-5.5zM8 2.5v11l6.5-5.5z",loop:"M3 8a5 5 0 0 1 8.5-3.5L13 6V2.5M13 8a5 5 0 0 1-8.5 3.5L3 10v3.5",count:"M5.5 14h5L9 2.5H7zM8 11.5l4.5-7",click:"M3 5v6M8 5v6M13 5v6",copy:"M2.5 3.5h11v9h-11zM2.5 11l3.5-3.5 3 3 2-2 2.5 2.5M10.5 6.5h.01",full:"M2.5 6V2.5H6M10 2.5h3.5V6M13.5 10v3.5H10M6 13.5H2.5V10",names:"M3.5 13.5 8 2.5l4.5 11M5.3 9.5h5.4",follow:"M8 5a3 3 0 1 0 0 6a3 3 0 0 0 0-6M8 1.5v2M8 12.5v2M1.5 8h2M12.5 8h2",exit:"M6 2.5V6H2.5M13.5 6H10V2.5M10 13.5V10h3.5M2.5 10H6v3.5"},lo=new Set(["loop","count","click","copy","full","exit","follow","names"]);function se(e,t){let n=Ce(e,"svg",{class:`mn-play-icon mn-play-icon-${t}${lo.has(t)?" mn-play-icon-line":""}`,viewBox:"0 0 16 16",width:12,height:12,"aria-hidden":"true"});return n.appendChild(Ce(e,"path",{d:ao[t]})),n}function xt(e,t,n){let o=D(e,"div",`mn-play mn-play-static ${t}`);return o.addEventListener("mousedown",(r)=>r.stopPropagation()),o.setAttribute("role","group"),o.setAttribute("aria-label",n),o}function K(e,t,n,o){let r=D(e,"button",t);return r.type="button",r.appendChild(se(e,o)),r.title=n,r.setAttribute("aria-label",n),r}function ie(e,t,n,o,r,i){let s=K(e,t,n,o),c=()=>{s.setAttribute("aria-pressed",String(r)),s.classList.toggle("mn-on",r)};return s.addEventListener("click",()=>{r=!r,i(r),c()}),c(),s}var Pe=0.8;function Tt(e){let t=e;if(typeof e==="function")try{t=e()}catch{t=void 0}return typeof t==="number"&&Number.isFinite(t)?Math.min(1,Math.max(0,t)):Pe}var co=Symbol.for("@dsebastien/music-notation/volume"),uo=globalThis,At=uo[co]??=new Set,St=(e)=>typeof e==="number"&&Number.isFinite(e)?Math.min(1,Math.max(0,e)):null;function Et(e,t,n){let o=St(n),r=()=>{let i=St(e());if(i===null||i===o)return;o=i;for(let s of t())s.setVolume?.(i)};return At.add(r),()=>{At.delete(r)}}var mo=new Set(["PageUp","PageDown","Home","End","ArrowUp","ArrowDown"]);function po(e){let t=e.ownerDocument.defaultView;if(!t)return"";for(let n=e.parentElement;n;n=n.parentElement){let o=t.getComputedStyle(n).backgroundColor;if(o&&o!=="transparent"&&!/^rgba\(.*,\s*0\)$/.test(o))return o}return""}function Ct(e,t,n,o=()=>{},r={}){let i=r.redraws!==!1,s=e.defaultView,c=V(),l=K(e,"mn-tab-full",c("playback.full.enter"),"full");l.classList.add("mn-play-full");let u=!1,a=!1,d=!1,m=null,p=null,f=!1,y="",h=(x)=>{if(d===x)return;d=x,o(x)},g=()=>{t.classList.toggle("mn-fullscreen",u),l.classList.toggle("mn-on",u),l.setAttribute("aria-pressed",String(u)),l.title=u?c("playback.full.exit"):c("playback.full.enter"),l.replaceChildren(se(e,u?"exit":"full"))},b=()=>{if(u)return;if(u=!0,m={x:s?.scrollX??0,y:s?.scrollY??0,background:t.style.backgroundColor},!f)y=t.style.minHeight;f=!1,p=e.createElement("div"),p.className="mn-fullscreen-place",p.style.height=`${t.offsetHeight}px`;let x=s?.getComputedStyle(t);if(x)p.style.marginTop=x.marginTop,p.style.marginBottom=x.marginBottom;t.before(p);let U=po(t);if(U)t.style.backgroundColor=U;g(),n.tabIndex=0,n.focus({preventScroll:!0}),h(!0),r.changed?.(!0);try{t.requestFullscreen?.().catch(()=>{})}catch{}},k=(x=!0)=>{if(!u)return;if(u=!1,h(!1),g(),t.style.backgroundColor=m?.background??"",p){if(i)t.style.minHeight=p.style.height,f=!0;p.remove(),p=null}if(n.removeAttribute("tabindex"),n.scrollTop=0,a&&e.fullscreenElement===t)e.exitFullscreen?.().catch(()=>{});if(a=!1,m&&s)s.scrollTo(m.x,m.y);if(m=null,r.changed?.(!1),x)l.focus({preventScroll:!0})};l.addEventListener("click",()=>u?k():b()),t.addEventListener("keydown",(x)=>{if(!u||x.key!=="Escape")return;x.stopPropagation(),x.preventDefault(),k()});let w=()=>{if(u)h(!1)};n.addEventListener("wheel",w,{passive:!0}),n.addEventListener("touchmove",w,{passive:!0}),n.addEventListener("keydown",(x)=>{if(mo.has(x.key))w()});let S=(x)=>{if(!u||x.key!==" "||x.ctrlKey||x.metaKey||x.altKey)return;if(!t.isConnected){k(!1);return}if(x.target?.closest("input:not([type=range]), textarea, select, [contenteditable=true]"))return;if(x.preventDefault(),x.stopPropagation(),x.type!=="keydown"||x.repeat)return;t.querySelector(".mn-play .mn-play-toggle")?.click()};e.addEventListener("keydown",S,!0),e.addEventListener("keyup",S,!0);let z=()=>{if(e.fullscreenElement===t)a=!0;else if(a)k()};return e.addEventListener("fullscreenchange",z),g(),{button:l,active:()=>u,playing:()=>{if(u)h(!0)},drawn:()=>{if(u||!f)return;f=!1,t.style.minHeight=y},destroy:()=>{k(!1),e.removeEventListener("fullscreenchange",z),e.removeEventListener("keydown",S,!0),e.removeEventListener("keyup",S,!0)}}}function Mt(e){if(!e||typeof e!=="object")return!0;return e.fullScreen!==!1}function go(e,t,n=0){let o=e.top+n,r=e.bottom-n;if(t.bottom-t.top>=r-o)return Math.round(t.top-o);if(t.top<o)return Math.round(t.top-o);if(t.bottom>r)return Math.round(t.bottom-r);return 0}function ho(e,t,n=0){let o=e.bottom-e.top,r={top:e.top,bottom:e.bottom+o};return r.bottom-r.top<=t.bottom-t.top-2*n?r:e}var fo=new Set(["auto","scroll","overlay"]);function bo(e){let t=e.ownerDocument.defaultView;if(!t)return null;let n=e.ownerDocument.scrollingElement??e.ownerDocument.documentElement;for(let o=e;o;o=o.parentElement){if(o===n||o===e.ownerDocument.body)return null;if(!(o instanceof t.HTMLElement))continue;if(fo.has(t.getComputedStyle(o).overflowY)&&o.scrollHeight>o.clientHeight+1)return o}return null}var yo=new Set(["PageUp","PageDown","Home","End","ArrowUp","ArrowDown"]);function zt(e,t={}){let n=e.ownerDocument,o=n.defaultView,r=t.margin??16,i=t.on===!0,s=!1,c=null,l=()=>t.changed?.({on:i,active:i&&!s}),u=()=>{if(!i||s)return;s=!0,l()},a=(m)=>{let p=m.target;if(!p||typeof p.contains!=="function")return;if(p.contains(e)||e.contains(p))u()},d=(m)=>{if(yo.has(m.key))a(m)};return n.addEventListener("wheel",a,{passive:!0,capture:!0}),n.addEventListener("touchmove",a,{passive:!0,capture:!0}),n.addEventListener("keydown",d,!0),{on:()=>i,active:()=>i&&!s,set(m){if(i===m&&!s)return;i=m,s=!1,c=null,l()},press(){if(i&&s)s=!1;else i=!i;c=null,l()},playing(){if(c=null,!s)return;s=!1,l()},show(m,p=0){if(!i||s||!o)return;if(m.bottom<=m.top)return;let f=bo(e),y=f?.getBoundingClientRect(),h={top:Math.max(0,y?.top??0),bottom:Math.min(o.innerHeight,y?.bottom??o.innerHeight)-p};if(h.bottom-h.top<=2*r)return;let g=Math.round(m.top+(f?f.scrollTop:o.scrollY));if(c!==null&&Math.abs(g-c)<2)return;c=g;let b=go(h,ho(m,h,r),r);if(!b)return;let k={top:b,behavior:"smooth"};if(f)f.scrollBy(k);else o.scrollBy(k)},destroy(){n.removeEventListener("wheel",a,!0),n.removeEventListener("touchmove",a,!0),n.removeEventListener("keydown",d,!0)}}}function ko(e,t,n){if(e.isRest)return[];return e.notes.filter((o)=>!o.isDead&&!o.isTieDestination&&Number.isFinite(o.realValue)).sort((o,r)=>r.realValue-o.realValue).map((o)=>rt(Se((o.realValue%12+12)%12,n),t))}function Oe(e,t="letters"){let n=[];for(let o of e.tracks)for(let r of o.staves){if(r.isPercussion)continue;let i=r.bars.flatMap((c)=>c.voices.flatMap((l)=>l.beats.map((u)=>({bar:c,beat:u})))),s=i.some(({beat:c})=>(c.lyrics?.length??0)>0);for(let{bar:c,beat:l}of i){let u=Number(c.keySignature??c.masterBar?.keySignature??0),a=ko(l,t,u<0);if(!a.length)continue;if(!s){let d=l.lyrics;l.lyrics=a,n.push(()=>l.lyrics=d)}else if(!l.text){let d=l.text;l.text=a.join(" "),n.push(()=>l.text=d)}}}return()=>{for(let o of n.splice(0))o()}}function Lt(e){let t=e.trim().toLowerCase();if(t==="on"||t==="yes"||t==="true")return!0;if(t==="off"||t==="no"||t==="false")return!1;return null}var Nt=[1,1.25,1.5,1.75,2,2.5,3];function Ft(e,t){let n=null,o=!1,r=(i)=>{n=i,e(Nt[i],!0)};return{enter(){o=!1,r(0)},leave(){n=null,o=!1,e(1,!1)},drawn(){if(n===null)return;if(o){n=null;return}if(t()){if(n+1<Nt.length)r(n+1);else n=null;return}if(n>0)o=!0,r(n-1);else n=null}}}var Dt=0.25,Pt=1.5,J=5,ke=(e)=>Math.min(Pt,Math.max(Dt,e));function Ot(e,t,n){let o=n;for(let r of e){if(r.start>t)break;for(let i of r.tempoChanges)if(i.tick<=t)o=i.tempo}return o!==null&&Number.isFinite(o)&&o>0?o:n}function Gt(e,t){return ke(e/t)}var ye=(e,t)=>Math.round(e*t);function Ge(e,t,n,o){if(n==="bpm"&&o)return Gt(ye(e,o)+t,o);let r=Math.round(e*100),i=t>0?Math.floor(r/J)*J+J:Math.ceil(r/J)*J-J;return ke(i/100)}function vo(e,t,n){let o=`${Math.round(e*100)} %`;if(!n)return{value:String(Math.round(e*100)),unit:"%",other:""};let r=`${ye(e,n)} BPM`;return t==="bpm"?{value:String(ye(e,n)),unit:"BPM",other:o}:{value:String(Math.round(e*100)),unit:"%",other:r}}function wo(e,t,n){let o=Number(e.replace(",",".").replace(/[^\d.]/g,""));if(!e.trim()||!Number.isFinite(o)||o<=0)return null;return t==="bpm"&&n?Gt(o,n):ke(o/100)}function Rt(e,t){let n=V(),o=1,r=t.unit??"bpm",i=D(e,"span","mn-tempo");i.setAttribute("role","group"),i.setAttribute("aria-label",n("tab.tempo.group"));let s=(g,b,k)=>{let w=D(e,"button",g,b);return w.type="button",w.setAttribute("aria-label",k),w.title=k,w},c=s("mn-tempo-down","−",n("tab.tempo.slower")),l=s("mn-tempo-up","+",n("tab.tempo.faster")),u=D(e,"input","mn-tempo-value");u.type="text",u.inputMode="numeric",u.size=3,u.autocomplete="off";let a=s("mn-tempo-unit","BPM",n("tab.tempo.toPercent")),d=s("mn-tempo-other","",n("tab.tempo.reset")),m=!1;u.addEventListener("input",()=>m=!0);let p=()=>t.tempo()?r:"percent",f=()=>{let g=t.tempo(),b=vo(o,p(),g);if(!m)u.value=b.value;u.setAttribute("aria-label",b.unit==="BPM"?n("tab.tempo.inBpm"):n("tab.tempo.inPercent")),a.textContent=b.unit,a.hidden=!g;let k=n(p()==="bpm"?"tab.tempo.toPercent":"tab.tempo.toBpm");a.setAttribute("aria-label",k),a.title=k,d.textContent=b.other?`· ${b.other}`:"",d.hidden=!b.other,d.disabled=o===1,i.title=g?n("tab.tempo.title",{bpm:ye(o,g),percent:Math.round(o*100),tempo:Math.round(g)}):n("tab.tempo.speedTitle",{percent:Math.round(o*100)}),c.disabled=o<=Dt,l.disabled=o>=Pt},y=(g)=>{m=!1,o=ke(g),t.set(o),f()};c.addEventListener("click",()=>y(Ge(o,-1,p(),t.tempo()))),l.addEventListener("click",()=>y(Ge(o,1,p(),t.tempo()))),d.addEventListener("click",()=>y(1)),a.addEventListener("click",()=>{r=p()==="bpm"?"percent":"bpm",t.unitChanged?.(r),f()});let h=()=>{let g=wo(u.value,p(),t.tempo());if(m=!1,g===null)f();else y(g)};return u.addEventListener("change",h),u.addEventListener("keydown",(g)=>{if(g.key==="Enter")g.preventDefault(),h(),u.select();else if(g.key==="Escape")g.stopPropagation(),m=!1,u.blur(),f();else if(g.key==="ArrowUp"||g.key==="ArrowDown")g.preventDefault(),y(Ge(o,g.key==="ArrowUp"?1:-1,p(),t.tempo())),u.select()}),u.addEventListener("blur",()=>{m=!1,f()}),i.append(c,u,a,l,d),f(),{field:i,speed:()=>o,refresh:f}}function Bt(e){if(!e||typeof e!=="object"||!("play"in e))return;let t=e.play;if(!t||typeof t!=="object"||!("instruments"in t))return;let n=t.instruments;return typeof n==="string"&&n.trim()?n.trim():void 0}function jt(e){let t=new Set,n=!1;for(let o of e.tracks)if(o.isPercussion)n=!0;else t.add(o.playbackInfo.program);return{programs:[...t].sort((o,r)=>o-r),drums:n}}function xo(e,t){let n=[];for(let o of t.programs){let r=e.programs[String(o)];if(!r?.file)return null;n.push(r.file)}if(t.drums){if(!e.drums?.file)return null;n.push(e.drums.file)}else if(e.click?.file&&t.click!==!1)n.push(e.click.file);return n.length?n:null}var Ut=new WeakMap,To=(e)=>typeof e==="object"&&e!==null&&("programs"in e)&&typeof e.programs==="object"&&e.programs!==null;async function It(e,t,n){let o=Ut.get(n);if(!o)Ut.set(n,o=new Map);let r=o.get(e);if(!r)o.set(e,r={index:null,files:new Map});let i=async(a)=>{try{if(typeof e==="function")return await e(a);let d=await n.fetch(`${e.replace(/\/+$/,"")}/${a}`);return d.ok?new Uint8Array(await d.arrayBuffer()):null}catch{return null}},s=(a)=>{let d=r.files.get(a);if(!d)d=i(a),r.files.set(a,d),d.then((m)=>{if(!m)r.files.delete(a)});return d};r.index??=i("index.json").then((a)=>{if(!a)return null;try{let d=JSON.parse(new TextDecoder().decode(a));return To(d)?d:null}catch{return null}});let c=await r.index;if(!c)return r.index=null,null;let l=xo(c,t);if(!l)return null;let u=await Promise.all(l.map(s));return u.every((a)=>a!==null)?u:null}var Ao="1.9.0",ae=(e=Ao)=>{let t=`https://cdn.jsdelivr.net/npm/@coderline/alphatab@${e}/dist`;return{script:`${t}/alphaTab.min.js`,font:`${t}/font/Bravura.woff2`,soundFont:`${t}/soundfont/sonivox.sf3`}};async function Ue(e,t,n,o,r=!1,i=V()){let s=t.defaultView,c=we(t),l=null;if(n.instruments&&s)l=await It(n.instruments,o,s);let u=l?"instruments":"whole";if(!l)if(typeof n.soundFont==="string"){try{let m=await s?.fetch(n.soundFont);l=m?.ok?[new Uint8Array(await m.arrayBuffer())]:null}catch{l=null}if(!l)throw Error(i("tab.sound.loadFailed",{url:n.soundFont}))}else l=[n.soundFont];let a=l,d=0;return await new Promise((m)=>{e.soundFontLoaded.on(()=>{if(++d>=a.length)m()}),setTimeout(m,8000),a.forEach((p,f)=>e.loadSoundFont(c.bytes(p),r||f>0))}),u}function So(e,t){return kt(t,(o)=>o==="generaluser"?Boolean(e.instruments):o==="sonivox")?.engine==="generaluser"?"generaluser":"sonivox"}function Eo(e,t){if(!e.instruments||So(e,t)==="generaluser")return e;let{instruments:n,...o}=e;return o}var Co=/^\s*(staves|file|tracks?|engine|layout|names)\s*:\s*(.*)$/i;function Mo(e,t){let n=t.split(/\r?\n/),o={staves:e,stavesWritten:!1,file:null,tracks:null,engine:null,layout:"page",names:null,tex:"",texLine:0,fromText:!1},r=0;for(;r<n.length;r++){let s=n[r];if(!s.trim()||/^\s*\/\//.test(s))continue;let c=Co.exec(s);if(!c)break;let l=c[1].toLowerCase(),u=c[2].trim();if(l==="staves"){let a=u.toLowerCase();if(a!=="tab"&&a!=="score"&&a!=="both")throw Error(I("tab.source.staves",{value:u}));o.staves=a,o.stavesWritten=!0}else if(l==="file")o.file=u.replace(/^!?\[\[|\]\]$/g,"").split(/[|#]/)[0].trim()||null;else if(l==="engine"){let a=fe(u);if(!a)throw Error(I("playback.engine.invalid",{value:u}));o.engine=a}else if(l==="layout"){let a=u.toLowerCase();if(a!=="page"&&a!=="line")throw Error(I("tab.source.layout",{value:u}));o.layout=a}else if(l==="names"){let a=Lt(u);if(a===null)throw Error(I("tab.source.names",{value:u}));o.names=a}else{let a=u.split(/[\s,]+/).filter(Boolean).map(Number);if(!a.length||a.some((d)=>!Number.isInteger(d)||d<1))throw Error(I("tab.source.tracks",{value:u}));o.tracks=a}}while(r<n.length&&!n[r].trim())r++;if(o.texLine=r,o.tex=n.slice(r).join(`
|
|
6
|
-
`).trimEnd(),!o.file&&!o.tex)throw Error(I("tab.source.empty",{example:"[[Song.gp]]"}));let i=o.file?null:yt(o.tex);if(i!==null)o.tex=i,o.fromText=!0;return o}function zo(e,t,n){return qt(e,t,n).message}function qt(e,t,n){let o=e?.cause??e;for(let r of["lexerDiagnostics","parserDiagnostics","semanticDiagnostics"]){let i=o?.[r]?.items;if(!Array.isArray(i))continue;let s=i.find((c)=>c.severity===2&&c.message);if(s){if(s.start&&t!==null){let c=s.start.line+t,l=s.start.col;return{message:`${n("tab.error.at",{line:c,column:l})}${s.message}`,line:c,column:l}}return{message:s.message}}}return{message:e instanceof Error?e.message:String(e)}}var Lo=0;function $t(e,t){for(let n of t.tracks)for(let o of n.staves){if(o.isPercussion)for(let i of o.bars??[])i.clef=Lo;let r=!o.isPercussion&&o.tuning.length>0;if(e==="both"){o.showStandardNotation=!0,o.showTablature=r;continue}o.showSlash=!1,o.showNumbered=!1,o.showTablature=e==="tab"&&r,o.showStandardNotation=!o.showTablature}}var No=5;function Fo(e,t){if(t!==null&&/\bdy\b|\\showdynamics/i.test(t))return;if(!e.tracks.some((o)=>o.staves.some((r)=>r.bars.some((i)=>i.voices.some((s)=>s.beats.some((c)=>!c.isRest&&c.dynamics!==No))))))e.stylesheet.hideDynamics=!0}var Do="rendered by alphaTab";function Po(e,t){e.renderer?.partialRenderFinished?.on((o)=>{for(let r of t.querySelectorAll(".at-surface > div")){if(r.layoutResultId!==o.id)continue;let i=typeof o.renderResult==="string"&&o.renderResult.includes(Do);r.style.visibility=i?"hidden":""}})}function Ht(e,t,n=1){let o=e.createElement("canvas");o.width=1,o.height=1;let r=o.getContext("2d",{willReadFrequently:!0});if(!r)return null;r.fillStyle="#000",r.fillStyle=t,r.fillRect(0,0,1,1);let i=r.getImageData(0,0,1,1).data;if(i.length<4)return null;return`rgba(${i[0]}, ${i[1]}, ${i[2]}, ${(i[3]/255*n).toFixed(3)})`}function Oo(e){let t=e.ownerDocument,n=t.defaultView?.getComputedStyle(e).color||"",o=n&&Ht(t,n)||(/^rgba?\(/.test(n)?n:"rgba(0, 0, 0, 1)"),r=n&&Ht(t,n,0.6)||o;return{mainGlyphColor:o,secondaryGlyphColor:r,scoreInfoColor:o,staffLineColor:r,barSeparatorColor:o,barNumberColor:r}}var we=(e)=>{let t=e.defaultView??globalThis;return{map:(n)=>new t.Map(n),bytes:(n)=>{let o=new t.Uint8Array(n.length);return o.set(n),o}}},Vt=(e)=>{let t=Math.max(0,Math.round(e/1000));return`${Math.floor(t/60)}:${String(t%60).padStart(2,"0")}`};function Go(e,t,n,o,r,i={}){let s=V(),c=xt(e,"mn-tab-bar",s("playback.bar")),l={loop:!1,metronome:!1,countIn:!1,speed:1},u=()=>Tt(r),a=()=>{},d=null,m=null,p=()=>(d??=new Promise((T)=>{if(m=()=>T(!1),t.settings.player.playerMode=n.PlayerMode.EnabledSynthesizer,t.settings.player.enableCursor=!0,!o.instruments){if(t.playerReady.on(()=>T(!0)),typeof o.soundFont==="string")t.settings.player.soundFont=o.soundFont;if(t.updateSettings(),o.soundFont instanceof Uint8Array)t.loadSoundFont(we(e).bytes(o.soundFont),!1);return}let v=!1,A=!1,P=()=>{if(v&&A)T(!0)};t.playerReady.on(()=>{v=!0,P()}),t.updateSettings();let B=t.score?jt(t.score):{programs:[],drums:!1};Ue(t,e,o,B,!1,s).then(()=>{A=!0,P()},(O)=>{T(!1),a(O instanceof Error?O.message:String(O))})}).then((T)=>{if(T)t.isLooping=l.loop,t.metronomeVolume=l.metronome?1:0,t.countInVolume=l.countIn?1:0,t.playbackSpeed=l.speed,t.masterVolume=u();return T}),d),f=(T)=>{if(t.player)T()},y=K(e,"mn-play-toggle",s("playback.play"),"play");y.addEventListener("click",()=>{p().then((T)=>{if(T)t.playPause()})}),a=(T)=>{y.disabled=!0,y.title=s("tab.player.cantPlay",{message:T}),y.setAttribute("aria-label",y.title)};let h=K(e,"mn-tab-stop",s("playback.stop"),"stop");h.addEventListener("click",()=>f(()=>t.stop()));let g=()=>f(()=>{t.isLooping=l.loop,t.metronomeVolume=l.metronome?1:0,t.countInVolume=l.countIn?1:0}),b=ie(e,"mn-tab-loop",s("playback.loop"),"loop",!1,(T)=>{l.loop=T,g()}),k=ie(e,"mn-tab-click",s("tab.player.metronome"),"click",!1,(T)=>{l.metronome=T,g()}),w=ie(e,"mn-tab-count",s("playback.countIn"),"count",!1,(T)=>{l.countIn=T,g()}),S=t.score?.tempo??null,z=Rt(e,{...i.tempoUnit?{unit:i.tempoUnit}:{},tempo:()=>S,set:(T)=>{l.speed=T,f(()=>t.playbackSpeed=l.speed)},...i.onTempoUnit?{unitChanged:i.onTempoUnit}:{}}),x=D(e,"span","mn-tab-time","");c.append(y,h,b,k,w,z.field,x);let U=Et(u,()=>[{stop(){},setVolume:(T)=>f(()=>t.masterVolume=T)}],u());return t.playerStateChanged.on((T)=>{let v=Number(T.state)===Number(n.synth.PlayerState.Playing);y.replaceChildren(se(e,v?"pause":"play")),y.title=v?s("tab.player.pause"):s("playback.play"),y.setAttribute("aria-label",y.title)}),t.playerPositionChanged.on((T)=>{x.textContent=`${Vt(T.currentTime)} / ${Vt(T.endTime)}`;let v=Ot(t.tickCache?.masterBars??[],T.currentTick,t.score?.tempo??null);if(v!==S)S=v,z.refresh()}),{bar:c,speed:()=>l.speed,destroy:U,failed:(T)=>{m?.(),a(T)}}}function Ro(e,t){return e.tracks.some((n,o)=>(!t||t.includes(o+1))&&n.staves.some((r)=>!r.isPercussion&&r.tuning.length>0))}var Uo=[{staves:"tab",label:"tab.view.tab",what:"tab.view.whatTab"},{staves:"score",label:"tab.view.score",what:"tab.view.whatScore"},{staves:"both",label:"tab.view.both",what:"tab.view.whatBoth"}];function Bo(e,t,n,o){let r=V(),i=D(e,"span","mn-tab-views");i.setAttribute("role","group"),i.setAttribute("aria-label",r("tab.view.group"));let s=t.staves,c=o?D(e,"button","mn-tab-keep",r("tab.view.keep")):null,l=Uo.map(({staves:a,label:d,what:m})=>{let p=D(e,"button","mn-tab-view",r(d));return p.type="button",p.dataset.staves=a,p.title=a!==t.staves?r("tab.view.drawAs",{what:r(m)}):t.written?r("tab.view.drawAsWritten",{what:r(m)}):r("tab.view.drawAsDefault",{what:r(m)}),p.addEventListener("click",()=>{if(a===s)return;s=a,u(),n(a)}),i.appendChild(p),p}),u=()=>{for(let a of l){let d=a.dataset.staves===s;a.classList.toggle("mn-on",d),a.setAttribute("aria-pressed",String(d))}if(c)c.hidden=s===t.staves,c.title=r("tab.view.keepTitle",{staves:s})};if(c&&o)c.type="button",c.addEventListener("click",()=>o(s)),i.appendChild(c);return u(),i}function Be(e,t,n,o){let r=n.ownerDocument,i=X(o.language)??"en",s=ue(i),c=D(r,"div",`mn-block mn-block-${e} mn-tab`);n.appendChild(c);let l=null,u=()=>1,a=()=>{},d=!1,m=!1,p=()=>{},f=new Promise((h)=>{p=(g)=>{if(m)return;m=!0,h(g)}}),y=(h,g={})=>{c.replaceChildren(D(r,"div","mn-error-message",`${e}: ${h}`)),c.classList.add("mn-error"),p({ok:!1,error:h,...g})};if(!t.trim())c.classList.add("mn-empty"),p({ok:!0,error:null});else(async()=>{await Promise.resolve();let h=Ee(i,()=>Mo(e,t)),g={staves:h.stavesWritten?h.staves:o.defaultStaves??h.staves,written:h.stavesWritten},b=g.staves,k=!1,w=o.alphaTab;if(!w?.AlphaTabApi)throw Error("alphaTab isn't loaded");let S=D(r,"div","mn-tab-surface");c.appendChild(S);let z=h.layout==="line";c.classList.toggle("mn-tab-line",z);let{assets:x}=o,U=we(r),T={core:{useWorkers:Boolean(x.scriptFile),...x.scriptFile?{scriptFile:x.scriptFile}:{},smuflFontSources:U.map([[w.FontFileFormat.Woff2,x.font]]),logLevel:w.LogLevel.Warning,enableLazyLoading:!1},display:{staveProfile:"Default",resources:Oo(c),...z?{layoutMode:w.LayoutMode?.Horizontal??1}:{}},player:{playerMode:w.PlayerMode.Disabled,enableSeekToClick:!0,enablePlaybackRangeSelection:!0,scrollMode:w.ScrollMode.Off}},v=new w.AlphaTabApi(S,T);if(l=v,v.settings.player.scrollElement=S,d){v.destroy();return}o.onApi?.(v);let A=h.names??o.names===!0,P=de(o.naming)??"letters",B=null,O=[];v.scoreLoaded.on((C)=>{if(O=C.tracks.flatMap((F)=>F.staves.map((M)=>({showSlash:M.showSlash,showNumbered:M.showNumbered}))),$t(b,C),k=Ro(C,h.tracks),Fo(C,h.file?null:h.tex),B=null,A)B=Oe(C,P)}),Po(v,S);let G=null;v.renderFinished.on(()=>Ee(i,()=>{if(m||d)return;if(o.player!==!1){let C=h.engine??fe(o.engine);if(h.engine)c.setAttribute("data-mn-engine",h.engine);if(G=Go(r,v,w,Eo(x,C),o.volume,o),a=G.destroy,u=G.speed,c.appendChild(G.bar),o.views!==!1&&k)G.bar.appendChild(Bo(r,g,(E)=>{b=E;let N=v.score;if(d||!N)return;N.tracks.flatMap((te)=>te.staves).forEach((te,R)=>Object.assign(te,O[R])),$t(E,N),v.render()},o.onKeepView));G.bar.appendChild(ie(r,"mn-tab-names",s("tab.names"),"names",A,(E)=>{A=E;let N=v.score;if(d||!N)return;B?.(),B=E?Oe(N,P):null,v.render()}));let F=null,M=!1,L=!0,_=()=>F?.active()??!1,Y=K(r,"mn-tab-follow",s("tab.follow"),"follow"),Ve=()=>{let E=_()?L:H.on(),N=_()?L&&!M:E&&!H.active();Y.setAttribute("aria-pressed",String(E)),Y.classList.toggle("mn-on",E),Y.classList.toggle("mn-follow-paused",N),Y.title=N?s("tab.followPaused"):s("tab.follow")},Te=()=>{let E=z?w.ScrollMode.Continuous:w.ScrollMode.OffScreen,N=_()?M&&L?E:w.ScrollMode.Off:z&&H.active()?E:w.ScrollMode.Off;if(v.settings.player.scrollMode!==N)v.settings.player.scrollMode=N,v.updateSettings();Ve()},H=zt(c,{on:z,changed:Te});if(z)v.settings.player.scrollOffsetX=-24,v.settings.player.scrollMode=w.ScrollMode.Continuous,v.updateSettings();Y.addEventListener("click",()=>{if(!_())return H.press();if(L&&!M)F?.playing();else L=!L;Te()}),v.playerStateChanged.on((E)=>{if(Number(E.state)===Number(w.synth?.PlayerState.Playing))H.playing()});let an=G;v.playerPositionChanged.on(()=>{if(z||_()||!H.active())return;let E=S.querySelector(".at-cursor-bar");if(!E)return;let{top:N,bottom:j}=E.getBoundingClientRect();H.show({top:N,bottom:j},an.bar.offsetHeight+12)}),Ve(),G.bar.appendChild(Y);{let E=a;a=()=>{H.destroy(),E()}}if(o.fullScreen!==!1){let E=null,N=Ft((R,ne)=>{let W=v.settings.display;if(d||!W)return;E??={scale:W.scale,fill:W.lastSystemFillThreshold},W.scale=ne?R:E.scale,W.lastSystemFillThreshold=ne?0:E.fill,v.updateSettings(),v.render()},()=>S.scrollHeight<=S.clientHeight+1),j=Ct(r,c,S,(R)=>{M=R,Te()},{changed:(R)=>R?N.enter():N.leave()});F=j,v.postRenderFinished.on(()=>{let R=S.querySelector(".at-surface");if(R&&j.active()){let ne=Math.max(0,...[...R.children].map((W)=>{let qe=W;return qe.offsetTop+qe.offsetHeight}));if(ne>R.offsetHeight)R.style.height=`${ne}px`}N.drawn()}),v.playerStateChanged.on((R)=>{if(Number(R.state)===Number(w.synth.PlayerState.Playing))j.playing()}),v.renderFinished.on(()=>j.drawn()),G.bar.appendChild(j.button);let te=a;a=()=>{j.destroy(),te()}}c.addEventListener("pointerdown",(E)=>{if(E.pointerType!=="touch"||G?.bar.contains(E.target))return;c.classList.toggle("mn-play-open")})}p({ok:!0,error:null})})),v.error.on((C)=>{let F=h.fromText?null:qt(C,h.texLine,s),M=F?F.message:s("tab.error.textTab",{message:zo(C,null,s)}),L={...F?.line!==void 0?{line:F.line}:{},...F?.column!==void 0?{column:F.column}:{}};if(m)G?.failed(M);else y(M,L)});let ee=h.tracks?.map((C)=>C-1);if(h.file){let C;try{C=o.resolveFile?await o.resolveFile(h.file):null}catch(M){throw Error(s("tab.error.fileRead",{file:h.file,message:M instanceof Error?M.message:String(M)}),{cause:M})}if(d)return;if(!C)throw Error(s("tab.error.fileMissing",{file:h.file}));if(!v.load(U.bytes(C),ee))throw Error(s("tab.error.fileUnknown",{file:h.file}))}else v.tex(h.tex,ee??"all")})().catch((h)=>{if(!d)y(h instanceof Error?h.message:String(h))});return{el:c,ready:f,get api(){return l},speed:()=>u(),destroy(){d=!0,a();try{l?.destroy()}catch{}c.remove(),p({ok:!1,error:null})}}}var _t=0,ve=(e,t)=>e==="piano"?_t:De[t??be],Q={channel:1,program:28},Re={channel:9,key:33},jo=0.5;function Io(e,t){return{reportsStart:!0,play(n,{sound:o,volume:r,onEnd:i,onStart:s,guitar:c}){let l=t(),u=l?.player;if(!l||!u)throw Error("The soundfont player is not ready");let a=new e.midi.MidiFile,d=new e.midi.AlphaSynthMidiFileHandler(a,!0),m=(g)=>Math.round(g*a.division);if(d.addTempo(0,60),d.addProgramChange(0,0,0,ve(o,c)),o==="guitar"&&n.some((g)=>g.kind==="muted"))d.addProgramChange(0,0,Q.channel,Q.program);if(n.some((g)=>g.kind==="click"))d.addProgramChange(0,0,Re.channel,0);let p=Number.isFinite(r)?Math.min(1,Math.max(0,r)):0.8;l.masterVolume=p;for(let g of n){let b=g.velocity===void 0||!Number.isFinite(g.velocity)?100:Math.round(Math.min(127,Math.max(1,g.velocity))),k=g.kind==="click"?Re.channel:g.kind==="muted"&&o==="guitar"?Q.channel:0;d.addNote(0,m(g.time),Math.max(1,m(g.duration)),g.kind==="click"?Re.key:g.midi,b,k)}let f=Math.max(...n.map((g)=>g.time+g.duration),0);d.addControlChange(0,m(f+jo),0,e.midi.ControllerType.HoldPedal,0),l.playbackSpeed=1,u.playOneTimeMidiFile(a);let y=!1;queueMicrotask(()=>{if(!y)s?.()});let h=setTimeout(()=>i?.(),(f+0.2)*1000);return{stop(){y=!0,clearTimeout(h),u.stop()},setVolume(g){if(y||!Number.isFinite(g))return;l.masterVolume=Math.min(1,Math.max(0,g))}}}}}function xe(e,t,n,o){let r=null,i=null,s=null,c=new Set,l=new Map,u=!t.instruments,a=(f,y)=>f==="guitar"?[ve(f,y),Q.program]:[ve(f)],d=(f="guitar",y)=>{if(s)return s;i=D(n,"div","mn-tab-hidden"),i.setAttribute("aria-hidden","true"),n.body.appendChild(i);let h=we(n);r=new e.AlphaTabApi(i,{core:{useWorkers:Boolean(t.scriptFile),...t.scriptFile?{scriptFile:t.scriptFile}:{},smuflFontSources:h.map([[e.FontFileFormat.Woff2,t.font]])},player:{playerMode:e.PlayerMode.EnabledSynthesizer,enableCursor:!1,scrollMode:e.ScrollMode.Off,...typeof t.soundFont==="string"&&!t.instruments?{soundFont:t.soundFont}:{}}});let g=r;if(s=new Promise((b)=>{let k=!1,w=!g.playerReady,S=()=>{if(k&&w)b(!0)},z=()=>{k=!0,S(),setTimeout(()=>{w=!0,S()},4000)};if(g.playerReady?.on(()=>{w=!0,S()}),g.error.on(()=>b(!1)),t.instruments)Ue(g,n,t,{programs:a(f,y),drums:!1}).then((x)=>{if(x==="whole")u=!0;else for(let U of a(f,y))c.add(U);z()},()=>b(!1));else g.soundFontLoaded.on(z)}),t.soundFont instanceof Uint8Array&&!t.instruments)g.loadSoundFont(h.bytes(t.soundFont),!1);return g.tex([...wt.map((b)=>`\\track "Guitar ${b}" \\instrument ${De[b]} r`),`\\track "Piano" \\instrument ${_t} r`,`\\track "Muted" \\instrument ${Q.program} r`].join(" ")),s},m=async(f,y)=>{if(!await d(f,y))return!1;let h=ve(f,y);if(u||c.has(h)||!r)return!0;let g=r,b=l.get(h);if(!b){let k=a(f,y).filter((w)=>w===h||!c.has(Q.program));b=Ue(g,n,t,{programs:k,drums:!1,click:!1},!0).then((w)=>{if(w==="whole")u=!0;else for(let S of k)c.add(S);return!0},()=>!1),l.set(h,b)}return b},p=Io(e,()=>r);return{reportsStart:!0,play(f,y){let h=null,g=!1,b=y.volume;return m(y.sound,y.guitar).then((k)=>{if(g)return;try{if(k){h=p.play(f,{...y,volume:b});return}}catch{}if(!o)return;if(h=o.play(f,{...y,volume:b}),!o.reportsStart)y.onStart?.()}),{stop(){g=!0,h?.stop()},setVolume(k){b=k,h?.setVolume?.(k)}}},destroy(){try{r?.destroy()}catch{}i?.remove(),r=null,s=null,c.clear(),l.clear(),u=!t.instruments}}}function Wt(e=()=>ae().script){let t=null;return(n)=>{let o=n.defaultView;if(o.alphaTab)return Promise.resolve(o.alphaTab);return t??=new Promise((r,i)=>{let s=n.createElement("script");s.src=e();let c=o.define?.amd?o.define:void 0;if(c)o.define=void 0;let l=(u)=>{if(c&&o.define===void 0)o.define=c;if(u===null&&o.alphaTab){r(o.alphaTab);return}t=null,s.remove(),i(Error(u??"alphaTab's script didn't define alphaTab"))};s.onload=()=>l(null),s.onerror=()=>l("Couldn't load alphaTab"),n.head.appendChild(s)}),t}}function Kt(e,t){return(e&&typeof e==="object"?X(e.language):null)??X(t.documentElement.lang)??"en"}var Yt=`/* Music notation. Colors follow Obsidian's theme variables when present, with fallbacks for any page. */
|
|
1
|
+
/*! @dsebastien/music-notation 0.26.0 tab bundle | MIT | loads alphaTab (MPL-2.0) from jsDelivr */
|
|
2
|
+
(()=>{var Tn=["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"],Sn=["C","Db","D","Eb","E","F","Gb","G","Ab","A","Bb","B"],et={C:0,D:2,E:4,F:5,G:7,A:9,B:11};function re(e){let t=/^([A-Ga-g])([#♯b♭]*)$/.exec(e.trim());if(!t)return null;let n=et[t[1].toUpperCase()];for(let o of t[2])n+=o==="#"||o==="♯"?1:-1;return(n%12+12)%12}function Ne(e){let t=/^([A-Ga-g][#♯b♭]*)(-?\d)$/.exec(e.trim());if(!t)return null;let n=re(t[1]);if(n===null)return null;let o=et[t[1][0].toUpperCase()],r=Math.round((n-o)/12);return(Number(t[2])+1)*12+n-r*12}var Le=(e,t=!1)=>(t?Sn:Tn)[((Math.round(e)||0)%12+12)%12];var tt=(e,t=!1)=>`${Le(e,t)}${Math.floor(e/12)-1}`;var nt={"render.layout.orientation":'Unknown orientation "{text}": use vertical or horizontal',"render.layout.hand":'Unknown hand "{text}": use left or right',"render.rootMark.invalid":'root-mark: write color or shape, got "{text}"',"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","render.unknownChord":`Didn't recognize "{written}": try {suggestions}`,"render.tuning":'Unknown tuning "{text}"',"render.yesNo":'{key} must be yes or no, got "{text}"',"render.hand.left":"left hand","render.hand.right":"right hand","render.positions.exerciseOne":"exercise plays one position: write position: 1 (not positions:)","render.positions.needsSet":"positions needs a scale or a chord: e.g. A minor pentatonic or arpeggio: Am7","render.positions.arpeggioCaged":"Arpeggios use CAGED shapes, not 3nps: leave shape out","render.positions.range":"positions: use all, or numbers from 1 to {count} for {title}","render.positions.fromMinor":" (from {root}m)","render.positions.arpeggioTitle":"{title} arpeggio","render.positions.shapeTitle":"{name}, {shape} shape","render.positions.npsTitle":"{name}, 3nps {n}{from}","render.positions.boxTitle":"{name}, box {n}{from}","render.fingering.handTitle":"{title}, {hand}","render.voicings.notBoth":"Use triads or voicings, not both","render.voicings.fretted":"voicings are for guitar and other fretted instruments","render.voicings.noFrets":'voicings finds the frets itself: remove "{value}"',"render.voicings.needsChord":"voicings needs a chord: e.g. A Major","render.voicings.instrument":'Unknown instrument "{instrument}": use guitar, or give a tuning',"render.voicings.maxStrings":"voicings works on up to {max} strings","render.voicings.count":"voicings: use all, or a number from 1 to {max}","render.voicings.area":'area: use open, or frets like 5-9 (up to 24), got "{area}"',"render.voicings.rootString":"root-string: use a string number from 1 (the highest) to {count}","render.voicings.inversion":'inversion: use 0 (root), 1, 2, 3 or any, got "{inversion}"',"render.voicings.manyStringsAny":"On {count} strings, inversion: any needs six strings or fewer: add e.g. strings: 1-6","render.voicings.wideArea":"a wide area","render.voicings.oneWidening":"On {count} strings, use one of {list} at a time","render.noVoicing.gaps":"strings {strings} aren't next to each other: add gaps: yes","render.noVoicing.rootString":"root-string {string} isn't among strings {strings}","render.noVoicing.inversion":"{symbol} has {notes} notes: inversion goes up to {max}","render.noVoicing.bass":"No voicing of {chord} has its bass on string {string}: try another root-string","render.noVoicing.none":"No playable voicing of {chord} fits: widen the area, allow open strings or add stretch: yes","render.triads.noFrets":'triads finds the frets itself: remove "{value}"',"render.triads.fretted":"triads are for guitar and other fretted instruments: give a tuning","render.triads.strings":"triads: give three strings next to each other, e.g. 1-3 or 2-4","render.triads.inversion":'inversion: use 0 (root position), 1, 2 or any, got "{inversion}"',"render.triads.keyInversion":"With a key, pick one inversion: 0, 1 or 2","render.triads.key":'Unknown key "{text}": use e.g. key: G major or key: E minor',"render.triads.needsChord":"triads needs a chord (e.g. G) or a key (key: G major)","render.triads.notTriad":"{symbol} isn't a triad (three notes): try voicings: all","render.triads.none":"No triad fits on these strings: try another string set","render.transitions.needsFrom":"Add the chord you hold: from: C (with its frets: from: C x32010)","render.transitions.fretted":"Transitions are for guitar and other fretted instruments: give a tuning","render.transitions.notBoth":"Use from and to, or progression, not both","render.transitions.refused":`"{key}" can't be used with {with}`,"render.transitions.maxStrings":"Transitions work on up to {max} strings","render.transitions.twoChords":"progression: give two chords or more, e.g. G D Em C","render.transitions.maxChords":"progression: at most {max} chords","render.transitions.noVoicings":"No playable voicings for this progression","render.transitions.needsTo":"Add the next chord: to: D","render.transitions.noHeld":"No playable voicing of {chord}: add its frets","render.transitions.stringCount":'"{frets}" has {have} strings, the tuning {count}',"render.transitions.count":"count: use a number from 1 to {max}","render.transitions.noTarget":"No playable voicing of {chord}","render.modes.none":'"{value}" has no modes: use e.g. modes: C major',"render.modes.refused":`"{key}" can't be used with modes: only {allowed}`,"render.row.notShared":`"{key}" can't be shared: move it to a diagram. Shared settings: {allowed}`,"render.row.columns":'columns must be a whole number from 1 to 12, got "{text}"',"render.row.needsDiagram":'Add a diagram after the shared settings: a "---" line, then the diagram',"render.row.max":"At most {max} diagrams per block, found {found}","render.row.columnsShared":'"columns" goes in the shared settings, before the first "---"',"render.row.ownRow":'"{key}" draws its own row: use it in a block of its own',"render.row.exercise":"exercise draws a tab under one diagram: use it in a block of its own","render.row.diagram":"diagram {n}: {message}","render.row.sharedHint":' (shared settings before the first "---" may only hold: {allowed})',"fretboard.capo":"Capo {fret}","fretboard.title":"Fretboard: {title}","fretboard.note.open":"{note} open","fretboard.note.fret":"{note} at fret {fret}","fretboard.note.root":" (root)","fretboard.string":"String {n} ({name}): {notes}.","fretboard.pick.open":"String {string}, open","fretboard.pick.fret":"String {string}, fret {fret}","fretboard.exercise.direction":'exercise: use up, down or up-down, got "{text}"',"fretboard.exercise.rhythm":'rhythm: use 8ths, triplets or 16ths, got "{text}"',"fretboard.exercise.scale":'Unknown scale "{text}"',"fretboard.exercise.chord":'Unknown chord "{text}"',"fretboard.exercise.needsSet":"An exercise needs a scale or an arpeggio: e.g. scale: A minor or arpeggio: Am7","fretboard.exercise.arpeggioCaged":"Arpeggios use CAGED shapes: position 1 to 5, or shape: E, D, C, A or G (not 3nps)","fretboard.exercise.positions":"{title} has {count} {system} positions: use position 1 to {count}","fretboard.exercise.tuning":'Unknown tuning "{text}"',"fretboard.exercise.capo":"capo: use a fret from 1 to 12 (0 for none), got {text}","fretboard.positions.numbering":'numbering: use minor (positions from the relative minor), got "{text}"',"fretboard.positions.numberingPentatonic":"numbering: minor is for major pentatonic positions (e.g. A major pentatonic), not {title}","fretboard.positions.numberingCaged":"numbering: minor numbers boxes and 3nps positions, not CAGED shapes","fretboard.positions.position":'position must be a whole number from 1, got "{text}"',"fretboard.positions.shape":'Unknown shape "{text}": use C, A, G, E, D or 3nps',"keyboard.fingering.finger":'fingering: fingers go from 1 (thumb) to 5 (little finger), got "{text}"',"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","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","keyboard.piano.shell":"Shell voicings need a third and a seventh or sixth (C7, Cmaj7, Cm7, C6): {symbol} has none","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}","keyboard.piano.octave":'octave: use a number from 0 to 8, got "{text}"',"keyboard.piano.inversion":'inversion: use 0 (root position), 1, 2 or 3, got "{text}"',"keyboard.piano.slashInversion":"{symbol} already says its bass: leave inversion out","keyboard.piano.inversionStyle":"inversion goes with close or open voicings, not {style}","keyboard.piano.inversionMax":"{symbol} has {notes} notes: inversion goes up to {max}","keyboard.piano.open":"Open voicings need three notes or more: {symbol} has {notes}","keyboard.piano.offKeys":"octave {octave} puts {symbol} off the piano's keys: try octave 3 or 4","keyboard.piano.inversionWord":'inversion: use root, first, second, third (or 0 to 3), got "{text}"',"keyboard.piano.octaveMiddle":`octave: use a number from 0 to 8 (4 is middle C's), got "{text}"`,"keyboard.piano.voicing":'voicing: use close, open, shell, shell R-7, rootless A or rootless B, got "{text}"',"keyboard.piano.key":'Unknown key "{text}": use e.g. key: C minor or key: Eb',"keyboard.piano.resolvesTo":'resolves-to: write a chord, e.g. resolves-to: Cm, got "{text}"',"keyboard.piano.hands":'hands: use left+right, left or right, got "{text}"',"keyboard.title":"Keyboard: {title}","keyboard.hand":"{hand}: {keys}","keyboard.handMark.left":"LH","keyboard.handMark.right":"RH","keyboard.whiteKey":"White key {n}","keyboard.blackKey":"Black key {n}","keyboard.lit.root":"root","keyboard.lit.finger":"finger {finger}","keyboard.lit.keys":"Keys: {keys}.","circle.label":"Circle of fifths, {key}: {signature}{accidentals}; chords: {chords}","circle.or":"or","circle.mode.major":"major","circle.mode.minor":"minor","circle.mode.ionian":"ionian","circle.mode.dorian":"dorian","circle.mode.phrygian":"phrygian","circle.mode.lydian":"lydian","circle.mode.mixolydian":"mixolydian","circle.mode.aeolian":"aeolian","circle.mode.locrian":"locrian","circle.key":'Unknown key "{text}": use e.g. key: G, key: Em or key: D dorian',"circle.mode":'Unknown mode "{text}": use major, minor, dorian, phrygian, lydian, mixolydian or locrian',"circle.modeTwice":"key: {key} already says {mode}: leave out mode or write the key's note alone","circle.chords":'chords: use triads or sevenths, got "{text}"',"circle.dominant":'dominant: use major (V, from the harmonic minor) or minor (v), got "{text}"',"keyboard.piano.unknownChord":'Unknown chord "{symbol}"'};var ot={"blocks.source.expected":'Expected "key: value", got "{line}"',"blocks.source.strings":"strings: use string numbers from 1 (the highest) to {count}, e.g. 1-4","blocks.caption.fingeringChordOnly":"caption: fingering is for chord blocks: use formula or none here","blocks.caption.useAll":'caption: use fingering (the fingering in words), formula (notes and intervals), fingering, formula (both) or none, got "{written}"',"blocks.caption.useFormula":'caption: use formula (notes and intervals) or none, got "{written}"',"blocks.noteSet.chordOrArpeggio":"Use chord or arpeggio, not both","blocks.noteSet.invalidRoot":'Invalid root "{root}": use a note name, e.g. root: C',"blocks.noteSet.notAList":'"{head}" is not a list of notes: use e.g. notes: C Eb G',"blocks.noteSet.addNotesForRoot":"Add the notes for the root: e.g. notes: C Eb G","blocks.noteSet.addRoot":"Add a root note: C {scale}","blocks.noteSet.addSource":'Add "scale:", "chord:" or "notes:"',"blocks.noteSet.rootListsOnlyScale":"root only applies to lists of notes (notes: C E G): a scale has its own root","blocks.noteSet.rootListsOnlyChord":"root only applies to lists of notes (notes: C E G): a chord has its own root","blocks.noteSet.unknownLabelsFingers":'Unknown labels "{value}": use notes, degrees, intervals, fingers or none',"blocks.noteSet.unknownLabels":'Unknown labels "{value}": use notes, degrees, intervals or none',"blocks.noteSet.invalidNotes":'Invalid notes "{notes}"',"blocks.noteSet.unknownScale":'Unknown scale "{scale}"',"blocks.noteSet.unknownChord":'Unknown chord "{chord}"',"blocks.noteSet.notAScaleChordOrList":'"{head}" is not a scale, chord or list of notes',"blocks.noteSet.highlightNeedsIntervals":"highlight needs a scale, a chord or a root: a list of notes has no intervals (add e.g. root: C)","blocks.noteSet.notInSet":`"{label}" isn't in {title}: use its intervals (R, b3, 5…)`,"theory.key.needsSharps":"{name} needs {count} sharps: write {write}","theory.key.needsFlats":"{name} needs {count} flats: write {write}","theory.key.noSignature":"no ♯ or ♭","theory.harmonize.unknownScale":'Unknown scale "{text}": use e.g. key: G major, key: A harmonic minor or key: D dorian',"theory.harmonize.sevenNotes":"harmonize needs a scale of 7 notes: {name} has {count}","theory.harmonize.noNamedChord":"not a named chord","theory.harmonize.noFifth":"no perfect fifth","theory.harmonize.noFourthOrSecond":"no perfect fourth or major second","blocks.progression.yesNo":'{key} must be yes or no, got "{text}"',"blocks.progression.majorMinorKeys":'Progression keys are major or minor: write key: {tonic} major or key: {tonic} minor, got "{text}"',"blocks.progression.unknownKey":'Unknown key "{text}": use e.g. key: G, key: Em or key: F# minor',"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)`,"blocks.progression.harmonizeKind":'harmonize: write triads, sevenths, sus or power, got "{kind}"',"blocks.progression.harmonizeNothing":"harmonize: write triads, sevenths, sus or power, got nothing","blocks.progression.harmonizeNoChords":"harmonize draws the chords of the scale: leave out the chords ({written})","blocks.progression.addScale":"Add the scale: e.g. key: A harmonic minor","blocks.progression.transposeWhole":"transpose must be a whole number of semitones, e.g. transpose: -2","blocks.progression.addChords":"Add the chords: e.g. I V vi IV with key: G, 1 5 6m 4, or G D Em C","blocks.progression.addKey":"Add the key: e.g. key: G or key: E minor","blocks.progression.unknownTuning":'Unknown tuning "{text}"',"blocks.progression.tempo":'tempo: write beats a minute from {min} to {max}, got "{text}"',"blocks.progression.strum":"strum: write beats, bar, arpeggio or a strumming pattern (D DU UDU): {reason}","blocks.progression.key":"Key: {name}","blocks.progression.blues":"(blues)","blocks.progression.orKeys":"(or {list})","blocks.progression.leftOut":"Left out: {list}","blocks.progression.leftOutDegree":"degree {degree} ({note}), {reason}","blocks.progression.unknownInstrument":'Unknown instrument "{instrument}": use guitar or piano',"blocks.progression.numerals":'numerals: use roman, nashville or none, got "{style}"',"blocks.progression.voiceLeadingPiano":"voice-leading is for piano: add instrument: piano","blocks.progression.pianoOnly":"{key} is for piano chords: add instrument: piano","blocks.progression.voiceLeadingHands":"voice-leading goes with hands: left+right (a left-hand bass under each chord), not left or right alone","blocks.progression.voiceLeadingOrKey":"Use voice-leading or {key}, not both","blocks.progression.addChordsAfterShared":'Add the chords after the shared settings, after a "---" line',"blocks.progression.maxChords":"At most {max} chords per block, found {count}","theory.chord.suggest":"{root}, {root}m, {root}7 or {spelled} {quality}","blocks.render.maxStrings":"At most {max} strings","blocks.render.invalidRange":'Invalid range "{text}": use e.g. C3-B4',"blocks.render.maxKeys":"At most {max} keys: give a smaller range, e.g. range: C3-B5","blocks.render.wholeFrom1":'{what} must be a whole number from 1, got "{text}"',"blocks.render.unrecognized":`Didn't recognize "{written}": try {suggestions}`,"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","blocks.chord.capoNotPiano":"capo is for guitar and other fretted instruments, not piano","blocks.chord.pitchesGivenKeys":"{given} goes with a chord symbol: pitches are already the keys to play","blocks.chord.autoNeedsSymbol":"fingering: auto goes with a chord symbol: write the fingers, e.g. 1 3 5","blocks.chord.invalidPitches":'Invalid pitches "{text}"',"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","blocks.chord.addSymbolOrPitches":'Add a chord symbol or "pitches:"',"blocks.chord.unknownInstrument":'Unknown instrument "{instrument}": use guitar or piano, or give a tuning',"blocks.chord.invalidFrets":'Invalid frets "{text}": use e.g. x02220',"blocks.chord.nutAtCapo":"With frets-from: nut, every sounding fret is at the capo ({capo}) or above: write x for strings behind it","blocks.chord.capoMaxFret":"With capo {capo}, frets go up to {max}","blocks.chord.fingersCount":'"{text}" has {fingers} fingers for {strings} strings',"blocks.chord.noVoicing":'No voicing {n} found for "{symbol}": add "frets:"',"blocks.chord.addFretsFor":'Add "frets:" for {symbol} (e.g. frets: x02220)',"blocks.chord.addSymbolAndFrets":'Add a chord symbol and "frets:"',"blocks.chord.positionAboveLowest":"position {base} is above the lowest fretted note (fret {fret})","blocks.chord.tuningStrings":"The tuning has {tuning} strings, the frets {frets}","blocks.chord.soundsTitle":"{sounding} ({shape} shape)","blocks.chord.captionFormulaChord":"caption: formula needs a chord the library knows: add its symbol (e.g. symbol: A)","blocks.chord.captionFormulaSet":"caption: formula needs a chord or a scale the library knows: add chord: or scale:","blocks.chord.soundsTitleNeedsChord":"sounds: title needs a chord the library knows: add its symbol (e.g. symbol: A)","blocks.chord.soundsNeedsCapo":"sounds goes with a capo: add e.g. capo: 2","blocks.chord.soundsYesNeedsChord":"sounds: yes needs a chord the library knows: add its symbol (e.g. symbol: A), or write the chord: sounds: B","blocks.chord.soundsMismatch":"With capo {capo}, {shape} sounds {sounding}, not {value}: write sounds: {sounding} (or sounds: yes)","blocks.chord.unknownLabels":'Unknown labels "{text}": use fingers, intervals, notes or none',"blocks.chord.labelsNeedChord":"labels: {value} needs a chord the library knows","blocks.keyboard.autoBothAlone":"fingering: auto both draws two keyboards: put it in a block of its own, not in a --- row","blocks.keyboard.fingersCount":"fingering has {fingers} fingers: {title} needs {needed}, one per note from the root up to the root above","blocks.keyboard.fingersForNotes":"fingering has {fingers} fingers for {notes} notes: one finger per note, in the order written","blocks.keyboard.keyTwice":"A key is listed twice: one finger per key","blocks.keyboard.pastRange":"The fingered notes go past the range: widen range: or leave it out","blocks.keyboard.handTitleLeft":"{title}, left hand","blocks.keyboard.handTitleRight":"{title}, right hand","blocks.fretboard.invalidFrets":'Invalid frets "{text}": use e.g. 5-8',"blocks.fretboard.maxFret":"Frets go up to {max}","blocks.fretboard.nutStartsAtCapo":"With frets-from: nut, frets start at the capo ({capo}) or above: e.g. frets: {capo}-{example}","blocks.fretboard.numberingNeedsPosition":"numbering goes with a position: e.g. position: 1 or positions: all","blocks.fretboard.positionsNeedSet":"Positions need a scale or a chord: e.g. scale: A minor or arpeggio: Am7","blocks.fretboard.arpeggioCaged":"Arpeggios use CAGED shapes: position 1 to 5, or shape: E, D, C, A or G (not 3nps)","blocks.fretboard.positionCount":"{title} has {count} {named} positions: use position 1 to {count}","blocks.fretboard.positionNotFit":"{title}, position {n} doesn't fit in frets {from}-{to}: widen frets: or leave it out","blocks.fretboard.rhythmNeedsExercise":"rhythm goes with exercise: e.g. exercise: up-down","blocks.fretboard.exerciseNeedsPosition":"exercise plays one position: add position: 1 (or shape: E)","blocks.fretboard.invalidTempo":'Invalid tempo "{text}": use beats a minute from 20 to 240, e.g. tempo: 80',"blocks.fretboard.arpeggioTitle":"{name} arpeggio","blocks.fretboard.fromMinor":" (from {minor}m)","blocks.fretboard.shapeTitle":"{name}, {shape} shape","blocks.fretboard.threeNpsTitle":"{name}, 3nps {n}{from}","blocks.fretboard.boxTitle":"{name}, box {n}{from}","blocks.scalesFor.both":"Use scales-for (chords) or scales-for-notes, not both","blocks.scalesFor.findsItself":'{key} finds the scale itself: remove "{what}"',"blocks.scalesFor.addChords":"Add the chords: e.g. scales-for: G D Em C","blocks.scalesFor.addNotes":"Add the notes: e.g. scales-for-notes: C D E G A","blocks.scalesFor.unreadChords":`Didn't read the chords "{text}": use chord symbols, e.g. scales-for: G D Em C`,"blocks.scalesFor.unreadNotes":`Didn't read the notes "{text}": use note names, e.g. scales-for-notes: C D E G A`,"blocks.scalesFor.outside":", {notes} outside","blocks.scalesFor.bluesTitle":"{tonic} blues scale for {listed} (or {pentatonic}, {mixolydian})","blocks.scalesFor.title":"{name} for {listed}{outside}","chord.capo.fret":'capo: use a fret from 1 to {max}, got "{text}"',"chord.capo.fretsFrom":'frets-from: use capo (the default) or nut, got "{text}"',"theory.naming.write":"naming: write letters, solfege or german","theory.naming.writeDirective":"naming: write {letters}, {solfege} or {german}","chord.words.ordinalFirst":"1st","chord.words.ordinalSt":"{n}st","chord.words.ordinalNd":"{n}nd","chord.words.ordinalRd":"{n}rd","chord.words.ordinalTh":"{n}th","chord.words.listAnd":"{head} and {last}","chord.words.guitarIndex":"Index","chord.words.guitarMiddle":"Middle","chord.words.guitarRing":"Ring","chord.words.guitarPinky":"Pinky","chord.words.guitarThumb":"Thumb","chord.words.guitarFinger":"Finger {finger}","chord.words.pianoThumb":"thumb","chord.words.pianoIndex":"index finger","chord.words.pianoMiddle":"middle finger","chord.words.pianoRing":"ring finger","chord.words.pianoLittle":"little finger","chord.words.pianoFinger":"finger {finger}","chord.words.lowName":"low {name}","chord.words.highName":"high {name}","chord.words.stringNamed":"the {name} string","chord.words.stringsNamed":"the {names} strings","chord.words.stringNumberedNote":"the {n} string ({note})","chord.words.stringNumbered":"the {n} string","chord.words.capoFrom":"Capo on the {fret} fret: frets count from the capo.","chord.words.capoNut":"Capo on the {fret} fret.","chord.words.allMuted":"Every string is muted: no note sounds.","chord.words.strumSix":"Strum all six strings.","chord.words.strumAll":"Strum every string.","chord.words.strumFrom":"Strum from {from}.","chord.words.strumFromTo":"Strum from {from} to {to}.","chord.words.press":"Press {string} at the {fret} fret.","chord.words.fingerOn":"{finger} on {strings}, {fret} fret.","chord.words.fingerBars":"{finger} bars the {fret} fret, strings {from} to {to}.","chord.words.fingerAlsoOn":"{finger} also on {string}, {fret} fret.","chord.words.muteOne":"Mute {list}: let a fretting finger touch it lightly.","chord.words.mutePlural":"Mute {list}: let a fretting finger touch them lightly.","chord.words.groupRingOpenOne":"The {list} string rings open.","chord.words.groupRingOpenPlural":"The {list} strings ring open.","chord.words.groupRingCapoOne":"The {list} string rings at the capo.","chord.words.groupRingCapoPlural":"The {list} strings ring at the capo.","chord.words.ringOpenOne":"{list} rings open.","chord.words.ringOpenPlural":"{list} ring open.","chord.words.ringCapoOne":"{list} rings at the capo.","chord.words.ringCapoPlural":"{list} ring at the capo.","chord.words.pianoFingerOn":"{finger} on {key}","chord.words.pianoAlsoPlay":"{fingered}, and also play {list}","chord.words.sentence":"{text}.","chord.words.play":"Play {list}.","chord.words.leftHand":"Left hand: {part}.","chord.words.rightHand":"Right hand: {part}.","chord.transition.fingerIndex":"index finger","chord.transition.fingerMiddle":"middle finger","chord.transition.fingerRing":"ring finger","chord.transition.fingerPinky":"pinky","chord.transition.fingerThumb":"thumb","chord.transition.fingerOther":"finger","chord.transition.keep":"Keep your {finger} on {string}'s {fret} fret.","chord.transition.slide":"Slide your {finger} along {string} from fret {from} to {to}.","chord.transition.moveUp":"Move your hand up {shift} frets.","chord.transition.moveDown":"Move your hand down {shift} frets.","chord.transition.lift":"Lift all your fingers together and place them as one shape.","chord.guitar.capoCaption":"Capo {capo}","chord.guitar.capoCaptionSounds":"Capo {capo}, sounds {sounds}","chord.guitar.diagram":"Chord diagram","chord.guitar.diagramTitled":"{title} chord diagram","chord.guitar.rootOnString":"The root is on string {list}.","chord.guitar.rootOnStrings":"The root is on strings {list}.","chord.triads.rootPosition":"root position","chord.triads.firstInversion":"1st inversion","chord.triads.secondInversion":"2nd inversion","theory.formula.chord":"{written} ({root} {words}{bass}): {notes}.","theory.formula.inTheBass":", {bass} in the bass","theory.formula.formula":"Formula {formula}.","theory.formula.alsoWritten":"Also written {list}.","theory.formula.scale":"{title}: {notes}.","theory.formula.steps":"Steps {steps}.","chords.chart.chorus":"Chorus","chords.chart.bridge":"Bridge","chords.chart.tab":"Tab","chords.chart.grid":"Grid","chords.chart.key":"Key {key}","chords.chart.capo":"Capo {capo}","chords.chart.tempo":"{bpm} BPM","chords.chart.transposed":"Transposed {amount}","chords.chart.simplified":"Easier chords","chords.chart.sounds":"{title} (sounds {sounding})","chords.chart.moreNotDrawn":"{count} more chords not drawn (at most {max})","chords.chart.missing":"No diagram for {names}: give the shape with {how}","chords.chart.howPiano":"{syntax} (semitones above the root, e.g. keys 0 4 7)","chords.chart.howGuitar":"{syntax} (one fret per string, x for a muted one)","chords.define.needsName":"{syntax} needs a chord name: e.g. {example}","chords.define.baseFret":"{at}: base-fret takes one whole number from 1 to 24, e.g. base-fret 3","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","chords.define.keys":"{at}: keys takes semitones above the root, from 0 to {max}, e.g. keys 0 4 7","chords.define.copy":"{at}: {word} takes the name of one chord, e.g. {word} Am","chords.define.unknown":'{at}: unknown "{word}": use base-fret, frets, fingers, keys, copy, display or diagram',"chords.define.fingersCount":"{at}: fingers has {fingers} values for {strings} strings: give one per string (0 for none)","chords.define.reaches":"{at}: the shape reaches fret {top}: frets go up to {max}","chords.directive.diagrams":"{at}: use on, off, top or bottom","chords.directive.simplify":"{at}: use yes or no","chord.shape.open":"Open","chord.shape.caged":"{letter} shape","chord.shape.cagedStrings":"{letter} shape (strings {strings})","chord.shape.power":"Power chord","chord.shape.triad":"Triad","chord.shape.shell":"Shell","chord.shape.drop":"Drop {n} (strings {strings})","chord.shape.hendrix":"Hendrix chord","chord.shape.openBass":"Open bass","chord.shape.openStrings":"Open strings","chord.shape.strings":"Strings {strings}","blocks.function.tonic":"tonic","blocks.function.subdominant":"subdominant","blocks.function.dominant":"dominant","blocks.function.secondaryDominant":"secondary dominant","blocks.function.neapolitan":"neapolitan","blocks.function.borrowed":"borrowed","blocks.function.chromatic":"chromatic","blocks.function.tonicization":"tonicization","blocks.function.passing":"passing","theory.marks.characteristic":", characteristic notes: {notes}","theory.marks.different":", different from the compared scale: {notes}","theory.marks.chordTones":", chord tones: {notes}"};var rt={"playback.bar":"Playback","playback.diagram":"Diagram","playback.place":"({n} of {total})","playback.playItem":"Play {name}","playback.playAll":"Play all in turn","playback.play":"Play","playback.stop":"Stop","playback.loop":"Loop","playback.countIn":"Count-in","playback.click":"Click","playback.sound":"Sound","playback.guitar":"Guitar","playback.guitar.steel":"Guitar (steel)","playback.guitar.nylon":"Guitar (nylon)","playback.guitar.clean":"Guitar (clean)","playback.guitar.overdrive":"Guitar (overdrive)","playback.piano":"Piano","playback.simplify":"Simplify","playback.simplified":"Simplified","playback.simplify.hint":"Show easier chords","playback.simplified.hint":"Show the chords as written","playback.tempo":"Tempo (BPM)","playback.unit.bpm":"BPM","playback.unit.ms":"ms","playback.strum":"Strum (ms between strings)","playback.dotted":"counts dotted quarters","playback.strumPattern.bar":"Play the strumming pattern","playback.picking.bar":"Play the picking pattern","playback.progression.bar":"Play the chords in time","playback.progression.play":"Play in time","playback.strumChoice":"Strum","playback.strum.beats":"On the beats","playback.strum.bar":"Once a bar","playback.strum.arpeggio":"Arpeggio","playback.strum.pattern":"Pattern","playback.copy.button":"Copy as image","playback.copy.hint":"Shift+click copies the whole block","playback.copy.bar":"Image","playback.copy.copied":"Copied","playback.copy.refused":"Allow clipboard access for this page, then try again.","playback.copy.unsupported":"This browser can't copy images: use a recent Chrome, Edge, Safari or Firefox.","playback.copy.failed":"The image couldn't be made.","playback.full.enter":"Full screen","playback.full.exit":"Exit full screen","playback.redraw.sounds":"{heading} (sounds {chord})","playback.redraw.guitar":"{name}, drawn for guitar","playback.redraw.piano":"{name}, drawn for piano","playback.engine.invalid":'engine: use generaluser, sonivox or light, got "{value}"',"playback.guitar.invalid":'guitar: use steel, nylon, clean or overdrive, got "{value}"',"tab.source.staves":'staves: use tab, score or both, got "{value}"',"tab.source.layout":'layout: use page or line, got "{value}"',"tab.source.names":'names: use on or off, got "{value}"',"tab.source.tracks":'tracks: use track numbers from 1, got "{value}"',"tab.source.empty":"Write the music in alphaTex, or give a file: {example}","tab.sound.loadFailed":"Couldn't load the soundfont ({url})","tab.error.at":"line {line}, column {column}: ","tab.error.textTab":"Couldn't draw this text tab: {message}","tab.error.fileRead":`Couldn't read "{file}": {message}`,"tab.error.fileMissing":`Couldn't find the file "{file}"`,"tab.error.fileUnknown":`Couldn't read "{file}": not a score file alphaTab knows`,"tab.player.cantPlay":"Can't play: {message}","tab.player.metronome":"Metronome","tab.player.pause":"Pause","tab.names":"Note names","tab.follow":"Follow the music","tab.followPaused":"Follow the music (paused while you scroll: Play or click to follow again)","tab.view.group":"View","tab.view.tab":"Tab","tab.view.score":"Score","tab.view.both":"Both","tab.view.whatTab":"tablature","tab.view.whatScore":"standard notation","tab.view.whatBoth":"standard notation and tablature","tab.view.drawAs":"Draw as {what}","tab.view.drawAsWritten":"Draw as {what} (this block's staves: line)","tab.view.drawAsDefault":"Draw as {what} (the default: the block has no staves: line)","tab.view.keep":"Keep this view","tab.view.keepTitle":"Write staves: {staves} at the top of the block","tab.tempo.group":"Tempo","tab.tempo.slower":"Slower","tab.tempo.faster":"Faster","tab.tempo.toPercent":"Show the speed in percent","tab.tempo.toBpm":"Show the speed in BPM","tab.tempo.reset":"Back to 100 %","tab.tempo.inBpm":"Tempo in BPM","tab.tempo.inPercent":"Speed in percent","tab.tempo.title":"Tempo: {bpm} BPM, {percent} % of {tempo} BPM","tab.tempo.speedTitle":"Speed: {percent} %"};var st={"strum.time.invalid":'Invalid time "{text}": use e.g. time: 4/4, 3/4 or 6/8',"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%',"strum.subdivision.invalid":'Invalid subdivision "{text}": use 8ths, 16ths or triplets',"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","strum.triplets.quarterBeat":"Triplets need a quarter-note beat (time: 4/4, 3/4…); for this time use 8ths or 16ths","strum.subdivision.tooLong":"8ths are longer than a beat of x/{unit}: use subdivision: 16ths","strum.chord.notRecognizedTry":`Didn't recognize the chord "{chord}": try {suggestions}`,"strum.chord.empty":'Empty chord "[]": write the chord inside, e.g. [G]',"strum.chord.notRecognized":`Didn't recognize the chord "{chord}"`,"strum.line.bracketMissing":'Missing "]" after "{text}": write e.g. [G]',"strum.line.barInGhost":"A bar line inside ( ): close the ghost strums first","strum.line.accentAndGhost":"A strum is either accented (D>) or a ghost strum ((D)), not both","strum.line.ghostNested":"Ghost strums can't be nested: write (U), not ((U))","strum.line.parenUnopened":'")" without "(": write a ghost strum as (U)',"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","strum.line.notUnderstood":`Didn't understand "{char}" in "{line}": {help}`,"strum.line.accentNeedsStrum":"An accent needs a strum: write D> or U>","strum.line.ghostNoRests":"Write ghost strums as (D) or (U), without rests inside","strum.line.parenUnclosed":'Missing ")" in "{line}": write a ghost strum as (U)',"strum.line.chordEndsPattern":"The chord [{chord}] ends the pattern: put it before a strum or a -","strum.pattern.chordLineAlone":"A chord line needs a pattern line under it, e.g. D - D U - U D U","strum.pattern.missing":"Write a strumming pattern, e.g. D - D U - U D U (or D DU UDU)","strum.key.unknown":'Unknown key "{key}": use time, subdivision, swing, chord, tempo, tuning, title or pattern',"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","strum.swing.compound":"{time} already has three {unit} a beat: remove swing: (it swings 8ths or 16ths in 4/4, 3/4, 2/4…)","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","strum.tempo.invalid":'Invalid tempo "{text}": use beats a minute from {min} to {max}, e.g. tempo: 90',"strum.bars.tooMany":"At most {max} bars in one pattern: split it into several blocks","strum.chord.pastEnd":"The chord {chord} is past the end of its pattern line: move it over a strum","strum.count.bar.one":"{n} bar","strum.count.bar.other":"{n} bars","strum.count.slot.one":"{n} slot","strum.count.slot.other":"{n} slots","strum.count.barsAndSlots":"{bars} and {slots}","strum.count.spill":'{time} in {subdivision} has {perBar} slots a bar, but "{written}" takes {slots} ({count}): put a | where each bar ends{orTime}',"strum.count.spillOrTime":", or write {time}","strum.count.mismatch":'{time} in {subdivision} has {perBar} slots a bar, but "{written}" has {n}: fill each bar with - (no strum){alternatives}',"strum.count.alternative.first":" or write {item}","strum.count.alternative.next":", {item}","strum.count.alternative.last":" or {item}","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.","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.","strum.feel.swing":"Swing","strum.feel.swingPercent":"Swing {percent}%","strum.feel.swing16":"16th swing","strum.feel.swing16Percent":"16th swing {percent}%","strum.name":"Strumming pattern {written}, {time}, {subdivision}{feel}","strum.name.titled":"{title}: strumming pattern {written}, {time}, {subdivision}{feel}","strum.name.feel":", {feel}","strum.tuning.unknown":'Unknown tuning "{tuning}": use e.g. tuning: standard, drop d, ukulele or E2 A2 D3 G3 B3 E4',"strum.tuning.tooManyStrings":"At most 12 strings","strum.tuning.unknownGiven":'Unknown tuning "{tuning}"',"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)","picking.token.notUnderstood":`Didn't understand "{token}": {help}`,"picking.string.missing":"String {n} doesn't exist: strings go from 1 (the highest) to {strings}","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:","picking.bar.betweenBarLines":" between bar lines","picking.key.unknown":'Unknown key "{key}": use time, subdivision, swing, chord, chords, tempo, tuning, title or pattern',"picking.swing.pairs":"Swing plays pairs of 8ths or 16ths inside a beat: remove swing:, or write time: 4/4 with 8ths","picking.tempo.invalid":'Invalid tempo "{text}": use beats a minute from {min} to {max}, e.g. tempo: 80',"picking.pattern.twice":"Write the pattern once: as pattern: or as pattern lines, not both","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","picking.chords.tooMany":"At most {max} chords, found {found}","picking.tuning.unknown":'Unknown tuning "{tuning}": use e.g. tuning: standard, drop d, open g or E2 A2 D3 G3 B3 E4',"picking.name":"Picking pattern {written}, {time}, {subdivision}{over}","picking.name.titled":"{title}: picking pattern {written}, {time}, {subdivision}{over}","picking.name.over":", over {chords}","picking.voicing.none":"No playable voicing of {chord} for this tuning","export.image.title":"Music notation"};var it={...ot,...nt,...st,...rt};var at={"render.layout.orientation":"Orientation inconnue « {text} » : utilisez vertical ou horizontal","render.layout.hand":"Main inconnue « {text} » : utilisez left ou right","render.rootMark.invalid":"root-mark : écrivez color ou shape, reçu « {text} »","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","render.unknownChord":"« {written} » n'est pas reconnu : essayez {suggestions}","render.tuning":"Accordage inconnu « {text} »","render.yesNo":"{key} doit valoir yes ou no, reçu « {text} »","render.hand.left":"main gauche","render.hand.right":"main droite","render.positions.exerciseOne":"exercise joue une seule position : écrivez position: 1 (et non positions:)","render.positions.needsSet":"positions demande une gamme ou un accord : par exemple A minor pentatonic ou arpeggio: Am7","render.positions.arpeggioCaged":"Les arpèges utilisent les formes CAGED, pas 3nps : retirez shape","render.positions.range":"positions : utilisez all, ou des nombres de 1 à {count} pour {title}","render.positions.fromMinor":" (depuis {root}m)","render.positions.arpeggioTitle":"Arpège de {title}","render.positions.shapeTitle":"{name}, forme {shape}","render.positions.npsTitle":"{name}, 3nps {n}{from}","render.positions.boxTitle":"{name}, position {n}{from}","render.fingering.handTitle":"{title}, {hand}","render.voicings.notBoth":"Utilisez triads ou voicings, pas les deux","render.voicings.fretted":"voicings sert à la guitare et aux autres instruments à frettes","render.voicings.noFrets":"voicings trouve seul les cases : retirez « {value} »","render.voicings.needsChord":"voicings demande un accord : par exemple A Major","render.voicings.instrument":"Instrument inconnu « {instrument} » : utilisez guitar, ou donnez un accordage","render.voicings.maxStrings":"voicings fonctionne jusqu'à {max} cordes","render.voicings.count":"voicings : utilisez all, ou un nombre de 1 à {max}","render.voicings.area":"area : utilisez open, ou des cases comme 5-9 (jusqu'à 24), reçu « {area} »","render.voicings.rootString":"root-string : utilisez un numéro de corde de 1 (la plus aiguë) à {count}","render.voicings.inversion":"inversion : utilisez 0 (fondamentale), 1, 2, 3 ou any, reçu « {inversion} »","render.voicings.manyStringsAny":"Sur {count} cordes, inversion: any demande six cordes ou moins : ajoutez par exemple strings: 1-6","render.voicings.wideArea":"une zone large","render.voicings.oneWidening":"Sur {count} cordes, utilisez une seule option à la fois parmi {list}","render.noVoicing.gaps":"Les cordes {strings} ne sont pas côte à côte : ajoutez gaps: yes","render.noVoicing.rootString":"root-string {string} ne fait pas partie des cordes {strings}","render.noVoicing.inversion":"{symbol} a {notes} notes : inversion va jusqu'à {max}","render.noVoicing.bass":"Aucun voicing de {chord} n'a sa basse sur la corde {string} : essayez une autre root-string","render.noVoicing.none":"Aucun voicing jouable de {chord} ne convient : élargissez la zone, autorisez les cordes à vide ou ajoutez stretch: yes","render.triads.noFrets":"triads trouve seul les cases : retirez « {value} »","render.triads.fretted":"triads sert à la guitare et aux autres instruments à frettes : donnez un accordage","render.triads.strings":"triads : donnez trois cordes côte à côte, par exemple 1-3 ou 2-4","render.triads.inversion":"inversion : utilisez 0 (position fondamentale), 1, 2 ou any, reçu « {inversion} »","render.triads.keyInversion":"Avec une tonalité, choisissez un seul renversement : 0, 1 ou 2","render.triads.key":"Tonalité inconnue « {text} » : utilisez par exemple key: G major ou key: E minor","render.triads.needsChord":"triads demande un accord (par exemple G) ou une tonalité (key: G major)","render.triads.notTriad":"{symbol} n'est pas une triade (trois notes) : essayez voicings: all","render.triads.none":"Aucune triade ne tient sur ces cordes : essayez un autre groupe de cordes","render.transitions.needsFrom":"Ajoutez l'accord que vous tenez : from: C (avec ses cases : from: C x32010)","render.transitions.fretted":"Les transitions servent à la guitare et aux autres instruments à frettes : donnez un accordage","render.transitions.notBoth":"Utilisez from et to, ou progression, pas les deux","render.transitions.refused":"« {key} » ne peut pas s'utiliser avec {with}","render.transitions.maxStrings":"Les transitions fonctionnent jusqu'à {max} cordes","render.transitions.twoChords":"progression : donnez au moins deux accords, par exemple G D Em C","render.transitions.maxChords":"progression : {max} accords au plus","render.transitions.noVoicings":"Aucun voicing jouable pour cette progression","render.transitions.needsTo":"Ajoutez l'accord suivant : to: D","render.transitions.noHeld":"Aucun voicing jouable de {chord} : ajoutez ses cases","render.transitions.stringCount":"« {frets} » compte {have} cordes, l'accordage {count}","render.transitions.count":"count : utilisez un nombre de 1 à {max}","render.transitions.noTarget":"Aucun voicing jouable de {chord}","render.modes.none":"« {value} » n'a pas de modes : utilisez par exemple modes: C major","render.modes.refused":"« {key} » ne peut pas s'utiliser avec modes : seulement {allowed}","render.row.notShared":"« {key} » ne peut pas être partagé : déplacez-le dans un diagramme. Réglages partagés : {allowed}","render.row.columns":"columns doit être un nombre entier de 1 à 12, reçu « {text} »","render.row.needsDiagram":"Ajoutez un diagramme après les réglages partagés : une ligne « --- », puis le diagramme","render.row.max":"{max} diagrammes au plus par bloc, {found} trouvés","render.row.columnsShared":"« columns » va dans les réglages partagés, avant le premier « --- »","render.row.ownRow":"« {key} » dessine sa propre rangée : utilisez-le dans un bloc à part","render.row.exercise":"exercise dessine une tablature sous un seul diagramme : utilisez-le dans un bloc à part","render.row.diagram":"diagramme {n} : {message}","render.row.sharedHint":" (les réglages partagés avant le premier « --- » ne peuvent contenir que : {allowed})","fretboard.capo":"Capodastre {fret}","fretboard.title":"Manche : {title}","fretboard.note.open":"{note} à vide","fretboard.note.fret":"{note} case {fret}","fretboard.note.root":" (fondamentale)","fretboard.string":"Corde {n} ({name}) : {notes}.","fretboard.pick.open":"Corde {string}, à vide","fretboard.pick.fret":"Corde {string}, case {fret}","fretboard.exercise.direction":"exercise : utilisez up, down ou up-down, reçu « {text} »","fretboard.exercise.rhythm":"rhythm : utilisez 8ths, triplets ou 16ths, reçu « {text} »","fretboard.exercise.scale":"Gamme inconnue « {text} »","fretboard.exercise.chord":"Accord inconnu « {text} »","fretboard.exercise.needsSet":"Un exercice demande une gamme ou un arpège : par exemple scale: A minor ou arpeggio: Am7","fretboard.exercise.arpeggioCaged":"Les arpèges utilisent les formes CAGED : position 1 à 5, ou shape: E, D, C, A ou G (pas 3nps)","fretboard.exercise.positions":"{title} a {count} positions {system} : utilisez position 1 à {count}","fretboard.exercise.tuning":"Accordage inconnu « {text} »","fretboard.exercise.capo":"capo : utilisez une case de 1 à 12 (0 pour aucun), reçu {text}","fretboard.positions.numbering":"numbering : utilisez minor (positions depuis le relatif mineur), reçu « {text} »","fretboard.positions.numberingPentatonic":"numbering: minor sert aux positions de la pentatonique majeure (par exemple A major pentatonic), pas à {title}","fretboard.positions.numberingCaged":"numbering: minor numérote les positions (« box ») et 3nps, pas les formes CAGED","fretboard.positions.position":"position doit être un nombre entier à partir de 1, reçu « {text} »","fretboard.positions.shape":"Forme inconnue « {text} » : utilisez C, A, G, E, D ou 3nps","keyboard.fingering.finger":"fingering : les doigts vont de 1 (pouce) à 5 (auriculaire), reçu « {text} »","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","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","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","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}","keyboard.piano.octave":"octave : utilisez un nombre de 0 à 8, reçu « {text} »","keyboard.piano.inversion":"inversion : utilisez 0 (position fondamentale), 1, 2 ou 3, reçu « {text} »","keyboard.piano.slashInversion":"{symbol} indique déjà sa basse : retirez inversion","keyboard.piano.inversionStyle":"inversion va avec les voicings close ou open, pas {style}","keyboard.piano.inversionMax":"{symbol} a {notes} notes : inversion va jusqu'à {max}","keyboard.piano.open":"Les voicings open demandent trois notes ou plus : {symbol} en a {notes}","keyboard.piano.offKeys":"octave {octave} place {symbol} hors du clavier du piano : essayez octave 3 ou 4","keyboard.piano.inversionWord":"inversion : utilisez root, first, second, third (ou 0 à 3), reçu « {text} »","keyboard.piano.octaveMiddle":"octave : utilisez un nombre de 0 à 8 (4 est celle du do central), reçu « {text} »","keyboard.piano.voicing":"voicing : utilisez close, open, shell, shell R-7, rootless A ou rootless B, reçu « {text} »","keyboard.piano.key":"Tonalité inconnue « {text} » : utilisez par exemple key: C minor ou key: Eb","keyboard.piano.resolvesTo":"resolves-to : écrivez un accord, par exemple resolves-to: Cm, reçu « {text} »","keyboard.piano.hands":"hands : utilisez left+right, left ou right, reçu « {text} »","keyboard.title":"Clavier : {title}","keyboard.hand":"{hand} : {keys}","keyboard.handMark.left":"MG","keyboard.handMark.right":"MD","keyboard.whiteKey":"Touche blanche {n}","keyboard.blackKey":"Touche noire {n}","keyboard.lit.root":"fondamentale","keyboard.lit.finger":"doigt {finger}","keyboard.lit.keys":"Touches : {keys}.","circle.label":"Cycle des quintes, {key} : {signature}{accidentals} ; accords : {chords}","circle.or":"ou","circle.mode.major":"majeur","circle.mode.minor":"mineur","circle.mode.ionian":"ionien","circle.mode.dorian":"dorien","circle.mode.phrygian":"phrygien","circle.mode.lydian":"lydien","circle.mode.mixolydian":"mixolydien","circle.mode.aeolian":"éolien","circle.mode.locrian":"locrien","circle.key":"Tonalité inconnue « {text} » : utilisez par exemple key: G, key: Em ou key: D dorian","circle.mode":"Mode inconnu « {text} » : utilisez major, minor, dorian, phrygian, lydian, mixolydian ou locrian","circle.modeTwice":"key: {key} indique déjà {mode} : retirez mode ou écrivez seulement la note de la tonalité","circle.chords":"chords : utilisez triads ou sevenths, reçu « {text} »","circle.dominant":"dominant : utilisez major (V, issu du mineur harmonique) ou minor (v), reçu « {text} »","keyboard.piano.unknownChord":"Accord inconnu « {symbol} »"};var lt={"blocks.source.expected":'Attendu "clé: valeur", reçu "{line}"',"blocks.source.strings":"strings: utilisez des numéros de corde de 1 (la plus aiguë) à {count}, par ex. 1-4","blocks.caption.fingeringChordOnly":"caption: fingering ne sert qu'aux blocs d'accord : utilisez formula ou none ici","blocks.caption.useAll":'caption: utilisez fingering (le doigté en toutes lettres), formula (notes et intervalles), fingering, formula (les deux) ou none, reçu "{written}"',"blocks.caption.useFormula":'caption: utilisez formula (notes et intervalles) ou none, reçu "{written}"',"blocks.noteSet.chordOrArpeggio":"Utilisez chord ou arpeggio, pas les deux","blocks.noteSet.invalidRoot":'Fondamentale "{root}" invalide : utilisez un nom de note, par ex. root: C',"blocks.noteSet.notAList":`"{head}" n'est pas une liste de notes : utilisez par ex. notes: C Eb G`,"blocks.noteSet.addNotesForRoot":"Ajoutez les notes de la fondamentale : par ex. notes: C Eb G","blocks.noteSet.addRoot":"Ajoutez une fondamentale : C {scale}","blocks.noteSet.addSource":'Ajoutez "scale:", "chord:" ou "notes:"',"blocks.noteSet.rootListsOnlyScale":"root ne s'applique qu'aux listes de notes (notes: C E G) : une gamme a sa propre fondamentale","blocks.noteSet.rootListsOnlyChord":"root ne s'applique qu'aux listes de notes (notes: C E G) : un accord a sa propre fondamentale","blocks.noteSet.unknownLabelsFingers":'labels "{value}" inconnu : utilisez notes, degrees, intervals, fingers ou none',"blocks.noteSet.unknownLabels":'labels "{value}" inconnu : utilisez notes, degrees, intervals ou none',"blocks.noteSet.invalidNotes":'Notes "{notes}" invalides',"blocks.noteSet.unknownScale":'Gamme "{scale}" inconnue',"blocks.noteSet.unknownChord":'Accord "{chord}" inconnu',"blocks.noteSet.notAScaleChordOrList":`"{head}" n'est ni une gamme, ni un accord, ni une liste de notes`,"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)","blocks.noteSet.notInSet":`"{label}" n'est pas dans {title} : utilisez ses intervalles (R, b3, 5…)`,"theory.key.needsSharps":"{name} demande {count} dièses : écrivez {write}","theory.key.needsFlats":"{name} demande {count} bémols : écrivez {write}","theory.key.noSignature":"sans ♯ ni ♭","theory.harmonize.unknownScale":'Gamme "{text}" inconnue : utilisez par ex. key: G major, key: A harmonic minor ou key: D dorian',"theory.harmonize.sevenNotes":"harmonize demande une gamme de 7 notes : {name} en a {count}","theory.harmonize.noNamedChord":"pas un accord nommé","theory.harmonize.noFifth":"pas de quinte juste","theory.harmonize.noFourthOrSecond":"pas de quarte juste ni de seconde majeure","blocks.progression.yesNo":'{key} doit valoir yes ou no, reçu "{text}"',"blocks.progression.majorMinorKeys":`Les tonalités d'une progression sont majeures ou mineures : écrivez key: {tonic} major ou key: {tonic} minor, reçu "{text}"`,"blocks.progression.unknownKey":'Tonalité "{text}" inconnue : utilisez par ex. key: G, key: Em ou key: F# minor',"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)`,"blocks.progression.harmonizeKind":'harmonize : écrivez triads, sevenths, sus ou power, reçu "{kind}"',"blocks.progression.harmonizeNothing":"harmonize : écrivez triads, sevenths, sus ou power, rien reçu","blocks.progression.harmonizeNoChords":"harmonize dessine les accords de la gamme : retirez les accords ({written})","blocks.progression.addScale":"Ajoutez la gamme : par ex. key: A harmonic minor","blocks.progression.transposeWhole":"transpose doit être un nombre entier de demi-tons, par ex. transpose: -2","blocks.progression.addChords":"Ajoutez les accords : par ex. I V vi IV avec key: G, 1 5 6m 4, ou G D Em C","blocks.progression.addKey":"Ajoutez la tonalité : par ex. key: G ou key: E minor","blocks.progression.unknownTuning":'Accordage "{text}" inconnu',"blocks.progression.tempo":'tempo: écrivez un nombre de temps par minute de {min} à {max}, reçu "{text}"',"blocks.progression.strum":"strum: écrivez beats, bar, arpeggio ou un rythme de grattage (D DU UDU) : {reason}","blocks.progression.key":"Tonalité : {name}","blocks.progression.blues":"(blues)","blocks.progression.orKeys":"(ou {list})","blocks.progression.leftOut":"Écartés : {list}","blocks.progression.leftOutDegree":"degré {degree} ({note}), {reason}","blocks.progression.unknownInstrument":'Instrument "{instrument}" inconnu : utilisez guitar ou piano',"blocks.progression.numerals":'numerals: utilisez roman, nashville ou none, reçu "{style}"',"blocks.progression.voiceLeadingPiano":"voice-leading ne sert qu'au piano : ajoutez instrument: piano","blocks.progression.pianoOnly":"{key} ne sert qu'aux accords de piano : ajoutez instrument: piano","blocks.progression.voiceLeadingHands":"voice-leading va avec hands: left+right (une basse à la main gauche sous chaque accord), pas avec une seule main","blocks.progression.voiceLeadingOrKey":"Utilisez voice-leading ou {key}, pas les deux","blocks.progression.addChordsAfterShared":'Ajoutez les accords après les réglages communs, après une ligne "---"',"blocks.progression.maxChords":"Au plus {max} accords par bloc, {count} trouvés","theory.chord.suggest":"{root}, {root}m, {root}7 ou {spelled} {quality}","blocks.render.maxStrings":"Au plus {max} cordes","blocks.render.invalidRange":'Étendue "{text}" invalide : utilisez par ex. C3-B4',"blocks.render.maxKeys":"Au plus {max} touches : donnez une étendue plus petite, par ex. range: C3-B5","blocks.render.wholeFrom1":'{what} doit être un nombre entier à partir de 1, reçu "{text}"',"blocks.render.unrecognized":`"{written}" n'est pas reconnu : essayez {suggestions}`,"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","blocks.chord.capoNotPiano":"capo ne sert qu'à la guitare et aux autres instruments à frettes, pas au piano","blocks.chord.pitchesGivenKeys":"{given} va avec un symbole d'accord : pitches donne déjà les touches à jouer","blocks.chord.autoNeedsSymbol":"fingering: auto va avec un symbole d'accord : écrivez les doigts, par ex. 1 3 5","blocks.chord.invalidPitches":'Hauteurs "{text}" invalides',"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","blocks.chord.addSymbolOrPitches":`Ajoutez un symbole d'accord ou "pitches:"`,"blocks.chord.unknownInstrument":'Instrument "{instrument}" inconnu : utilisez guitar ou piano, ou donnez un accordage',"blocks.chord.invalidFrets":'Cases "{text}" invalides : utilisez par ex. x02220',"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çà","blocks.chord.capoMaxFret":"Avec un capodastre en {capo}, les cases vont jusqu'à {max}","blocks.chord.fingersCount":'"{text}" donne {fingers} doigts pour {strings} cordes',"blocks.chord.noVoicing":'Aucun voicing {n} trouvé pour "{symbol}" : ajoutez "frets:"',"blocks.chord.addFretsFor":'Ajoutez "frets:" pour {symbol} (par ex. frets: x02220)',"blocks.chord.addSymbolAndFrets":`Ajoutez un symbole d'accord et "frets:"`,"blocks.chord.positionAboveLowest":"position {base} est au-dessus de la note frettée la plus grave (case {fret})","blocks.chord.tuningStrings":"L'accordage a {tuning} cordes, les cases {frets}","blocks.chord.soundsTitle":"{sounding} (forme {shape})","blocks.chord.captionFormulaChord":"caption: formula demande un accord que la bibliothèque connaît : ajoutez son symbole (par ex. symbol: A)","blocks.chord.captionFormulaSet":"caption: formula demande un accord ou une gamme que la bibliothèque connaît : ajoutez chord: ou scale:","blocks.chord.soundsTitleNeedsChord":"sounds: title demande un accord que la bibliothèque connaît : ajoutez son symbole (par ex. symbol: A)","blocks.chord.soundsNeedsCapo":"sounds va avec un capodastre : ajoutez par ex. capo: 2","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","blocks.chord.soundsMismatch":"Avec un capodastre en {capo}, {shape} sonne {sounding}, pas {value} : écrivez sounds: {sounding} (ou sounds: yes)","blocks.chord.unknownLabels":'labels "{text}" inconnu : utilisez fingers, intervals, notes ou none',"blocks.chord.labelsNeedChord":"labels: {value} demande un accord que la bibliothèque connaît","blocks.keyboard.autoBothAlone":"fingering: auto both dessine deux claviers : mettez-le dans un bloc à part, pas dans une rangée séparée par ---","blocks.keyboard.fingersCount":"fingering donne {fingers} doigts : {title} en demande {needed}, un par note de la fondamentale à la fondamentale supérieure","blocks.keyboard.fingersForNotes":"fingering donne {fingers} doigts pour {notes} notes : un doigt par note, dans l'ordre écrit","blocks.keyboard.keyTwice":"Une touche est citée deux fois : un doigt par touche","blocks.keyboard.pastRange":"Les notes doigtées dépassent l'étendue : élargissez range: ou retirez-le","blocks.keyboard.handTitleLeft":"{title}, main gauche","blocks.keyboard.handTitleRight":"{title}, main droite","blocks.fretboard.invalidFrets":'Cases "{text}" invalides : utilisez par ex. 5-8',"blocks.fretboard.maxFret":"Les cases vont jusqu'à {max}","blocks.fretboard.nutStartsAtCapo":"Avec frets-from: nut, les cases commencent au capodastre ({capo}) ou au-delà : par ex. frets: {capo}-{example}","blocks.fretboard.numberingNeedsPosition":"numbering va avec une position : par ex. position: 1 ou positions: all","blocks.fretboard.positionsNeedSet":"Les positions demandent une gamme ou un accord : par ex. scale: A minor ou arpeggio: Am7","blocks.fretboard.arpeggioCaged":"Les arpèges utilisent les formes CAGED : position 1 à 5, ou shape: E, D, C, A ou G (pas 3nps)","blocks.fretboard.positionCount":"{title} a {count} positions {named} : utilisez position 1 à {count}","blocks.fretboard.positionNotFit":"{title}, la position {n} ne tient pas dans les cases {from}-{to} : élargissez frets: ou retirez-le","blocks.fretboard.rhythmNeedsExercise":"rhythm va avec exercise : par ex. exercise: up-down","blocks.fretboard.exerciseNeedsPosition":"exercise joue une position : ajoutez position: 1 (ou shape: E)","blocks.fretboard.invalidTempo":'Tempo "{text}" invalide : utilisez un nombre de temps par minute de 20 à 240, par ex. tempo: 80',"blocks.fretboard.arpeggioTitle":"{name} (arpège)","blocks.fretboard.fromMinor":" (depuis {minor}m)","blocks.fretboard.shapeTitle":"{name}, forme {shape}","blocks.fretboard.threeNpsTitle":"{name}, 3nps {n}{from}","blocks.fretboard.boxTitle":"{name}, position {n}{from}","blocks.scalesFor.both":"Utilisez scales-for (accords) ou scales-for-notes, pas les deux","blocks.scalesFor.findsItself":'{key} trouve la gamme seul : retirez "{what}"',"blocks.scalesFor.addChords":"Ajoutez les accords : par ex. scales-for: G D Em C","blocks.scalesFor.addNotes":"Ajoutez les notes : par ex. scales-for-notes: C D E G A","blocks.scalesFor.unreadChords":`Accords "{text}" non compris : utilisez des symboles d'accord, par ex. scales-for: G D Em C`,"blocks.scalesFor.unreadNotes":'Notes "{text}" non comprises : utilisez des noms de notes, par ex. scales-for-notes: C D E G A',"blocks.scalesFor.outside":", {notes} en dehors","blocks.scalesFor.bluesTitle":"Gamme blues de {tonic} pour {listed} (ou {pentatonic}, {mixolydian})","blocks.scalesFor.title":"{name} pour {listed}{outside}","chord.capo.fret":'capo: utilisez une case de 1 à {max}, reçu "{text}"',"chord.capo.fretsFrom":'frets-from: utilisez capo (par défaut) ou nut, reçu "{text}"',"theory.naming.write":"naming: écrivez letters, solfege ou german","theory.naming.writeDirective":"naming: écrivez {letters}, {solfege} ou {german}","chord.words.ordinalFirst":"1re","chord.words.ordinalSt":"{n}e","chord.words.ordinalNd":"{n}e","chord.words.ordinalRd":"{n}e","chord.words.ordinalTh":"{n}e","chord.words.listAnd":"{head} et {last}","chord.words.guitarIndex":"Index","chord.words.guitarMiddle":"Majeur","chord.words.guitarRing":"Annulaire","chord.words.guitarPinky":"Auriculaire","chord.words.guitarThumb":"Pouce","chord.words.guitarFinger":"Doigt {finger}","chord.words.pianoThumb":"pouce","chord.words.pianoIndex":"index","chord.words.pianoMiddle":"majeur","chord.words.pianoRing":"annulaire","chord.words.pianoLittle":"auriculaire","chord.words.pianoFinger":"doigt {finger}","chord.words.lowName":"{name} grave","chord.words.highName":"{name} aiguë","chord.words.stringNamed":"la corde {name}","chord.words.stringsNamed":"les cordes {names}","chord.words.stringNumberedNote":"la {n} corde ({note})","chord.words.stringNumbered":"la {n} corde","chord.words.capoFrom":"Capodastre sur la {fret} case : les cases se comptent à partir du capodastre.","chord.words.capoNut":"Capodastre sur la {fret} case.","chord.words.allMuted":"Toutes les cordes sont étouffées : aucune note ne sonne.","chord.words.strumSix":"Grattez les six cordes.","chord.words.strumAll":"Grattez toutes les cordes.","chord.words.strumFrom":"Grattez à partir de {from}.","chord.words.strumFromTo":"Grattez de {from} à {to}.","chord.words.press":"Appuyez sur {string}, à la {fret} case.","chord.words.fingerOn":"{finger} sur {strings}, {fret} case.","chord.words.fingerBars":"{finger} fait le barré à la {fret} case, cordes {from} à {to}.","chord.words.fingerAlsoOn":"{finger} aussi sur {string}, {fret} case.","chord.words.muteOne":"Étouffez {list} : laissez un doigt de l'accord l'effleurer.","chord.words.mutePlural":"Étouffez {list} : laissez un doigt de l'accord les effleurer.","chord.words.groupRingOpenOne":"La corde {list} sonne à vide.","chord.words.groupRingOpenPlural":"Les cordes {list} sonnent à vide.","chord.words.groupRingCapoOne":"La corde {list} sonne au capodastre.","chord.words.groupRingCapoPlural":"Les cordes {list} sonnent au capodastre.","chord.words.ringOpenOne":"{list} sonne à vide.","chord.words.ringOpenPlural":"{list} sonnent à vide.","chord.words.ringCapoOne":"{list} sonne au capodastre.","chord.words.ringCapoPlural":"{list} sonnent au capodastre.","chord.words.pianoFingerOn":"{finger} sur {key}","chord.words.pianoAlsoPlay":"{fingered}, et jouez aussi {list}","chord.words.sentence":"{text}.","chord.words.play":"Jouez {list}.","chord.words.leftHand":"Main gauche : {part}.","chord.words.rightHand":"Main droite : {part}.","chord.transition.fingerIndex":"l'index","chord.transition.fingerMiddle":"le majeur","chord.transition.fingerRing":"l'annulaire","chord.transition.fingerPinky":"l'auriculaire","chord.transition.fingerThumb":"le pouce","chord.transition.fingerOther":"le doigt","chord.transition.keep":"Gardez {finger} sur la {fret} case de {string}.","chord.transition.slide":"Faites glisser {finger} le long de {string}, de la case {from} à la case {to}.","chord.transition.moveUp":"Déplacez la main de {shift} cases vers le haut.","chord.transition.moveDown":"Déplacez la main de {shift} cases vers le bas.","chord.transition.lift":"Levez tous les doigts ensemble et posez-les d'un bloc.","chord.guitar.capoCaption":"Capodastre {capo}","chord.guitar.capoCaptionSounds":"Capodastre {capo}, sonne {sounds}","chord.guitar.diagram":"Diagramme d'accord","chord.guitar.diagramTitled":"Diagramme de l'accord {title}","chord.guitar.rootOnString":"La fondamentale est sur la corde {list}.","chord.guitar.rootOnStrings":"La fondamentale est sur les cordes {list}.","chord.triads.rootPosition":"état fondamental","chord.triads.firstInversion":"1er renversement","chord.triads.secondInversion":"2e renversement","theory.formula.chord":"{written} ({root} {words}{bass}) : {notes}.","theory.formula.inTheBass":", {bass} à la basse","theory.formula.formula":"Formule {formula}.","theory.formula.alsoWritten":"S'écrit aussi {list}.","theory.formula.scale":"{title} : {notes}.","theory.formula.steps":"Intervalles {steps}.","chords.chart.chorus":"Refrain","chords.chart.bridge":"Pont","chords.chart.tab":"Tablature","chords.chart.grid":"Grille d'accords","chords.chart.key":"Tonalité {key}","chords.chart.capo":"Capodastre {capo}","chords.chart.tempo":"{bpm} BPM","chords.chart.transposed":"Transposé de {amount}","chords.chart.simplified":"Accords simplifiés","chords.chart.sounds":"{title} (sonne {sounding})","chords.chart.moreNotDrawn":"{count} accords de plus non dessinés (au plus {max})","chords.chart.missing":"Pas de diagramme pour {names} : donnez la forme avec {how}","chords.chart.howPiano":"{syntax} (demi-tons au-dessus de la fondamentale, par ex. keys 0 4 7)","chords.chart.howGuitar":"{syntax} (une case par corde, x pour une corde étouffée)","chords.define.needsName":"{syntax} demande un nom d'accord : par ex. {example}","chords.define.baseFret":"{at} : base-fret prend un nombre entier de 1 à 24, par ex. base-fret 3","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","chords.define.keys":"{at} : keys prend des demi-tons au-dessus de la fondamentale, de 0 à {max}, par ex. keys 0 4 7","chords.define.copy":"{at} : {word} prend le nom d'un seul accord, par ex. {word} Am","chords.define.unknown":'{at} : "{word}" est inconnu : utilisez base-fret, frets, fingers, keys, copy, display ou diagram',"chords.define.fingersCount":"{at} : fingers a {fingers} valeurs pour {strings} cordes : donnez-en une par corde (0 pour aucune)","chords.define.reaches":"{at} : la forme atteint la case {top} : les cases vont jusqu'à {max}","chords.directive.diagrams":"{at} : utilisez on, off, top ou bottom","chords.directive.simplify":"{at} : utilisez yes ou no","chord.shape.open":"Accord ouvert","chord.shape.caged":"forme {letter}","chord.shape.cagedStrings":"forme {letter} (cordes {strings})","chord.shape.power":"Power chord","chord.shape.triad":"Triade","chord.shape.shell":"Shell","chord.shape.drop":"Drop {n} (cordes {strings})","chord.shape.hendrix":"Accord Hendrix","chord.shape.openBass":"Basse à vide","chord.shape.openStrings":"Cordes à vide","chord.shape.strings":"Cordes {strings}","blocks.function.tonic":"tonique","blocks.function.subdominant":"sous-dominante","blocks.function.dominant":"dominante","blocks.function.secondaryDominant":"dominante secondaire","blocks.function.neapolitan":"napolitaine","blocks.function.borrowed":"emprunté","blocks.function.chromatic":"chromatique","blocks.function.tonicization":"tonicisation","blocks.function.passing":"de passage","theory.marks.characteristic":", notes caractéristiques : {notes}","theory.marks.different":", différentes de la gamme comparée : {notes}","theory.marks.chordTones":", notes de l'accord : {notes}"};var ct={"playback.bar":"Lecture","playback.diagram":"Diagramme","playback.place":"({n} sur {total})","playback.playItem":"Lire : {name}","playback.playAll":"Tout lire à la suite","playback.play":"Lecture","playback.stop":"Arrêter","playback.loop":"Boucle","playback.countIn":"Décompte","playback.click":"Clic","playback.sound":"Son","playback.guitar":"Guitare","playback.guitar.steel":"Guitare (folk)","playback.guitar.nylon":"Guitare (classique)","playback.guitar.clean":"Guitare (son clair)","playback.guitar.overdrive":"Guitare (son saturé)","playback.piano":"Piano","playback.simplify":"Simplifier","playback.simplified":"Simplifié","playback.simplify.hint":"Afficher des accords plus faciles","playback.simplified.hint":"Afficher les accords écrits","playback.tempo":"Tempo (BPM)","playback.unit.bpm":"BPM","playback.unit.ms":"ms","playback.strum":"Grattage (ms entre les cordes)","playback.dotted":"compte des noires pointées","playback.strumPattern.bar":"Lire le motif de grattage","playback.picking.bar":"Lire le motif de picking","playback.progression.bar":"Lire les accords en rythme","playback.progression.play":"Lire en rythme","playback.strumChoice":"Grattage","playback.strum.beats":"À chaque temps","playback.strum.bar":"Une fois par mesure","playback.strum.arpeggio":"Arpège","playback.strum.pattern":"Motif","playback.copy.button":"Copier comme image","playback.copy.hint":"Maj+clic copie tout le bloc","playback.copy.bar":"Image","playback.copy.copied":"Copié","playback.copy.refused":"Autorisez l'accès au presse-papiers pour cette page, puis réessayez.","playback.copy.unsupported":"Ce navigateur ne peut pas copier d'images : utilisez une version récente de Chrome, Edge, Safari ou Firefox.","playback.copy.failed":"L'image n'a pas pu être créée.","playback.full.enter":"Plein écran","playback.full.exit":"Quitter le plein écran","playback.redraw.sounds":"{heading} (sonne {chord})","playback.redraw.guitar":"{name}, dessiné pour la guitare","playback.redraw.piano":"{name}, dessiné pour le piano","playback.engine.invalid":"engine: utilisez generaluser, sonivox ou light, reçu « {value} »","playback.guitar.invalid":"guitar: utilisez steel, nylon, clean ou overdrive, reçu « {value} »","tab.source.staves":"staves: utilisez tab, score ou both, reçu « {value} »","tab.source.layout":"layout: utilisez page ou line, reçu « {value} »","tab.source.names":"names: utilisez on ou off, reçu « {value} »","tab.source.tracks":"tracks: utilisez des numéros de piste à partir de 1, reçu « {value} »","tab.source.empty":"Écrivez la musique en alphaTex, ou indiquez un fichier : {example}","tab.sound.loadFailed":"Impossible de charger la banque de sons ({url})","tab.error.at":"ligne {line}, colonne {column} : ","tab.error.textTab":"Impossible de dessiner cette tablature en texte : {message}","tab.error.fileRead":"Impossible de lire « {file} » : {message}","tab.error.fileMissing":"Fichier « {file} » introuvable","tab.error.fileUnknown":"Impossible de lire « {file} » : ce n'est pas un fichier de partition connu d'alphaTab","tab.player.cantPlay":"Lecture impossible : {message}","tab.player.metronome":"Métronome","tab.player.pause":"Pause","tab.names":"Noms des notes","tab.follow":"Suivre la musique","tab.followPaused":"Suivre la musique (en pause pendant que vous faites défiler : lancez la lecture ou cliquez pour suivre de nouveau)","tab.view.group":"Vue","tab.view.tab":"Tablature","tab.view.score":"Partition","tab.view.both":"Les deux","tab.view.whatTab":"tablature","tab.view.whatScore":"notation standard","tab.view.whatBoth":"notation standard et tablature","tab.view.drawAs":"Afficher en {what}","tab.view.drawAsWritten":"Afficher en {what} (la ligne staves: du bloc)","tab.view.drawAsDefault":"Afficher en {what} (valeur par défaut : le bloc n'a pas de ligne staves:)","tab.view.keep":"Conserver cette vue","tab.view.keepTitle":"Écrire staves: {staves} en haut du bloc","tab.tempo.group":"Tempo","tab.tempo.slower":"Plus lent","tab.tempo.faster":"Plus rapide","tab.tempo.toPercent":"Afficher la vitesse en pourcentage","tab.tempo.toBpm":"Afficher la vitesse en BPM","tab.tempo.reset":"Revenir à 100 %","tab.tempo.inBpm":"Tempo en BPM","tab.tempo.inPercent":"Vitesse en pourcentage","tab.tempo.title":"Tempo : {bpm} BPM, {percent} % de {tempo} BPM","tab.tempo.speedTitle":"Vitesse : {percent} %"};var ut={"strum.time.invalid":"Chiffrage « {text} » invalide : écrivez par exemple time: 4/4, 3/4 ou 6/8","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%","strum.subdivision.invalid":"Subdivision « {text} » invalide : utilisez 8ths, 16ths ou triplets","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","strum.triplets.quarterBeat":"Les triolets demandent un temps à la noire (time: 4/4, 3/4…) ; pour ce chiffrage, utilisez 8ths ou 16ths","strum.subdivision.tooLong":"Les croches sont plus longues qu’un temps de x/{unit} : écrivez subdivision: 16ths","strum.chord.notRecognizedTry":"Accord « {chord} » non reconnu : essayez {suggestions}","strum.chord.empty":"Accord vide « [] » : écrivez l’accord entre les crochets, par exemple [G]","strum.chord.notRecognized":"Accord « {chord} » non reconnu","strum.line.bracketMissing":"« ] » manquant après « {text} » : écrivez par exemple [G]","strum.line.barInGhost":"Une barre de mesure à l’intérieur de ( ) : fermez d’abord les coups fantômes","strum.line.accentAndGhost":"Un coup est soit accentué (D>), soit fantôme ((D)), pas les deux","strum.line.ghostNested":"Les coups fantômes ne peuvent pas être imbriqués : écrivez (U), pas ((U))","strum.line.parenUnopened":"« ) » sans « ( » : écrivez un coup fantôme ainsi : (U)","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","strum.line.notUnderstood":"« {char} » non compris dans « {line} » : {help}","strum.line.accentNeedsStrum":"Un accent demande un coup : écrivez D> ou U>","strum.line.ghostNoRests":"Écrivez les coups fantômes (D) ou (U), sans silence à l’intérieur","strum.line.parenUnclosed":"« ) » manquant dans « {line} » : écrivez un coup fantôme ainsi : (U)","strum.line.chordEndsPattern":"L’accord [{chord}] termine le rythme : placez-le avant un coup ou un -","strum.pattern.chordLineAlone":"Une ligne d’accords demande une ligne de rythme dessous, par exemple D - D U - U D U","strum.pattern.missing":"Écrivez une rythmique, par exemple D - D U - U D U (ou D DU UDU)","strum.key.unknown":"Clé « {key} » inconnue : utilisez time, subdivision, swing, chord, tempo, tuning, title ou pattern","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","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…)","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","strum.tempo.invalid":"Tempo « {text} » invalide : utilisez un nombre de temps par minute de {min} à {max}, par exemple tempo: 90","strum.bars.tooMany":"{max} mesures au plus dans un rythme : découpez-le en plusieurs blocs","strum.chord.pastEnd":"L’accord {chord} dépasse la fin de sa ligne de rythme : déplacez-le au-dessus d’un coup","strum.count.bar.one":"{n} mesure","strum.count.bar.other":"{n} mesures","strum.count.slot.one":"{n} position","strum.count.slot.other":"{n} positions","strum.count.barsAndSlots":"{bars} et {slots}","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}","strum.count.spillOrTime":", ou écrivez {time}","strum.count.mismatch":"{time} en {subdivision} compte {perBar} positions par mesure, mais « {written} » en a {n} : remplissez chaque mesure avec - (pas de coup){alternatives}","strum.count.alternative.first":" ou écrivez {item}","strum.count.alternative.next":", {item}","strum.count.alternative.last":" ou {item}","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.","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.","strum.feel.swing":"Swing","strum.feel.swingPercent":"Swing {percent} %","strum.feel.swing16":"Swing en doubles croches","strum.feel.swing16Percent":"Swing en doubles croches {percent} %","strum.name":"Rythmique {written}, {time}, {subdivision}{feel}","strum.name.titled":"{title} : rythmique {written}, {time}, {subdivision}{feel}","strum.name.feel":", {feel}","strum.tuning.unknown":"Accordage « {tuning} » inconnu : utilisez par exemple tuning: standard, drop d, ukulele ou E2 A2 D3 G3 B3 E4","strum.tuning.tooManyStrings":"12 cordes au plus","strum.tuning.unknownGiven":"Accordage « {tuning} » inconnu","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)","picking.token.notUnderstood":"« {token} » non compris : {help}","picking.string.missing":"La corde {n} n’existe pas : les cordes vont de 1 (la plus aiguë) à {strings}","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:","picking.bar.betweenBarLines":" entre les barres de mesure","picking.key.unknown":"Clé « {key} » inconnue : utilisez time, subdivision, swing, chord, chords, tempo, tuning, title ou pattern","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","picking.tempo.invalid":"Tempo « {text} » invalide : utilisez un nombre de temps par minute de {min} à {max}, par exemple tempo: 80","picking.pattern.twice":"Écrivez le motif une seule fois : avec pattern: ou avec des lignes de motif, pas les deux","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","picking.chords.tooMany":"{max} accords au plus, {found} trouvés","picking.tuning.unknown":"Accordage « {tuning} » inconnu : utilisez par exemple tuning: standard, drop d, open g ou E2 A2 D3 G3 B3 E4","picking.name":"Motif de picking {written}, {time}, {subdivision}{over}","picking.name.titled":"{title} : motif de picking {written}, {time}, {subdivision}{over}","picking.name.over":", sur {chords}","picking.voicing.none":"Aucune position jouable de {chord} pour cet accordage","export.image.title":"Notation musicale"};var dt={...lt,...at,...ut,...ct};var de={en:it,fr:dt},Mn=Object.keys(de);function Z(e){if(typeof e!=="string")return null;let t=e.trim().toLowerCase().split(/[-_]/)[0];return Mn.includes(t)?t:null}var J="en";function ze(e,t){let n=J;J=e??J;try{return t()}finally{J=n}}function En(e,t){if(!t)return e;return e.replace(/\{(\w+)\}/g,(n,o)=>(o in t)?String(t[o]):n)}function me(e){return(t,...n)=>En(de[e][t]??de.en[t],n[0])}var K=()=>me(J),q=(e,...t)=>me(J)(e,...t);var Cn=["letters","solfege","german"],Nn=()=>q("theory.naming.write");var Ln=(e)=>e.trim().toLowerCase().normalize("NFD").replace(/[̀-ͯ]/g,"");function zn(e){let t=Ln(e);if(Cn.includes(t))return t;throw Error(Nn())}function pe(e){if(typeof e!=="string")return null;try{return zn(e)}catch{return null}}var Fn={C:"Do",D:"Ré",E:"Mi",F:"Fa",G:"Sol",A:"La",B:"Si"},On={"#":"♯","♯":"♯",b:"♭","♭":"♭","##":"♯♯",x:"♯♯",bb:"♭♭","♭♭":"♭♭","♯♯":"♯♯"};function mt(e,t){if(t==="letters")return e;let n=/^([A-G])(##|bb|♯♯|♭♭|#|b|♯|♭|x)?$/.exec(e.trim());if(!n)return e;let[,o,r=""]=n;if(t==="solfege")return`${Fn[o]}${On[r]??""}`;if(o!=="B")return e.trim();return r==="b"||r==="♭"?"B":`H${r}`}var Pn="http://www.w3.org/2000/svg",Dn=(e,t)=>{for(let[n,o]of Object.entries(t))if(o!==void 0)e.setAttribute(n,String(o))};function Fe(e,t,n={},o=[]){let r=e.createElementNS(Pn,t);Dn(r,n);for(let i of o)if(i)r.appendChild(i);return r}function B(e,t,n,o){let r=e.createElement(t);if(n)r.className=n;if(o!==void 0)r.textContent=o;return r}var ls=`mn-name-${Math.random().toString(36).slice(2,8)}-`;var Gn=new Map(Object.entries({standard:"E2 A2 D3 G3 B3 E4","drop d":"D2 A2 D3 G3 B3 E4","drop c":"C2 G2 C3 F3 A3 D4","drop b":"B1 F#2 B2 E3 G#3 C#4","drop a":"A1 E2 A2 D3 F#3 B3","double drop d":"D2 A2 D3 G3 B3 D4",dadgad:"D2 A2 D3 G3 A3 D4","open g":"D2 G2 D3 G3 B3 D4","open d":"D2 A2 D3 F#3 A3 D4","open e":"E2 B2 E3 G#3 B3 E4","open c":"C2 G2 C3 G3 C4 E4","open a":"E2 A2 E3 A3 C#4 E4","half step down":"Eb2 Ab2 Db3 Gb3 Bb3 Eb4","whole step down":"D2 G2 C3 F3 A3 D4","modal c6":"C2 A2 C3 G3 C4 E4",c6:"C2 A2 C3 G3 C4 E4",bass:"E1 A1 D2 G2",ukulele:"G4 C4 E4 A4"}));function ge(e){let t=e.trim(),n=Gn.get(t.toLowerCase().replace(/\s*\(.*\)$/,""));if(n)return ge(n);let o=t.split(/[\s,]+/).filter(Boolean);if(o.length>1&&o.every((s)=>Ne(s)!==null))return o.map((s)=>Ne(s));let r=o.length>1?o:t.match(/[A-G][#♯b♭]?|[a-g][#♯♭]?/g)??[];if(r.length<2||r.join("")!==o.join(""))return null;let i=[];for(let s of r){let a=re(s);if(a===null)return null;let l=i[i.length-1];if(l===void 0){let u=[28,40,52].map((c)=>c-c%12+a);i.push(u.reduce((c,d)=>Math.abs(d-40)<Math.abs(c-40)?d:c))}else{let u=l-l%12+a;while(u<=l)u+=12;i.push(u)}}return i}var Rn=/^\s*([A-Ga-g][#b]?|[1-8](?=\s*[|:]))?\s*[|:]?/,Bn=/^[-0-9xX|:hpbrsvt/\\~^().*<>\s]*$/,Un=/^\s*([A-Za-z][A-Za-z0-9. -]{0,14}?)\s*[|:]([-xXoOgfdb#@*+|:\s]*)$/,In=new Map(Object.entries({hihat:"h hh hat hihat hihats","hihat-open":"oh openhat openhihat","hihat-foot":"hf fh hp ph pedal hihatfoot hihatpedal",crash:"c c1 cc cr cy cym crash crash1 cymbal",crash2:"c2 cr2 crash2",ride:"r rd rc ride",splash:"sp spl splash",china:"ch cn chi china",cowbell:"cb cow cowbell",snare:"s sd sn sr snare snaredrum",tom1:"t t1 ht tom1 hightom hitom",tom2:"t2 mt tom2 midtom",tom3:"t3 lt tom3 lowtom",floor:"f ft fl t4 tom4 floor floortom",kick:"b bd bs k kd bass kick bassdrum kickdrum"}).flatMap(([e,t])=>t.split(" ").map((n)=>[n,e])));function jn(e,t){let n=t==="#";switch(e){case"hihat":return t==="o"||t==="O"?"HiHatOpen":"HiHatClosed";case"hihat-open":return"HiHatOpen";case"hihat-foot":return"PedalHiHatHit";case"crash":return n?"CrashHighChoke":"CrashHighHit";case"crash2":return n?"CrashMediumChoke":"CrashMediumHit";case"ride":return n?"RideChoke":"RideMiddle";case"splash":return n?"SplashChoke":"SplashHit";case"china":return n?"ChinaChoke":"ChinaHit";case"cowbell":return"CowbellMediumHit";case"snare":return"SnareHit";case"tom1":return"HighTomHit";case"tom2":return"MidTomHit";case"tom3":return"LowTomHit";case"floor":return"VeryLowTomHit";case"kick":return"KickHit"}}var $n=(e)=>e==="X"||e==="O"?["ac"]:e==="g"?["g"]:[],Hn=/[^-0-9xXoOgfdbhprsvt/\\~^().*<>#@+|:\s]|<(?!\d)/,Vn=/^\s*(?:[xX]\s*\d{1,3}|\d{1,3}\s*[xX])\s*$/;function qn(e){let t=e.lastIndexOf("|");if(t<0)return{line:e,text:null};let n=e.slice(t+1),o=n.trim();if(!o)return{line:e,text:null};return Hn.test(o)||Vn.test(o)||/^\s/.test(n)&&!o.includes("--")?{line:e.slice(0,t+1),text:o}:{line:e,text:null}}function _n(e){let{line:t,text:n}=qn(e.trimEnd()),o=null,r=Rn.exec(t),i=t.slice(r[0].length);if(Bn.test(i)&&(t.match(/-/g)?.length??0)>=4&&(t.includes("|")||/^\s*[A-Ga-g][#b]?\s*[-|:]/.test(t)))o={name:r[1]??null,body:i,offset:r[0].length,barred:/[|:]$/.test(r[0])};let s=null,a=Un.exec(t),l=a?a[1].toLowerCase().replace(/[ .-]/g,""):"",u=In.get(l);if(a&&u&&(a[2].match(/[^\s|:]/g)?.length??0)>=4)s={drum:u,name:l,body:a[2],lettered:/^[A-Ga-g]$/.test(a[1])};return o||s?{string:o,drum:s,text:n}:null}var At=(e)=>[...new Set(e.map((t)=>t.text).filter((t)=>t!==null))];function Wn(e){let t=[],n=0;for(let o=2;o<e.length-1;o++){let[r,i]=[e[n].string.name,e[n+1].string.name];if(r!==null&&e[o].string.name===r&&e[o+1].string.name===i&&o-n>=2)t.push(e.slice(n,o)),n=o}return t.push(e.slice(n)),t}function Kn(e){let t=[],n=[];for(let o of e){if(n.some((r)=>r.drum.name===o.drum.name))t.push(n),n=[];n.push(o)}return t.push(n),t}var Yn=/^[\sPpMm.\-_|=~]*$/,Xn=/P\.?M/i;function Qn(e){if(!Yn.test(e)||!Xn.test(e))return[];let t=[];for(let n=0;n<e.length;n++){let o=e[n];if((o==="P"||o==="p")&&/^\.?[Mm]/.test(e.slice(n+1,n+3)))t.push([n,n]);else if(o!==" "&&t.length)t[t.length-1][1]=n}return t}function pt(e,t=null){return Wn(e).flatMap((n,o)=>{let r=n.map((u)=>u.string.name);if(n.length<3&&r.some((u)=>u===null))return[];let i=n.map((u)=>u.string.body),s=n[0].string.offset,a=new Set;if(o===0&&t!==null)for(let[u,c]of Qn(t))for(let d=Math.max(u,s);d<=c;d++)a.add(d-s);let l=n.some((u)=>!u.string.barred);return[{kind:"strings",names:r,lines:i,texts:At(n),muted:a,openStart:l}]})}function gt(e,t){if(!e.length)return[];if(e.every((r)=>r.drum)&&e.some((r)=>!r.string||!r.drum.lettered||/[xXoOgfdb#@*+]/.test(r.drum.body)))return Kn(e).map((r)=>({kind:"drums",drums:r.map((i)=>i.drum.drum),lines:r.map((i)=>i.drum.body),texts:At(r)}));if(e.every((r)=>r.string))return pt(e,t);let n=[],o=[];for(let r of[...e,null])if(r?.string)o.push(r);else{if(o.length)n.push(...pt(o,n.length?null:t));o=[]}return n}function Zn(e){let t=[],n=[],o=null,r=null;for(let i of e.split(/\r?\n/)){let s=_n(i);if(s){if(!n.length)o=r;n.push(s)}else t.push(...gt(n,o)),n=[];r=i}return t.push(...gt(n,o)),t}function ft(e,t){let n=Math.max(...e.map((l)=>l.length)),o=e.map((l)=>l.padEnd(n,"-")),r=[],i=[],s=!1,a=0;for(let l=0;l<n;l++){if(o.every((p)=>p[l]==="|"||p[l]===":")){if(s)r.push({beats:i,start:a,end:l});i=[],s=!1,a=l+1;continue}if(o.some((p)=>p[l]!==" "))s=!0;let{beat:u,skip:c,at:d}=t(o,l);if(u.length)i.push({notes:u,col:d??l});l+=c}if(s)r.push({beats:i,start:a,end:n});return r}var se=(e)=>e!==void 0&&e>="0"&&e<="9",ht=(e,t)=>(e==="1"||e==="2")&&se(t)&&Number(e+t)<=24;function Jn(e){let t=new Map,n=new Map,o=new Set,r=(i)=>{let s=i,a=e[s]==="(";if(a)s++;if(!se(e[s]))return{fret:null,next:i};let l=ht(e[s],e[s+1])?2:1,u=Number(e.slice(s,s+l));for(let c=0;c<l;c++)o.add(s+c);if(s+=l,a&&e[s]===")")s++;return{fret:u,next:s}};for(let i=0;i<e.length;){if(!se(e[i])||o.has(i)){i++;continue}let s=ht(e[i],e[i+1])?2:1,a=Number(e.slice(i,i+s));t.set(i,{fret:a,width:s});let l=[],u=e[i-1],c=i+s;if(u==="<"&&e[c]===">")l.push("nh"),c++;else if((u==="/"||u==="\\")&&!/[\d)>]/.test(e[i-2]??"-"))l.push(u==="/"?"sib":"sia");if(e[c]==="b"||e[c]==="^"){let g=r(c+1);c=g.next;let v=[0,(g.fret!==null&&g.fret>a?Math.min(g.fret-a,4):2)*2];if(e[c]==="r"){let f=r(c+1);c=f.next;let m=f.fret===null?0:(f.fret-a)*2;v.push(Math.min(v[1],Math.max(0,m)))}l.push(`b (${v.join(" ")})`)}if(e[c]==="~"||e[c]==="v"){l.push("v");while(e[c]==="~"||e[c]==="v")c++}let d=e[c],p=se(e[c+1])||e[c+1]==="("&&se(e[c+2]);if((d==="h"||d==="p")&&p)l.push("h");else if(d==="/"||d==="\\"||d==="s"){if(p)l.push("sl");else if(d!=="s")l.push(d==="/"?"sou":"sod")}if(l.length)n.set(i,l);i+=s}return{frets:t,effects:n}}var eo=(e,t,n=[])=>(o,r)=>{let i=[],s=new Set,a=r,l=!1,u=(c,d)=>{let p=o[c][d],g=t.has(d)?["pm"]:[];if(p==="x"||p==="X"){i.push({tex:`x.${n[c]??c+1}`,effects:g}),s.add(c);return}let h=e[c].frets.get(d);if(!h)return;if(h.width===2&&d===r)l=!0;if(o[c][d-1]==="<")a=Math.min(a,d-1);i.push({tex:`${h.fret}.${n[c]??c+1}`,effects:[...e[c].effects.get(d)??[],...g],string:n[c]??c+1}),s.add(c)};if(o.forEach((c,d)=>u(d,r)),l)o.forEach((c,d)=>s.has(d)||u(d,r+1));return{beat:i,skip:l?1:0,at:a}},be={3:[64,59,55],4:[43,38,33,28],5:[43,38,33,28,23],6:[64,59,55,50,45,40],7:[64,59,55,50,45,40,35]},bt=[64,59,55,50,45,40,35,30],Oe={names:["E","A","D","G","B","E"],midis:[40,45,50,55,59,64]},to=["E A D G","B E A D G"],Pe=(e)=>e[0].toUpperCase()+e.slice(1);function De(e){let t=e.length;if(e.every((n)=>n!==null&&/^\d$/.test(n)))return e.every((n)=>bt[Number(n)-1])?e.map((n)=>bt[Number(n)-1]):null;if(e.every((n)=>n!==null&&/^[A-Ga-g]/.test(n))){let n=[...e].reverse(),o=n.map(Pe).join(" ");if(to.includes(o))return ge(o).map((s)=>s-12).reverse();let r=[...Oe.names.keys()].filter((s)=>n.every((a,l)=>Oe.names[s+l]===Pe(a)));if(r.length){let s=r.length>1&&n[0]==="e"?r.at(-1):r[0];return Oe.midis.slice(s,s+t).reverse()}if(t===1){let s=re(Pe(e[0]));return s===null?null:[48+(s-48+120)%12]}let i=ge(o);if(i)return i.reverse()}return be[t]??null}function no(e){let t=[...be[6]],n=t.indexOf(e);if(n<0)n=t.reduce((o,r,i)=>Math.abs(r-e)<Math.abs(t[o]-e)?i:o,0),t[n]=e;return{tuning:t,string:n+1}}function oo(e){if(e.length===1){let{tuning:o,string:r}=no(e[0]);return{tuning:o,strings:[r]}}let t=be[6];if(e.length>5)return null;let n=e.map((o)=>t.indexOf(o));if(n[0]<0||n.some((o,r)=>o!==n[0]+r))return null;return{tuning:[...t],strings:n.map((o)=>o+1)}}var ro=(e)=>(t,n)=>{let o=[];return t.forEach((r,i)=>{let s=r[n];if(!/[xXoOgfdb#@*+]/.test(s))return;let a=jn(e[i],s);if(!o.some((l)=>l.tex===a))o.push({tex:a,effects:$n(s)})}),{beat:o,skip:0}},Tt=[[24,1,!0],[16,1,!1],[12,2,!0],[8,2,!1],[6,4,!0],[4,4,!1],[3,8,!0],[2,8,!1],[1,16,!1]];function yt(e){let t=[];for(let n=e;n>0;){let[o,r,i]=Tt.find(([s])=>s<=n);t.push({duration:r,dotted:i}),n-=o}return t}var Y={ts:[4,4],length:16,beat:4,grids:[1,2,4,8,16]},kt={ts:[3,4],length:12,beat:4,grids:[1,3,6,12]},so={ts:[6,8],length:12,beat:6,grids:[1,2,6,12]},io={ts:[12,8],length:24,beat:6,grids:[1,2,4,12,24]};function ao(e,t){let n=new Map;for(let r=1;r<e.length;r++){let i=e[r]-e[r-1],s=t[r]-t[r-1];if((n.get(i)??s)!==s)return!1;n.set(i,s)}let o=[...n].sort((r,i)=>r[0]-i[0]);return o.every(([,r],i)=>i===0||r>=o[i-1][1])}var lo=new Set(Tt.map(([e])=>e));function co(e,t,[n,o],r,i,s){let a=o/t;if(a<1||i&&!Number.isInteger(a))return null;let l=[],u=0;for(let c of e){let d=(c-n)/a,p=Math.round(d),g=Math.abs(d-p)*a;if(p<0||p>=t||g>r+0.000000001||l.length&&p*(s/t)<=l.at(-1))return null;u=Math.max(u,g),l.push(p*(s/t))}if(!i&&l.some((c,d)=>!lo.has((l[d+1]??s)-c)))return null;return ao(e,l)?{at:l,error:u}:null}function Ge(e,t,n,o=Y){if(!e.length)return[];let r=[[n,t-n],[n,t]];for(let i=1;i<n;i++)r.push([i,t-i]);if(e[0]>n)r.push([0,t]);for(let[i,s]of[[0.4,!1],[1,!1],[0.4,!0]])for(let a of o.grids){let l=r.map((u)=>co(e,a,u,i,s,o.length)).filter((u)=>u!==null);if(l.length)return l.reduce((u,c)=>c.error<u.error?c:u).at}return null}function he(e,t,n=t.length){let o=[],{beat:r,length:i}=t;for(let s=e;s<n;){let a=i===4*r&&s%(2*r)===0&&s<=i/2?[2*r]:[],u=(s%2?[1]:s%r?[2,1]:[...a,r,2,1]).find((c)=>c<=n-s);o.push({beat:-1,sixteenths:u}),s+=u}return o}function uo(e,t=Y,n=[]){let o=e.slice(1).map((s,a)=>s-e[a]),r=new Map;for(let s of o)r.set(s,(r.get(s)??0)+1);let i=[...r].reduce((s,a)=>!s||a[1]>s[1]||a[1]===s[1]&&a[0]<s[0]?a:s,null)?.[0];for(let s of[2,1]){let a=e.map((u,c)=>s*(c<o.length?Math.max(1,Math.round(o[c]/i)):1)),l=a.reduce((u,c)=>u+c,0);if(s===2)for(let u of n){if(l<=t.length)break;if(u+1>=a.length||a[u]!==2)continue;let c=Math.max(1,a[u+1]-1);l-=1+a[u+1]-c,a[u]=1,a[u+1]=c}if(l>t.length)continue;return[...a.map((u,c)=>({beat:c,sixteenths:u})),...he(l,t)]}return e.map((s,a)=>({beat:a,sixteenths:1}))}var mo=new Set(["h","sl"]),po=(e)=>e.flatMap((t,n)=>t.notes.some((o)=>o.effects.some((r)=>mo.has(r)))?[n]:[]);function go(e,t,n){let o=n.length,r=e.part==="whole"?e.width:t,i=e.part==="end"?t-e.width:0,s=e.beats.map((c)=>c.col+i);if(e.part==="start"&&s.length){let c=Ge([...s,e.width],r,e.pad,n);if(c){let d=c.pop(),p=c[0]>0?[{beat:-1,sixteenths:c[0]}]:[];return c.forEach((g,h)=>p.push({beat:h,sixteenths:(c[h+1]??d)-g})),[...p,...he(d,n)]}}let a=Ge(s,r,e.pad,n);if(!a){let c=uo(e.beats.map((g)=>g.col),n,po(e.beats));if(e.part!=="end")return c;let d=c.filter((g)=>g.beat>=0),p=d.reduce((g,h)=>g+h.sixteenths,0);return e.pickup?d:[...he(0,n,o-p),...d]}let l=a[0],u=l===0||e.pickup?[]:e.part==="end"?he(0,n,l):[{beat:-1,sixteenths:l}];return a.forEach((c,d)=>u.push({beat:d,sixteenths:(a[d+1]??o)-c})),u}var fo=(e)=>e.reduce((t,n)=>n.beats.length?Math.min(t,n.beats[0].col-n.start):t,3);function vt(e,t,n,o){let r=Math.max(...e.map((i)=>i.length));return{bars:t,pad:fo(t),texts:n,openStart:o&&t[0]?.start===0,openEnd:t.at(-1)?.end===r}}function ho(e){let t=[];for(let n of e)n.bars.forEach((o,r)=>{if((r>0||!n.openStart)&&(r<n.bars.length-1||!n.openEnd)&&o.beats.length)t.push(o.end-o.start)});if(t.length<2)return null;return t.sort((n,o)=>n-o),t[t.length>>1]}function St(e){let t=new Map;for(let o of e)t.set(o,(t.get(o)??0)+1);let n;for(let[o,r]of t)if(!n||r>n.count||r===n.count&&o<n.value)n={value:o,count:r};return n}function bo(e,t){if(t===null)return Y;let n=[];for(let c of e)c.bars.forEach((d,p)=>{let g=(p>0||!c.openStart)&&(p<c.bars.length-1||!c.openEnd),h=d.end-d.start;if(g&&d.beats.length&&Math.abs(h-t)<=1)n.push({bar:d,pad:c.pad})});let o=new Map;for(let{bar:c}of n)for(let d=1;d<c.beats.length;d++){let p=c.beats[d].col-c.beats[d-1].col;o.set(p,(o.get(p)??0)+1)}let r=Math.max(0,...o.values()),i=Math.min(...[...o].filter(([,c])=>c*2>=r).map(([c])=>c));if(n.length<2||!Number.isFinite(i))return Y;let s=[],a=0,l=0;for(let{bar:c,pad:d}of n){let p=c.beats.map((m)=>(m.col-c.start-d)/i);if(p.some((m)=>Math.abs(m-Math.round(m))*i>0.40000000100000005)){s.push(0);continue}let g=p.map(Math.round),h=Math.max(Math.ceil((c.end-c.start-d)/i-0.5),g.at(-1)+1);if(s.push(h),h!==6)continue;let v=c.beats.reduce((m,b)=>b.notes.reduce((k,y)=>Math.max(k,y.string??0),m),0),f=g.filter((m,b)=>c.beats[b].notes.some((k)=>k.string===v));for(let m of[g,f.length<g.length?f:[]])if(m.some((b)=>b!==0&&b%2===0)&&m.every((b)=>b%2===0))a++;else if(m.includes(3)&&m.every((b)=>b%3===0))l++}let u=St(s);if(u.count*3<n.length*2)return Y;if(u.value===3)return kt;if(u.value===6)return a>l?kt:so;return u.value===12?io:Y}function yo(e,t){let n=(i)=>t!==null&&i<=t*2/3,o=[],r=null;return e.forEach((i,s)=>{let a=o.length,l=e[s+1];i.bars.forEach((c,d)=>{let p=c.beats.map((f)=>({notes:f.notes,col:f.col-c.start})),g={beats:p,width:c.end-c.start,pad:i.pad,part:"whole",pickup:!1,text:null},h=d===0&&r!==null;if(r&&d===0){let f=r.width-i.pad;g={...r,beats:[...r.beats,...p.map((m)=>({notes:m.notes,col:m.col+f}))],width:r.width+g.width-i.pad},r=null}if(d===i.bars.length-1&&n(g.width)){let f=l?.bars[0],m=f?g.width+f.end-f.start-l.pad:0;if(f&&(i.openEnd||n(f.end-f.start)&&(l.openStart||m<=t*1.25))){if(g.beats.length||!i.openEnd)r=g;return}if(i.openEnd&&!h){if(!g.beats.length)return;g.part="start"}}let v=!o.length;if(d===0&&!h&&g.part==="whole"&&n(g.width)&&g.beats.length){if(v||i.openStart)g.part="end",g.pickup=v}o.push(g)});let u=r??(o.length>a?o.at(-1):null);if(i.texts.length&&u){let c=i.texts.join(" / ");u.text=u.text?`${u.text} / ${c}`:c}}),o}function ko(e,t){return e.flatMap((n)=>{if(n.part!=="whole"||n.beats.length<2)return[n];let o=n.beats.map((d)=>d.col);if(Ge(o,n.width,n.pad,t))return[n];let r=o.slice(1).map((d,p)=>d-o[p]),i=St(r).value,s=r.reduce((d,p)=>d+Math.max(1,Math.round(p/i)),1),a=t.length/2,l=i*a;if(s<=a||n.width-n.pad<l*1.5)return[n];let u=Math.floor((o.at(-1)-n.pad)/l)+1,c=Array.from({length:u},()=>[]);for(let d of n.beats){let p=Math.min(u-1,Math.max(0,Math.floor((d.col-n.pad)/l)));while(p<u-1&&d.col>=n.pad+(p+1)*l)p++;while(p>0&&d.col<n.pad+p*l)p--;c[p].push({notes:d.notes,col:d.col-p*l})}return c.map((d,p)=>({beats:d,width:n.pad+l,pad:n.pad,part:"whole",pickup:!1,text:p===u-1?n.text:null}))})}var vo=(e)=>`"${e.replace(/[\\"]/g,(t)=>`\\${t}`)}"`,fe=(e,t)=>t.length?`${e}{${t.join(" ")}}`:e;function wo(e,t){if(!e.length)return fe("r",t);if(e.length===1)return fe(e[0].tex,[...e[0].effects,...t]);return fe(`(${e.map((n)=>fe(n.tex,n.effects)).join(" ")})`,t)}var wt=new Set(["h","sl","sou","sod"]);function xo(e,t){if(t===1)return[e];let n=[e.map((o)=>({...o,effects:o.effects.filter((r)=>!wt.has(r))}))];for(let o=1;o<t;o++)n.push(e.filter((r)=>r.string!==void 0).map((r)=>({tex:`-.${r.string}`,effects:r.effects.filter((i)=>i==="pm"||o===t-1&&wt.has(i))})));return n}function xt(e,t){let n=0;return e.map(({beats:r,rhythm:i,text:s,pickup:a})=>{let l=[];if(!r.length)for(let d of t===Y?[{duration:1,dotted:!1}]:yt(t.length))l.push({notes:[],...d});for(let{beat:d,sixteenths:p}of i){let g=yt(p),h=xo(d>=0?r[d]:[],g.length);g.forEach((v,f)=>l.push({notes:h[f],...v}))}let u=l.length-1;while(u>0&&!l[u].notes.length)u--;if(!l[u].notes.length)u=l.length-1;let c=l.map((d,p)=>{let g=d.dotted?["d"]:[];if(s&&p===u)g.push(`txt ${vo(s)}`);let h=d.duration===n?"":`:${d.duration} `;return n=d.duration,h+wo(d.notes,g)}).join(" ");return a?`\\ac ${c}`:c}).join(` |
|
|
3
|
+
`)}function Mt(e){let t=Zn(e),n=t[0];if(!n)return null;let o=n.kind==="strings"?De(n.names):null,r=o?oo(o):null;if(r)o=r.tuning;let i=[];if(n.kind==="drums"){for(let p of t)if(p.kind==="drums")i.push(vt(p.lines,ft(p.lines,ro(p.drums)),p.texts,!1))}else{let p=JSON.stringify(De(n.names)),g=r?.strings??[];for(let h of t){if(h.kind!=="strings"||JSON.stringify(De(h.names))!==p)continue;let v=eo(h.lines.map(Jn),h.muted,g);i.push(vt(h.lines,ft(h.lines,v),h.texts,h.openStart))}}let s=ho(i),a=bo(i,s),l=ko(yo(i,s),a).map((p)=>({beats:p.beats.map((g)=>g.notes),rhythm:go(p,s??0,a),text:p.text,pickup:p.pickup}));if(!l.length)return null;let u=a===Y?[]:[`\\ts ${a.ts.join(" ")}`];if(n.kind==="drums")return["\\instrument percussion","\\articulation defaults",...u,xt(l,a)].join(`
|
|
4
|
+
`);let c=o?.join(" ")===be[6].join(" ");return[...o&&!c?[`\\tuning (${o.map((p)=>tt(p)).join(" ")})`]:[],...u,xt(l,a)].join(`
|
|
5
|
+
`)}var Re=["generaluser","sonivox","light"];function ye(e){if(typeof e!=="string")return null;let t=e.trim().toLowerCase();return Re.includes(t)?t:null}function Ao(e){return e?[e,...Re.filter((t)=>t!==e)]:[...Re]}function Et(e,t){for(let n of Ao(e)){let o=t(n);if(o!==null&&o!==void 0&&o!==!1)return{engine:n,value:o}}return null}function Ct(e){if(!e||typeof e!=="object"||!("play"in e))return;let t=e.play;if(!t||typeof t!=="object"||!("engine"in t))return;return ye(t.engine)??void 0}var Nt=["steel","nylon","clean","overdrive"],ke="steel",Be={steel:25,nylon:24,clean:27,overdrive:29};var To={play:"M4 2.5v11l9-5.5z",pause:"M4 3h3v10H4zM9 3h3v10H9z",stop:"M4 4h8v8H4z",all:"M1.5 2.5v11l6.5-5.5zM8 2.5v11l6.5-5.5z",loop:"M3 8a5 5 0 0 1 8.5-3.5L13 6V2.5M13 8a5 5 0 0 1-8.5 3.5L3 10v3.5",count:"M5.5 14h5L9 2.5H7zM8 11.5l4.5-7",click:"M3 5v6M8 5v6M13 5v6",copy:"M2.5 3.5h11v9h-11zM2.5 11l3.5-3.5 3 3 2-2 2.5 2.5M10.5 6.5h.01",full:"M2.5 6V2.5H6M10 2.5h3.5V6M13.5 10v3.5H10M6 13.5H2.5V10",names:"M3.5 13.5 8 2.5l4.5 11M5.3 9.5h5.4",follow:"M8 5a3 3 0 1 0 0 6a3 3 0 0 0 0-6M8 1.5v2M8 12.5v2M1.5 8h2M12.5 8h2",exit:"M6 2.5V6H2.5M13.5 6H10V2.5M10 13.5V10h3.5M2.5 10H6v3.5"},So=new Set(["loop","count","click","copy","full","exit","follow","names"]);function ie(e,t){let n=Fe(e,"svg",{class:`mn-play-icon mn-play-icon-${t}${So.has(t)?" mn-play-icon-line":""}`,viewBox:"0 0 16 16",width:12,height:12,"aria-hidden":"true"});return n.appendChild(Fe(e,"path",{d:To[t]})),n}function Lt(e,t,n){let o=B(e,"div",`mn-play mn-play-static ${t}`);return o.addEventListener("mousedown",(r)=>r.stopPropagation()),o.setAttribute("role","group"),o.setAttribute("aria-label",n),o}function Q(e,t,n,o){let r=B(e,"button",t);return r.type="button",r.appendChild(ie(e,o)),r.title=n,r.setAttribute("aria-label",n),r}function ae(e,t,n,o,r,i){let s=Q(e,t,n,o),a=()=>{s.setAttribute("aria-pressed",String(r)),s.classList.toggle("mn-on",r)};return s.addEventListener("click",()=>{r=!r,i(r),a()}),a(),s}var Ue=0.8;function zt(e){let t=e;if(typeof e==="function")try{t=e()}catch{t=void 0}return typeof t==="number"&&Number.isFinite(t)?Math.min(1,Math.max(0,t)):Ue}var Mo=Symbol.for("@dsebastien/music-notation/volume"),Eo=globalThis,Ft=Eo[Mo]??=new Set,Ot=(e)=>typeof e==="number"&&Number.isFinite(e)?Math.min(1,Math.max(0,e)):null;function Pt(e,t,n){let o=Ot(n),r=()=>{let i=Ot(e());if(i===null||i===o)return;o=i;for(let s of t())s.setVolume?.(i)};return Ft.add(r),()=>{Ft.delete(r)}}var Dt=[0.2,3];function Rt(e){return typeof e==="number"&&Number.isFinite(e)?Math.min(Dt[1],Math.max(Dt[0],e)):1.2}function Co(e){return typeof e==="number"&&Number.isFinite(e)?Math.min(1,Math.max(0,e)):0.125}function Bt(e){if(!e||typeof e!=="object"||!("play"in e))return null;let t=e.play;if(!t||typeof t!=="object")return null;let n=(u)=>{let c=t[u];if(typeof c!=="function")return c;try{return c()}catch{return}},o=n("reverb"),r=n("room"),i=n("amp"),s=i&&typeof i==="object"?i.drive:null,a=i&&typeof i==="object"&&i.cabinet,l={...typeof o==="number"&&Number.isFinite(o)?{reverb:Math.min(1,Math.max(0,o))}:{},...typeof r==="number"&&Number.isFinite(r)?{room:Rt(r)}:{},...n("dry")===!0?{dry:!0}:{},...a===!0||typeof s==="number"&&Number.isFinite(s)?{amp:{...typeof s==="number"&&Number.isFinite(s)?{drive:Math.min(1,Math.max(0,s))}:{},...a===!0?{cabinet:!0}:{}}}:{}};return Object.keys(l).length?l:null}function No(e){let t=e>>>0;return()=>{t=t+1831565813>>>0;let n=t;return n=Math.imul(n^n>>>15,n|1),n^=n+Math.imul(n^n>>>7,n|61),((n^n>>>14)>>>0)/4294967296}}var Lo={bright:4000,dark:800,rise:0.02,width:0.5},Ie=[300,3000],zo=400,je=3;function Fo(e,t=1.2,n={}){let{bright:o,dark:r,rise:i,width:s}={...Lo,...n},a=Math.max(1,Math.round(e*t)),l=Math.min(a,Math.round(e*0.012)),u=Math.max(1,Math.round(a*0.1)),c=Math.pow(10,-3/(e*t)),d=Math.pow(r/o,1/(e*t)),p=Math.max(1,Math.round(e*Math.max(0,i))),g=(w)=>Math.exp(-2*Math.PI*Math.min(w,e*0.45)/e),h=(w)=>(w-l<p?(w-l)/p:1)*(w>a-u?(a-w)/u:1),v=(w)=>{let x=No(w),O=new Float32Array(a),U=Math.pow(c,l),S=o*Math.pow(d,l),F=0,H=new Float64Array(je);for(let E=l;E<a;E++){if((E-l)%64===0)F=g(S);let G=x()*2-1;for(let C=0;C<je;C++)G=F*H[C]+(1-F)*G,H[C]=G;O[E]=G*U*h(E),U*=c,S*=d}return O},f=0,m=8;for(let w=0;w<m;w++){let x=Ie[0]*Math.pow(Ie[1]/Ie[0],(w+0.5)/m),O=Math.cos(2*Math.PI*x/e),U=Math.pow(c,l),S=o*Math.pow(d,l),F=Math.pow(c,64),H=Math.pow(d,64);for(let E=l;E<a;E+=64){let G=g(S),C=(1-G)*(1-G)/(1-2*G*O+G*G),z=Math.min(64,a-E),P=U*h(E+(z>>1));f+=z*P*P*Math.pow(C,je)/3,U*=F,S*=H}}let b=f>0?1/Math.sqrt(f/m):0,k=v(625341585),y=v(1374496523),T=Math.exp(-2*Math.PI*zo/e);for(let w=0;w<2;w++){let x=0;for(let O=0;O<a;O++)x=T*x+(1-T)*y[O],y[O]=y[O]-x}let M=Math.min(1,Math.max(0,s))*Math.PI/4,A=new Float32Array(a),N=new Float32Array(a);for(let w=0;w<a;w++){let x=k[w]*Math.cos(M)*b,O=y[w]*Math.sin(M)*b;A[w]=x+O,N[w]=x-O}return[A,N]}var Ut={knee:0.9,range:2};function Oo(e=4097){let{knee:t,range:n}=Ut,o=new Float32Array(e);for(let r=0;r<e;r++){let i=(r/(e-1)*2-1)*n,s=Math.abs(i);o[r]=Math.sign(i)*(s<=t?s:t+(1-t)*Math.tanh((s-t)/(1-t)))}return o}var Po=180,Gt=new WeakMap,Do=(e)=>typeof e.createConvolver==="function"&&typeof e.createBuffer==="function",le=new Map;function It(e,t){let n=`${e.sampleRate}:${t}`,o=le.get(n);if(!o){if(o=Fo(e.sampleRate,t),le.size>=3)le.delete(le.keys().next().value);le.set(n,o)}let[r,i]=o,s=e.createBuffer(2,r.length,e.sampleRate);return s.getChannelData(0).set(r),s.getChannelData(1).set(i),s}function Go(e,t,n){let o=e.createGain(),r=e.createGain();r.gain.value=0;let i=e.createConvolver();i.normalize=!1,i.buffer=It(e,n);let s=e.createGain();if(o.connect(s),o.connect(i),typeof e.createBiquadFilter==="function"){let a=e.createBiquadFilter();a.type="highpass",a.frequency.value=Po,a.Q.value=0.7,i.connect(a),a.connect(r)}else i.connect(r);if(r.connect(s),typeof e.createWaveShaper==="function"){let a=e.createWaveShaper();a.curve=Oo(),s.gain.value=1/Ut.range,s.connect(a),a.connect(t)}else s.connect(t);return{input:o,wet:r,room:i,seconds:n}}function ve(e,t,n=e.destination){if(t?.dry||!Do(e))return n;let o=Rt(t?.room),r=Gt.get(e);if(!r){try{r=Go(e,n,o)}catch{return n}Gt.set(e,r)}else if(r.seconds!==o)try{r.room.buffer=It(e,o),r.seconds=o}catch{}let i=Co(t?.reverb);if(typeof r.wet.gain.setTargetAtTime==="function")r.wet.gain.setTargetAtTime(i,e.currentTime,0.02);else r.wet.gain.value=i;return r.input}var jt=(e)=>1+14*Math.min(1,Math.max(0,e));function Ro(e,t=2048){let n=jt(e),o=new Float32Array(t),r=Math.tanh(n);for(let i=0;i<t;i++){let s=i/(t-1)*2-1;o[i]=Math.tanh(n*s)/r}return o}var Bo=0.2;function Uo(e,t=Bo){let n=jt(e),o=Math.tanh(n),r=0,i=0;for(let s=0;s<256;s++){let a=t*Math.sin(2*Math.PI*s/256),l=Math.tanh(n*a)/o;r+=a*a,i+=l*l}return i>0?Math.sqrt(r/i):1}var Io=-2;function we(e,t){let n=typeof t?.drive==="number"?Math.min(1,Math.max(0,t.drive)):0,o=t?.cabinet===!0;if(!n&&!o)return null;if(typeof e.createWaveShaper!=="function"||typeof e.createBiquadFilter!=="function")return null;let r=e.createGain(),i=r,s=(a,l,u,c=0)=>{let d=e.createBiquadFilter();d.type=a,d.frequency.value=l,d.Q.value=u,d.gain.value=c,i.connect(d),i=d};if(n){s("highpass",120,0.7);let a=e.createWaveShaper();a.curve=Ro(n),a.oversample="4x";let l=e.createGain();l.gain.value=Uo(n),i.connect(a),a.connect(l),i=l}if(o){s("highpass",90,0.7),s("peaking",2200,1,4),s("lowpass",4800,0.7),s("lowpass",6500,0.7);let a=e.createGain();a.gain.value=Math.pow(10,Io/20),i.connect(a),i=a}return{input:r,output:i}}var jo=(e)=>typeof e==="object"&&e!==null&&typeof e.connect==="function"&&typeof e.disconnect==="function"&&!("start"in e),$o=[0,20,60,150,400,1000];function Ho(e){let t=e?.output,n=t?.context;if(!t||!n)return null;for(let o of Object.keys(t)){let r=t[o];if(r!==t.source&&r!==n&&jo(r))return{ctx:n,node:r}}return null}function $t(e){return e?.output?.context??null}var xe=new WeakMap;function $e(e,t,n,o){let r=new WeakSet,i={},s=[],a=!0,l=null,u=null,c=[],d=(m)=>{try{m.disconnect()}catch{}},p=(m,b)=>{let k,y=null;try{k=n.effects()??void 0,y=n.guitar?.()??null}catch{k=void 0}let T=k?.dry?b:ve(m,k,b),M=T!==b&&(y==="clean"||y==="overdrive")?k?.amp:void 0,A=M?`${M.drive??0}:${M.cabinet===!0}`:"";if(u&&(u.key!==A||u.ctx!==m||u.out!==T)){let N={id:0,node:u.output};u=null,N.id=o.setTimeout(()=>{d(N.node),c=c.filter((w)=>w!==N)},1000),c.push(N)}if(!A)return T;if(!u){let N=we(m,M);if(!N)return T;N.output.connect(T),u={key:A,ctx:m,out:T,...N}}return u.input},g=()=>{let m=$t(e.player);if(!m)return!1;let b=(y)=>p(m,y),k=xe.get(m);if(k)return k.owner=i,k.entry=b,l=k,!0;try{let y={speakers:m.destination,owner:i,entry:b,asked:0};return Object.defineProperty(m,"destination",{configurable:!0,get:()=>{y.asked++;try{return y.entry?y.entry(y.speakers):y.speakers}catch{return y.speakers}}}),xe.set(m,y),l=y,!0}catch{return!1}},h=(m)=>{if(!a)return;let b=Ho(e.player);if(!b||r.has(b.node))return;let k=xe.get(b.ctx);if(k&&(m===null||k.asked>m))return;try{let y=k?k.speakers:b.ctx.destination,T=p(b.ctx,y);if(T===y)return;b.node.disconnect(),b.node.connect(T),r.add(b.node)}catch{}},v=()=>{if(!a)return;for(let k of s)o.clearTimeout(k);s=[];let m=$t(e.player);if(m&&xe.has(m)&&g())return;let b=g()?l?.asked??0:null;s=$o.map((k)=>o.setTimeout(()=>h(b),k))};g();let f=e.playerReady;if(typeof f?.on==="function")f.on(()=>{if(a)g()});return e.playerStateChanged.on((m)=>{if(a&&t(m.state))v()}),{look:v,stop(){a=!1;for(let m of s)o.clearTimeout(m);s=[];for(let{id:m,node:b}of c)o.clearTimeout(m),d(b);if(c=[],u)d(u.output);if(u=null,l&&l.owner===i)l.owner=null,l.entry=null}}}var Vo=new Set(["PageUp","PageDown","Home","End","ArrowUp","ArrowDown"]);function qo(e){let t=e.ownerDocument.defaultView;if(!t)return"";for(let n=e.parentElement;n;n=n.parentElement){let o=t.getComputedStyle(n).backgroundColor;if(o&&o!=="transparent"&&!/^rgba\(.*,\s*0\)$/.test(o))return o}return""}function Ht(e,t,n,o=()=>{},r={}){let i=r.redraws!==!1,s=e.defaultView,a=K(),l=Q(e,"mn-tab-full",a("playback.full.enter"),"full");l.classList.add("mn-play-full");let u=!1,c=!1,d=!1,p=null,g=null,h=!1,v="",f=(A)=>{if(d===A)return;d=A,o(A)},m=()=>{t.classList.toggle("mn-fullscreen",u),l.classList.toggle("mn-on",u),l.setAttribute("aria-pressed",String(u)),l.title=u?a("playback.full.exit"):a("playback.full.enter"),l.replaceChildren(ie(e,u?"exit":"full"))},b=()=>{if(u)return;if(u=!0,p={x:s?.scrollX??0,y:s?.scrollY??0,background:t.style.backgroundColor},!h)v=t.style.minHeight;h=!1,g=e.createElement("div"),g.className="mn-fullscreen-place",g.style.height=`${t.offsetHeight}px`;let A=s?.getComputedStyle(t);if(A)g.style.marginTop=A.marginTop,g.style.marginBottom=A.marginBottom;t.before(g);let N=qo(t);if(N)t.style.backgroundColor=N;m(),n.tabIndex=0,n.focus({preventScroll:!0}),f(!0),r.changed?.(!0);try{t.requestFullscreen?.().catch(()=>{})}catch{}},k=(A=!0)=>{if(!u)return;if(u=!1,f(!1),m(),t.style.backgroundColor=p?.background??"",g){if(i)t.style.minHeight=g.style.height,h=!0;g.remove(),g=null}if(n.removeAttribute("tabindex"),n.scrollTop=0,c&&e.fullscreenElement===t)e.exitFullscreen?.().catch(()=>{});if(c=!1,p&&s)s.scrollTo(p.x,p.y);if(p=null,r.changed?.(!1),A)l.focus({preventScroll:!0})};l.addEventListener("click",()=>u?k():b()),t.addEventListener("keydown",(A)=>{if(!u||A.key!=="Escape")return;A.stopPropagation(),A.preventDefault(),k()});let y=()=>{if(u)f(!1)};n.addEventListener("wheel",y,{passive:!0}),n.addEventListener("touchmove",y,{passive:!0}),n.addEventListener("keydown",(A)=>{if(Vo.has(A.key))y()});let T=(A)=>{if(!u||A.key!==" "||A.ctrlKey||A.metaKey||A.altKey)return;if(!t.isConnected){k(!1);return}if(A.target?.closest("input:not([type=range]), textarea, select, [contenteditable=true]"))return;if(A.preventDefault(),A.stopPropagation(),A.type!=="keydown"||A.repeat)return;t.querySelector(".mn-play .mn-play-toggle")?.click()};e.addEventListener("keydown",T,!0),e.addEventListener("keyup",T,!0);let M=()=>{if(e.fullscreenElement===t)c=!0;else if(c)k()};return e.addEventListener("fullscreenchange",M),m(),{button:l,active:()=>u,playing:()=>{if(u)f(!0)},drawn:()=>{if(u||!h)return;h=!1,t.style.minHeight=v},destroy:()=>{k(!1),e.removeEventListener("fullscreenchange",M),e.removeEventListener("keydown",T,!0),e.removeEventListener("keyup",T,!0)}}}function Vt(e){if(!e||typeof e!=="object")return!0;return e.fullScreen!==!1}function _o(e,t,n=0){let o=e.top+n,r=e.bottom-n;if(t.bottom-t.top>=r-o)return Math.round(t.top-o);if(t.top<o)return Math.round(t.top-o);if(t.bottom>r)return Math.round(t.bottom-r);return 0}function Wo(e,t,n=0){let o=e.bottom-e.top,r={top:e.top,bottom:e.bottom+o};return r.bottom-r.top<=t.bottom-t.top-2*n?r:e}var Ko=new Set(["auto","scroll","overlay"]);function Yo(e){let t=e.ownerDocument.defaultView;if(!t)return null;let n=e.ownerDocument.scrollingElement??e.ownerDocument.documentElement;for(let o=e;o;o=o.parentElement){if(o===n||o===e.ownerDocument.body)return null;if(!(o instanceof t.HTMLElement))continue;if(Ko.has(t.getComputedStyle(o).overflowY)&&o.scrollHeight>o.clientHeight+1)return o}return null}var Xo=new Set(["PageUp","PageDown","Home","End","ArrowUp","ArrowDown"]);function qt(e,t={}){let n=e.ownerDocument,o=n.defaultView,r=t.margin??16,i=t.on===!0,s=!1,a=null,l=()=>t.changed?.({on:i,active:i&&!s}),u=()=>{if(!i||s)return;s=!0,l()},c=(p)=>{let g=p.target;if(!g||typeof g.contains!=="function")return;if(g.contains(e)||e.contains(g))u()},d=(p)=>{if(Xo.has(p.key))c(p)};return n.addEventListener("wheel",c,{passive:!0,capture:!0}),n.addEventListener("touchmove",c,{passive:!0,capture:!0}),n.addEventListener("keydown",d,!0),{on:()=>i,active:()=>i&&!s,set(p){if(i===p&&!s)return;i=p,s=!1,a=null,l()},press(){if(i&&s)s=!1;else i=!i;a=null,l()},playing(){if(a=null,!s)return;s=!1,l()},show(p,g=0){if(!i||s||!o)return;if(p.bottom<=p.top)return;let h=Yo(e),v=h?.getBoundingClientRect(),f={top:Math.max(0,v?.top??0),bottom:Math.min(o.innerHeight,v?.bottom??o.innerHeight)-g};if(f.bottom-f.top<=2*r)return;let m=Math.round(p.top+(h?h.scrollTop:o.scrollY));if(a!==null&&Math.abs(m-a)<2)return;a=m;let b=_o(f,Wo(p,f,r),r);if(!b)return;let k={top:b,behavior:"smooth"};if(h)h.scrollBy(k);else o.scrollBy(k)},destroy(){n.removeEventListener("wheel",c,!0),n.removeEventListener("touchmove",c,!0),n.removeEventListener("keydown",d,!0)}}}function Qo(e,t,n){if(e.isRest)return[];return e.notes.filter((o)=>!o.isDead&&!o.isTieDestination&&Number.isFinite(o.realValue)).sort((o,r)=>r.realValue-o.realValue).map((o)=>mt(Le((o.realValue%12+12)%12,n),t))}function He(e,t="letters"){let n=[];for(let o of e.tracks)for(let r of o.staves){if(r.isPercussion)continue;let i=r.bars.flatMap((a)=>a.voices.flatMap((l)=>l.beats.map((u)=>({bar:a,beat:u})))),s=i.some(({beat:a})=>(a.lyrics?.length??0)>0);for(let{bar:a,beat:l}of i){let u=Number(a.keySignature??a.masterBar?.keySignature??0),c=Qo(l,t,u<0);if(!c.length)continue;if(!s){let d=l.lyrics;l.lyrics=c,n.push(()=>l.lyrics=d)}else if(!l.text){let d=l.text;l.text=c.join(" "),n.push(()=>l.text=d)}}}return()=>{for(let o of n.splice(0))o()}}function _t(e){let t=e.trim().toLowerCase();if(t==="on"||t==="yes"||t==="true")return!0;if(t==="off"||t==="no"||t==="false")return!1;return null}var Wt=[1,1.25,1.5,1.75,2,2.5,3];function Kt(e,t){let n=null,o=!1,r=(i)=>{n=i,e(Wt[i],!0)};return{enter(){o=!1,r(0)},leave(){n=null,o=!1,e(1,!1)},drawn(){if(n===null)return;if(o){n=null;return}if(t()){if(n+1<Wt.length)r(n+1);else n=null;return}if(n>0)o=!0,r(n-1);else n=null}}}var Yt=0.25,Xt=1.5,ee=5,Te=(e)=>Math.min(Xt,Math.max(Yt,e));function Qt(e,t,n){let o=n;for(let r of e){if(r.start>t)break;for(let i of r.tempoChanges)if(i.tick<=t)o=i.tempo}return o!==null&&Number.isFinite(o)&&o>0?o:n}function Zt(e,t){return Te(e/t)}var Ae=(e,t)=>Math.round(e*t);function Ve(e,t,n,o){if(n==="bpm"&&o)return Zt(Ae(e,o)+t,o);let r=Math.round(e*100),i=t>0?Math.floor(r/ee)*ee+ee:Math.ceil(r/ee)*ee-ee;return Te(i/100)}function Zo(e,t,n){let o=`${Math.round(e*100)} %`;if(!n)return{value:String(Math.round(e*100)),unit:"%",other:""};let r=`${Ae(e,n)} BPM`;return t==="bpm"?{value:String(Ae(e,n)),unit:"BPM",other:o}:{value:String(Math.round(e*100)),unit:"%",other:r}}function Jo(e,t,n){let o=Number(e.replace(",",".").replace(/[^\d.]/g,""));if(!e.trim()||!Number.isFinite(o)||o<=0)return null;return t==="bpm"&&n?Zt(o,n):Te(o/100)}function Jt(e,t){let n=K(),o=1,r=t.unit??"bpm",i=B(e,"span","mn-tempo");i.setAttribute("role","group"),i.setAttribute("aria-label",n("tab.tempo.group"));let s=(m,b,k)=>{let y=B(e,"button",m,b);return y.type="button",y.setAttribute("aria-label",k),y.title=k,y},a=s("mn-tempo-down","−",n("tab.tempo.slower")),l=s("mn-tempo-up","+",n("tab.tempo.faster")),u=B(e,"input","mn-tempo-value");u.type="text",u.inputMode="numeric",u.size=3,u.autocomplete="off";let c=s("mn-tempo-unit","BPM",n("tab.tempo.toPercent")),d=s("mn-tempo-other","",n("tab.tempo.reset")),p=!1;u.addEventListener("input",()=>p=!0);let g=()=>t.tempo()?r:"percent",h=()=>{let m=t.tempo(),b=Zo(o,g(),m);if(!p)u.value=b.value;u.setAttribute("aria-label",b.unit==="BPM"?n("tab.tempo.inBpm"):n("tab.tempo.inPercent")),c.textContent=b.unit,c.hidden=!m;let k=n(g()==="bpm"?"tab.tempo.toPercent":"tab.tempo.toBpm");c.setAttribute("aria-label",k),c.title=k,d.textContent=b.other?`· ${b.other}`:"",d.hidden=!b.other,d.disabled=o===1,i.title=m?n("tab.tempo.title",{bpm:Ae(o,m),percent:Math.round(o*100),tempo:Math.round(m)}):n("tab.tempo.speedTitle",{percent:Math.round(o*100)}),a.disabled=o<=Yt,l.disabled=o>=Xt},v=(m)=>{p=!1,o=Te(m),t.set(o),h()};a.addEventListener("click",()=>v(Ve(o,-1,g(),t.tempo()))),l.addEventListener("click",()=>v(Ve(o,1,g(),t.tempo()))),d.addEventListener("click",()=>v(1)),c.addEventListener("click",()=>{r=g()==="bpm"?"percent":"bpm",t.unitChanged?.(r),h()});let f=()=>{let m=Jo(u.value,g(),t.tempo());if(p=!1,m===null)h();else v(m)};return u.addEventListener("change",f),u.addEventListener("keydown",(m)=>{if(m.key==="Enter")m.preventDefault(),f(),u.select();else if(m.key==="Escape")m.stopPropagation(),p=!1,u.blur(),h();else if(m.key==="ArrowUp"||m.key==="ArrowDown")m.preventDefault(),v(Ve(o,m.key==="ArrowUp"?1:-1,g(),t.tempo())),u.select()}),u.addEventListener("blur",()=>{p=!1,h()}),i.append(a,u,c,l,d),h(),{field:i,speed:()=>o,refresh:h}}function tn(e){if(!e||typeof e!=="object"||!("play"in e))return;let t=e.play;if(!t||typeof t!=="object"||!("instruments"in t))return;let n=t.instruments;return typeof n==="string"&&n.trim()?n.trim():void 0}function nn(e){let t=new Set,n=!1;for(let o of e.tracks)if(o.isPercussion)n=!0;else t.add(o.playbackInfo.program);return{programs:[...t].sort((o,r)=>o-r),drums:n}}function er(e,t){let n=[];for(let o of t.programs){let r=e.programs[String(o)];if(!r?.file)return null;n.push(r.file)}if(t.drums){if(!e.drums?.file)return null;n.push(e.drums.file)}else if(e.click?.file&&t.click!==!1)n.push(e.click.file);return n.length?n:null}var en=new WeakMap,tr=(e)=>typeof e==="object"&&e!==null&&("programs"in e)&&typeof e.programs==="object"&&e.programs!==null;async function on(e,t,n){let o=en.get(n);if(!o)en.set(n,o=new Map);let r=o.get(e);if(!r)o.set(e,r={index:null,files:new Map});let i=async(c)=>{try{if(typeof e==="function")return await e(c);let d=await n.fetch(`${e.replace(/\/+$/,"")}/${c}`);return d.ok?new Uint8Array(await d.arrayBuffer()):null}catch{return null}},s=(c)=>{let d=r.files.get(c);if(!d)d=i(c),r.files.set(c,d),d.then((p)=>{if(!p)r.files.delete(c)});return d};r.index??=i("index.json").then((c)=>{if(!c)return null;try{let d=JSON.parse(new TextDecoder().decode(c));return tr(d)?d:null}catch{return null}});let a=await r.index;if(!a)return r.index=null,null;let l=er(a,t);if(!l)return null;let u=await Promise.all(l.map(s));return u.every((c)=>c!==null)?u:null}var nr="1.9.0",ce=(e=nr)=>{let t=`https://cdn.jsdelivr.net/npm/@coderline/alphatab@${e}/dist`;return{script:`${t}/alphaTab.min.js`,font:`${t}/font/Bravura.woff2`,soundFont:`${t}/soundfont/sonivox.sf3`}};async function _e(e,t,n,o,r=!1,i=K()){let s=t.defaultView,a=Me(t),l=null;if(n.instruments&&s)l=await on(n.instruments,o,s);let u=l?"instruments":"whole";if(!l)if(typeof n.soundFont==="string"){try{let p=await s?.fetch(n.soundFont);l=p?.ok?[new Uint8Array(await p.arrayBuffer())]:null}catch{l=null}if(!l)throw Error(i("tab.sound.loadFailed",{url:n.soundFont}))}else l=[n.soundFont];let c=l,d=0;return await new Promise((p)=>{e.soundFontLoaded.on(()=>{if(++d>=c.length)p()}),setTimeout(p,8000),c.forEach((g,h)=>e.loadSoundFont(a.bytes(g),r||h>0))}),u}function or(e,t){return Et(t,(o)=>o==="generaluser"?Boolean(e.instruments):o==="sonivox")?.engine==="generaluser"?"generaluser":"sonivox"}function rr(e,t){if(!e.instruments||or(e,t)==="generaluser")return e;let{instruments:n,...o}=e;return o}var sr=/^\s*(staves|file|tracks?|engine|layout|names)\s*:\s*(.*)$/i;function ir(e,t){let n=t.split(/\r?\n/),o={staves:e,stavesWritten:!1,file:null,tracks:null,engine:null,layout:"page",names:null,tex:"",texLine:0,fromText:!1},r=0;for(;r<n.length;r++){let s=n[r];if(!s.trim()||/^\s*\/\//.test(s))continue;let a=sr.exec(s);if(!a)break;let l=a[1].toLowerCase(),u=a[2].trim();if(l==="staves"){let c=u.toLowerCase();if(c!=="tab"&&c!=="score"&&c!=="both")throw Error(q("tab.source.staves",{value:u}));o.staves=c,o.stavesWritten=!0}else if(l==="file")o.file=u.replace(/^!?\[\[|\]\]$/g,"").split(/[|#]/)[0].trim()||null;else if(l==="engine"){let c=ye(u);if(!c)throw Error(q("playback.engine.invalid",{value:u}));o.engine=c}else if(l==="layout"){let c=u.toLowerCase();if(c!=="page"&&c!=="line")throw Error(q("tab.source.layout",{value:u}));o.layout=c}else if(l==="names"){let c=_t(u);if(c===null)throw Error(q("tab.source.names",{value:u}));o.names=c}else{let c=u.split(/[\s,]+/).filter(Boolean).map(Number);if(!c.length||c.some((d)=>!Number.isInteger(d)||d<1))throw Error(q("tab.source.tracks",{value:u}));o.tracks=c}}while(r<n.length&&!n[r].trim())r++;if(o.texLine=r,o.tex=n.slice(r).join(`
|
|
6
|
+
`).trimEnd(),!o.file&&!o.tex)throw Error(q("tab.source.empty",{example:"[[Song.gp]]"}));let i=o.file?null:Mt(o.tex);if(i!==null)o.tex=i,o.fromText=!0;return o}function ar(e,t,n){return ln(e,t,n).message}function ln(e,t,n){let o=e?.cause??e;for(let r of["lexerDiagnostics","parserDiagnostics","semanticDiagnostics"]){let i=o?.[r]?.items;if(!Array.isArray(i))continue;let s=i.find((a)=>a.severity===2&&a.message);if(s){if(s.start&&t!==null){let a=s.start.line+t,l=s.start.col;return{message:`${n("tab.error.at",{line:a,column:l})}${s.message}`,line:a,column:l}}return{message:s.message}}}return{message:e instanceof Error?e.message:String(e)}}var lr=0;function rn(e,t){for(let n of t.tracks)for(let o of n.staves){if(o.isPercussion)for(let i of o.bars??[])i.clef=lr;let r=!o.isPercussion&&o.tuning.length>0;if(e==="both"){o.showStandardNotation=!0,o.showTablature=r;continue}o.showSlash=!1,o.showNumbered=!1,o.showTablature=e==="tab"&&r,o.showStandardNotation=!o.showTablature}}var cr=5;function ur(e,t){if(t!==null&&/\bdy\b|\\showdynamics/i.test(t))return;if(!e.tracks.some((o)=>o.staves.some((r)=>r.bars.some((i)=>i.voices.some((s)=>s.beats.some((a)=>!a.isRest&&a.dynamics!==cr))))))e.stylesheet.hideDynamics=!0}var dr="rendered by alphaTab";function mr(e,t){e.renderer?.partialRenderFinished?.on((o)=>{for(let r of t.querySelectorAll(".at-surface > div")){if(r.layoutResultId!==o.id)continue;let i=typeof o.renderResult==="string"&&o.renderResult.includes(dr);r.style.visibility=i?"hidden":""}})}function sn(e,t,n=1){let o=e.createElement("canvas");o.width=1,o.height=1;let r=o.getContext("2d",{willReadFrequently:!0});if(!r)return null;r.fillStyle="#000",r.fillStyle=t,r.fillRect(0,0,1,1);let i=r.getImageData(0,0,1,1).data;if(i.length<4)return null;return`rgba(${i[0]}, ${i[1]}, ${i[2]}, ${(i[3]/255*n).toFixed(3)})`}function pr(e){let t=e.ownerDocument,n=t.defaultView?.getComputedStyle(e).color||"",o=n&&sn(t,n)||(/^rgba?\(/.test(n)?n:"rgba(0, 0, 0, 1)"),r=n&&sn(t,n,0.6)||o;return{mainGlyphColor:o,secondaryGlyphColor:r,scoreInfoColor:o,staffLineColor:r,barSeparatorColor:o,barNumberColor:r}}var Me=(e)=>{let t=e.defaultView??globalThis;return{map:(n)=>new t.Map(n),bytes:(n)=>{let o=new t.Uint8Array(n.length);return o.set(n),o}}},an=(e)=>{let t=Math.max(0,Math.round(e/1000));return`${Math.floor(t/60)}:${String(t%60).padStart(2,"0")}`};function gr(e,t,n,o,r,i={}){let s=K(),a=Lt(e,"mn-tab-bar",s("playback.bar")),l={loop:!1,metronome:!1,countIn:!1,speed:1},u=()=>zt(r),c=()=>{},d=null,p=null,g=()=>(d??=new Promise((w)=>{if(p=()=>w(!1),t.settings.player.playerMode=n.PlayerMode.EnabledSynthesizer,t.settings.player.enableCursor=!0,!o.instruments){if(t.playerReady.on(()=>w(!0)),typeof o.soundFont==="string")t.settings.player.soundFont=o.soundFont;if(t.updateSettings(),o.soundFont instanceof Uint8Array)t.loadSoundFont(Me(e).bytes(o.soundFont),!1);return}let x=!1,O=!1,U=()=>{if(x&&O)w(!0)};t.playerReady.on(()=>{x=!0,U()}),t.updateSettings();let S=t.score?nn(t.score):{programs:[],drums:!1};_e(t,e,o,S,!1,s).then(()=>{O=!0,U()},(F)=>{w(!1),c(F instanceof Error?F.message:String(F))})}).then((w)=>{if(w)t.isLooping=l.loop,t.metronomeVolume=l.metronome?1:0,t.countInVolume=l.countIn?1:0,t.playbackSpeed=l.speed,t.masterVolume=u();return w}),d),h=(w)=>{if(t.player)w()},v=Q(e,"mn-play-toggle",s("playback.play"),"play");v.addEventListener("click",()=>{g().then((w)=>{if(w)t.playPause()})}),c=(w)=>{v.disabled=!0,v.title=s("tab.player.cantPlay",{message:w}),v.setAttribute("aria-label",v.title)};let f=Q(e,"mn-tab-stop",s("playback.stop"),"stop");f.addEventListener("click",()=>h(()=>t.stop()));let m=()=>h(()=>{t.isLooping=l.loop,t.metronomeVolume=l.metronome?1:0,t.countInVolume=l.countIn?1:0}),b=ae(e,"mn-tab-loop",s("playback.loop"),"loop",!1,(w)=>{l.loop=w,m()}),k=ae(e,"mn-tab-click",s("tab.player.metronome"),"click",!1,(w)=>{l.metronome=w,m()}),y=ae(e,"mn-tab-count",s("playback.countIn"),"count",!1,(w)=>{l.countIn=w,m()}),T=t.score?.tempo??null,M=Jt(e,{...i.tempoUnit?{unit:i.tempoUnit}:{},tempo:()=>T,set:(w)=>{l.speed=w,h(()=>t.playbackSpeed=l.speed)},...i.onTempoUnit?{unitChanged:i.onTempoUnit}:{}}),A=B(e,"span","mn-tab-time","");a.append(v,f,b,k,y,M.field,A);let N=Pt(u,()=>[{stop(){},setVolume:(w)=>h(()=>t.masterVolume=w)}],u());return t.playerStateChanged.on((w)=>{let x=Number(w.state)===Number(n.synth.PlayerState.Playing);v.replaceChildren(ie(e,x?"pause":"play")),v.title=x?s("tab.player.pause"):s("playback.play"),v.setAttribute("aria-label",v.title)}),t.playerPositionChanged.on((w)=>{A.textContent=`${an(w.currentTime)} / ${an(w.endTime)}`;let x=Qt(t.tickCache?.masterBars??[],w.currentTick,t.score?.tempo??null);if(x!==T)T=x,M.refresh()}),{bar:a,speed:()=>l.speed,destroy:N,failed:(w)=>{p?.(),c(w)}}}function fr(e,t){return e.tracks.some((n,o)=>(!t||t.includes(o+1))&&n.staves.some((r)=>!r.isPercussion&&r.tuning.length>0))}var hr=[{staves:"tab",label:"tab.view.tab",what:"tab.view.whatTab"},{staves:"score",label:"tab.view.score",what:"tab.view.whatScore"},{staves:"both",label:"tab.view.both",what:"tab.view.whatBoth"}];function br(e,t,n,o){let r=K(),i=B(e,"span","mn-tab-views");i.setAttribute("role","group"),i.setAttribute("aria-label",r("tab.view.group"));let s=t.staves,a=o?B(e,"button","mn-tab-keep",r("tab.view.keep")):null,l=hr.map(({staves:c,label:d,what:p})=>{let g=B(e,"button","mn-tab-view",r(d));return g.type="button",g.dataset.staves=c,g.title=c!==t.staves?r("tab.view.drawAs",{what:r(p)}):t.written?r("tab.view.drawAsWritten",{what:r(p)}):r("tab.view.drawAsDefault",{what:r(p)}),g.addEventListener("click",()=>{if(c===s)return;s=c,u(),n(c)}),i.appendChild(g),g}),u=()=>{for(let c of l){let d=c.dataset.staves===s;c.classList.toggle("mn-on",d),c.setAttribute("aria-pressed",String(d))}if(a)a.hidden=s===t.staves,a.title=r("tab.view.keepTitle",{staves:s})};if(a&&o)a.type="button",a.addEventListener("click",()=>o(s)),i.appendChild(a);return u(),i}function We(e,t,n,o){let r=n.ownerDocument,i=Z(o.language)??"en",s=me(i),a=B(r,"div",`mn-block mn-block-${e} mn-tab`);n.appendChild(a);let l=null,u=()=>1,c=()=>{},d=!1,p=!1,g=()=>{},h=new Promise((f)=>{g=(m)=>{if(p)return;p=!0,f(m)}}),v=(f,m={})=>{a.replaceChildren(B(r,"div","mn-error-message",`${e}: ${f}`)),a.classList.add("mn-error"),g({ok:!1,error:f,...m})};if(!t.trim())a.classList.add("mn-empty"),g({ok:!0,error:null});else(async()=>{await Promise.resolve();let f=ze(i,()=>ir(e,t)),m={staves:f.stavesWritten?f.staves:o.defaultStaves??f.staves,written:f.stavesWritten},b=m.staves,k=!1,y=o.alphaTab;if(!y?.AlphaTabApi)throw Error("alphaTab isn't loaded");let T=B(r,"div","mn-tab-surface");a.appendChild(T);let M=f.layout==="line";a.classList.toggle("mn-tab-line",M);let{assets:A}=o,N=Me(r),w={core:{useWorkers:Boolean(A.scriptFile),...A.scriptFile?{scriptFile:A.scriptFile}:{},smuflFontSources:N.map([[y.FontFileFormat.Woff2,A.font]]),logLevel:y.LogLevel.Warning,enableLazyLoading:!1},display:{staveProfile:"Default",resources:pr(a),...M?{layoutMode:y.LayoutMode?.Horizontal??1}:{}},player:{playerMode:y.PlayerMode.Disabled,enableSeekToClick:!0,enablePlaybackRangeSelection:!0,scrollMode:y.ScrollMode.Off}},x=new y.AlphaTabApi(T,w);l=x;let O=n.ownerDocument.defaultView;if(O)$e(x,(C)=>Number(C)===Number(y.synth.PlayerState.Playing),{effects:()=>typeof o.effects==="function"?o.effects():o.effects},O);if(x.settings.player.scrollElement=T,d){x.destroy();return}o.onApi?.(x);let U=f.names??o.names===!0,S=pe(o.naming)??"letters",F=null,H=[];x.scoreLoaded.on((C)=>{if(H=C.tracks.flatMap((z)=>z.staves.map((P)=>({showSlash:P.showSlash,showNumbered:P.showNumbered}))),rn(b,C),k=fr(C,f.tracks),ur(C,f.file?null:f.tex),F=null,U)F=He(C,S)}),mr(x,T);let E=null;x.renderFinished.on(()=>ze(i,()=>{if(p||d)return;if(o.player!==!1){let C=f.engine??ye(o.engine);if(f.engine)a.setAttribute("data-mn-engine",f.engine);if(E=gr(r,x,y,rr(A,C),o.volume,o),c=E.destroy,u=E.speed,a.appendChild(E.bar),o.views!==!1&&k)E.bar.appendChild(br(r,m,(L)=>{b=L;let D=x.score;if(d||!D)return;D.tracks.flatMap((ne)=>ne.staves).forEach((ne,j)=>Object.assign(ne,H[j])),rn(L,D),x.render()},o.onKeepView));E.bar.appendChild(ae(r,"mn-tab-names",s("tab.names"),"names",U,(L)=>{U=L;let D=x.score;if(d||!D)return;F?.(),F=L?He(D,S):null,x.render()}));let z=null,P=!1,I=!0,R=()=>z?.active()??!1,_=Q(r,"mn-tab-follow",s("tab.follow"),"follow"),Ze=()=>{let L=R()?I:W.on(),D=R()?I&&!P:L&&!W.active();_.setAttribute("aria-pressed",String(L)),_.classList.toggle("mn-on",L),_.classList.toggle("mn-follow-paused",D),_.title=D?s("tab.followPaused"):s("tab.follow")},Ce=()=>{let L=M?y.ScrollMode.Continuous:y.ScrollMode.OffScreen,D=R()?P&&I?L:y.ScrollMode.Off:M&&W.active()?L:y.ScrollMode.Off;if(x.settings.player.scrollMode!==D)x.settings.player.scrollMode=D,x.updateSettings();Ze()},W=qt(a,{on:M,changed:Ce});if(M)x.settings.player.scrollOffsetX=-24,x.settings.player.scrollMode=y.ScrollMode.Continuous,x.updateSettings();_.addEventListener("click",()=>{if(!R())return W.press();if(I&&!P)z?.playing();else I=!I;Ce()}),x.playerStateChanged.on((L)=>{if(Number(L.state)===Number(y.synth?.PlayerState.Playing))W.playing()});let An=E;x.playerPositionChanged.on(()=>{if(M||R()||!W.active())return;let L=T.querySelector(".at-cursor-bar");if(!L)return;let{top:D,bottom:V}=L.getBoundingClientRect();W.show({top:D,bottom:V},An.bar.offsetHeight+12)}),Ze(),E.bar.appendChild(_);{let L=c;c=()=>{W.destroy(),L()}}if(o.fullScreen!==!1){let L=null,D=Kt((j,oe)=>{let X=x.settings.display;if(d||!X)return;L??={scale:X.scale,fill:X.lastSystemFillThreshold},X.scale=oe?j:L.scale,X.lastSystemFillThreshold=oe?0:L.fill,x.updateSettings(),x.render()},()=>T.scrollHeight<=T.clientHeight+1),V=Ht(r,a,T,(j)=>{P=j,Ce()},{changed:(j)=>j?D.enter():D.leave()});z=V,x.postRenderFinished.on(()=>{let j=T.querySelector(".at-surface");if(j&&V.active()){let oe=Math.max(0,...[...j.children].map((X)=>{let Je=X;return Je.offsetTop+Je.offsetHeight}));if(oe>j.offsetHeight)j.style.height=`${oe}px`}D.drawn()}),x.playerStateChanged.on((j)=>{if(Number(j.state)===Number(y.synth.PlayerState.Playing))V.playing()}),x.renderFinished.on(()=>V.drawn()),E.bar.appendChild(V.button);let ne=c;c=()=>{V.destroy(),ne()}}a.addEventListener("pointerdown",(L)=>{if(L.pointerType!=="touch"||E?.bar.contains(L.target))return;a.classList.toggle("mn-play-open")})}g({ok:!0,error:null})})),x.error.on((C)=>{let z=f.fromText?null:ln(C,f.texLine,s),P=z?z.message:s("tab.error.textTab",{message:ar(C,null,s)}),I={...z?.line!==void 0?{line:z.line}:{},...z?.column!==void 0?{column:z.column}:{}};if(p)E?.failed(P);else v(P,I)});let G=f.tracks?.map((C)=>C-1);if(f.file){let C;try{C=o.resolveFile?await o.resolveFile(f.file):null}catch(P){throw Error(s("tab.error.fileRead",{file:f.file,message:P instanceof Error?P.message:String(P)}),{cause:P})}if(d)return;if(!C)throw Error(s("tab.error.fileMissing",{file:f.file}));if(!x.load(N.bytes(C),G))throw Error(s("tab.error.fileUnknown",{file:f.file}))}else x.tex(f.tex,G??"all")})().catch((f)=>{if(!d)v(f instanceof Error?f.message:String(f))});return{el:a,ready:h,get api(){return l},speed:()=>u(),destroy(){d=!0,c();try{l?.destroy()}catch{}a.remove(),g({ok:!1,error:null})}}}var cn=0,Se=(e,t)=>e==="piano"?cn:Be[t??ke],te={channel:1,program:28},qe={channel:9,key:33},yr=0.5;function kr(e,t){return{reportsStart:!0,play(n,{sound:o,volume:r,onEnd:i,onStart:s,guitar:a}){let l=t(),u=l?.player;if(!l||!u)throw Error("The soundfont player is not ready");let c=new e.midi.MidiFile,d=new e.midi.AlphaSynthMidiFileHandler(c,!0),p=(m)=>Math.round(m*c.division);if(d.addTempo(0,60),d.addProgramChange(0,0,0,Se(o,a)),o==="guitar"&&n.some((m)=>m.kind==="muted"))d.addProgramChange(0,0,te.channel,te.program);if(n.some((m)=>m.kind==="click"))d.addProgramChange(0,0,qe.channel,0);let g=Number.isFinite(r)?Math.min(1,Math.max(0,r)):0.8;l.masterVolume=g;for(let m of n){let b=m.velocity===void 0||!Number.isFinite(m.velocity)?100:Math.round(Math.min(127,Math.max(1,m.velocity))),k=m.kind==="click"?qe.channel:m.kind==="muted"&&o==="guitar"?te.channel:0;d.addNote(0,p(m.time),Math.max(1,p(m.duration)),m.kind==="click"?qe.key:m.midi,b,k)}let h=Math.max(...n.map((m)=>m.time+m.duration),0);d.addControlChange(0,p(h+yr),0,e.midi.ControllerType.HoldPedal,0),l.playbackSpeed=1,u.playOneTimeMidiFile(c);let v=!1;queueMicrotask(()=>{if(!v)s?.()});let f=setTimeout(()=>i?.(),(h+0.2)*1000);return{stop(){v=!0,clearTimeout(f),u.stop()},setVolume(m){if(v||!Number.isFinite(m))return;l.masterVolume=Math.min(1,Math.max(0,m))}}}}}function Ee(e,t,n,o){let r=null,i=null,s=null,a=new Set,l=new Map,u=!t.instruments,c=(f,m)=>f==="guitar"?[Se(f,m),te.program]:[Se(f)],d=(f="guitar",m)=>{if(s)return s;i=B(n,"div","mn-tab-hidden"),i.setAttribute("aria-hidden","true"),n.body.appendChild(i);let b=Me(n);r=new e.AlphaTabApi(i,{core:{useWorkers:Boolean(t.scriptFile),...t.scriptFile?{scriptFile:t.scriptFile}:{},smuflFontSources:b.map([[e.FontFileFormat.Woff2,t.font]])},player:{playerMode:e.PlayerMode.EnabledSynthesizer,enableCursor:!1,scrollMode:e.ScrollMode.Off,...typeof t.soundFont==="string"&&!t.instruments?{soundFont:t.soundFont}:{}}});let k=r,y=n.defaultView;if(y)h=$e(k,(T)=>Number(T)===Number(e.synth.PlayerState.Playing),{effects:()=>v.effects,guitar:()=>v.guitar},y);if(s=new Promise((T)=>{let M=!1,A=!k.playerReady,N=()=>{if(M&&A)T(!0)},w=()=>{M=!0,N(),setTimeout(()=>{A=!0,N()},4000)};if(k.playerReady?.on(()=>{A=!0,N()}),k.error.on(()=>T(!1)),t.instruments)_e(k,n,t,{programs:c(f,m),drums:!1}).then((x)=>{if(x==="whole")u=!0;else for(let O of c(f,m))a.add(O);w()},()=>T(!1));else k.soundFontLoaded.on(w)}),t.soundFont instanceof Uint8Array&&!t.instruments)k.loadSoundFont(b.bytes(t.soundFont),!1);return k.tex([...Nt.map((T)=>`\\track "Guitar ${T}" \\instrument ${Be[T]} r`),`\\track "Piano" \\instrument ${cn} r`,`\\track "Muted" \\instrument ${te.program} r`].join(" ")),s},p=async(f,m)=>{if(!await d(f,m))return!1;let b=Se(f,m);if(u||a.has(b)||!r)return!0;let k=r,y=l.get(b);if(!y){let T=c(f,m).filter((M)=>M===b||!a.has(te.program));y=_e(k,n,t,{programs:T,drums:!1,click:!1},!0).then((M)=>{if(M==="whole")u=!0;else for(let A of T)a.add(A);return!0},()=>!1),l.set(b,y)}return y},g=kr(e,()=>r),h=null,v={effects:void 0,guitar:null};return{reportsStart:!0,play(f,m){let b=null,k=!1,y=m.volume;return p(m.sound,m.guitar).then((T)=>{if(k)return;try{if(T){v.effects=m.effects,v.guitar=m.sound==="guitar"?m.guitar??"steel":null,b=g.play(f,{...m,volume:y}),h?.look();return}}catch{}if(!o)return;if(b=o.play(f,{...m,volume:y}),!o.reportsStart)m.onStart?.()}),{stop(){k=!0,b?.stop()},setVolume(T){y=T,b?.setVolume?.(T)}}},destroy(){try{r?.destroy()}catch{}i?.remove(),r=null,s=null,a.clear(),l.clear(),u=!t.instruments}}}function un(e=()=>ce().script){let t=null;return(n)=>{let o=n.defaultView;if(o.alphaTab)return Promise.resolve(o.alphaTab);return t??=new Promise((r,i)=>{let s=n.createElement("script");s.src=e();let a=o.define?.amd?o.define:void 0;if(a)o.define=void 0;let l=(u)=>{if(a&&o.define===void 0)o.define=a;if(u===null&&o.alphaTab){r(o.alphaTab);return}t=null,s.remove(),i(Error(u??"alphaTab's script didn't define alphaTab"))};s.onload=()=>l(null),s.onerror=()=>l("Couldn't load alphaTab"),n.head.appendChild(s)}),t}}function dn(e,t){return(e&&typeof e==="object"?Z(e.language):null)??Z(t.documentElement.lang)??"en"}var mn=`/* Music notation. Colors follow Obsidian's theme variables when present, with fallbacks for any page. */
|
|
7
7
|
.mn-block,
|
|
8
8
|
.mn-svg,
|
|
9
9
|
.mn-chart {
|
|
@@ -1396,4 +1396,4 @@
|
|
|
1396
1396
|
overflow-y: hidden;
|
|
1397
1397
|
overscroll-behavior-x: contain;
|
|
1398
1398
|
}
|
|
1399
|
-
`;var
|
|
1399
|
+
`;var wr=mn,pn="music-notation-styles";function gn(e){if(e.getElementById(pn))return;let t=e.createElement("style");t.id=pn,t.textContent=wr,e.head.appendChild(t)}var xr=(e)=>e.reduce((t,n)=>Math.max(t,n.time+n.duration),0),Ye=(e)=>440*Math.pow(2,(e-69)/12);function Ar(e,t,n,o=Math.random,r={}){let i=new Float32Array(Math.round(t*n)),s=Math.max(2,Math.round(t/Ye(e))),a=new Float32Array(s);for(let f=0;f<s;f++)a[f]=o()*2-1;let l=Math.min(1,Math.max(0,r.brightness??1));if(l<1){let f=0.2+0.8*l,m=a[s-1];for(let b=0;b<s;b++)a[b]=m+=f*(a[b]-m)}let u=Math.min(0.5,Math.max(0,r.pick??0)),c=Math.round(u*s);if(c>0){let f=Float32Array.from(a);for(let m=0;m<s;m++)a[m]=f[m]-f[(m-c+s)%s]}if(l<1||c>0){let f=a.reduce((b,k)=>b+k,0)/s,m=a.reduce((b,k)=>Math.max(b,Math.abs(k-f)),0)||1;for(let b=0;b<s;b++)a[b]=(a[b]-f)/m}let d=r.damping!==void 0&&Number.isFinite(r.damping)?r.damping:1,p=(0.004-Math.min(0.0035,0.00004*(90-e)))*d,g=1-Math.min(0.02,Math.max(0.0001,p)),h=0;for(let f=0;f<i.length;f++){let m=(h+1)%s,b=a[h];a[h]=g*0.5*(b+a[m]),i[f]=b*0.5,h=m}let v=r.drive!==void 0&&Number.isFinite(r.drive)?Math.max(0,r.drive):0;if(v>0){let f=1+v;for(let m=0;m<i.length;m++)i[m]=Math.tanh(i[m]*2*f)*Tr}return i}var Tr=0.18,Sr={steel:{brightness:[0.55,0.95],pick:[0.08,0.2],damping:[0.85,1.15],drive:0},nylon:{brightness:[0.05,0.25],pick:[0.2,0.34],damping:[2.2,2.8],drive:0},clean:{brightness:[0.7,1],pick:[0.1,0.18],damping:[0.55,0.75],drive:0},overdrive:{brightness:[0.7,1],pick:[0.1,0.18],damping:[0.45,0.6],drive:5}};var fn=0.07,hn=0.03,Mr=(e)=>e>=88?2800:e>=84?2100:1400;function Er(e,t,n,o,r,i){let s=o+n.time,a=n.velocity===void 0||!Number.isFinite(n.velocity)?1:Math.min(127,Math.max(0,n.velocity))/100,l=e.createGain();l.connect(t);let u,c;if(n.kind==="click"){let d=e.createOscillator();d.type="triangle",d.frequency.value=Mr(n.midi),u=d,c=hn,l.gain.setValueAtTime(0,s),l.gain.linearRampToValueAtTime(0.5*a||0.0001,s+0.001),l.gain.exponentialRampToValueAtTime(0.0001,s+hn)}else{let d=e.createBiquadFilter();if(d.type="lowpass",d.frequency.value=r==="guitar"?1800:2500,d.connect(l),r==="guitar"){let p=e.createBufferSource();p.buffer=i(e,n.midi),u=p}else{let p=e.createOscillator();p.type="triangle",p.frequency.value=Ye(n.midi),u=p}c=fn,l.gain.setValueAtTime(1.2*a||0.0001,s),l.gain.exponentialRampToValueAtTime(0.0001,s+fn),u.connect(d)}if(n.kind==="click")u.connect(l);return u.start(s),u.stop(s+c+0.02),u}var bn=new WeakMap;function Cr(e){let t=bn.get(e);if(t)return t;let n=e.AudioContext;if(!n)return null;let o=new n;return bn.set(e,o),o}var Nr=4,yn=[0,1,0.5,0.3,0.15,0.08,0.04],Ke=4,Lr={guitar:0.15,piano:0.3},kn=(e,t)=>Math.min(Lr[e],Math.max(0.03,t/2)),zr=(e)=>Math.min(2.5,Math.max(0.35,Math.pow(2,(60-e)/24)));function Fr(e,t,n,o){let r=ve(e,o),i=!o?.dry&&(n==="clean"||n==="overdrive")?we(e,o?.amp):null,s=(a)=>{try{a.disconnect()}catch{}};if(!i)return t.connect(r),()=>s(t);return t.connect(i.input),i.output.connect(r),()=>{s(t),s(i.output)}}function Xe(e,t=Math.random){let n=new Map,o=new WeakMap,r=(a,l)=>a+(l-a)*t(),i=(a,l,u,c)=>{let d=`${c}:${l*Ke+u}`,p=n.get(d);if(!p){let g=Sr[c],h=Ar(l,a.sampleRate,Nr,t,{brightness:r(g.brightness[0],g.brightness[1]),pick:r(g.pick[0],g.pick[1]),damping:r(g.damping[0],g.damping[1]),...g.drive?{drive:g.drive}:{}});p=a.createBuffer(1,h.length,a.sampleRate),p.getChannelData(0).set(h),n.set(d,p)}return p},s=(a)=>{let l=o.get(a);if(!l){let u=new Float32Array(yn.length);l=a.createPeriodicWave(u,Float32Array.from(yn)),o.set(a,l)}return l};return{reportsStart:!0,play(a,{sound:l,volume:u,onEnd:c,onStart:d,guitar:p,effects:g}){let h=Cr(e);if(!h||!a.length)return{stop(){}};let v=p??ke,f=h.resume(),m=a.map(()=>({pluck:Math.min(Ke-1,Math.floor(t()*Ke)),cents:r(-4,4),level:r(0.93,1.07),decay:r(0.9,1.1)}));if(l==="guitar")a.forEach((S,F)=>{if(S.kind==="muted")i(h,S.midi,0,v);else if(!S.kind)i(h,S.midi,m[F].pluck,v)});let b=h.createGain();b.gain.value=Number.isFinite(u)?Math.min(1,Math.max(0,u)):0.8;let k=Fr(h,b,l==="guitar"?v:null,g),y=h.currentTime+0.05,T=a.map((S,F)=>{if(S.kind)return Er(h,b,S,y,l,(R,_)=>i(R,_,0,v));let H=m[F],E=y+S.time,G=E+S.duration,C=kn(l,S.duration),z=h.createGain();z.connect(b);let P=(S.velocity===void 0||!Number.isFinite(S.velocity)?1:Math.min(127,Math.max(0,S.velocity))/100)*H.level,I;if(l==="guitar"){let R=h.createBufferSource();R.buffer=i(h,S.midi,H.pluck,v),R.playbackRate.value=Math.pow(2,H.cents/1200),I=R,z.gain.setValueAtTime(P,E),z.gain.setValueAtTime(P,G)}else{let R=h.createOscillator();R.setPeriodicWave(s(h)),R.frequency.value=Ye(S.midi),R.detune.value=H.cents,I=R,z.gain.setValueAtTime(0,E),z.gain.linearRampToValueAtTime(0.35*P,E+0.005),z.gain.setTargetAtTime(0,E+0.005,zr(S.midi)*H.decay)}return z.gain.setTargetAtTime(0,Math.max(E+0.006,G),C/4),I.connect(z),I.start(E),I.stop(Math.max(E+0.006,G)+C),I}),M=()=>k(),A=!1,N,w=()=>{if(A||!d)return;let S=Number.isFinite(h.outputLatency)?h.outputLatency:0;N=e.setTimeout(()=>{if(!A)d()},Math.max(0,y-h.currentTime+S)*1000)};if(d)Promise.resolve(f).then(w,w);let x=e.setTimeout(()=>c?.(),(xr(a)+0.15)*1000),O=a.reduce((S,F)=>Math.max(S,F.time+F.duration+kn(l,F.duration)),0),U=e.setTimeout(M,(O+0.15)*1000);return{stop(){if(A)return;A=!0,e.clearTimeout(x),e.clearTimeout(N),e.clearTimeout(U);let S=h.currentTime;b.gain.setTargetAtTime(0,S,0.01);for(let F of T)try{F.stop(S+0.05)}catch{}U=e.setTimeout(M,80)},setVolume(S){if(A||!Number.isFinite(S))return;b.gain.setTargetAtTime(Math.min(1,Math.max(0,S)),h.currentTime,0.015)}}}}}var Or=()=>{let e=window.musicNotationOptions;if(!e||typeof e!=="object"||!("play"in e))return;let t=e.play;if(!t||typeof t!=="object"||!("volume"in t))return;let n=t.volume;return typeof n==="number"&&Number.isFinite(n)?n:void 0},Qe,vn=()=>{if(Qe)return Qe;let e=window.musicNotationOptions;if(!e||typeof e!=="object"||!("play"in e))return;let t=e.play;if(!t||typeof t!=="object"||!("tempoUnit"in t))return;let n=t.tempoUnit;return n==="bpm"||n==="percent"?n:void 0},Pr="pre > code.language-tab, pre > code.language-score",ue=new Map,xn=un();function wn(e){for(let[n,{result:o,holder:r}]of ue)if(!n.isConnected||!o.el.isConnected){if(o.destroy(),r.remove(),ue.delete(n),n.isConnected)n.style.removeProperty("display")}let t=[...e.querySelectorAll(Pr)].filter((n)=>{let o=n.parentElement,r=ue.get(o);if(!r)return o.dataset.mpRendered!=="pending";if(r.source===(n.textContent??""))return!1;return r.result.destroy(),r.holder.remove(),ue.delete(o),!0});if(!t.length)return;for(let n of t)n.parentElement.dataset.mpRendered="pending";xn(e).then((n)=>{let o=ce(),r=tn(window.musicNotationOptions),i={scriptFile:null,font:o.font,soundFont:o.soundFont,...r?{instruments:r}:{}},s=e.defaultView;s.musicNotationSoundfontPlayer??=Ee(n,i,e,Xe(s)),s.musicNotationSonivoxPlayer??=r?Ee(n,{scriptFile:null,font:o.font,soundFont:o.soundFont},e,Xe(s)):s.musicNotationSoundfontPlayer;let a=Ct(window.musicNotationOptions),l=window.musicNotationOptions??{},u=pe(l.naming),c=l.tab,d=typeof c==="object"&&c!==null&&c.names===!0;for(let p of t){let g=p.parentElement;if(!g.parentElement)continue;let h=p.classList.contains("language-score")?"score":"tab",v=p.textContent??"",f=e.createElement("div");f.className="mn-tab-holder",g.insertAdjacentElement("afterend",f);let m=We(h,v,f,{alphaTab:n,assets:i,volume:()=>Or()??Ue,effects:()=>Bt(window.musicNotationOptions),language:dn(window.musicNotationOptions,e),...a?{engine:a}:{},...u?{naming:u}:{},...d?{names:d}:{},fullScreen:Vt(window.musicNotationOptions),...vn()?{tempoUnit:vn()}:{},onTempoUnit:(b)=>Qe=b});ue.set(g,{result:m,source:v,holder:f}),m.ready.then(({ok:b})=>{if(g.dataset.mpRendered=b?"done":"error",b&&m.el.isConnected)g.style.display="none"})}}).catch(()=>{for(let n of t)n.parentElement.dataset.mpRendered="error"})}if(!window.musicNotationTabLoaded){window.musicNotationTabLoaded=!0,window.MusicNotationTab={renderTab:We,createSoundfontPlayer:Ee,loadAlphaTab:()=>xn(document),alphaTabCdn:ce};let e=()=>{gn(document),wn(document);let t=!1;new MutationObserver(()=>{if(t)return;t=!0,requestAnimationFrame(()=>{t=!1,wn(document)})}).observe(document.body,{childList:!0,subtree:!0,characterData:!0})};if(document.readyState==="loading")document.addEventListener("DOMContentLoaded",e);else e()}})();
|