Working with viewpoints » History » Version 2

Version 1 (Jeremy Gow, 2013-04-09 12:42 PM) → Version 2/14 (Jeremy Gow, 2013-04-09 12:43 PM)

h1. Working with viewpoints

A number of functions are provided to help the user work with inspect viewpoints.

h2. Inspecting viewpoint values

<code>music-data:composition-viewpoint</code> will return the viewpoint values for a specific composition. For example, for composition 3 of dataset 0, the linked viewpoint <code>'(cpint ioi)</code> has the following values:

<pre>
CL-USER> (music-data:composition-viewpoint 0 3 '(cpint ioi))
((0 12) (-300 12) (0 12) (-200 12) (-200 24) (0 12) (-100 12) (100 12) (200 12)
(-200 24) (500 12) (0 12) (0 12) (0 12) (-100 12) (100 12) (200 12) (-700 60)
(0 12) (0 12) (0 12) (400 12) (0 12) (100 12) (200 12) (0 24) (-700 12)
(700 24) (0 12) (200 12) (-200 12) (-300 12) (-400 12) (200 12) (-200 12))
</pre>
Similarly, <code>music-data:dataset-viewpoint</code> returns the values for all compositions in a specific dataset, as a list of lists.