Returns a FoscPersistenceManager.
Persistence manager
| asLY | Persists client as LilyPond file. |
| asMIDI | |
| asPDF | Persists client as PDF. |
| asPNG | |
| asSVG | lilypond -dbackend=svg -dcrop file.ly |
Persists client as LilyPond file.
Autogenerates file path when path is nil.
Returns output path and elapsed formatting time when LilyPond output is written.
Persists client as PDF.
Autogenerates file path when lyPath is nil.
Returns output path.
If clean is true, ly file is deleted.
Example
a = FoscNote(60, 1/4);
b = a.write.asPDF;[ /home/user/.config/SuperCollider/fosc-output/0033.pdf, true ]Example
a = FoscNote(60, 1/4);
n = "basic-usage/images/002";
p = "%/docs/%".format(FoscConfiguration.foscRootDirectory, n);
f = a.writePNG("%.ly".format(p), p);
unixCmd("open %".format(f[0]));lilypond -dbackend=svg -dcrop file.ly