Skip to content

Commit

Permalink
Byzantine notation
Browse files Browse the repository at this point in the history
  • Loading branch information
thetwom committed Dec 14, 2024
1 parent 42aae9b commit 3801881
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ android {
minSdk = 23
targetSdk = 35
versionCode = 38
versionName = "7.0.0-rc2"
versionName = "7.0.0-rc4"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
resourceConfigurations += listOf("cs", "de", "en", "fr", "zh-rCN")
Expand Down
22 changes: 17 additions & 5 deletions app/src/main/java/de/moekadu/tuner/ui/notes/NoteNotationType.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ import de.moekadu.tuner.temperaments.NoteModifier

/** Available note notation types. */
enum class NotationType(@StringRes val stringResourceId: Int) {
Standard(R.string.notation_standard), /**< Default C, D, E, ...*/
International(R.string.notation_international), /**< C, D, E, ..., but using a B and never a H */
Solfege(R.string.notation_solfege), /**< Solfege */
Carnatic(R.string.notation_carnatic), /**< Carnatic Indian notation */
Hindustani(R.string.notation_hindustani) /**< Hindustani Indian notation */
Standard(R.string.notation_standard), /**< Default C, D, E, ....*/
International(R.string.notation_international), /**< C, D, E, ..., but using a B and never a H. */
Solfege(R.string.notation_solfege), /**< Solfege. */
Carnatic(R.string.notation_carnatic), /**< Carnatic Indian notation. */
Hindustani(R.string.notation_hindustani), /**< Hindustani Indian notation. */
Byzantine(R.string.notation_byzantine) /**< Byzantine notation system. */
}

fun NotationType.resourceIds(): Map<NoteNameStem, Int> {
Expand All @@ -39,6 +40,7 @@ fun NotationType.resourceIds(): Map<NoteNameStem, Int> {
NotationType.Solfege -> noteSolfegeResourceIds
NotationType.Carnatic -> noteCarnaticResourceIds
NotationType.Hindustani -> noteHindustaniResourceIds
NotationType.Byzantine -> noteByzantineResourceIds
}
}

Expand Down Expand Up @@ -66,6 +68,16 @@ private val noteSolfegeResourceIds = mapOf(
NoteNameStem(BaseNote.B) to R.string.b_solfege,
)

private val noteByzantineResourceIds = mapOf(
NoteNameStem(BaseNote.C) to R.string.ni_byzantine,
NoteNameStem(BaseNote.D) to R.string.pa_byzantine,
NoteNameStem(BaseNote.E) to R.string.vou_byzantine,
NoteNameStem(BaseNote.F) to R.string.gha_byzantine,
NoteNameStem(BaseNote.G) to R.string.dhi_byzantine,
NoteNameStem(BaseNote.A) to R.string.ke_byzantine,
NoteNameStem(BaseNote.B) to R.string.zo_byzantine,
)

private val noteInternationalResourceIds = mapOf(
NoteNameStem(BaseNote.C) to R.string.c_note_international,
NoteNameStem(BaseNote.D) to R.string.d_note_international,
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@
<string name="notation_international">International (A-B-C-…)</string>
<string name="notation_carnatic">Karnatisch</string>
<string name="notation_hindustani">Hindustanisch</string>
<string name="notation_byzantine">Byzantinisch</string>
<string name="helmholtz_notation">Helmholtz-Schreibweise (C, … c\')</string>
<string name="sensitivity">Empfindlichkeit</string>
<string name="instruments">Instrumente</string>
Expand Down
11 changes: 11 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,17 @@
<string name="ni1_hindustani" translatable="false">Ni₁</string>
<string name="ni2_hindustani" translatable="false">Ni₂</string>
<string name="notation_hindustani">Hindustani</string>

<string name="ni_byzantine" translatable="false">Νη</string>
<string name="pa_byzantine" translatable="false">Πα</string>
<string name="vou_byzantine" translatable="false">Βου</string>
<string name="gha_byzantine" translatable="false">Γα</string>
<string name="dhi_byzantine" translatable="false">Δι</string>
<string name="ke_byzantine" translatable="false">Κε</string>
<string name="zo_byzantine" translatable="false">Ζω</string>
<string name="notation_byzantine">Byzantine</string>


<string name="helmholtz_notation">Helmholtz notation (C, … c\')</string>
<string name="extended_quarter_comma_mean_tone">Extended ¼ comma meantone</string>
<string name="extended_quarter_comma_mean_tone_desc">Pure major 3rds, 15 notes</string>
Expand Down

0 comments on commit 3801881

Please sign in to comment.