web-music-score-samples 1.0.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/CHANGELOG.md ADDED
@@ -0,0 +1,4 @@
1
+ # CHANGELOG
2
+ ## [1.0.0] - Unreleased
3
+ ### Added
4
+ - First release with `classical-guitar` instrument samples.
package/LICENSE ADDED
@@ -0,0 +1,24 @@
1
+
2
+ This project is licensed under the terms of the MIT license.
3
+ See below for full license text and third-party licenses.
4
+
5
+ Copyright (c) 2023-2026 Stefan Brockmann
6
+
7
+ Permission is hereby granted, free of charge, to any person obtaining
8
+ a copy of this software and associated documentation files (the
9
+ "Software"), to deal in the Software without restriction, including
10
+ without limitation the rights to use, copy, modify, merge, publish,
11
+ distribute, sublicense, and/or sell copies of the Software, and to
12
+ permit persons to whom the Software is furnished to do so, subject to
13
+ the following conditions:
14
+
15
+ The above copyright notice and this permission notice shall be included
16
+ in all copies or substantial portions of the Software.
17
+
18
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
21
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
22
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
23
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
24
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,9 @@
1
+ # Web Music Score Samples
2
+
3
+ This package contains instrument samples for Web Music Score library.
4
+
5
+ 📚 Full documentation: [web-music-score.org](https://web-music-score.org)
6
+
7
+ ## License
8
+
9
+ This project is licensed under the [MIT License](https://mit-license.org/).
@@ -0,0 +1,20 @@
1
+ // src/core/index.ts
2
+ function addToGlobalName(name, samples) {
3
+ var _a;
4
+ if (typeof window === "undefined") return;
5
+ const root = window.WebMusicScore;
6
+ if (!root) {
7
+ console.warn("WebMusicScore core not found. Load core bundle before samples.");
8
+ return;
9
+ }
10
+ const samplesNs = (_a = root.Samples) != null ? _a : root.Samples = {};
11
+ if (samplesNs[name]) {
12
+ console.warn(`WebMusicScore.Samples.${name} already exists and will be overwritten.`);
13
+ }
14
+ samplesNs[name] = samples;
15
+ }
16
+
17
+ export {
18
+ addToGlobalName
19
+ };
20
+ //# sourceMappingURL=chunk-TPZ7OSHN.mjs.map
@@ -0,0 +1,10 @@
1
+ import { InstrumentSamples } from '../core/index.js';
2
+
3
+ /**
4
+ * Make this module "audio-cg" in typedoc instead of "audio-instruments/audio-cg".
5
+ * @module audio-cg
6
+ */
7
+
8
+ declare const ClassicalGuitar: InstrumentSamples;
9
+
10
+ export { ClassicalGuitar };