Author Topic: Easier event sequencing  (Read 547 times)

Have any of you guys/girls/whatever tried to sync music to fireworks or light emitters? If so, how hard is it to perfectly time everything, I'd say it's hard, doing the whole "minutes to milliseconds" conversation. Well I could use a conversation calculator and audacity, but what about using MIDI note on and off commands. Go ahead and say "Torque doesn't support MIDI." I'm aware, I've tried before, but say we took the MIDI commands from this {MIDI: tune.mid opened in Notepad}
Code: [Select]
MThd     MTrk   # X`   A   w  Q  / MTrk  x     ] J d
 [; J G G G G H H E E E E C C@G G@J J J J G G G G H H E E E E C C@G G@C C C C G G G G H H E E E E C C@G G@J J J J G G G G H H E E E E C C@G G@C C / MTrk   @     ] d
 [; Jd Jd Cd Cd Jd Jd Cd Cd / MTrk        d / MTrk       
 d / MTrk    d / MTrk    d / MTrk    d / MTrk    d / MTrk    d / MTrk    d / MTrk    d / MTrk    / MTrk    / MTrk    / MTrk    /
into this {Time Stamp, Event, Channel, Type, Value}
Code: [Select]
0 Controller 1 Bank Select (coarse) 0
0 Programme change 1 - Electric Grand Piano
0 Controller 1 Chorus Level 21
0 Note On 1 74 Velocity: 127
0 Controller 1 Volume (coarse) 100
0 Controller 1 Pan position (coarse) 127
0 Controller 1 Effects Level (Reverberation) 59
256 Note Off 1 74 Velocity: 127
384 Note On 1 71 Velocity: 127
640 Note Off 1 71 Velocity: 127
768 Note On 1 71 Velocity: 127
1024 Note Off 1 71 Velocity: 127
1152 Note On 1 72 Velocity: 127
1408 Note Off 1 72 Velocity: 127
1536 Note On 1 69 Velocity: 127
1792 Note Off 1 69 Velocity: 127
1920 Note On 1 69 Velocity: 127
2176 Note Off 1 69 Velocity: 127
2304 Note On 1 67 Velocity: 127
2432 Note Off 1 67 Velocity: 127
2496 Note On 1 71 Velocity: 127
2624 Note Off 1 71 Velocity: 127
2688 Note On 1 74 Velocity: 127
3200 Note Off 1 74 Velocity: 127
3456 Note On 1 74 Velocity: 127
3712 Note Off 1 74 Velocity: 127
3840 Note On 1 71 Velocity: 127
4096 Note Off 1 71 Velocity: 127
4224 Note On 1 71 Velocity: 127
4480 Note Off 1 71 Velocity: 127
4608 Note On 1 72 Velocity: 127
4864 Note Off 1 72 Velocity: 127
4992 Note On 1 69 Velocity: 127
5248 Note Off 1 69 Velocity: 127
5376 Note On 1 69 Velocity: 127
5632 Note Off 1 69 Velocity: 127
5760 Note On 1 67 Velocity: 127
5888 Note Off 1 67 Velocity: 127
5952 Note On 1 71 Velocity: 127
6080 Note Off 1 71 Velocity: 127
6144 Note On 1 67 Velocity: 127
6656 Note Off 1 67 Velocity: 127
6912 Note On 1 67 Velocity: 127
7168 Note Off 1 67 Velocity: 127
7296 Note On 1 71 Velocity: 127
7552 Note Off 1 71 Velocity: 127
7680 Note On 1 71 Velocity: 127
7936 Note Off 1 71 Velocity: 127
8064 Note On 1 72 Velocity: 127
8320 Note Off 1 72 Velocity: 127
8448 Note On 1 69 Velocity: 127
8704 Note Off 1 69 Velocity: 127
8832 Note On 1 69 Velocity: 127
9088 Note Off 1 69 Velocity: 127
9216 Note On 1 67 Velocity: 127
9344 Note Off 1 67 Velocity: 127
9408 Note On 1 71 Velocity: 127
9536 Note Off 1 71 Velocity: 127
9600 Note On 1 74 Velocity: 127
10112 Note Off 1 74 Velocity: 127
10368 Note On 1 74 Velocity: 127
10624 Note Off 1 74 Velocity: 127
10752 Note On 1 71 Velocity: 127
11008 Note Off 1 71 Velocity: 127
11136 Note On 1 71 Velocity: 127
11392 Note Off 1 71 Velocity: 127
11520 Note On 1 72 Velocity: 127
11776 Note Off 1 72 Velocity: 127
11904 Note On 1 69 Velocity: 127
12160 Note Off 1 69 Velocity: 127
12288 Note On 1 69 Velocity: 127
12544 Note Off 1 69 Velocity: 127
12672 Note On 1 67 Velocity: 127
12800 Note Off 1 67 Velocity: 127
12864 Note On 1 71 Velocity: 127
12992 Note Off 1 71 Velocity: 127
13056 Note On 1 67 Velocity: 127
13568 Note Off 1 67 Velocity: 127
13568 Meta-event - End of Track -
(sorry for longest post ever, trying to get the point across) anyways, the Note On/Off would cause events to be triggered on a block with "MIDI" properties, such as Note and Channel. The file itself would only be sending the commands not a physical midi player, but would send them server-wide.

I can see this being extremely useful for firework/light shows. One more thing, the second code would be the read file by Blockland, MIDISwing can display the MIDI Events which can be copied into a text document and saved since that is more understandable. So basically, it's a giant VCE midi player.
Code: [Select]
ifValue vce:global:midinote = 60 ch1
ifVariableTrue Self spawnProjectie Firework Red (S)
Think about it.

Idk how mins to ms is a problem
1000 ms is 1 sec
60000 ms is 1 min

The whole thing is cool tho

if you're timing things, you shouldn't be thinking about units as large as a minute anyway. think in seconds at most, and like drydess said, one second is one thousand milliseconds



Did you guys even read the post?
He is talking about calculating the rhythm from a 5 minute song to milliseconds and importing it into events.
He knows how much ms a second is.
The problem is the continues calculating for each beat for an entire song.
He wants it automated.


I think your best bet is to calculate them with a different program and then create a list in Excel or something.
Then manually type them into events or copying them into save files.

Automating it completely needs to much work for something you only going to use like 5 times.
Especially if you want the projectiles it fires to be definable.
And the manual labor isn't too much work either.