calband/calchart-viewer — pull request #9 by kmdurand (2014-07-24 19:12:15+00:00)
Title: A Viewer File

Here's a really simple viewer file. I tried to upload a viewer file for CalChella 2012, but the file came out to about 2 megabytes, and git bash won't let me upload it.

Anyway, the real important part about this is the proposed changes to the viewer file format. You'll need to scroll down to the bottom of the diff to see them. Here are the changes:

- Added starting coordinates to movements, so each command knows where it starts (and can calculate where it ends)
- Removed the Initial Positions part of the stuntsheet, since the commands now have all of the position information
- Replaced the "facing" property of an arc movement with "facing_offset" and "face_offset_direction" (or something like that). In calchart, it turns out that marchers moving in arcs can look in any direction at an offset from their direction of travel, so I made the viewer arc movement compatible with that
- I removed the "goto" command, since it is most convenient in calchart to produce it as an "even" command with 0 beats, which should work in the viewer anyway to produce the same effect

As a final note, I think we may want to remove the regular "move" command, since it turns out that CalChart ultimately splits every movement into a series of mark time, even step, and arc movement commands