Skip to content

Commit 6393cb2

Browse files
add instrument in interface
1 parent beed91a commit 6393cb2

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

sounds/samples/README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ on one line.
4747
var SOUNDSAMPLESDEFINES = [
4848
"samples/piano",
4949
50+
const DEFAULTSYNTHVOLUME = {
51+
"piano": 100,
52+
5053
const SAMPLECENTERNO = {
5154
'piano': ['C4', 39], // pitchToNumber('C', 4, 'C Major')],
5255
@@ -56,9 +59,6 @@ on one line.
5659
{'name': 'piano', 'data': PIANO_SAMPLE},
5760
```
5861

59-
60-
61-
6262
* Add your new sample name to the list of string that need translation
6363
in `js/utils/musicutils.js`
6464

@@ -67,3 +67,11 @@ in `js/utils/musicutils.js`
6767
const SELECTORSTRINGS = [
6868
_('piano'),
6969
```
70+
71+
- Ensure that your new instrument is recognized in the interface in `js/js-export/interface.js`
72+
73+
```javascript
74+
else if (props["constraints"]["type"] === "synth") {
75+
const instruments = [
76+
"piano",
77+
````

0 commit comments

Comments
 (0)