@dsebastien/music-notation 0.8.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/README.md +37 -5
  2. package/dist/chord/generate.d.ts +45 -9
  3. package/dist/chord/guitar.d.ts +23 -0
  4. package/dist/circle/circle.d.ts +8 -2
  5. package/dist/cli.js +1 -1
  6. package/dist/convert/text-tab.d.ts +61 -0
  7. package/dist/index.d.ts +9 -8
  8. package/dist/index.js +6427 -4316
  9. package/dist/index.js.map +34 -32
  10. package/dist/keyboard/keyboard.d.ts +17 -2
  11. package/dist/keyboard/piano-chord.d.ts +28 -3
  12. package/dist/keyboard/play-voicing.d.ts +10 -0
  13. package/dist/keyboard/scale-fingering.d.ts +41 -0
  14. package/dist/keyboard/voice-leading.d.ts +55 -4
  15. package/dist/music-notation.css +78 -5
  16. package/dist/music-notation.publish.min.js +101 -28
  17. package/dist/music-notation.tab.min.js +85 -9
  18. package/dist/playback/controls.d.ts +19 -2
  19. package/dist/playback/player.d.ts +69 -5
  20. package/dist/publish/index.js +4849 -3334
  21. package/dist/publish/index.js.map +33 -31
  22. package/dist/render/dom.d.ts +30 -1
  23. package/dist/strum/pattern.d.ts +31 -0
  24. package/dist/strum/play.d.ts +46 -5
  25. package/dist/strum/render.d.ts +5 -2
  26. package/dist/tab/index.d.ts +47 -2
  27. package/dist/tab/index.js +766 -77
  28. package/dist/tab/index.js.map +7 -7
  29. package/dist/tab/load.d.ts +10 -0
  30. package/dist/theory/detect.d.ts +6 -2
  31. package/dist/theory/find.d.ts +35 -7
  32. package/dist/theory/keys.d.ts +8 -2
  33. package/dist/theory/note-set.d.ts +5 -0
  34. package/dist/theory/numerals.d.ts +34 -7
  35. package/dist/voicings/check.d.ts +24 -0
  36. package/dist/voicings/curated.d.ts +10 -0
  37. package/dist/voicings/index.d.ts +1 -1
  38. package/dist/voicings/index.js +519 -111
  39. package/dist/voicings/index.js.map +10 -8
  40. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -2,16 +2,17 @@ export { renderBlock, LANGUAGES, isNotationLanguage, MAX_DIAGRAMS, type RenderRe
2
2
  export { parseOrientation, parseHand, layoutDefaults, type Orientation, type Hand, type LayoutDefaults } from './render/layout.js';
3
3
  export type { RenderOptions, NotationLanguage } from './blocks/renderers.js';
4
4
  export { STYLES, injectStyles } from './styles.js';
5
- export { renderGuitarDiagram, parseFrets, parseFingers, baseFretOf, STANDARD_TUNING, capoCaption, type FrettedVoicing, type GuitarDiagramOptions } from './chord/guitar.js';
5
+ export { renderGuitarDiagram, parseFrets, parseFingers, baseFretOf, barreKind, isBarreVoicing, STANDARD_TUNING, capoCaption, type FrettedVoicing, type GuitarDiagramOptions } from './chord/guitar.js';
6
6
  export { soundingChord, soundsLike, fretsFromCapo, capoTuning, parseCapo, parseFretsFrom, MAX_CAPO, type FretsFrom } from './chord/capo.js';
7
7
  export { generateVoicings, fingerVoicing, voicingShape, MAX_GENERATED_STRINGS, type GeneratedVoicing, type VoicingOptions, type VoicingShape } from './chord/generate.js';
8
- export { sequenceOf, lengthOf, lightPlayer, pluckedString, pianoTone, DEFAULT_SEQUENCE, type NoteEvent, type NotePlayer, type PlayHandle, type PlayKind, type Sound, type SequenceOptions } from './playback/player.js';
8
+ export { sequenceOf, scaleRun, lengthOf, lightPlayer, pluckedString, pianoTone, DEFAULT_SEQUENCE, DEFAULT_STRUM, type NoteEvent, type NotePlayer, type PluckOptions, type PlayHandle, type PlayKind, type Sound, type SequenceOptions } from './playback/player.js';
9
9
  export { attachPlayback, type PlayOptions } from './playback/controls.js';
10
10
  export { followNotes, noteTargets, PLAYING_CLASS, START_WAIT, type Follower } from './playback/follow.js';
11
11
  export { transition, smoothProgression, type TransitionStep, type TransitionOptions, type ProgressionStep, type ProgressionOptions } from './chord/transitions.js';
12
12
  export { triadVoicings, keyTriads, parseKey, inversionName, type Triad, type TriadOptions, type KeyTriad } from './chord/triads.js';
13
13
  export { renderKeyboard, parseKeyRange, keyRangeOf, type KeyboardOptions } from './keyboard/keyboard.js';
14
- export { pianoVoicing, pianoPitches, triadFingering, type PianoVoicing, type PianoVoicingOptions, type PianoVoicingStyle, type PianoHands, type RootlessForm } from './keyboard/piano-chord.js';
14
+ export { pianoVoicing, pianoPitches, triadFingering, type PianoVoicing, type PianoVoicingOptions, type PianoVoicingStyle, type PianoHands, type RootlessForm, type ShellForm } from './keyboard/piano-chord.js';
15
+ export { standardScaleFingering, scaleFingers, type ScaleHand } from './keyboard/scale-fingering.js';
15
16
  export { renderFretboard, type FretboardOptions } from './fretboard/fretboard.js';
16
17
  export { parseTuning } from './fretboard/tuning.js';
17
18
  export { parseChordPro, parseLyrics, type Song, type Section, type Line, type Segment, type ChordDefinition } from './chords/chordpro.js';
@@ -31,12 +32,12 @@ export { scalePosition, neckPositions, isArpeggio, positionCount, CAGED_SHAPES,
31
32
  export { blockFromProperties, instrumentOf, DEFAULT_PROPERTY_NAMES, type PropertyNames, type Instrument } from './blocks/properties.js';
32
33
  export { textTabToAlphaTex } from './convert/text-tab.js';
33
34
  export { chordSheetToChordPro } from './convert/chord-sheet.js';
34
- export { parseStrum, formatStrum, countOf, parseTime, parseSubdivision, MAX_STRUM_BARS, type StrumPattern, type StrumSlot, type Stroke, type Subdivision } from './strum/pattern.js';
35
+ export { parseStrum, formatStrum, countOf, parseTime, parseSubdivision, parseSwing, isCompound, MAX_STRUM_BARS, type StrumPattern, type StrumSlot, type Stroke, type Subdivision } from './strum/pattern.js';
35
36
  export { renderStrum, type StrumOptions } from './strum/render.js';
36
37
  export { strumVoicing, DEFAULT_STRUM_CHORD } from './strum/voicing.js';
37
- export { playStrum, strumEvents, scoreOf, STRUM_VELOCITY, type PlayStrumOptions, type StrumEventOptions, type StrumScore } from './strum/play.js';
38
- export { findScales, findKey, inKey, scalesForChord, chordsInScale, type ScaleMatch, type FindScalesOptions, type KeyCandidate, type FoundKey, type ScaleChord } from './theory/find.js';
38
+ export { playStrum, strumEvents, scoreOf, STRUM_VELOCITY, STRUM_STRESS, strumVelocity, tempoOf, type PlayStrumOptions, type StrumEventOptions, type StrumScore } from './strum/play.js';
39
+ export { findScales, findKey, inKey, scalesForChord, chordsInScale, bluesTonic, BLUES_SCALES, type ScaleMatch, type FindScalesOptions, type KeyCandidate, type FoundKey, type ScaleChord } from './theory/find.js';
39
40
  export { readKey, keyNotes, keySignature, keyChords, parentMajor, signatureText, keyProblem, MAX_SIGNATURE, MODES, type Mode, type MusicalKey, type KeySignature, type KeyChord } from './theory/keys.js';
40
- export { progressionChords, progressionChord, readNumeral, numeralOf, harmonicFunction, type ProgressionChord, type HarmonicFunction } from './theory/numerals.js';
41
- export { voiceLead } from './keyboard/voice-leading.js';
41
+ export { progressionChords, progressionChord, readNumeral, numeralOf, harmonicFunction, isBluesIn, withTonicizations, type NumeralOptions, type ProgressionChord, type HarmonicFunction } from './theory/numerals.js';
42
+ export { voiceLead, voiceLeadVoicings, voiceMotion, type VoiceLeadOptions, type LedVoicing } from './keyboard/voice-leading.js';
42
43
  export { renderCircle, type CircleOptions } from './circle/circle.js';