Commit 2e02e43fc09b660fec38f8f8db44d10e2e6acdd0
1 parent
4727903e
Ajout du main et du dico 07/03
Showing
4 changed files
with
12 additions
and
80 deletions
Show diff stats
No preview for this file type
... | ... | @@ -0,0 +1,12 @@ |
1 | +import python_midi | |
2 | +import dico_notes | |
3 | +import sys | |
4 | + | |
5 | +def main(args): | |
6 | + print "Bienvenue dans le programme de traitement des fichiers MIDI" | |
7 | + (p,v,t) = python_midi.midi_treatment_file("mary.mid") | |
8 | + print p | |
9 | + print v | |
10 | + print t | |
11 | + | |
12 | +main(sys.argv) | |
0 | 13 | \ No newline at end of file | ... | ... |
musique.txt
... | ... | @@ -1,80 +0,0 @@ |
1 | -midi.Pattern(format=1, resolution=220, tracks=\ | |
2 | -[midi.Track(\ | |
3 | - [midi.TimeSignatureEvent(tick=0, data=[4, 2, 24, 8]), | |
4 | - midi.KeySignatureEvent(tick=0, data=[0, 0]), | |
5 | - midi.EndOfTrackEvent(tick=1, data=[])]), | |
6 | - midi.Track(\ | |
7 | - [midi.ControlChangeEvent(tick=0, channel=0, data=[91, 58]), | |
8 | - midi.ControlChangeEvent(tick=0, channel=0, data=[10, 69]), | |
9 | - midi.ControlChangeEvent(tick=0, channel=0, data=[0, 0]), | |
10 | - midi.ControlChangeEvent(tick=0, channel=0, data=[32, 0]), | |
11 | - midi.ProgramChangeEvent(tick=0, channel=0, data=[24]), | |
12 | - midi.NoteOnEvent(tick=0, channel=0, data=[64, 72]), | |
13 | - midi.NoteOnEvent(tick=0, channel=0, data=[55, 70]), | |
14 | - midi.NoteOnEvent(tick=231, channel=0, data=[64, 0]), | |
15 | - midi.NoteOnEvent(tick=25, channel=0, data=[62, 72]), | |
16 | - midi.NoteOnEvent(tick=231, channel=0, data=[62, 0]), | |
17 | - midi.NoteOnEvent(tick=25, channel=0, data=[60, 71]), | |
18 | - midi.NoteOnEvent(tick=231, channel=0, data=[60, 0]), | |
19 | - midi.NoteOnEvent(tick=25, channel=0, data=[62, 79]), | |
20 | - midi.NoteOnEvent(tick=206, channel=0, data=[55, 0]), | |
21 | - midi.NoteOnEvent(tick=25, channel=0, data=[62, 0]), | |
22 | - midi.NoteOnEvent(tick=25, channel=0, data=[64, 85]), | |
23 | - midi.NoteOnEvent(tick=0, channel=0, data=[55, 79]), | |
24 | - midi.NoteOnEvent(tick=231, channel=0, data=[64, 0]), | |
25 | - midi.NoteOnEvent(tick=25, channel=0, data=[64, 78]), | |
26 | - midi.NoteOnEvent(tick=231, channel=0, data=[64, 0]), | |
27 | - midi.NoteOnEvent(tick=25, channel=0, data=[64, 74]), | |
28 | - midi.NoteOnEvent(tick=462, channel=0, data=[55, 0]), | |
29 | - midi.NoteOnEvent(tick=0, channel=0, data=[64, 0]), | |
30 | - midi.NoteOnEvent(tick=50, channel=0, data=[62, 75]), | |
31 | - midi.NoteOnEvent(tick=0, channel=0, data=[55, 77]), | |
32 | - midi.NoteOnEvent(tick=231, channel=0, data=[62, 0]), | |
33 | - midi.NoteOnEvent(tick=25, channel=0, data=[62, 77]), | |
34 | - midi.NoteOnEvent(tick=231, channel=0, data=[62, 0]), | |
35 | - midi.NoteOnEvent(tick=25, channel=0, data=[62, 75]), | |
36 | - midi.NoteOnEvent(tick=462, channel=0, data=[55, 0]), | |
37 | - midi.NoteOnEvent(tick=0, channel=0, data=[62, 0]), | |
38 | - midi.NoteOnEvent(tick=50, channel=0, data=[64, 82]), | |
39 | - midi.NoteOnEvent(tick=0, channel=0, data=[55, 79]), | |
40 | - midi.NoteOnEvent(tick=231, channel=0, data=[64, 0]), | |
41 | - midi.NoteOnEvent(tick=25, channel=0, data=[67, 84]), | |
42 | - midi.NoteOnEvent(tick=231, channel=0, data=[67, 0]), | |
43 | - midi.NoteOnEvent(tick=25, channel=0, data=[67, 75]), | |
44 | - midi.NoteOnEvent(tick=462, channel=0, data=[55, 0]), | |
45 | - midi.NoteOnEvent(tick=0, channel=0, data=[67, 0]), | |
46 | - midi.NoteOnEvent(tick=50, channel=0, data=[64, 73]), | |
47 | - midi.NoteOnEvent(tick=0, channel=0, data=[55, 78]), | |
48 | - midi.NoteOnEvent(tick=231, channel=0, data=[64, 0]), | |
49 | - midi.NoteOnEvent(tick=25, channel=0, data=[62, 69]), | |
50 | - midi.NoteOnEvent(tick=231, channel=0, data=[62, 0]), | |
51 | - midi.NoteOnEvent(tick=25, channel=0, data=[60, 71]), | |
52 | - midi.NoteOnEvent(tick=231, channel=0, data=[60, 0]), | |
53 | - midi.NoteOnEvent(tick=25, channel=0, data=[62, 80]), | |
54 | - midi.NoteOnEvent(tick=206, channel=0, data=[55, 0]), | |
55 | - midi.NoteOnEvent(tick=25, channel=0, data=[62, 0]), | |
56 | - midi.NoteOnEvent(tick=25, channel=0, data=[64, 84]), | |
57 | - midi.NoteOnEvent(tick=0, channel=0, data=[55, 79]), | |
58 | - midi.NoteOnEvent(tick=231, channel=0, data=[64, 0]), | |
59 | - midi.NoteOnEvent(tick=25, channel=0, data=[64, 76]), | |
60 | - midi.NoteOnEvent(tick=231, channel=0, data=[64, 0]), | |
61 | - midi.NoteOnEvent(tick=25, channel=0, data=[64, 74]), | |
62 | - midi.NoteOnEvent(tick=231, channel=0, data=[64, 0]), | |
63 | - midi.NoteOnEvent(tick=25, channel=0, data=[64, 77]), | |
64 | - midi.NoteOnEvent(tick=206, channel=0, data=[55, 0]), | |
65 | - midi.NoteOnEvent(tick=25, channel=0, data=[64, 0]), | |
66 | - midi.NoteOnEvent(tick=25, channel=0, data=[62, 75]), | |
67 | - midi.NoteOnEvent(tick=0, channel=0, data=[55, 78]), | |
68 | - midi.NoteOnEvent(tick=231, channel=0, data=[62, 0]), | |
69 | - midi.NoteOnEvent(tick=25, channel=0, data=[62, 74]), | |
70 | - midi.NoteOnEvent(tick=231, channel=0, data=[62, 0]), | |
71 | - midi.NoteOnEvent(tick=25, channel=0, data=[64, 81]), | |
72 | - midi.NoteOnEvent(tick=231, channel=0, data=[64, 0]), | |
73 | - midi.NoteOnEvent(tick=25, channel=0, data=[62, 70]), | |
74 | - midi.NoteOnEvent(tick=206, channel=0, data=[55, 0]), | |
75 | - midi.NoteOnEvent(tick=25, channel=0, data=[62, 0]), | |
76 | - midi.NoteOnEvent(tick=25, channel=0, data=[60, 73]), | |
77 | - midi.NoteOnEvent(tick=0, channel=0, data=[52, 72]), | |
78 | - midi.NoteOnEvent(tick=974, channel=0, data=[60, 0]), | |
79 | - midi.NoteOnEvent(tick=0, channel=0, data=[52, 0]), | |
80 | - midi.EndOfTrackEvent(tick=1, data=[])])]) |
No preview for this file type