Skip to content

Commit

Permalink
Added mandolin tunings
Browse files Browse the repository at this point in the history
  • Loading branch information
igorski committed Jun 30, 2024
1 parent b031b85 commit 2acdec3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/instrument-selector.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* The MIT License (MIT)
*
* Copyright (c) 2019-2022 Igor Zinken - https://www.igorski.nl
* Copyright (c) 2019-2024 Igor Zinken - https://www.igorski.nl
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
Expand Down Expand Up @@ -102,7 +102,7 @@ export default {
return `${this.selectedStringAmount} string ${this.selectedInstrumentType} in ${this.selectedTuning} tuning`;
},
availableInstruments() {
return mapSelectOptions([ "guitar", "bass", "ukelele" ]);
return mapSelectOptions([ "guitar", "bass", "ukelele", "mandolin" ]);
},
availableStringAmounts() {
return mapSelectOptions( this.availableStringAmountsForCurrentInstrument );
Expand Down
12 changes: 11 additions & 1 deletion src/definitions/tunings.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,15 @@
{ "type": "ukelele", "name": "Standard", "strings": [ "G", "C", "E", "A" ] },
{ "type": "ukelele", "name": "Guitar", "strings": [ "D", "G", "B", "E" ] },
{ "type": "ukelele", "name": "D tuning", "strings": [ "A", "D", "F#", "B" ] },
{ "type": "ukelele", "name": "Slack-Key", "strings": [ "G", "C", "E", "G" ] }
{ "type": "ukelele", "name": "Slack-Key", "strings": [ "G", "C", "E", "G" ] },

{ "type": "mandolin", "name": "Standard", "strings": [ "G", "D", "A", "E" ] },
{ "type": "mandolin", "name": "Cajun", "strings": [ "F", "C", "G", "D" ] },
{ "type": "mandolin", "name": "Open A", "strings": [ "A", "E", "A", "C#" ] },
{ "type": "mandolin", "name": "Open D", "strings": [ "D", "D", "A", "D" ] },
{ "type": "mandolin", "name": "Open G", "strings": [ "G", "D", "G", "B" ] },
{ "type": "mandolin", "name": "Sawmill / Cross G", "strings": [ "G", "D", "G", "D" ] },
{ "type": "mandolin", "name": "Gee-Dad", "strings": [ "G", "D", "A", "D" ] },
{ "type": "mandolin", "name": "High Bass / Old Timey D", "strings": [ "A", "D", "A", "E" ] },
{ "type": "mandolin", "name": "Cross", "strings": [ "A", "E", "A", "E" ] }
]
2 changes: 2 additions & 0 deletions src/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ const getTunings = state => {
return TUNINGS.filter( t => t.type === "bass" );
case "ukelele":
return TUNINGS.filter( t => t.type === "ukelele" );
case "mandolin":
return TUNINGS.filter( t => t.type === "mandolin" );
}
};

Expand Down

0 comments on commit 2acdec3

Please sign in to comment.