might have fixed scheduling issue in notes

This commit is contained in:
Clément Pi
2022-01-26 15:54:10 +01:00
parent 5d9e5c16cf
commit 891653c609
5 changed files with 1493 additions and 7 deletions
+449
View File
@@ -0,0 +1,449 @@
MetaMessage('time_signature', numerator=4, denominator=4, clocks_per_click=24, notated_32nd_notes_per_beat=8, time=0) 3500
MetaMessage('set_tempo', tempo=600000, time=0) 3500
MetaMessage('track_name', name='Elec. Piano (Classic)', time=0) 3500
program_change channel=0 program=0 time=0 3500
note_on channel=0 note=60 velocity=50 time=0 3500
note_off channel=0 note=60 velocity=0 time=0.15 3650.0
note_on channel=0 note=60 velocity=50 time=0.15 3800.0
note_off channel=0 note=60 velocity=0 time=0.15 3950.0
note_on channel=0 note=67 velocity=50 time=0.3 4250.0
note_off channel=0 note=67 velocity=0 time=0.15 4400.0
note_on channel=0 note=64 velocity=50 time=0.8999999999999999 5300.0
note_off channel=0 note=64 velocity=0 time=0.15 5450.0
note_on channel=0 note=62 velocity=50 time=0.44999999999999996 5900.0
note_off channel=0 note=62 velocity=0 time=0.15 6050.0
note_on channel=0 note=60 velocity=50 time=0.15 6200.0
note_off channel=0 note=60 velocity=0 time=0.15 6350.0
note_on channel=0 note=60 velocity=50 time=0.15 6500.0
note_off channel=0 note=60 velocity=0 time=0.15 6650.0
note_on channel=0 note=67 velocity=50 time=0.15 6800.0
note_off channel=0 note=67 velocity=0 time=0.15 6950.0
note_on channel=0 note=64 velocity=50 time=0.7499999999999999 7700.0
note_off channel=0 note=64 velocity=0 time=0.15 7850.0
note_on channel=0 note=62 velocity=50 time=0.44999999999999996 8300.0
note_off channel=0 note=62 velocity=0 time=0.15 8450.0
note_on channel=0 note=60 velocity=50 time=0.15 8600.0
note_off channel=0 note=60 velocity=0 time=0.15 8750.0
note_on channel=0 note=60 velocity=50 time=0.15 8900.0
note_off channel=0 note=60 velocity=0 time=0.15 9050.0
note_on channel=0 note=69 velocity=50 time=0.15 9200.0
note_off channel=0 note=69 velocity=0 time=0.15 9350.0
note_on channel=0 note=64 velocity=50 time=0.7499999999999999 10100.0
note_off channel=0 note=64 velocity=0 time=0.15 10250.0
note_on channel=0 note=62 velocity=50 time=0.44999999999999996 10700.0
note_off channel=0 note=62 velocity=0 time=0.15 10850.0
note_on channel=0 note=60 velocity=50 time=0.15 11000.0
note_off channel=0 note=60 velocity=0 time=0.15 11150.0
note_on channel=0 note=60 velocity=50 time=0.15 11300.0
note_off channel=0 note=60 velocity=0 time=0.15 11450.0
note_on channel=0 note=60 velocity=50 time=0.15 11600.0
note_on channel=0 note=65 velocity=50 time=0 11600.0
note_off channel=0 note=60 velocity=0 time=0.15 11750.0
note_off channel=0 note=65 velocity=0 time=0 11750.0
note_on channel=0 note=65 velocity=50 time=0.44999999999999996 12200.0
note_off channel=0 note=65 velocity=0 time=0.15 12350.0
note_on channel=0 note=65 velocity=50 time=0.44999999999999996 12800.0
note_off channel=0 note=65 velocity=0 time=0.15 12950.0
note_on channel=0 note=60 velocity=50 time=0.44999999999999996 13400.0
note_off channel=0 note=60 velocity=0 time=0.15 13550.0
note_on channel=0 note=60 velocity=50 time=0.15 13700.0
note_off channel=0 note=60 velocity=0 time=0.15 13850.0
note_on channel=0 note=60 velocity=50 time=0.15 14000.0
note_on channel=0 note=67 velocity=50 time=0 14000.0
note_off channel=0 note=60 velocity=0 time=0.15 14150.0
note_off channel=0 note=67 velocity=0 time=0 14150.0
note_on channel=0 note=60 velocity=50 time=0.7499999999999999 14900.0
note_on channel=0 note=64 velocity=50 time=0 14900.0
note_off channel=0 note=64 velocity=0 time=0.15 15050.0
note_off channel=0 note=60 velocity=0 time=0 15050.0
note_on channel=0 note=62 velocity=50 time=0.44999999999999996 15500.0
note_off channel=0 note=62 velocity=0 time=0.15 15650.0
note_on channel=0 note=60 velocity=50 time=0.15 15800.0
note_off channel=0 note=60 velocity=0 time=0.15 15950.0
note_on channel=0 note=60 velocity=50 time=0.15 16100.0
note_off channel=0 note=60 velocity=0 time=0.15 16250.0
note_on channel=0 note=62 velocity=50 time=0.15 16400.0
note_on channel=0 note=67 velocity=50 time=0 16400.0
note_off channel=0 note=67 velocity=0 time=0.15 16550.0
note_off channel=0 note=62 velocity=0 time=0 16550.0
note_on channel=0 note=64 velocity=50 time=0.7499999999999999 17300.0
note_off channel=0 note=64 velocity=0 time=0.15 17450.0
note_on channel=0 note=62 velocity=50 time=0.44999999999999996 17900.0
note_off channel=0 note=62 velocity=0 time=0.15 18050.0
note_on channel=0 note=60 velocity=50 time=0.15 18200.0
note_off channel=0 note=60 velocity=0 time=0.15 18350.0
note_on channel=0 note=60 velocity=50 time=0.15 18500.0
note_off channel=0 note=60 velocity=0 time=0.15 18650.0
note_on channel=0 note=69 velocity=50 time=0.15 18800.0
note_on channel=0 note=64 velocity=50 time=0 18800.0
note_off channel=0 note=64 velocity=0 time=0.15 18950.0
note_off channel=0 note=69 velocity=0 time=0 18950.0
note_on channel=0 note=64 velocity=50 time=0.7499999999999999 19700.0
note_off channel=0 note=64 velocity=0 time=0.15 19850.0
note_on channel=0 note=62 velocity=50 time=0.44999999999999996 20300.0
note_off channel=0 note=62 velocity=0 time=0.15 20450.0
note_on channel=0 note=60 velocity=50 time=0.15 20600.0
note_off channel=0 note=60 velocity=0 time=0.15 20750.0
note_on channel=0 note=60 velocity=50 time=0.15 20900.0
note_off channel=0 note=60 velocity=0 time=0.15 21050.0
note_on channel=0 note=60 velocity=50 time=0.15 21200.0
note_on channel=0 note=67 velocity=50 time=0 21200.0
note_off channel=0 note=67 velocity=0 time=0.15 21350.0
note_off channel=0 note=60 velocity=0 time=0 21350.0
note_on channel=0 note=60 velocity=50 time=0.44999999999999996 21800.0
note_on channel=0 note=67 velocity=50 time=0 21800.0
note_off channel=0 note=67 velocity=0 time=0.15 21950.0
note_off channel=0 note=60 velocity=0 time=0 21950.0
note_on channel=0 note=60 velocity=50 time=0.44999999999999996 22400.0
note_on channel=0 note=67 velocity=50 time=0 22400.0
note_off channel=0 note=67 velocity=0 time=0.15 22550.0
note_off channel=0 note=60 velocity=0 time=0 22550.0
note_on channel=0 note=64 velocity=50 time=1.65 24200.0
note_on channel=0 note=67 velocity=50 time=0 24200.0
note_off channel=0 note=64 velocity=0 time=0.15 24350.0
note_off channel=0 note=67 velocity=0 time=0 24350.0
note_on channel=0 note=67 velocity=50 time=0.15 24500.0
note_on channel=0 note=64 velocity=50 time=0 24500.0
note_off channel=0 note=64 velocity=0 time=0.15 24650.0
note_off channel=0 note=67 velocity=0 time=0 24650.0
note_on channel=0 note=64 velocity=50 time=0.15 24800.0
note_on channel=0 note=67 velocity=50 time=0 24800.0
note_off channel=0 note=67 velocity=0 time=0.15 24950.0
note_off channel=0 note=64 velocity=0 time=0 24950.0
note_on channel=0 note=67 velocity=50 time=0.15 25100.0
note_on channel=0 note=64 velocity=50 time=0 25100.0
note_off channel=0 note=64 velocity=0 time=0.15 25250.0
note_off channel=0 note=67 velocity=0 time=0 25250.0
note_on channel=0 note=64 velocity=50 time=0.3 25550.0
note_off channel=0 note=64 velocity=0 time=0.15 25700.0
note_on channel=0 note=62 velocity=50 time=0.3 26000.0
note_on channel=0 note=67 velocity=50 time=0 26000.0
note_off channel=0 note=67 velocity=0 time=0.15 26150.0
note_off channel=0 note=62 velocity=0 time=0 26150.0
note_on channel=0 note=62 velocity=50 time=0.44999999999999996 26600.0
note_on channel=0 note=67 velocity=50 time=0 26600.0
note_off channel=0 note=67 velocity=0 time=0.15 26750.0
note_off channel=0 note=62 velocity=0 time=0 26750.0
note_on channel=0 note=67 velocity=50 time=0.15 26900.0
note_on channel=0 note=62 velocity=50 time=0 26900.0
note_off channel=0 note=62 velocity=0 time=0.15 27050.0
note_off channel=0 note=67 velocity=0 time=0 27050.0
note_on channel=0 note=62 velocity=50 time=0.15 27200.0
note_on channel=0 note=67 velocity=50 time=0 27200.0
note_off channel=0 note=62 velocity=0 time=0.15 27350.0
note_off channel=0 note=67 velocity=0 time=0 27350.0
note_on channel=0 note=67 velocity=50 time=0.15 27500.0
note_on channel=0 note=62 velocity=50 time=0 27500.0
note_off channel=0 note=62 velocity=0 time=0.15 27650.0
note_off channel=0 note=67 velocity=0 time=0 27650.0
note_on channel=0 note=67 velocity=50 time=0.3 27950.0
note_on channel=0 note=62 velocity=50 time=0 27950.0
note_off channel=0 note=62 velocity=0 time=0.15 28100.0
note_off channel=0 note=67 velocity=0 time=0 28100.0
note_on channel=0 note=64 velocity=50 time=0.3 28400.0
note_on channel=0 note=60 velocity=50 time=0 28400.0
note_off channel=0 note=64 velocity=0 time=0.15 28550.0
note_off channel=0 note=60 velocity=0 time=0 28550.0
note_on channel=0 note=64 velocity=50 time=0.15 28700.0
note_on channel=0 note=60 velocity=50 time=0 28700.0
note_off channel=0 note=60 velocity=0 time=0.15 28850.0
note_off channel=0 note=64 velocity=0 time=0 28850.0
note_on channel=0 note=60 velocity=50 time=0.15 29000.0
note_on channel=0 note=64 velocity=50 time=0 29000.0
note_off channel=0 note=64 velocity=0 time=0.15 29150.0
note_off channel=0 note=60 velocity=0 time=0 29150.0
note_on channel=0 note=64 velocity=50 time=0.15 29300.0
note_on channel=0 note=60 velocity=50 time=0 29300.0
note_off channel=0 note=64 velocity=0 time=0.15 29450.0
note_off channel=0 note=60 velocity=0 time=0 29450.0
note_on channel=0 note=64 velocity=50 time=0.3 29750.0
note_on channel=0 note=60 velocity=50 time=0 29750.0
note_off channel=0 note=60 velocity=0 time=0.15 29900.0
note_off channel=0 note=64 velocity=0 time=0 29900.0
note_on channel=0 note=65 velocity=50 time=0.3 30200.0
note_on channel=0 note=60 velocity=50 time=0 30200.0
note_off channel=0 note=60 velocity=0 time=0.15 30350.0
note_off channel=0 note=65 velocity=0 time=0 30350.0
note_on channel=0 note=65 velocity=50 time=0.44999999999999996 30800.0
note_on channel=0 note=60 velocity=50 time=0 30800.0
note_off channel=0 note=65 velocity=0 time=0.15 30950.0
note_off channel=0 note=60 velocity=0 time=0 30950.0
note_on channel=0 note=65 velocity=50 time=0.15 31100.0
note_on channel=0 note=60 velocity=50 time=0 31100.0
note_off channel=0 note=65 velocity=0 time=0.15 31250.0
note_off channel=0 note=60 velocity=0 time=0 31250.0
note_on channel=0 note=60 velocity=50 time=0.15 31400.0
note_on channel=0 note=65 velocity=50 time=0 31400.0
note_off channel=0 note=65 velocity=0 time=0.15 31550.0
note_off channel=0 note=60 velocity=0 time=0 31550.0
note_on channel=0 note=60 velocity=50 time=0.15 31700.0
note_on channel=0 note=65 velocity=50 time=0 31700.0
note_off channel=0 note=60 velocity=0 time=0.15 31850.0
note_off channel=0 note=65 velocity=0 time=0 31850.0
note_on channel=0 note=64 velocity=50 time=0.3 32150.0
note_on channel=0 note=60 velocity=50 time=0 32150.0
note_off channel=0 note=60 velocity=0 time=0.15 32300.0
note_off channel=0 note=64 velocity=0 time=0 32300.0
note_on channel=0 note=64 velocity=50 time=0.3 32600.0
note_on channel=0 note=60 velocity=50 time=0 32600.0
note_off channel=0 note=60 velocity=0 time=0.15 32750.0
note_off channel=0 note=64 velocity=0 time=0 32750.0
MetaMessage('end_of_track', time=0) 32750.0
key: si, c:(255, 0, 0) for 0.9s, time: 0
key: la#, c:(255, 0, 0) for 0.9s, time: 0
key: la, c:(255, 0, 0) for 0.9s, time: 0
key: sol#, c:(255, 0, 0) for 0.9s, time: 0
key: sol, c:(255, 0, 0) for 0.9s, time: 0
key: fa#, c:(255, 0, 0) for 0.9s, time: 0
key: fa, c:(255, 0, 0) for 0.9s, time: 0
key: mi, c:(255, 0, 0) for 0.9s, time: 0
key: re#, c:(255, 0, 0) for 0.9s, time: 0
key: re, c:(255, 0, 0) for 0.9s, time: 0
key: do#, c:(255, 0, 0) for 0.9s, time: 0
key: do, c:(255, 0, 0) for 0.9s, time: 0
end of si
end of la#
end of la
end of sol#
end of sol
end of fa#
end of fa
end of mi
end of re#
end of re
end of do#
end of do
key: do#, c:(255, 255, 0) for 0.9s, time: 0
key: re#, c:(255, 255, 0) for 0.9s, time: 0
key: re, c:(255, 255, 0) for 0.9s, time: 0
key: sol, c:(255, 255, 0) for 0.9s, time: 0
key: mi, c:(255, 255, 0) for 0.9s, time: 0
key: fa, c:(255, 255, 0) for 0.9s, time: 0
key: fa#, c:(255, 255, 0) for 0.9s, time: 0
key: sol#, c:(255, 255, 0) for 0.9s, time: 0
key: la, c:(255, 255, 0) for 0.9s, time: 0
key: si, c:(255, 255, 0) for 0.9s, time: 0
key: do, c:(255, 255, 0) for 0.9s, time: 0
key: la#, c:(255, 255, 0) for 0.9s, time: 0
end of do#
end of re#
end of re
end of sol
end of mi
end of fa
end of fa#
end of sol#
end of la
end of si
end of do
end of la#
key: fa#, c:(0, 255, 0) for 0.9s, time: 0
key: do, c:(0, 255, 0) for 0.9s, time: 0
key: re#, c:(0, 255, 0) for 0.9s, time: 0
key: fa, c:(0, 255, 0) for 0.9s, time: 0
key: do#, c:(0, 255, 0) for 0.9s, time: 0
key: mi, c:(0, 255, 0) for 0.9s, time: 0
key: sol#, c:(0, 255, 0) for 0.9s, time: 0
key: la, c:(0, 255, 0) for 0.9s, time: 0
key: la#, c:(0, 255, 0) for 0.9s, time: 0
key: si, c:(0, 255, 0) for 0.9s, time: 0
key: sol, c:(0, 255, 0) for 0.9s, time: 0
key: re, c:(0, 255, 0) for 0.9s, time: 0
end of fa#
end of do
end of re#
end of fa
end of do#
end of mi
end of sol#
end of la
end of la#
end of si
end of sol
end of re
key: do, c:(255, 0, 0) for 0.15s, time: 3650.0
end of do
key: do, c:(255, 0, 0) for 0.15s, time: 3950.0
end of do
key: sol, c:(255, 0, 0) for 0.15s, time: 4400.0
end of sol
key: mi, c:(255, 0, 0) for 0.15s, time: 5450.0
end of mi
key: re, c:(255, 0, 0) for 0.15s, time: 6050.0
end of re
key: do, c:(255, 0, 0) for 0.15s, time: 6350.0
end of do
key: do, c:(255, 0, 0) for 0.15s, time: 6650.0
end of do
key: sol, c:(255, 0, 0) for 0.15s, time: 6950.0
end of sol
key: mi, c:(255, 0, 0) for 0.15s, time: 7850.0
end of mi
key: re, c:(255, 0, 0) for 0.15s, time: 8450.0
end of re
key: do, c:(255, 0, 0) for 0.15s, time: 8750.0
end of do
key: do, c:(255, 0, 0) for 0.15s, time: 9050.0
end of do
key: la, c:(255, 0, 0) for 0.15s, time: 9350.0
end of la
key: mi, c:(255, 0, 0) for 0.15s, time: 10250.0
end of mi
key: re, c:(255, 0, 0) for 0.15s, time: 10850.0
end of re
key: do, c:(255, 0, 0) for 0.15s, time: 11150.0
end of do
key: do, c:(255, 0, 0) for 0.15s, time: 11450.0
end of do
key: do, c:(255, 0, 0) for 0.15s, time: 11750.0
key: fa, c:(255, 0, 0) for 0.0s, time: 11750.0
end of fa
end of do
key: fa, c:(255, 0, 0) for 0.15s, time: 12350.0
end of fa
key: fa, c:(255, 0, 0) for 0.15s, time: 12950.0
end of fa
key: do, c:(255, 0, 0) for 0.15s, time: 13550.0
end of do
key: do, c:(255, 0, 0) for 0.15s, time: 13850.0
end of do
key: sol, c:(255, 0, 0) for 0.0s, time: 14150.0
key: do, c:(255, 0, 0) for 0.15s, time: 14150.0
end of sol
end of do
key: mi, c:(255, 0, 0) for 0.15s, time: 15050.0
key: do, c:(255, 0, 0) for 0.0s, time: 15050.0
end of do
end of mi
key: re, c:(255, 0, 0) for 0.15s, time: 15650.0
end of re
key: do, c:(255, 0, 0) for 0.15s, time: 15950.0
end of do
key: do, c:(255, 0, 0) for 0.15s, time: 16250.0
end of do
key: sol, c:(255, 0, 0) for 0.15s, time: 16550.0
key: re, c:(255, 0, 0) for 0.0s, time: 16550.0
end of re
end of sol
key: mi, c:(255, 0, 0) for 0.15s, time: 17450.0
end of mi
key: re, c:(255, 0, 0) for 0.15s, time: 18050.0
end of re
key: do, c:(255, 0, 0) for 0.15s, time: 18350.0
end of do
key: do, c:(255, 0, 0) for 0.15s, time: 18650.0
end of do
key: la, c:(255, 0, 0) for 0.0s, time: 18950.0
key: mi, c:(255, 0, 0) for 0.15s, time: 18950.0
end of la
end of mi
key: mi, c:(255, 0, 0) for 0.15s, time: 19850.0
end of mi
key: re, c:(255, 0, 0) for 0.15s, time: 20450.0
end of re
key: do, c:(255, 0, 0) for 0.15s, time: 20750.0
end of do
key: do, c:(255, 0, 0) for 0.15s, time: 21050.0
end of do
key: sol, c:(255, 0, 0) for 0.15s, time: 21350.0
key: do, c:(255, 0, 0) for 0.0s, time: 21350.0
end of do
end of sol
key: do, c:(255, 0, 0) for 0.0s, time: 21950.0
key: sol, c:(255, 0, 0) for 0.15s, time: 21950.0
end of do
end of sol
key: do, c:(255, 0, 0) for 0.0s, time: 22550.0
key: sol, c:(255, 0, 0) for 0.15s, time: 22550.0
end of do
end of sol
key: sol, c:(255, 0, 0) for 0.0s, time: 24350.0
key: mi, c:(255, 0, 0) for 0.15s, time: 24350.0
end of sol
end of mi
key: sol, c:(255, 0, 0) for 0.0s, time: 24650.0
key: mi, c:(255, 0, 0) for 0.15s, time: 24650.0
end of sol
end of mi
key: sol, c:(255, 0, 0) for 0.15s, time: 24950.0
key: mi, c:(255, 0, 0) for 0.0s, time: 24950.0
end of mi
end of sol
key: sol, c:(255, 0, 0) for 0.0s, time: 25250.0
key: mi, c:(255, 0, 0) for 0.15s, time: 25250.0
end of sol
end of mi
key: mi, c:(255, 0, 0) for 0.15s, time: 25700.0
end of mi
key: sol, c:(255, 0, 0) for 0.15s, time: 26150.0
key: re, c:(255, 0, 0) for 0.0s, time: 26150.0
end of re
end of sol
key: sol, c:(255, 0, 0) for 0.15s, time: 26750.0
key: re, c:(255, 0, 0) for 0.0s, time: 26750.0
end of re
end of sol
key: re, c:(255, 0, 0) for 0.15s, time: 27050.0
key: sol, c:(255, 0, 0) for 0.0s, time: 27050.0
end of sol
end of re
key: re, c:(255, 0, 0) for 0.15s, time: 27350.0
key: sol, c:(255, 0, 0) for 0.0s, time: 27350.0
end of sol
end of re
key: re, c:(255, 0, 0) for 0.15s, time: 27650.0
key: sol, c:(255, 0, 0) for 0.0s, time: 27650.0
end of sol
end of re
key: re, c:(255, 0, 0) for 0.15s, time: 28100.0
key: sol, c:(255, 0, 0) for 0.0s, time: 28100.0
end of sol
end of re
key: mi, c:(255, 0, 0) for 0.15s, time: 28550.0
key: do, c:(255, 0, 0) for 0.0s, time: 28550.0
end of do
end of mi
key: do, c:(255, 0, 0) for 0.15s, time: 28850.0
key: mi, c:(255, 0, 0) for 0.0s, time: 28850.0
end of mi
end of do
key: mi, c:(255, 0, 0) for 0.15s, time: 29150.0
key: do, c:(255, 0, 0) for 0.0s, time: 29150.0
end of do
end of mi
key: do, c:(255, 0, 0) for 0.0s, time: 29450.0
key: mi, c:(255, 0, 0) for 0.15s, time: 29450.0
end of do
end of mi
key: do, c:(255, 0, 0) for 0.15s, time: 29900.0
key: mi, c:(255, 0, 0) for 0.0s, time: 29900.0
end of mi
end of do
key: do, c:(255, 0, 0) for 0.15s, time: 30350.0
key: fa, c:(255, 0, 0) for 0.0s, time: 30350.0
end of fa
end of do
key: fa, c:(255, 0, 0) for 0.15s, time: 30950.0
key: do, c:(255, 0, 0) for 0.0s, time: 30950.0
end of do
end of fa
key: do, c:(255, 0, 0) for 0.0s, time: 31250.0
key: fa, c:(255, 0, 0) for 0.15s, time: 31250.0
end of do
end of fa
key: fa, c:(255, 0, 0) for 0.15s, time: 31550.0
key: do, c:(255, 0, 0) for 0.0s, time: 31550.0
end of do
end of fa
key: do, c:(255, 0, 0) for 0.15s, time: 31850.0
key: fa, c:(255, 0, 0) for 0.0s, time: 31850.0
end of fa
end of do
key: mi, c:(255, 0, 0) for 0.0s, time: 32300.0
key: do, c:(255, 0, 0) for 0.15s, time: 32300.0
end of mi
end of do
key: mi, c:(255, 0, 0) for 0.0s, time: 32750.0
key: do, c:(255, 0, 0) for 0.15s, time: 32750.0
end of mi
end of do
+449
View File
@@ -0,0 +1,449 @@
MetaMessage('time_signature', numerator=4, denominator=4, clocks_per_click=24, notated_32nd_notes_per_beat=8, time=0) 3500
MetaMessage('set_tempo', tempo=600000, time=0) 3500
MetaMessage('track_name', name='Elec. Piano (Classic)', time=0) 3500
program_change channel=0 program=0 time=0 3500
note_on channel=0 note=60 velocity=50 time=0 3500
note_off channel=0 note=60 velocity=0 time=0.15 3500
note_on channel=0 note=60 velocity=50 time=0.15 3650.0
note_off channel=0 note=60 velocity=0 time=0.15 3800.0
note_on channel=0 note=67 velocity=50 time=0.3 3950.0
note_off channel=0 note=67 velocity=0 time=0.15 4250.0
note_on channel=0 note=64 velocity=50 time=0.8999999999999999 4400.0
note_off channel=0 note=64 velocity=0 time=0.15 5300.0
note_on channel=0 note=62 velocity=50 time=0.44999999999999996 5450.0
note_off channel=0 note=62 velocity=0 time=0.15 5900.0
note_on channel=0 note=60 velocity=50 time=0.15 6050.0
note_off channel=0 note=60 velocity=0 time=0.15 6200.0
note_on channel=0 note=60 velocity=50 time=0.15 6350.0
note_off channel=0 note=60 velocity=0 time=0.15 6500.0
note_on channel=0 note=67 velocity=50 time=0.15 6650.0
note_off channel=0 note=67 velocity=0 time=0.15 6800.0
note_on channel=0 note=64 velocity=50 time=0.7499999999999999 6950.0
note_off channel=0 note=64 velocity=0 time=0.15 7700.0
note_on channel=0 note=62 velocity=50 time=0.44999999999999996 7850.0
note_off channel=0 note=62 velocity=0 time=0.15 8300.0
note_on channel=0 note=60 velocity=50 time=0.15 8450.0
note_off channel=0 note=60 velocity=0 time=0.15 8600.0
note_on channel=0 note=60 velocity=50 time=0.15 8750.0
note_off channel=0 note=60 velocity=0 time=0.15 8900.0
note_on channel=0 note=69 velocity=50 time=0.15 9050.0
note_off channel=0 note=69 velocity=0 time=0.15 9200.0
note_on channel=0 note=64 velocity=50 time=0.7499999999999999 9350.0
note_off channel=0 note=64 velocity=0 time=0.15 10100.0
note_on channel=0 note=62 velocity=50 time=0.44999999999999996 10250.0
note_off channel=0 note=62 velocity=0 time=0.15 10700.0
note_on channel=0 note=60 velocity=50 time=0.15 10850.0
note_off channel=0 note=60 velocity=0 time=0.15 11000.0
note_on channel=0 note=60 velocity=50 time=0.15 11150.0
note_off channel=0 note=60 velocity=0 time=0.15 11300.0
note_on channel=0 note=60 velocity=50 time=0.15 11450.0
note_on channel=0 note=65 velocity=50 time=0 11600.0
note_off channel=0 note=60 velocity=0 time=0.15 11600.0
note_off channel=0 note=65 velocity=0 time=0 11750.0
note_on channel=0 note=65 velocity=50 time=0.44999999999999996 11750.0
note_off channel=0 note=65 velocity=0 time=0.15 12200.0
note_on channel=0 note=65 velocity=50 time=0.44999999999999996 12350.0
note_off channel=0 note=65 velocity=0 time=0.15 12800.0
note_on channel=0 note=60 velocity=50 time=0.44999999999999996 12950.0
note_off channel=0 note=60 velocity=0 time=0.15 13400.0
note_on channel=0 note=60 velocity=50 time=0.15 13550.0
note_off channel=0 note=60 velocity=0 time=0.15 13700.0
note_on channel=0 note=60 velocity=50 time=0.15 13850.0
note_on channel=0 note=67 velocity=50 time=0 14000.0
note_off channel=0 note=60 velocity=0 time=0.15 14000.0
note_off channel=0 note=67 velocity=0 time=0 14150.0
note_on channel=0 note=60 velocity=50 time=0.7499999999999999 14150.0
note_on channel=0 note=64 velocity=50 time=0 14900.0
note_off channel=0 note=64 velocity=0 time=0.15 14900.0
note_off channel=0 note=60 velocity=0 time=0 15050.0
note_on channel=0 note=62 velocity=50 time=0.44999999999999996 15050.0
note_off channel=0 note=62 velocity=0 time=0.15 15500.0
note_on channel=0 note=60 velocity=50 time=0.15 15650.0
note_off channel=0 note=60 velocity=0 time=0.15 15800.0
note_on channel=0 note=60 velocity=50 time=0.15 15950.0
note_off channel=0 note=60 velocity=0 time=0.15 16100.0
note_on channel=0 note=62 velocity=50 time=0.15 16250.0
note_on channel=0 note=67 velocity=50 time=0 16400.0
note_off channel=0 note=67 velocity=0 time=0.15 16400.0
note_off channel=0 note=62 velocity=0 time=0 16550.0
note_on channel=0 note=64 velocity=50 time=0.7499999999999999 16550.0
note_off channel=0 note=64 velocity=0 time=0.15 17300.0
note_on channel=0 note=62 velocity=50 time=0.44999999999999996 17450.0
note_off channel=0 note=62 velocity=0 time=0.15 17900.0
note_on channel=0 note=60 velocity=50 time=0.15 18050.0
note_off channel=0 note=60 velocity=0 time=0.15 18200.0
note_on channel=0 note=60 velocity=50 time=0.15 18350.0
note_off channel=0 note=60 velocity=0 time=0.15 18500.0
note_on channel=0 note=69 velocity=50 time=0.15 18650.0
note_on channel=0 note=64 velocity=50 time=0 18800.0
note_off channel=0 note=64 velocity=0 time=0.15 18800.0
note_off channel=0 note=69 velocity=0 time=0 18950.0
note_on channel=0 note=64 velocity=50 time=0.7499999999999999 18950.0
note_off channel=0 note=64 velocity=0 time=0.15 19700.0
note_on channel=0 note=62 velocity=50 time=0.44999999999999996 19850.0
note_off channel=0 note=62 velocity=0 time=0.15 20300.0
note_on channel=0 note=60 velocity=50 time=0.15 20450.0
note_off channel=0 note=60 velocity=0 time=0.15 20600.0
note_on channel=0 note=60 velocity=50 time=0.15 20750.0
note_off channel=0 note=60 velocity=0 time=0.15 20900.0
note_on channel=0 note=60 velocity=50 time=0.15 21050.0
note_on channel=0 note=67 velocity=50 time=0 21200.0
note_off channel=0 note=67 velocity=0 time=0.15 21200.0
note_off channel=0 note=60 velocity=0 time=0 21350.0
note_on channel=0 note=60 velocity=50 time=0.44999999999999996 21350.0
note_on channel=0 note=67 velocity=50 time=0 21800.0
note_off channel=0 note=67 velocity=0 time=0.15 21800.0
note_off channel=0 note=60 velocity=0 time=0 21950.0
note_on channel=0 note=60 velocity=50 time=0.44999999999999996 21950.0
note_on channel=0 note=67 velocity=50 time=0 22400.0
note_off channel=0 note=67 velocity=0 time=0.15 22400.0
note_off channel=0 note=60 velocity=0 time=0 22550.0
note_on channel=0 note=64 velocity=50 time=1.65 22550.0
note_on channel=0 note=67 velocity=50 time=0 24200.0
note_off channel=0 note=64 velocity=0 time=0.15 24200.0
note_off channel=0 note=67 velocity=0 time=0 24350.0
note_on channel=0 note=67 velocity=50 time=0.15 24350.0
note_on channel=0 note=64 velocity=50 time=0 24500.0
note_off channel=0 note=64 velocity=0 time=0.15 24500.0
note_off channel=0 note=67 velocity=0 time=0 24650.0
note_on channel=0 note=64 velocity=50 time=0.15 24650.0
note_on channel=0 note=67 velocity=50 time=0 24800.0
note_off channel=0 note=67 velocity=0 time=0.15 24800.0
note_off channel=0 note=64 velocity=0 time=0 24950.0
note_on channel=0 note=67 velocity=50 time=0.15 24950.0
note_on channel=0 note=64 velocity=50 time=0 25100.0
note_off channel=0 note=64 velocity=0 time=0.15 25100.0
note_off channel=0 note=67 velocity=0 time=0 25250.0
note_on channel=0 note=64 velocity=50 time=0.3 25250.0
note_off channel=0 note=64 velocity=0 time=0.15 25550.0
note_on channel=0 note=62 velocity=50 time=0.3 25700.0
note_on channel=0 note=67 velocity=50 time=0 26000.0
note_off channel=0 note=67 velocity=0 time=0.15 26000.0
note_off channel=0 note=62 velocity=0 time=0 26150.0
note_on channel=0 note=62 velocity=50 time=0.44999999999999996 26150.0
note_on channel=0 note=67 velocity=50 time=0 26600.0
note_off channel=0 note=67 velocity=0 time=0.15 26600.0
note_off channel=0 note=62 velocity=0 time=0 26750.0
note_on channel=0 note=67 velocity=50 time=0.15 26750.0
note_on channel=0 note=62 velocity=50 time=0 26900.0
note_off channel=0 note=62 velocity=0 time=0.15 26900.0
note_off channel=0 note=67 velocity=0 time=0 27050.0
note_on channel=0 note=62 velocity=50 time=0.15 27050.0
note_on channel=0 note=67 velocity=50 time=0 27200.0
note_off channel=0 note=62 velocity=0 time=0.15 27200.0
note_off channel=0 note=67 velocity=0 time=0 27350.0
note_on channel=0 note=67 velocity=50 time=0.15 27350.0
note_on channel=0 note=62 velocity=50 time=0 27500.0
note_off channel=0 note=62 velocity=0 time=0.15 27500.0
note_off channel=0 note=67 velocity=0 time=0 27650.0
note_on channel=0 note=67 velocity=50 time=0.3 27650.0
note_on channel=0 note=62 velocity=50 time=0 27950.0
note_off channel=0 note=62 velocity=0 time=0.15 27950.0
note_off channel=0 note=67 velocity=0 time=0 28100.0
note_on channel=0 note=64 velocity=50 time=0.3 28100.0
note_on channel=0 note=60 velocity=50 time=0 28400.0
note_off channel=0 note=64 velocity=0 time=0.15 28400.0
note_off channel=0 note=60 velocity=0 time=0 28550.0
note_on channel=0 note=64 velocity=50 time=0.15 28550.0
note_on channel=0 note=60 velocity=50 time=0 28700.0
note_off channel=0 note=60 velocity=0 time=0.15 28700.0
note_off channel=0 note=64 velocity=0 time=0 28850.0
note_on channel=0 note=60 velocity=50 time=0.15 28850.0
note_on channel=0 note=64 velocity=50 time=0 29000.0
note_off channel=0 note=64 velocity=0 time=0.15 29000.0
note_off channel=0 note=60 velocity=0 time=0 29150.0
note_on channel=0 note=64 velocity=50 time=0.15 29150.0
note_on channel=0 note=60 velocity=50 time=0 29300.0
note_off channel=0 note=64 velocity=0 time=0.15 29300.0
note_off channel=0 note=60 velocity=0 time=0 29450.0
note_on channel=0 note=64 velocity=50 time=0.3 29450.0
note_on channel=0 note=60 velocity=50 time=0 29750.0
note_off channel=0 note=60 velocity=0 time=0.15 29750.0
note_off channel=0 note=64 velocity=0 time=0 29900.0
note_on channel=0 note=65 velocity=50 time=0.3 29900.0
note_on channel=0 note=60 velocity=50 time=0 30200.0
note_off channel=0 note=60 velocity=0 time=0.15 30200.0
note_off channel=0 note=65 velocity=0 time=0 30350.0
note_on channel=0 note=65 velocity=50 time=0.44999999999999996 30350.0
note_on channel=0 note=60 velocity=50 time=0 30800.0
note_off channel=0 note=65 velocity=0 time=0.15 30800.0
note_off channel=0 note=60 velocity=0 time=0 30950.0
note_on channel=0 note=65 velocity=50 time=0.15 30950.0
note_on channel=0 note=60 velocity=50 time=0 31100.0
note_off channel=0 note=65 velocity=0 time=0.15 31100.0
note_off channel=0 note=60 velocity=0 time=0 31250.0
note_on channel=0 note=60 velocity=50 time=0.15 31250.0
note_on channel=0 note=65 velocity=50 time=0 31400.0
note_off channel=0 note=65 velocity=0 time=0.15 31400.0
note_off channel=0 note=60 velocity=0 time=0 31550.0
note_on channel=0 note=60 velocity=50 time=0.15 31550.0
note_on channel=0 note=65 velocity=50 time=0 31700.0
note_off channel=0 note=60 velocity=0 time=0.15 31700.0
note_off channel=0 note=65 velocity=0 time=0 31850.0
note_on channel=0 note=64 velocity=50 time=0.3 31850.0
note_on channel=0 note=60 velocity=50 time=0 32150.0
note_off channel=0 note=60 velocity=0 time=0.15 32150.0
note_off channel=0 note=64 velocity=0 time=0 32300.0
note_on channel=0 note=64 velocity=50 time=0.3 32300.0
note_on channel=0 note=60 velocity=50 time=0 32600.0
note_off channel=0 note=60 velocity=0 time=0.15 32600.0
note_off channel=0 note=64 velocity=0 time=0 32750.0
MetaMessage('end_of_track', time=0) 32750.0
key: si, c:(255, 0, 0) for 0.9s, time: 0
key: la#, c:(255, 0, 0) for 0.9s, time: 0
key: la, c:(255, 0, 0) for 0.9s, time: 0
key: sol#, c:(255, 0, 0) for 0.9s, time: 0
key: sol, c:(255, 0, 0) for 0.9s, time: 0
key: fa#, c:(255, 0, 0) for 0.9s, time: 0
key: fa, c:(255, 0, 0) for 0.9s, time: 0
key: mi, c:(255, 0, 0) for 0.9s, time: 0
key: re#, c:(255, 0, 0) for 0.9s, time: 0
key: re, c:(255, 0, 0) for 0.9s, time: 0
key: do#, c:(255, 0, 0) for 0.9s, time: 0
key: do, c:(255, 0, 0) for 0.9s, time: 0
end of si
end of la#
end of la
end of sol#
end of sol
end of fa#
end of fa
end of mi
end of re#
end of re
end of do#
end of do
key: re, c:(255, 255, 0) for 0.9s, time: 0
key: do#, c:(255, 255, 0) for 0.9s, time: 0
key: fa, c:(255, 255, 0) for 0.9s, time: 0
key: mi, c:(255, 255, 0) for 0.9s, time: 0
key: re#, c:(255, 255, 0) for 0.9s, time: 0
key: sol, c:(255, 255, 0) for 0.9s, time: 0
key: sol#, c:(255, 255, 0) for 0.9s, time: 0
key: la, c:(255, 255, 0) for 0.9s, time: 0
key: fa#, c:(255, 255, 0) for 0.9s, time: 0
key: si, c:(255, 255, 0) for 0.9s, time: 0
key: do, c:(255, 255, 0) for 0.9s, time: 0
key: la#, c:(255, 255, 0) for 0.9s, time: 0
end of re
end of do#
end of fa
end of mi
end of re#
end of sol
end of sol#
end of la
end of fa#
end of si
end of do
end of la#
key: sol#, c:(0, 255, 0) for 0.9s, time: 0
key: do#, c:(0, 255, 0) for 0.9s, time: 0
key: fa#, c:(0, 255, 0) for 0.9s, time: 0
key: re#, c:(0, 255, 0) for 0.9s, time: 0
key: la, c:(0, 255, 0) for 0.9s, time: 0
key: fa, c:(0, 255, 0) for 0.9s, time: 0
key: do, c:(0, 255, 0) for 0.9s, time: 0
key: mi, c:(0, 255, 0) for 0.9s, time: 0
key: la#, c:(0, 255, 0) for 0.9s, time: 0
key: si, c:(0, 255, 0) for 0.9s, time: 0
key: sol, c:(0, 255, 0) for 0.9s, time: 0
key: re, c:(0, 255, 0) for 0.9s, time: 0
end of sol#
end of do#
end of fa#
end of re#
end of la
end of fa
end of do
end of mi
end of la#
end of si
end of sol
end of re
key: do, c:(255, 0, 0) for 0.15s, time: 3500
end of do
key: do, c:(255, 0, 0) for 0.15s, time: 3800.0
end of do
key: sol, c:(255, 0, 0) for 0.15s, time: 4250.0
end of sol
key: mi, c:(255, 0, 0) for 0.15s, time: 5300.0
end of mi
key: re, c:(255, 0, 0) for 0.15s, time: 5900.0
end of re
key: do, c:(255, 0, 0) for 0.15s, time: 6200.0
end of do
key: do, c:(255, 0, 0) for 0.15s, time: 6500.0
end of do
key: sol, c:(255, 0, 0) for 0.15s, time: 6800.0
end of sol
key: mi, c:(255, 0, 0) for 0.15s, time: 7700.0
end of mi
key: re, c:(255, 0, 0) for 0.15s, time: 8300.0
end of re
key: do, c:(255, 0, 0) for 0.15s, time: 8600.0
end of do
key: do, c:(255, 0, 0) for 0.15s, time: 8900.0
end of do
key: la, c:(255, 0, 0) for 0.15s, time: 9200.0
end of la
key: mi, c:(255, 0, 0) for 0.15s, time: 10100.0
end of mi
key: re, c:(255, 0, 0) for 0.15s, time: 10700.0
end of re
key: do, c:(255, 0, 0) for 0.15s, time: 11000.0
end of do
key: do, c:(255, 0, 0) for 0.15s, time: 11300.0
end of do
key: do, c:(255, 0, 0) for 0.15s, time: 11600.0
key: fa, c:(255, 0, 0) for 0.0s, time: 11750.0
end of fa
end of do
key: fa, c:(255, 0, 0) for 0.15s, time: 12200.0
end of fa
key: fa, c:(255, 0, 0) for 0.15s, time: 12800.0
end of fa
key: do, c:(255, 0, 0) for 0.15s, time: 13400.0
end of do
key: do, c:(255, 0, 0) for 0.15s, time: 13700.0
end of do
key: do, c:(255, 0, 0) for 0.15s, time: 14000.0
key: sol, c:(255, 0, 0) for 0.0s, time: 14150.0
end of sol
end of do
key: mi, c:(255, 0, 0) for 0.15s, time: 14900.0
key: do, c:(255, 0, 0) for 0.0s, time: 15050.0
end of do
end of mi
key: re, c:(255, 0, 0) for 0.15s, time: 15500.0
end of re
key: do, c:(255, 0, 0) for 0.15s, time: 15800.0
end of do
key: do, c:(255, 0, 0) for 0.15s, time: 16100.0
end of do
key: sol, c:(255, 0, 0) for 0.15s, time: 16400.0
key: re, c:(255, 0, 0) for 0.0s, time: 16550.0
end of re
end of sol
key: mi, c:(255, 0, 0) for 0.15s, time: 17300.0
end of mi
key: re, c:(255, 0, 0) for 0.15s, time: 17900.0
end of re
key: do, c:(255, 0, 0) for 0.15s, time: 18200.0
end of do
key: do, c:(255, 0, 0) for 0.15s, time: 18500.0
end of do
key: mi, c:(255, 0, 0) for 0.15s, time: 18800.0
key: la, c:(255, 0, 0) for 0.0s, time: 18950.0
end of la
end of mi
key: mi, c:(255, 0, 0) for 0.15s, time: 19700.0
end of mi
key: re, c:(255, 0, 0) for 0.15s, time: 20300.0
end of re
key: do, c:(255, 0, 0) for 0.15s, time: 20600.0
end of do
key: do, c:(255, 0, 0) for 0.15s, time: 20900.0
end of do
key: sol, c:(255, 0, 0) for 0.15s, time: 21200.0
key: do, c:(255, 0, 0) for 0.0s, time: 21350.0
end of do
end of sol
key: sol, c:(255, 0, 0) for 0.15s, time: 21800.0
key: do, c:(255, 0, 0) for 0.0s, time: 21950.0
end of do
end of sol
key: sol, c:(255, 0, 0) for 0.15s, time: 22400.0
key: do, c:(255, 0, 0) for 0.0s, time: 22550.0
end of do
end of sol
key: mi, c:(255, 0, 0) for 0.15s, time: 24200.0
key: sol, c:(255, 0, 0) for 0.0s, time: 24350.0
end of sol
end of mi
key: mi, c:(255, 0, 0) for 0.15s, time: 24500.0
key: sol, c:(255, 0, 0) for 0.0s, time: 24650.0
end of mi
end of sol
key: sol, c:(255, 0, 0) for 0.15s, time: 24800.0
key: mi, c:(255, 0, 0) for 0.0s, time: 24950.0
end of mi
end of sol
key: mi, c:(255, 0, 0) for 0.15s, time: 25100.0
key: sol, c:(255, 0, 0) for 0.0s, time: 25250.0
end of sol
end of mi
key: mi, c:(255, 0, 0) for 0.15s, time: 25550.0
end of mi
key: sol, c:(255, 0, 0) for 0.15s, time: 26000.0
key: re, c:(255, 0, 0) for 0.0s, time: 26150.0
end of re
end of sol
key: sol, c:(255, 0, 0) for 0.15s, time: 26600.0
key: re, c:(255, 0, 0) for 0.0s, time: 26750.0
end of re
end of sol
key: re, c:(255, 0, 0) for 0.15s, time: 26900.0
key: sol, c:(255, 0, 0) for 0.0s, time: 27050.0
end of re
end of sol
key: re, c:(255, 0, 0) for 0.15s, time: 27200.0
key: sol, c:(255, 0, 0) for 0.0s, time: 27350.0
end of sol
end of re
key: re, c:(255, 0, 0) for 0.15s, time: 27500.0
key: sol, c:(255, 0, 0) for 0.0s, time: 27650.0
end of sol
end of re
key: re, c:(255, 0, 0) for 0.15s, time: 27950.0
key: sol, c:(255, 0, 0) for 0.0s, time: 28100.0
end of sol
end of re
key: mi, c:(255, 0, 0) for 0.15s, time: 28400.0
key: do, c:(255, 0, 0) for 0.0s, time: 28550.0
end of do
end of mi
key: do, c:(255, 0, 0) for 0.15s, time: 28700.0
key: mi, c:(255, 0, 0) for 0.0s, time: 28850.0
end of do
end of mi
key: mi, c:(255, 0, 0) for 0.15s, time: 29000.0
key: do, c:(255, 0, 0) for 0.0s, time: 29150.0
end of do
end of mi
key: mi, c:(255, 0, 0) for 0.15s, time: 29300.0
key: do, c:(255, 0, 0) for 0.0s, time: 29450.0
end of mi
end of do
key: do, c:(255, 0, 0) for 0.15s, time: 29750.0
key: mi, c:(255, 0, 0) for 0.0s, time: 29900.0
end of mi
end of do
key: do, c:(255, 0, 0) for 0.15s, time: 30200.0
key: fa, c:(255, 0, 0) for 0.0s, time: 30350.0
end of do
end of fa
key: fa, c:(255, 0, 0) for 0.15s, time: 30800.0
key: do, c:(255, 0, 0) for 0.0s, time: 30950.0
end of do
end of fa
key: fa, c:(255, 0, 0) for 0.15s, time: 31100.0
key: do, c:(255, 0, 0) for 0.0s, time: 31250.0
end of do
end of fa
key: fa, c:(255, 0, 0) for 0.15s, time: 31400.0
key: do, c:(255, 0, 0) for 0.0s, time: 31550.0
end of fa
end of do
key: do, c:(255, 0, 0) for 0.15s, time: 31700.0
key: fa, c:(255, 0, 0) for 0.0s, time: 31850.0
end of fa
end of do
key: do, c:(255, 0, 0) for 0.15s, time: 32150.0
key: mi, c:(255, 0, 0) for 0.0s, time: 32300.0
end of mi
end of do
key: do, c:(255, 0, 0) for 0.15s, time: 32600.0
key: mi, c:(255, 0, 0) for 0.0s, time: 32750.0
end of mi
end of do
+449
View File
@@ -0,0 +1,449 @@
MetaMessage('time_signature', numerator=4, denominator=4, clocks_per_click=24, notated_32nd_notes_per_beat=8, time=0) 3500
MetaMessage('set_tempo', tempo=600000, time=0) 3500
MetaMessage('track_name', name='Elec. Piano (Classic)', time=0) 3500
program_change channel=0 program=0 time=0 3500
note_on channel=0 note=60 velocity=50 time=0 3500
note_off channel=0 note=60 velocity=0 time=0.15 3500
note_on channel=0 note=60 velocity=50 time=0.15 3650.0
note_off channel=0 note=60 velocity=0 time=0.15 3800.0
note_on channel=0 note=67 velocity=50 time=0.3 3950.0
note_off channel=0 note=67 velocity=0 time=0.15 4250.0
note_on channel=0 note=64 velocity=50 time=0.8999999999999999 4400.0
note_off channel=0 note=64 velocity=0 time=0.15 5300.0
note_on channel=0 note=62 velocity=50 time=0.44999999999999996 5450.0
note_off channel=0 note=62 velocity=0 time=0.15 5900.0
note_on channel=0 note=60 velocity=50 time=0.15 6050.0
note_off channel=0 note=60 velocity=0 time=0.15 6200.0
note_on channel=0 note=60 velocity=50 time=0.15 6350.0
note_off channel=0 note=60 velocity=0 time=0.15 6500.0
note_on channel=0 note=67 velocity=50 time=0.15 6650.0
note_off channel=0 note=67 velocity=0 time=0.15 6800.0
note_on channel=0 note=64 velocity=50 time=0.7499999999999999 6950.0
note_off channel=0 note=64 velocity=0 time=0.15 7700.0
note_on channel=0 note=62 velocity=50 time=0.44999999999999996 7850.0
note_off channel=0 note=62 velocity=0 time=0.15 8300.0
note_on channel=0 note=60 velocity=50 time=0.15 8450.0
note_off channel=0 note=60 velocity=0 time=0.15 8600.0
note_on channel=0 note=60 velocity=50 time=0.15 8750.0
note_off channel=0 note=60 velocity=0 time=0.15 8900.0
note_on channel=0 note=69 velocity=50 time=0.15 9050.0
note_off channel=0 note=69 velocity=0 time=0.15 9200.0
note_on channel=0 note=64 velocity=50 time=0.7499999999999999 9350.0
note_off channel=0 note=64 velocity=0 time=0.15 10100.0
note_on channel=0 note=62 velocity=50 time=0.44999999999999996 10250.0
note_off channel=0 note=62 velocity=0 time=0.15 10700.0
note_on channel=0 note=60 velocity=50 time=0.15 10850.0
note_off channel=0 note=60 velocity=0 time=0.15 11000.0
note_on channel=0 note=60 velocity=50 time=0.15 11150.0
note_off channel=0 note=60 velocity=0 time=0.15 11300.0
note_on channel=0 note=60 velocity=50 time=0.15 11450.0
note_on channel=0 note=65 velocity=50 time=0 11600.0
note_off channel=0 note=60 velocity=0 time=0.15 11600.0
note_off channel=0 note=65 velocity=0 time=0 11750.0
note_on channel=0 note=65 velocity=50 time=0.44999999999999996 11750.0
note_off channel=0 note=65 velocity=0 time=0.15 12200.0
note_on channel=0 note=65 velocity=50 time=0.44999999999999996 12350.0
note_off channel=0 note=65 velocity=0 time=0.15 12800.0
note_on channel=0 note=60 velocity=50 time=0.44999999999999996 12950.0
note_off channel=0 note=60 velocity=0 time=0.15 13400.0
note_on channel=0 note=60 velocity=50 time=0.15 13550.0
note_off channel=0 note=60 velocity=0 time=0.15 13700.0
note_on channel=0 note=60 velocity=50 time=0.15 13850.0
note_on channel=0 note=67 velocity=50 time=0 14000.0
note_off channel=0 note=60 velocity=0 time=0.15 14000.0
note_off channel=0 note=67 velocity=0 time=0 14150.0
note_on channel=0 note=60 velocity=50 time=0.7499999999999999 14150.0
note_on channel=0 note=64 velocity=50 time=0 14900.0
note_off channel=0 note=64 velocity=0 time=0.15 14900.0
note_off channel=0 note=60 velocity=0 time=0 15050.0
note_on channel=0 note=62 velocity=50 time=0.44999999999999996 15050.0
note_off channel=0 note=62 velocity=0 time=0.15 15500.0
note_on channel=0 note=60 velocity=50 time=0.15 15650.0
note_off channel=0 note=60 velocity=0 time=0.15 15800.0
note_on channel=0 note=60 velocity=50 time=0.15 15950.0
note_off channel=0 note=60 velocity=0 time=0.15 16100.0
note_on channel=0 note=62 velocity=50 time=0.15 16250.0
note_on channel=0 note=67 velocity=50 time=0 16400.0
note_off channel=0 note=67 velocity=0 time=0.15 16400.0
note_off channel=0 note=62 velocity=0 time=0 16550.0
note_on channel=0 note=64 velocity=50 time=0.7499999999999999 16550.0
note_off channel=0 note=64 velocity=0 time=0.15 17300.0
note_on channel=0 note=62 velocity=50 time=0.44999999999999996 17450.0
note_off channel=0 note=62 velocity=0 time=0.15 17900.0
note_on channel=0 note=60 velocity=50 time=0.15 18050.0
note_off channel=0 note=60 velocity=0 time=0.15 18200.0
note_on channel=0 note=60 velocity=50 time=0.15 18350.0
note_off channel=0 note=60 velocity=0 time=0.15 18500.0
note_on channel=0 note=69 velocity=50 time=0.15 18650.0
note_on channel=0 note=64 velocity=50 time=0 18800.0
note_off channel=0 note=64 velocity=0 time=0.15 18800.0
note_off channel=0 note=69 velocity=0 time=0 18950.0
note_on channel=0 note=64 velocity=50 time=0.7499999999999999 18950.0
note_off channel=0 note=64 velocity=0 time=0.15 19700.0
note_on channel=0 note=62 velocity=50 time=0.44999999999999996 19850.0
note_off channel=0 note=62 velocity=0 time=0.15 20300.0
note_on channel=0 note=60 velocity=50 time=0.15 20450.0
note_off channel=0 note=60 velocity=0 time=0.15 20600.0
note_on channel=0 note=60 velocity=50 time=0.15 20750.0
note_off channel=0 note=60 velocity=0 time=0.15 20900.0
note_on channel=0 note=60 velocity=50 time=0.15 21050.0
note_on channel=0 note=67 velocity=50 time=0 21200.0
note_off channel=0 note=67 velocity=0 time=0.15 21200.0
note_off channel=0 note=60 velocity=0 time=0 21350.0
note_on channel=0 note=60 velocity=50 time=0.44999999999999996 21350.0
note_on channel=0 note=67 velocity=50 time=0 21800.0
note_off channel=0 note=67 velocity=0 time=0.15 21800.0
note_off channel=0 note=60 velocity=0 time=0 21950.0
note_on channel=0 note=60 velocity=50 time=0.44999999999999996 21950.0
note_on channel=0 note=67 velocity=50 time=0 22400.0
note_off channel=0 note=67 velocity=0 time=0.15 22400.0
note_off channel=0 note=60 velocity=0 time=0 22550.0
note_on channel=0 note=64 velocity=50 time=1.65 22550.0
note_on channel=0 note=67 velocity=50 time=0 24200.0
note_off channel=0 note=64 velocity=0 time=0.15 24200.0
note_off channel=0 note=67 velocity=0 time=0 24350.0
note_on channel=0 note=67 velocity=50 time=0.15 24350.0
note_on channel=0 note=64 velocity=50 time=0 24500.0
note_off channel=0 note=64 velocity=0 time=0.15 24500.0
note_off channel=0 note=67 velocity=0 time=0 24650.0
note_on channel=0 note=64 velocity=50 time=0.15 24650.0
note_on channel=0 note=67 velocity=50 time=0 24800.0
note_off channel=0 note=67 velocity=0 time=0.15 24800.0
note_off channel=0 note=64 velocity=0 time=0 24950.0
note_on channel=0 note=67 velocity=50 time=0.15 24950.0
note_on channel=0 note=64 velocity=50 time=0 25100.0
note_off channel=0 note=64 velocity=0 time=0.15 25100.0
note_off channel=0 note=67 velocity=0 time=0 25250.0
note_on channel=0 note=64 velocity=50 time=0.3 25250.0
note_off channel=0 note=64 velocity=0 time=0.15 25550.0
note_on channel=0 note=62 velocity=50 time=0.3 25700.0
note_on channel=0 note=67 velocity=50 time=0 26000.0
note_off channel=0 note=67 velocity=0 time=0.15 26000.0
note_off channel=0 note=62 velocity=0 time=0 26150.0
note_on channel=0 note=62 velocity=50 time=0.44999999999999996 26150.0
note_on channel=0 note=67 velocity=50 time=0 26600.0
note_off channel=0 note=67 velocity=0 time=0.15 26600.0
note_off channel=0 note=62 velocity=0 time=0 26750.0
note_on channel=0 note=67 velocity=50 time=0.15 26750.0
note_on channel=0 note=62 velocity=50 time=0 26900.0
note_off channel=0 note=62 velocity=0 time=0.15 26900.0
note_off channel=0 note=67 velocity=0 time=0 27050.0
note_on channel=0 note=62 velocity=50 time=0.15 27050.0
note_on channel=0 note=67 velocity=50 time=0 27200.0
note_off channel=0 note=62 velocity=0 time=0.15 27200.0
note_off channel=0 note=67 velocity=0 time=0 27350.0
note_on channel=0 note=67 velocity=50 time=0.15 27350.0
note_on channel=0 note=62 velocity=50 time=0 27500.0
note_off channel=0 note=62 velocity=0 time=0.15 27500.0
note_off channel=0 note=67 velocity=0 time=0 27650.0
note_on channel=0 note=67 velocity=50 time=0.3 27650.0
note_on channel=0 note=62 velocity=50 time=0 27950.0
note_off channel=0 note=62 velocity=0 time=0.15 27950.0
note_off channel=0 note=67 velocity=0 time=0 28100.0
note_on channel=0 note=64 velocity=50 time=0.3 28100.0
note_on channel=0 note=60 velocity=50 time=0 28400.0
note_off channel=0 note=64 velocity=0 time=0.15 28400.0
note_off channel=0 note=60 velocity=0 time=0 28550.0
note_on channel=0 note=64 velocity=50 time=0.15 28550.0
note_on channel=0 note=60 velocity=50 time=0 28700.0
note_off channel=0 note=60 velocity=0 time=0.15 28700.0
note_off channel=0 note=64 velocity=0 time=0 28850.0
note_on channel=0 note=60 velocity=50 time=0.15 28850.0
note_on channel=0 note=64 velocity=50 time=0 29000.0
note_off channel=0 note=64 velocity=0 time=0.15 29000.0
note_off channel=0 note=60 velocity=0 time=0 29150.0
note_on channel=0 note=64 velocity=50 time=0.15 29150.0
note_on channel=0 note=60 velocity=50 time=0 29300.0
note_off channel=0 note=64 velocity=0 time=0.15 29300.0
note_off channel=0 note=60 velocity=0 time=0 29450.0
note_on channel=0 note=64 velocity=50 time=0.3 29450.0
note_on channel=0 note=60 velocity=50 time=0 29750.0
note_off channel=0 note=60 velocity=0 time=0.15 29750.0
note_off channel=0 note=64 velocity=0 time=0 29900.0
note_on channel=0 note=65 velocity=50 time=0.3 29900.0
note_on channel=0 note=60 velocity=50 time=0 30200.0
note_off channel=0 note=60 velocity=0 time=0.15 30200.0
note_off channel=0 note=65 velocity=0 time=0 30350.0
note_on channel=0 note=65 velocity=50 time=0.44999999999999996 30350.0
note_on channel=0 note=60 velocity=50 time=0 30800.0
note_off channel=0 note=65 velocity=0 time=0.15 30800.0
note_off channel=0 note=60 velocity=0 time=0 30950.0
note_on channel=0 note=65 velocity=50 time=0.15 30950.0
note_on channel=0 note=60 velocity=50 time=0 31100.0
note_off channel=0 note=65 velocity=0 time=0.15 31100.0
note_off channel=0 note=60 velocity=0 time=0 31250.0
note_on channel=0 note=60 velocity=50 time=0.15 31250.0
note_on channel=0 note=65 velocity=50 time=0 31400.0
note_off channel=0 note=65 velocity=0 time=0.15 31400.0
note_off channel=0 note=60 velocity=0 time=0 31550.0
note_on channel=0 note=60 velocity=50 time=0.15 31550.0
note_on channel=0 note=65 velocity=50 time=0 31700.0
note_off channel=0 note=60 velocity=0 time=0.15 31700.0
note_off channel=0 note=65 velocity=0 time=0 31850.0
note_on channel=0 note=64 velocity=50 time=0.3 31850.0
note_on channel=0 note=60 velocity=50 time=0 32150.0
note_off channel=0 note=60 velocity=0 time=0.15 32150.0
note_off channel=0 note=64 velocity=0 time=0 32300.0
note_on channel=0 note=64 velocity=50 time=0.3 32300.0
note_on channel=0 note=60 velocity=50 time=0 32600.0
note_off channel=0 note=60 velocity=0 time=0.15 32600.0
note_off channel=0 note=64 velocity=0 time=0 32750.0
MetaMessage('end_of_track', time=0) 32750.0
key: si, c:(255, 0, 0) for 0.9s, time: 0
key: la#, c:(255, 0, 0) for 0.9s, time: 0
key: la, c:(255, 0, 0) for 0.9s, time: 0
key: sol#, c:(255, 0, 0) for 0.9s, time: 0
key: sol, c:(255, 0, 0) for 0.9s, time: 0
key: fa#, c:(255, 0, 0) for 0.9s, time: 0
key: fa, c:(255, 0, 0) for 0.9s, time: 0
key: mi, c:(255, 0, 0) for 0.9s, time: 0
key: re#, c:(255, 0, 0) for 0.9s, time: 0
key: re, c:(255, 0, 0) for 0.9s, time: 0
key: do#, c:(255, 0, 0) for 0.9s, time: 0
key: do, c:(255, 0, 0) for 0.9s, time: 0
end of si
end of la#
end of la
end of sol#
end of sol
end of fa#
end of fa
end of mi
end of re#
end of re
end of do#
end of do
key: mi, c:(255, 255, 0) for 0.9s, time: 0
key: re#, c:(255, 255, 0) for 0.9s, time: 0
key: sol, c:(255, 255, 0) for 0.9s, time: 0
key: do#, c:(255, 255, 0) for 0.9s, time: 0
key: do, c:(255, 255, 0) for 0.9s, time: 0
key: re, c:(255, 255, 0) for 0.9s, time: 0
key: la, c:(255, 255, 0) for 0.9s, time: 0
key: fa#, c:(255, 255, 0) for 0.9s, time: 0
key: sol#, c:(255, 255, 0) for 0.9s, time: 0
key: la#, c:(255, 255, 0) for 0.9s, time: 0
key: fa, c:(255, 255, 0) for 0.9s, time: 0
key: si, c:(255, 255, 0) for 0.9s, time: 0
end of mi
end of re#
end of sol
end of do#
end of do
end of re
end of la
end of fa#
end of sol#
end of la#
end of fa
end of si
key: re#, c:(0, 255, 0) for 0.9s, time: 0
key: fa#, c:(0, 255, 0) for 0.9s, time: 0
key: do#, c:(0, 255, 0) for 0.9s, time: 0
key: fa, c:(0, 255, 0) for 0.9s, time: 0
key: do, c:(0, 255, 0) for 0.9s, time: 0
key: mi, c:(0, 255, 0) for 0.9s, time: 0
key: sol#, c:(0, 255, 0) for 0.9s, time: 0
key: sol, c:(0, 255, 0) for 0.9s, time: 0
key: la#, c:(0, 255, 0) for 0.9s, time: 0
key: la, c:(0, 255, 0) for 0.9s, time: 0
key: si, c:(0, 255, 0) for 0.9s, time: 0
key: re, c:(0, 255, 0) for 0.9s, time: 0
end of re#
end of fa#
end of do#
end of fa
end of do
end of mi
end of sol#
end of sol
end of la#
end of la
end of si
end of re
key: do, c:(255, 0, 0) for 0.15s, time: 3650.0
end of do
key: do, c:(255, 0, 0) for 0.15s, time: 3950.0
end of do
key: sol, c:(255, 0, 0) for 0.15s, time: 4400.0
end of sol
key: mi, c:(255, 0, 0) for 0.15s, time: 5450.0
end of mi
key: re, c:(255, 0, 0) for 0.15s, time: 6050.0
end of re
key: do, c:(255, 0, 0) for 0.15s, time: 6350.0
end of do
key: do, c:(255, 0, 0) for 0.15s, time: 6650.0
end of do
key: sol, c:(255, 0, 0) for 0.15s, time: 6950.0
end of sol
key: mi, c:(255, 0, 0) for 0.15s, time: 7850.0
end of mi
key: re, c:(255, 0, 0) for 0.15s, time: 8450.0
end of re
key: do, c:(255, 0, 0) for 0.15s, time: 8750.0
end of do
key: do, c:(255, 0, 0) for 0.15s, time: 9050.0
end of do
key: la, c:(255, 0, 0) for 0.15s, time: 9350.0
end of la
key: mi, c:(255, 0, 0) for 0.15s, time: 10250.0
end of mi
key: re, c:(255, 0, 0) for 0.15s, time: 10850.0
end of re
key: do, c:(255, 0, 0) for 0.15s, time: 11150.0
end of do
key: do, c:(255, 0, 0) for 0.15s, time: 11450.0
end of do
key: do, c:(255, 0, 0) for 0.15s, time: 11750.0
key: fa, c:(255, 0, 0) for 0.15s, time: 11750.0
end of do
end of fa
key: fa, c:(255, 0, 0) for 0.15s, time: 12350.0
end of fa
key: fa, c:(255, 0, 0) for 0.15s, time: 12950.0
end of fa
key: do, c:(255, 0, 0) for 0.15s, time: 13550.0
end of do
key: do, c:(255, 0, 0) for 0.15s, time: 13850.0
end of do
key: sol, c:(255, 0, 0) for 0.15s, time: 14150.0
key: do, c:(255, 0, 0) for 0.15s, time: 14150.0
end of sol
end of do
key: do, c:(255, 0, 0) for 0.15s, time: 15050.0
key: mi, c:(255, 0, 0) for 0.15s, time: 15050.0
end of do
end of mi
key: re, c:(255, 0, 0) for 0.15s, time: 15650.0
end of re
key: do, c:(255, 0, 0) for 0.15s, time: 15950.0
end of do
key: do, c:(255, 0, 0) for 0.15s, time: 16250.0
end of do
key: sol, c:(255, 0, 0) for 0.15s, time: 16550.0
key: re, c:(255, 0, 0) for 0.15s, time: 16550.0
end of sol
end of re
key: mi, c:(255, 0, 0) for 0.15s, time: 17450.0
end of mi
key: re, c:(255, 0, 0) for 0.15s, time: 18050.0
end of re
key: do, c:(255, 0, 0) for 0.15s, time: 18350.0
end of do
key: do, c:(255, 0, 0) for 0.15s, time: 18650.0
end of do
key: la, c:(255, 0, 0) for 0.15s, time: 18950.0
key: mi, c:(255, 0, 0) for 0.15s, time: 18950.0
end of la
end of mi
key: mi, c:(255, 0, 0) for 0.15s, time: 19850.0
end of mi
key: re, c:(255, 0, 0) for 0.15s, time: 20450.0
end of re
key: do, c:(255, 0, 0) for 0.15s, time: 20750.0
end of do
key: do, c:(255, 0, 0) for 0.15s, time: 21050.0
end of do
key: sol, c:(255, 0, 0) for 0.15s, time: 21350.0
key: do, c:(255, 0, 0) for 0.15s, time: 21350.0
end of sol
end of do
key: do, c:(255, 0, 0) for 0.15s, time: 21950.0
key: sol, c:(255, 0, 0) for 0.15s, time: 21950.0
end of do
end of sol
key: sol, c:(255, 0, 0) for 0.15s, time: 22550.0
key: do, c:(255, 0, 0) for 0.15s, time: 22550.0
end of sol
end of do
key: sol, c:(255, 0, 0) for 0.15s, time: 24350.0
key: mi, c:(255, 0, 0) for 0.15s, time: 24350.0
end of sol
end of mi
key: sol, c:(255, 0, 0) for 0.15s, time: 24650.0
key: mi, c:(255, 0, 0) for 0.15s, time: 24650.0
end of sol
end of mi
key: sol, c:(255, 0, 0) for 0.15s, time: 24950.0
key: mi, c:(255, 0, 0) for 0.15s, time: 24950.0
end of sol
end of mi
key: mi, c:(255, 0, 0) for 0.15s, time: 25250.0
key: sol, c:(255, 0, 0) for 0.15s, time: 25250.0
end of mi
end of sol
key: mi, c:(255, 0, 0) for 0.15s, time: 25700.0
end of mi
key: re, c:(255, 0, 0) for 0.15s, time: 26150.0
key: sol, c:(255, 0, 0) for 0.15s, time: 26150.0
end of re
end of sol
key: sol, c:(255, 0, 0) for 0.15s, time: 26750.0
key: re, c:(255, 0, 0) for 0.15s, time: 26750.0
end of sol
end of re
key: sol, c:(255, 0, 0) for 0.15s, time: 27050.0
key: re, c:(255, 0, 0) for 0.15s, time: 27050.0
end of sol
end of re
key: sol, c:(255, 0, 0) for 0.15s, time: 27350.0
key: re, c:(255, 0, 0) for 0.15s, time: 27350.0
end of sol
end of re
key: sol, c:(255, 0, 0) for 0.15s, time: 27650.0
key: re, c:(255, 0, 0) for 0.15s, time: 27650.0
end of sol
end of re
key: sol, c:(255, 0, 0) for 0.15s, time: 28100.0
key: re, c:(255, 0, 0) for 0.15s, time: 28100.0
end of sol
end of re
key: mi, c:(255, 0, 0) for 0.15s, time: 28550.0
key: do, c:(255, 0, 0) for 0.15s, time: 28550.0
end of mi
end of do
key: mi, c:(255, 0, 0) for 0.15s, time: 28850.0
key: do, c:(255, 0, 0) for 0.15s, time: 28850.0
end of mi
end of do
key: do, c:(255, 0, 0) for 0.15s, time: 29150.0
key: mi, c:(255, 0, 0) for 0.15s, time: 29150.0
end of do
end of mi
key: do, c:(255, 0, 0) for 0.15s, time: 29450.0
key: mi, c:(255, 0, 0) for 0.15s, time: 29450.0
end of do
end of mi
key: do, c:(255, 0, 0) for 0.15s, time: 29900.0
key: mi, c:(255, 0, 0) for 0.15s, time: 29900.0
end of do
end of mi
key: do, c:(255, 0, 0) for 0.15s, time: 30350.0
key: fa, c:(255, 0, 0) for 0.15s, time: 30350.0
end of do
end of fa
key: fa, c:(255, 0, 0) for 0.15s, time: 30950.0
key: do, c:(255, 0, 0) for 0.15s, time: 30950.0
end of fa
end of do
key: do, c:(255, 0, 0) for 0.15s, time: 31250.0
key: fa, c:(255, 0, 0) for 0.15s, time: 31250.0
end of do
end of fa
key: fa, c:(255, 0, 0) for 0.15s, time: 31550.0
key: do, c:(255, 0, 0) for 0.15s, time: 31550.0
end of fa
end of do
key: do, c:(255, 0, 0) for 0.15s, time: 31850.0
key: fa, c:(255, 0, 0) for 0.15s, time: 31850.0
end of do
end of fa
key: mi, c:(255, 0, 0) for 0.15s, time: 32300.0
key: do, c:(255, 0, 0) for 0.15s, time: 32300.0
end of mi
end of do
key: do, c:(255, 0, 0) for 0.15s, time: 32750.0
key: mi, c:(255, 0, 0) for 0.15s, time: 32750.0
end of do
end of mi
+15 -7
View File
@@ -1,3 +1,4 @@
from xmlrpc.client import TRANSPORT_ERROR
from chroma_case.Partition import Partition
from chroma_case.Note import Note
import asyncio
@@ -6,6 +7,11 @@ from mido import MidiFile
import board, neopixel
# on octave is 12
OCTAVE = 5
OCTAVE_AMOUNT_KEYS = 12
TRANSPOSE_AMOUNT = OCTAVE_AMOUNT_KEYS * OCTAVE
pixels = neopixel.NeoPixel(board.D18, 20, brightness=0.01)
notePixels = { 'si': [19],
@@ -80,7 +86,7 @@ def midi_key_my_key(midi_key):
keys.reverse()
return keys[midi_key - 60]
return keys[midi_key - TRANSPOSE_AMOUNT]
@@ -99,6 +105,7 @@ async def main():
for msg in MidiFile(sys.argv[1]):
d = msg.dict()
print(msg, s)
s += d['time'] * 1000
if d["type"] == "note_on":
prev_note_on[d["note"]] = 0
if d["note"] in notes_on:
@@ -106,8 +113,7 @@ async def main():
notes_on[d["note"]] = s # 0
if d["type"] == "note_off":
#duration = s - notes_on[d["note"]]
duration = d["time"] * 1000
notes_on[d["note"]] = s # 500
duration = s - notes_on[d["note"]]
"""notes.append(Note(
s - min(s - prev_note_on[d["note"]], 500),
{
@@ -117,12 +123,14 @@ async def main():
"announce": True
}
))"""
notes.append(Note(s, {"time": s, "duration": duration - 0, "color": default_color, "key": midi_key_my_key(d["note"])}))
note_start = notes_on[d["note"]]
notes.append(Note(note_start, {"time": note_start, "duration": duration - 10, "color": default_color, "key": midi_key_my_key(d["note"])}))
notes_on[d["note"]] = s # 500
s += d['time'] * 1000
starting = []
for i in notePixels.keys():
starting += [
Note(000, {"duration": default_duration, "color": default_color, "key": i, "time": 0}),
@@ -134,7 +142,7 @@ async def main():
starting + notes
)
await p.play(printing)
await p.play(to_chroma_case)
return 0
+131
View File
@@ -0,0 +1,131 @@
from chroma_case.Partition import Partition
from chroma_case.Note import Note
import asyncio
import sys
from mido import MidiFile
import board, neopixel
pixels = neopixel.NeoPixel(board.D18, 20, brightness=0.1)
notePixels = { 'si': [0, 1],
'la#': [2, 3],
'la': [4, 5],
'sol#':[6],
'sol':[7, 8, 9],
'fa#':[10],
'fa':[11, 12, 13],
'mi':[14, 15, 16],
're#':[17],
're':[18, 19],
'do#':[],
'do':[]}
notePixels = { 'si': [19],
'la#': [18],
'la': [15, 16, 17],
'sol#':[14],
'sol':[11, 12, 13],
'fa#':[10],
'fa':[8, 9],
'mi':[6, 7],
're#':[4, 5],
're':[2, 3],
'do#':[1],
'do':[0]}
def hue_to_rgb(t1, t2, hue):
if hue < 0: hue += 6
if hue >= 6: hue -= 6
if hue < 1: return (t2 - t1) * hue + t1
if hue < 3: return t2
if hue < 4: return (t2 - t1) * (4 - hue) + t1
return t1
def hsl_to_rgb(hue, sat, light):
hue /= 60
if light <= 0.5:
t2 = light * (sat + 1)
else:
t2 = light + sat - (light * sat)
t1 = light * 2 - t2
r = hue_to_rgb(t1, t2, hue + 2) * 255
g = hue_to_rgb(t1, t2, hue) * 255
b = hue_to_rgb(t1, t2, hue - 2) * 255
return [round(r), round(g), round(b)]
async def to_chroma_case(data):
global pixels
hsl_starting_color = [190, 1, 0]
colored_pixels = notePixels[data["key"].lower()]
for pixelId in colored_pixels:
pixels[pixelId] = data["color"]
await asyncio.sleep(data['duration'] / 1000)
for pixelId in colored_pixels:
pixels[pixelId] = 0
async def printing(data):
print(f"key: {data['key']}, c:{data['color']} for {data['duration'] / 1000}s, time: {data['time']}")
await asyncio.sleep(data['duration'] / 1000)
print(f"end of {data['key']}")
def midi_key_my_key(midi_key):
keys = list(notePixels.keys())
keys.reverse()
return keys[midi_key - 60]
async def main():
default_duration = 900
default_color = (255, 0, 0)
notes = []
s = 3500
notes_on = {}
prev_note_on = {}
for msg in MidiFile(sys.argv[1]):
d = msg.dict()
print(msg, s)
s += d['time'] * 1000
if d["type"] == "note_on":
prev_note_on[d["note"]] = 0
if d["note"] in notes_on:
prev_note_on[d["note"]] = notes_on[d["note"]] # 500
notes_on[d["note"]] = s # 0
if d["type"] == "note_off":
duration = s - notes_on[d["note"]]
notes_on[d["note"]] = s # 500
#notes.append(Note(s - min(s - prev_note_on[d["note"]], 500), {"duration": min(s - prev_note_on[d["note"]], 500) / 2, "color": (0, 0, 255), "key": midi_key_my_key(d["note"])}))
notes.append(Note(s, {"time": s, "duration": duration, "color": default_color, "key": midi_key_my_key(d["note"])}))
starting = []
for i in notePixels.keys():
starting += [
Note(000, {"duration": default_duration, "color": default_color, "key": i, "time": 0}),
Note(1000, {"duration": default_duration, "color": (255, 255, 0), "key": i, "time": 0}),
Note(2000, {"duration": default_duration, "color": (0, 255, 0), "key": i, "time": 0}),
]
p = Partition("test",
starting + notes
)
await p.play(printing)
return 0
if __name__ == "__main__":
sys.exit(asyncio.run(main()))