FoscPersistenceManager

Returns a FoscPersistenceManager.


Description

Persistence manager


Attributes Summary

Instance Methods

asLY Persists client as LilyPond file.
asMIDI
asPDF Persists client as PDF.
asPNG
asSVG lilypond -dbackend=svg -dcrop file.ly


Instance Methods


asLY

Persists client as LilyPond file.

Autogenerates file path when path is nil.

Returns output path and elapsed formatting time when LilyPond output is written.


asMIDI


asPDF

Persists client as PDF.

Autogenerates file path when lyPath is nil.

Returns output path.

If clean is true, ly file is deleted.

  1. Example

    a = FoscNote(60, 1/4);
    b = a.write.asPDF;
    [ /home/user/.config/SuperCollider/fosc-output/0033.pdf, true ]


asPNG

  1. 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]));


asSVG

lilypond -dbackend=svg -dcrop file.ly