Skip to content

Instantly share code, notes, and snippets.

@davidsonbrsilva
Created October 25, 2019 20:25
Show Gist options
  • Save davidsonbrsilva/8bcb2ce5f3eeeb6c33e537818eac3d35 to your computer and use it in GitHub Desktop.
Save davidsonbrsilva/8bcb2ce5f3eeeb6c33e537818eac3d35 to your computer and use it in GitHub Desktop.
name: transposer
source code: |-
input: '++++'
blank: ' '
start state: D
table:
'Gbb':
' ': {R: 'F'}
'+': {R: 'Gb'}
'-': {R: 'Fb'}
'Gb':
'+': {R: 'G'}
'-': {R: 'Gbb'}
'G':
'+': {R: 'G#'}
'-': {R: 'Gb'}
'G#':
'+': {R: 'G##'}
'-': {R: 'G'}
'G##':
' ': {R: 'A'}
'+': {R: 'A#'}
'-': {R: 'G#'}
'Abb':
' ': {R: 'G'}
'+': {R: 'Ab'}
'-': {R: 'Gb'}
'Ab':
'+': {R: 'A'}
'-': {R: 'Abb'}
'A':
'+': {R: 'A#'}
'-': {R: 'Ab'}
'A#':
'+': {R: 'A##'}
'-': {R: 'A'}
'A##':
' ': {R: 'B'}
'+': {R: 'B#'}
'-': {R: 'A#'}
'Bbb':
' ': {R: 'A'}
'+': {R: 'Bb'}
'-': {R: 'Ab'}
'Bb':
'+': {R: 'B'}
'-': {R: 'Bbb'}
'B':
'+': {R: 'B#'}
'-': {R: 'Bb'}
'B#':
'+': {R: 'B##'}
'-': {R: 'B'}
'B##':
' ': {R: 'C#'}
'+': {R: 'C##'}
'-': {R: 'B#'}
'Cbb':
' ': {R: 'Bb'}
'+': {R: 'Cb'}
'-': {R: 'Bbb'}
'Cb':
' ': {R: 'B'}
'+': {R: 'C'}
'-': {R: 'Cbb'}
'C':
'+': {R: 'C#'}
'-': {R: 'Cb'}
'C#':
'+': {R: 'C##'}
'-': {R: 'C'}
'C##':
' ': {R: 'D'}
'+': {R: 'D#'}
'-': {R: 'C#'}
'Dbb':
' ': {R: 'C'}
'+': {R: 'Db'}
'-': {R: 'Cb'}
'Db':
'+': {R: 'D'}
'-': {R: 'Dbb'}
'D':
'+': {R: 'D#'}
'-': {R: 'Db'}
'D#':
'+': {R: 'D##'}
'-': {R: 'D'}
'D##':
' ': {R: 'E'}
'+': {R: 'E#'}
'-': {R: 'Eb'}
'Ebb':
' ': {R: 'D'}
'+': {R: 'Fbb'}
'-': {R: 'Db'}
'Eb':
'+': {R: 'E'}
'-': {R: 'Ebb'}
'E':
'+': {R: 'E#'}
'-': {R: 'Eb'}
'E#':
'+': {R: 'E##'}
'-': {R: 'E'}
'E##':
' ': {R: 'F#'}
'+': {R: 'F##'}
'-': {R: 'E#'}
'Fbb':
' ': {R: 'Eb'}
'+': {R: 'Fb'}
'-': {R: 'Ebb'}
'Fb':
'+': {R: 'F'}
'-': {R: 'Fbb'}
'F':
'+': {R: 'F#'}
'-': {R: 'Fb'}
'F#':
'+': {R: 'F##'}
'-': {R: 'F'}
'F##':
' ': {R: 'G'}
'+': {R: 'G#'}
'-': {R: 'F#'}
positions:
Gbb: {x: 505.05, y: 20, fixed: false}
Gb: {x: 347.13, y: 20, fixed: false}
G: {x: 198.61, y: 20, fixed: false}
'G#': {x: 300.15, y: 20, fixed: false}
'G##': {x: 143.4, y: 48.15, fixed: false}
Abb: {x: 218.37, y: 127.91, fixed: false}
Ab: {x: 65.33, y: 93.09, fixed: false}
A: {x: 166.83, y: 190.96, fixed: false}
'A#': {x: 37.26, y: 184.66, fixed: false}
'A##': {x: 136.82, y: 319.96, fixed: false}
Bbb: {x: 20, y: 241.68, fixed: false}
Bb: {x: 98.48, y: 346.59, fixed: false}
B: {x: 125.41, y: 480, fixed: false}
'B#': {x: 273.4, y: 453.02, fixed: false}
'B##': {x: 437.04, y: 480, fixed: false}
Cbb: {x: 20, y: 412.07, fixed: false}
Cb: {x: 169.65, y: 363.74, fixed: false}
C: {x: 230.56, y: 480, fixed: false}
'C#': {x: 370.43, y: 480, fixed: false}
'C##': {x: 542, y: 480, fixed: false}
Dbb: {x: 331.61, y: 373.75, fixed: false}
Db: {x: 482.4, y: 358.96, fixed: false}
D: {x: 624.5, y: 380.72, fixed: false}
'D#': {x: 711.96, y: 480, fixed: false}
'D##': {x: 780, y: 342.63, fixed: false}
Ebb: {x: 582.11, y: 242.08, fixed: false}
Eb: {x: 691.21, y: 301.78, fixed: false}
E: {x: 780, y: 194.15, fixed: false}
'E#': {x: 652.63, y: 207.17, fixed: false}
'E##': {x: 568.72, y: 69.77, fixed: false}
Fbb: {x: 712.32, y: 157.02, fixed: false}
Fb: {x: 676.81, y: 20, fixed: false}
F: {x: 594.48, y: 126.83, fixed: false}
'F#': {x: 454.35, y: 150.83, fixed: false}
'F##': {x: 405.78, y: 20, fixed: false}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment