Overview Clamps Packages CM Dictionary Clamps Dictionary Fomus
Next: cm-poolevt , Previous: Inkscape Playback , Up: CM Extensions , Home: General

Clamps Packages

cm-svg.rts

cm-svg.rts implements a SVG file player using the Gui interface of Clamps. To load a SVG file into it, put the svg file to load into the svg subfolder of clamps-gui-root and call the function svg->browser with the filename as argument:

(svg->browser "svg-xml-example.svg")

When the browser is opened with the URL "localhost:54619/svg-display" and using the example from the previous section, the following Gui should be displayed:

svg-display.png
Figure 7: svg-display browser window

Use the horizontal slider underneath the graphics to locate the cursor.

There are five toggle buttons on the bottom left of the display:

play Play the events starting at the cursor position or stop playback. Pressing the space bar on the keyboard is equivalent to clicking in the button.
rtn Mark/Unmark the current cursor position. If playback is stopped, the cursor will immediatly jump back to this position.
pno Display/Hide a Piano Roll background.
stf Display/Hide s Staff System background: The black horizontal lines denote staff lines, the grey lines denote ledger lines.
bar Display/Hide Bar lines.

Note that like with any Clamps GUI, multiple browser windows with the same address can be opened simultaneously with synced graphics.