@dsebastien/music-notation 0.10.1 → 0.12.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/dist/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  export { renderBlock, LANGUAGES, isNotationLanguage, MAX_DIAGRAMS, type RenderResult } from './render/render-block.js';
2
- export { parseOrientation, parseHand, layoutDefaults, type Orientation, type Hand, type LayoutDefaults } from './render/layout.js';
2
+ export { parseOrientation, parseHand, layoutDefaults, alignTitleLines, titleLines, titleLineWidth, MAX_TITLE_LINES, TITLE_LINE, type TitleLine, 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
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
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
- export { attachPlayback, type PlayOptions } from './playback/controls.js';
9
+ export { attachPlayback, type PlayOptions, type TimedBar } 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';
@@ -16,7 +16,7 @@ export { standardScaleFingering, scaleFingers, type ScaleHand } from './keyboard
16
16
  export { renderFretboard, type FretboardOptions } from './fretboard/fretboard.js';
17
17
  export { parseTuning } from './fretboard/tuning.js';
18
18
  export { parseChordPro, parseLyrics, type Song, type Section, type Line, type Segment, type ChordDefinition } from './chords/chordpro.js';
19
- export { renderChart, type ChartOptions } from './chords/chart.js';
19
+ export { renderChart, chartChords, type ChartChords, type ChartOptions } from './chords/chart.js';
20
20
  export { chordsUsed } from './chords/chart-diagrams.js';
21
21
  export { parseDefinition } from './chords/defines.js';
22
22
  export { parseChord, type ParsedChord } from './theory/chord-symbol.js';
@@ -29,15 +29,21 @@ export { parseChordName, readChord, suggestChords } from './theory/chord-name.js
29
29
  export { detectChordFromFrets, detectChordFromPitches, type DetectedChord } from './theory/detect.js';
30
30
  export { scaleName, modesOf, scaleTypes, characteristicIntervals, isScaleWithoutRoot } from './theory/scales.js';
31
31
  export { scalePosition, neckPositions, isArpeggio, positionCount, CAGED_SHAPES, MAX_FRET, type Cell, type Numbering, type PositionOptions, type PositionSystem } from './fretboard/positions.js';
32
+ export { exerciseTab, exerciseRun, exerciseTex, exercisePosition, parseDirection, parseRhythm, DEFAULT_EXERCISE_TEMPO, type ExerciseDirection, type ExerciseRhythm, type ExerciseNotes, type ExerciseOptions } from './fretboard/exercise.js';
32
33
  export { blockFromProperties, instrumentOf, DEFAULT_PROPERTY_NAMES, type PropertyNames, type Instrument } from './blocks/properties.js';
33
34
  export { textTabToAlphaTex } from './convert/text-tab.js';
34
35
  export { chordSheetToChordPro } from './convert/chord-sheet.js';
35
36
  export { parseStrum, formatStrum, countOf, parseTime, parseSubdivision, parseSwing, isCompound, MAX_STRUM_BARS, type StrumPattern, type StrumSlot, type Stroke, type Subdivision } from './strum/pattern.js';
36
37
  export { renderStrum, type StrumOptions } from './strum/render.js';
37
38
  export { strumVoicing, DEFAULT_STRUM_CHORD } from './strum/voicing.js';
38
- export { playStrum, strumEvents, scoreOf, STRUM_VELOCITY, STRUM_STRESS, strumVelocity, tempoOf, type PlayStrumOptions, type StrumEventOptions, type StrumScore } from './strum/play.js';
39
+ export { playStrum, runPasses, strumEvents, scoreOf, STRUM_VELOCITY, STRUM_STRESS, strumVelocity, tempoOf, type Pass, type PassMaker, type PlayStrumOptions, type StrumEventOptions, type StrumFollower, type StrumSettings, type StrumTiming, type StrumScore } from './strum/play.js';
40
+ export { playProgression, progressionEvents, progressionPitches, runProgression, followTimes, PROGRESSION_STRUMS, MAX_PROGRESSION_BARS, type PlayProgressionOptions, type ProgressionBar, type ProgressionChanges, type ProgressionChordInput, type ProgressionEventOptions, type ProgressionHandle, type ProgressionSettings, type ProgressionStrum } from './playback/progression.js';
39
41
  export { findScales, findKey, inKey, scalesForChord, chordsInScale, bluesTonic, BLUES_SCALES, type ScaleMatch, type FindScalesOptions, type KeyCandidate, type FoundKey, type ScaleChord } from './theory/find.js';
40
42
  export { readKey, keyNotes, keySignature, keyChords, parentMajor, signatureText, keyProblem, MAX_SIGNATURE, MODES, type Mode, type MusicalKey, type KeySignature, type KeyChord } from './theory/keys.js';
41
43
  export { progressionChords, progressionChord, readNumeral, numeralOf, harmonicFunction, isBluesIn, withTonicizations, type NumeralOptions, type ProgressionChord, type HarmonicFunction } from './theory/numerals.js';
42
44
  export { voiceLead, voiceLeadVoicings, voiceMotion, type VoiceLeadOptions, type LedVoicing } from './keyboard/voice-leading.js';
43
45
  export { renderCircle, type CircleOptions } from './circle/circle.js';
46
+ export { parsePicking, formatPicking, namedPicking, pluckText, PICKING_PATTERNS, MAX_PICKING_BARS, type PickingPattern, type PickingSlot, type Pluck } from './picking/pattern.js';
47
+ export { pickingFrets, pluckNote, type PickedNote } from './picking/voicing.js';
48
+ export { playPicking, pickingEvents, pickingScore, PICKING_VELOCITY, type PickingEventOptions, type PickingScore, type PickingScoreOptions, type PlayPickingOptions } from './picking/play.js';
49
+ export { renderPicking, type PickingOptions } from './picking/render.js';