From eeac7b7bf7916a28650aae9268080fead228aa5d Mon Sep 17 00:00:00 2001 From: Stas Versilov Date: Sat, 31 Dec 2022 18:03:14 +0400 Subject: [PATCH 1/2] Add Electric Bass Clef --- static/js/st/components/staves.jsx | 10 ++++++++++ static/js/st/data.jsx | 11 +++++++++++ 2 files changed, 21 insertions(+) diff --git a/static/js/st/components/staves.jsx b/static/js/st/components/staves.jsx index 7496254..aa298cf 100644 --- a/static/js/st/components/staves.jsx +++ b/static/js/st/components/staves.jsx @@ -189,6 +189,16 @@ export class FStaff extends Staff { } } +export class F8Staff extends Staff { + static defaultProps = { + keySignatureCenter: "F3", + upperRow: 26, + lowerRow: 18, + cleffImage: "/static/svg/clefs.F_change.svg", + staffClass: "f8_staff", + } +} + export class GrandStaff extends React.Component { constructor(props) { super(props) diff --git a/static/js/st/data.jsx b/static/js/st/data.jsx index c011683..9498545 100644 --- a/static/js/st/data.jsx +++ b/static/js/st/data.jsx @@ -62,6 +62,17 @@ export const STAVES = [ /> }, }, + { + mode: "notes", + name: "electric-bass", + range: ["C2", "E4"], + render: function(props=this.state) { + return this.staff = staff} + {...props} + /> + }, + }, { mode: "notes", name: "grand", From 99691ae34fde446b1b7e2df35d790176f80d8197 Mon Sep 17 00:00:00 2001 From: Stas Versilov Date: Sat, 31 Dec 2022 18:06:17 +0400 Subject: [PATCH 2/2] Rename bass8 clef to upright --- static/js/st/data.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/st/data.jsx b/static/js/st/data.jsx index 9498545..15fc7eb 100644 --- a/static/js/st/data.jsx +++ b/static/js/st/data.jsx @@ -64,7 +64,7 @@ export const STAVES = [ }, { mode: "notes", - name: "electric-bass", + name: "upright", range: ["C2", "E4"], render: function(props=this.state) { return