zds-pickers 4.1.0 → 4.1.1
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.cjs.js +9 -9
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +56 -57
- package/dist/index.es.js.map +1 -1
- package/dist/other/SoundFontProvider.js +1 -0
- package/dist/pickers/KeyPicker.js +1 -2
- package/dist/types/pickers/KeyPicker.d.ts +1 -4
- package/lib/other/SoundFontProvider.tsx +1 -0
- package/lib/pickers/KeyPicker.tsx +1 -2
- package/package.json +1 -1
|
@@ -14,7 +14,6 @@ const KeyPicker = (props) => {
|
|
|
14
14
|
const octaveStart = 60 + (octave - 4) * 12;
|
|
15
15
|
const octaveEnd = octaveStart + 11;
|
|
16
16
|
const shouldHighlight = value !== noSelection && value >= octaveStart && value <= octaveEnd;
|
|
17
|
-
return (_jsx(OctavePlayer, { ...rest, selectedNotes: shouldHighlight ? [value] : [], disabled: disabled, height: height, width: width, octave: octave, onClick: handleKeyClick }));
|
|
17
|
+
return (_jsx(OctavePlayer, { ...rest, selectedNotes: shouldHighlight ? [value] : [], disabled: disabled, height: height, width: width, octave: octave, onClick: handleKeyClick, instrumentName: "acoustic_grand_piano" }));
|
|
18
18
|
};
|
|
19
|
-
KeyPicker.propTypes = {};
|
|
20
19
|
export { KeyPicker };
|
|
@@ -7,9 +7,6 @@ type KeyPickerProps = Omit<OctavePlayerProps, 'selectedNotes' | 'onClick'> & {
|
|
|
7
7
|
width?: number;
|
|
8
8
|
octave?: number;
|
|
9
9
|
};
|
|
10
|
-
declare const KeyPicker:
|
|
11
|
-
(props: KeyPickerProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
propTypes: {};
|
|
13
|
-
};
|
|
10
|
+
declare const KeyPicker: (props: KeyPickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
11
|
export { KeyPicker };
|
|
15
12
|
export type { KeyPickerProps };
|
|
@@ -46,11 +46,10 @@ const KeyPicker = (props: KeyPickerProps) => {
|
|
|
46
46
|
width={width}
|
|
47
47
|
octave={octave}
|
|
48
48
|
onClick={handleKeyClick}
|
|
49
|
+
instrumentName="acoustic_grand_piano"
|
|
49
50
|
/>
|
|
50
51
|
)
|
|
51
52
|
}
|
|
52
53
|
|
|
53
|
-
KeyPicker.propTypes = {}
|
|
54
|
-
|
|
55
54
|
export { KeyPicker }
|
|
56
55
|
export type { KeyPickerProps }
|