Title: Theory / Unimportant / CS / Programming / Python / music21
Tags: hasNotNewEffectReturnsMeaning FromVariables FromInstruction computer_to_instruction type
On every note of this deck, unless a note says otherwise:
Page: http://web.mit.edu/music21/doc/usersGuide/usersGuide_02_notes.html
Page: http://web.mit.edu/music21/doc/usersGuide/usersGuide_02_notes.html

Typ: music21.note.Note
Meaning: Musical note
Page: http://web.mit.edu/music21/doc/usersGuide/usersGuide_02_notes.html
Language: Python
Context: music21

Instruction: music21.note.Note("foobar")
Effect: the note foo on octave bar
Language: Python
Context: music21

Variable: foo.name
Meaning: The name of the note in the octave
Context: music21
Language: Python
Variables: foo a Note

Variable: foo.octave
Meaning: The octave number, 4 being central
Context: music21
Language: Python
Variables: foo a Note

Variable: foo.pitch
Meaning: The pitch of the note foo
Context: music21
Language: Python
Variables: foo a Note

Variable: foo.frequency
Meaning: The frequency of this pitch
Context: music21
Language: Python
Variables: p a pitch

Variable: p.accidental
Meaning: The accidental of the pitch
Context: music21
Language: Python
Variables: p a pitch

Variable: p.pitchClassString
Meaning: The class string of the pitch as a string
Context: music21
Language: Python
Variables: p a pitch

Variable: p.pitchClass
Meaning: the class pitch of p
Context: music21
Language: Python
Variables: p a pitch

Name: the class pitch of p
Definition: The number of half tone between C and p
Page: http://web.mit.edu/music21/doc/usersGuide/usersGuide_02_notes.html
Variables: p a pitch
Context: music21

Instruction: "-" in note name
Effect: flatten the note
Language: Python
Context: music21

Instruction: "#" in note name
Effect: raise the note by an enharmonic half-tone
Language: Python
Context: music21

Typ: music21.pitch.Accidental
Meaning: the class of accidental
Page: http://web.mit.edu/music21/doc/moduleReference/modulePitch.html#accidental
Language: Python
Context: music21

Variable: acc.alter
Meaning: The number of semitone alteration
Context: music21
Language: Python
Variables: acc an accidental

Variable: acc.displayLocation
Meaning: Where to display the accidental, when printing it
Context: music21
Language: Python
Variables: acc an accidental
Value: "normal": on its right
Value2: "above"

Instruction: n.show()
Effect: Show the note, on a partition, using any xml viewer for musicXML
Language: Python
Context: music21
Variables: n a note

Instruction: n.show('midi')
Effect: play the note, as a midi file
Language: Python
Context: music21
Variables: n a note

Instruction: n.transpose('foo')
Effect: a note, which is the transpose of f by foo
Language: Python
Context: music21
Variables: n a note

Instruction: n.transpose('foo',inPlace=True)
Effect: Change the note to its transpose by foo
Language: Python
Context: music21
Variables: n a note

Instruction: music21.note.Rest(type='foo')
Effect: create a rest of length given by foo
Language: Python