< Back to IRCAM Forum

Exporting Circles as Vector Graphics

Hi,

Is there any way of exporting circles (n-cercle class) as SVG files like we can do with BPFs? My guess is that there isn’t, I just want to be absolutely positive that I’m not missing something.

Any hints on workarounds would be much appreciated.

All the best,
António

Hi Antonio,

This is not possible for the moment. But i will look into it. Not a bad idea it shouldn’t be that difficult!

Best
K

1 Like

Hi Karim,

Thank you. It would be very useful, it’s painful and time-consuming to redraw such representations by hand as soon as one moves up from Z12 or Z16 and there are more than a few chords or rhythms involved.

All the best,
António

Dear Antonio,

Just to let you know about the progress here:

Exported in SVG format:

Still have to do the n-cercle-lib…

Best
K

1 Like

Dear Antonio,

Here you are:
[File to put in init folder]
complement8.lisp (8.0 KB)

To export your n-cercle graphic:

  1. open editor
  2. type x

The definition of the svg file is according to the size of the opened editor.

Welcome any suggestions.

BEst
K

Hi Karim,

On my system the files aren’t exporting correctly, they double the opening <svg> tag and they’re missing the closing </svg> tag. Other than that, and once I correct these problems with a text editor, it’s flawless.

Example and my corrected version — the doubling is in line 12:
test
test-corrected

All the best,
António

Dear Antonio,
Yes will correct this. My bad.

Thanx for pointing it

Best
K

Dear Antonio,

I think this will work. Can you test it please?

export-ncercle.lisp (8.0 KB)

Best
K

Hi Karim,

I just tested it, and it works flawlessly. Thank you so much for this, it’s a huge time saver.

All the best,
António

1 Like