@dsebastien/music-notation 0.19.2 → 0.21.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 +1 -1
- package/dist/blocks/renderers.d.ts +6 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +866 -9
- package/dist/index.js.map +16 -12
- package/dist/music-notation.css +85 -1
- package/dist/music-notation.publish.min.js +120 -36
- package/dist/music-notation.tab.min.js +92 -8
- package/dist/playback/bar-parts.d.ts +3 -0
- package/dist/playback/controls.d.ts +5 -0
- package/dist/playback/copy-image.d.ts +6 -2
- package/dist/playback/full-screen.d.ts +52 -0
- package/dist/playback/player.d.ts +5 -0
- package/dist/playback/sampled.d.ts +42 -0
- package/dist/playback/soundfont.d.ts +82 -0
- package/dist/playback/soundfont.fixture.d.ts +28 -0
- package/dist/publish/index.js +266 -9
- package/dist/publish/index.js.map +14 -13
- package/dist/tab/auto.d.ts +11 -1
- package/dist/tab/index.d.ts +14 -0
- package/dist/tab/index.js +528 -17
- package/dist/tab/index.js.map +8 -5
- package/dist/tab/instruments.d.ts +63 -0
- package/dist/tab/score-fit.d.ts +18 -0
- package/package.json +6 -2
package/README.md
CHANGED
|
@@ -191,7 +191,7 @@ Add this to your site's `publish.js`. It loads the bundle only on pages that hav
|
|
|
191
191
|
|
|
192
192
|
```js
|
|
193
193
|
;(() => {
|
|
194
|
-
const VERSION = '0.
|
|
194
|
+
const VERSION = '0.20.0'
|
|
195
195
|
const CDN = `https://cdn.jsdelivr.net/npm/@dsebastien/music-notation@${VERSION}/dist`
|
|
196
196
|
const selector = (languages) => languages.map((l) => `pre > code.language-${l}`).join(', ')
|
|
197
197
|
const BLOCKS = selector([
|
|
@@ -34,6 +34,12 @@ export interface RenderOptions extends LayoutDefaults {
|
|
|
34
34
|
* bar of its own under each block that draws (it copies the whole block). `false` leaves it out.
|
|
35
35
|
*/
|
|
36
36
|
copy?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Full screen (#113), on by default: a button on each block's bar that makes the block fill
|
|
39
|
+
* the screen, zoomed to fit it. Without `play`, it goes on the small bar of Copy as image.
|
|
40
|
+
* `false` leaves it out. Tabs and scores have their own (`renderTab`'s `fullScreen`).
|
|
41
|
+
*/
|
|
42
|
+
fullScreen?: boolean;
|
|
37
43
|
/**
|
|
38
44
|
* The chords used row of `chords` blocks, when a chart has no `{diagrams}`: `'top'`,
|
|
39
45
|
* `'bottom'` or `'off'` (the default). Guitar or piano diagrams follow `instrument`.
|
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ export { renderGuitarDiagram, parseFrets, parseFingers, baseFretOf, barreKind, i
|
|
|
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 { sampledPlayer, type SampledOptions } from './playback/sampled.js';
|
|
10
|
+
export { pageInstruments, type InstrumentSource } from './tab/instruments.js';
|
|
9
11
|
export { attachPlayback, type PlayOptions, type TimedBar } from './playback/controls.js';
|
|
10
12
|
export { volumeChanged } from './playback/live-volume.js';
|
|
11
13
|
export { attachCopy } from './playback/copy-image.js';
|