Skip to content

mxm, IT's mad science

Sections
Personal tools
You are here: Home » Products » Open Source » Python Midi Package » I think that this will help
Downloads
You can download mxm products here.

Due to it's technical and international nature, this section is in english.

Max M Has a blog too.

og er glad for mad

 

Comment

Above in this comment thread: Python Midi Package » Notes !

I think that this will help

Posted by Anonymous User at 2009-07-25 02:20 PM
Why not to set up some variables?
code:


# Some notes

c0 = 52
cis0= 53
d0 = 54
dis0= 55
e0 = 56
f0 = 57
fis0= 58
g0 = 59
gis0= 60
a0 = 61
ais0= 62
h0 = 63

c1 = 64
cis1= 65
d1 = 66
dis1= 67
e1 = 68
f1 = 69
fis1= 70
g1 = 71
gis1= 72
a1 = 73
ais1= 74
h1 = 75

c2 = 76
cis2= 77
d2 = 78
dis2= 79
e2 = 80
f2 = 81
fis2= 82
g2 = 83
gis2= 84
a2 = 85
ais2= 86
h2 = 87

c3 = 88
cis3= 89
d3 = 90
dis3= 91
e3 = 92
f3 = 93
fis3= 94
g3 = 95
gis3= 96
a3 = 97
ais3= 98
h3 = 99

c4 = 100
cis4= 101
d4 = 102
dis4= 103
e4 = 104
f4 = 105
fis4= 106
g4 = 107
gis4= 108
a4 = 109
ais4= 110
h4 = 111

{EOF}

And using this will look just like this:
midi.note_on(note=c1)
midi.note_on(note=e1)
midi.note_on(note=g1)

cheers