Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am allenjprice on github.
  • I am allenjprice (https://keybase.io/allenjprice) on keybase.
  • I have a public key ASAFAo5hp3VYe0RePEKRoJmdUncRIPQtrCiSGfqg4cEsgQo

To claim this, I am signing this object:

class App extends React.Component {
constructor(props) {
super(props);
this.state = {
todos: ['wake up', 'eat a breakfast', 'try to take over the world'],
value: ''
}
this.handleChange = this.handleChange.bind(this);
@allenjprice
allenjprice / nashyTake3.js
Created July 2, 2014 15:06
Nashy Transposition, Take 3
var PITCHES = {};
//pitch dictionary via numerical index. not zero based. I might regret that.
PITCHES['_1'] = ['C', 'B#'];
PITCHES['_2'] = ['C#', 'Db'];
PITCHES['_3'] = ['D', 'C*'];
PITCHES['_4'] = ['D#', 'Eb'];
PITCHES['_5'] = ['E', 'Fb'];
PITCHES['_6'] = ['F', 'E#'];
PITCHES['_7'] = ['F#', 'Gb'];
PITCHES['_8'] = ['G', 'F*'];
@allenjprice
allenjprice / nashyTake2.js
Last active August 29, 2015 14:03
Nashy Transposition, Take 2
var pitches = {};
//pitch dictionary via numerical index. not zero based. I might regret that.
pitches['_1'] = ['C', 'B#'];
pitches['_2'] = ['C#', 'Db'];
pitches['_3'] = ['D', 'C*'];
pitches['_4'] = ['D#', 'Eb'];
pitches['_5'] = ['E', 'Fb'];
pitches['_6'] = ['F', 'E#'];
pitches['_7'] = ['F#', 'Gb'];
pitches['_8'] = ['G', 'F*'];
@allenjprice
allenjprice / nashyTake1.js
Last active August 29, 2015 14:03
Nashy Transposition, Take 1
var keys = {
c: ['C', 'D', 'E', 'F', 'G', 'A', 'B'],
cSharp: ['C#', 'D#', 'E#', 'F#', 'G#', 'A#', 'B#'],
d: ['D', 'E', 'F#', 'G', 'A', 'B', 'C#'],
dSharp: ['D#', 'E#', 'Fx', 'G#', 'A#', 'Bx', 'C#'],
eFlat: ['Eb', 'F', 'G', 'Ab', 'Bb', 'C', 'D'],
e: ['E', 'F#', 'G#', 'A', 'B', 'C#', 'D#'],
f: ['F', 'G', 'A', 'Bb', 'C', 'D', 'E'],
fSharp: ['F#', 'G#', 'A#', 'B', 'C#', 'D#', 'E#'],
gFlat: ['Gb', 'Ab', 'Bb', 'Cb', 'Db', 'Eb', 'F'],