jquery.transposer.js.txt
First of all, thanks for the script, it's really useful.
I wanted to ask if the notation in Italian was possible:
A > LA
B > SI
C > DO
D > RE
E > MI
F > FA
G > SOL
I tried changing the notation within the script, but it doesn't work, I can't figure out what else to change.
These are the changes I made
var keys = [
{ name: 'LAb', value: 0, type: 'F' },
{ name: 'LA', value: 1, type: 'N' },
{ name: 'LA#', value: 2, type: 'S' },
{ name: 'SIb', value: 2, type: 'F' },
{ name: 'SI', value: 3, type: 'N' },
{ name: 'DO', value: 4, type: 'N' },
{ name: 'DO#', value: 5, type: 'S' },
{ name: 'REb', value: 5, type: 'F' },
{ name: 'RE', value: 6, type: 'N' },
{ name: 'RE#', value: 7, type: 'S' },
{ name: 'MIb', value: 7, type: 'F' },
{ name: 'MI', value: 8, type: 'N' },
{ name: 'FA', value: 9, type: 'N' },
{ name: 'FA#', value: 10, type: 'S' },
{ name: 'SOLb', value: 10, type: 'F' },
{ name: 'SOL', value: 11, type: 'N' },
{ name: 'SOL#', value: 0, type: 'S' }
];
.......
switch(targetKey.name) {
case "LA":
case "LA#":
case "SI":
case "DO":
case "DO#":
case "RE":
case "RE#":
case "MI":
case "FA#":
case "SOL":
case "SOL#":
for (;i<keys.length;i++)
......
$.fn.transpose.defaults = {
chordRegex: /^[LA-SOL][b#]?(2|4|5|6|7|9|11|13|6/9|7-5|7-9|7#5|7#9|7+5|7+9|b5|#5|#9|7b5|7b9|7sus2|7sus4|add2|add4|add9|aug|dim|dim7|m/maj7|m6|m7|m7b5|m9|m11|m13|maj7|maj9|maj11|maj13|mb5|m|sus|sus2|sus4)(/[LA-SOL][b#])$/,
chordReplaceRegex: /([LA-SOL][b#]?(2|4|5|6|7|9|11|13|6/9|7-5|7-9|7#5|7#9|7+5|7+9|b5|#5|#9|7b5|7b9|7sus2|7sus4|add2|add4|add9|aug|dim|dim7|m/maj7|m6|m7|m7b5|m9|m11|m13|maj7|maj9|maj11|maj13|mb5|m|sus|sus2|sus4))/g
};
Can you help me.
Thank you
*I attach the file whose extension I changed to txt because it didn't load the .js
jquery.transposer.js.txt
First of all, thanks for the script, it's really useful.
I wanted to ask if the notation in Italian was possible:
A > LA
B > SI
C > DO
D > RE
E > MI
F > FA
G > SOL
I tried changing the notation within the script, but it doesn't work, I can't figure out what else to change.
These are the changes I made
var keys = [
{ name: 'LAb', value: 0, type: 'F' },
{ name: 'LA', value: 1, type: 'N' },
{ name: 'LA#', value: 2, type: 'S' },
{ name: 'SIb', value: 2, type: 'F' },
{ name: 'SI', value: 3, type: 'N' },
{ name: 'DO', value: 4, type: 'N' },
{ name: 'DO#', value: 5, type: 'S' },
{ name: 'REb', value: 5, type: 'F' },
{ name: 'RE', value: 6, type: 'N' },
{ name: 'RE#', value: 7, type: 'S' },
{ name: 'MIb', value: 7, type: 'F' },
{ name: 'MI', value: 8, type: 'N' },
{ name: 'FA', value: 9, type: 'N' },
{ name: 'FA#', value: 10, type: 'S' },
{ name: 'SOLb', value: 10, type: 'F' },
{ name: 'SOL', value: 11, type: 'N' },
{ name: 'SOL#', value: 0, type: 'S' }
];
.......
switch(targetKey.name) {
case "LA":
case "LA#":
case "SI":
case "DO":
case "DO#":
case "RE":
case "RE#":
case "MI":
case "FA#":
case "SOL":
case "SOL#":
for (;i<keys.length;i++)
......
$.fn.transpose.defaults = {
chordRegex: /^[LA-SOL][b#]?(2|4|5|6|7|9|11|13|6/9|7-5|7-9|7#5|7#9|7+5|7+9|b5|#5|#9|7b5|7b9|7sus2|7sus4|add2|add4|add9|aug|dim|dim7|m/maj7|m6|m7|m7b5|m9|m11|m13|maj7|maj9|maj11|maj13|mb5|m|sus|sus2|sus4)(/[LA-SOL][b#])$/,
chordReplaceRegex: /([LA-SOL][b#]?(2|4|5|6|7|9|11|13|6/9|7-5|7-9|7#5|7#9|7+5|7+9|b5|#5|#9|7b5|7b9|7sus2|7sus4|add2|add4|add9|aug|dim|dim7|m/maj7|m6|m7|m7b5|m9|m11|m13|maj7|maj9|maj11|maj13|mb5|m|sus|sus2|sus4))/g
};
Can you help me.
Thank you
*I attach the file whose extension I changed to txt because it didn't load the .js