When compoising larger pieces out of many smaller programs, one is often drawn towards recording the elements and arranging the piece in a timeline of a digital audio workstation. The class Clothesline gives a simple way to schedule code in a timeline, each with beginning and end. It has a GUI for simple navigation. This is all, it has no further controls, no dragging, no convenience. It is experimental and may change.
The code files have a specific format, which can be found in the examples folder.
Return a new instance. Instances can share the same code files. The current environment is captured now and can be accessed from the code files.
Register a code file from a given path.
path |
The full path (use |
callInContext |
If true, make a persistent separate environment for each code file, which has the captured environment as parent. This allows you to access global data, but also use the local environment in each code without messing up other environments. |
Register all code files from a given path. All files that end with the fileNameEnding
(default is -score
) are registered.
callInContext |
See addScore. |
Take an array of arrays, each of the format [name, start-time, end-time]
and schedule the code files that come with the name as a filename (without the fileNameEnding
).