Using Vamp Plugins and Hosts > Host Forum: Sonic Visualiser

portability of image files in SV

(1/1)

rshill05:
I use small .png image files of snippets of score to link to time instants, which is extremely useful for displaying tempo changes in association with the place in the score.

I need to transfer my work from my desktop to a laptop, but find that the image files as they get imported into SV always have a drive letter at the beginning, that becomes part of the address.  So even when I put all relevant files on an SD card on the desktop, the images will then have the drive letter from the desktop SD drive written into their address, so that when I try to load them up on the laptop, their address is not recognized, even though all relevant files are in the same directory.

Is there a way to edit the image file address so that they will load up like the other annotation layers in the same directory?  In other words, to make the drive that they are located on a non-specific piece of information.

Thanks!

cannam:
Hi -- this is possible by editing the saved .sv session file, which is a bzipped XML format. The process would be something like


* copy the something.sv file to something.xml.bz2
* find a program that can unzip a bz2 file and run it! (on Linux or OS/X this would be "bunzip2" at the command line, I'm not sure what your best option is on Windows at the moment) Thus producing something.xml
* edit something.xml in a text editor and replace the paths of the images with your desired alternatives
* re-zip the file back to something.xml.bz2, then rename it to something-new.sv
But I can see that this is far too complicated and that the way SV handles this by default is inadequate. I'll see what I can do to improve this for future releases.

Navigation

[0] Message Index

Go to full version