Instr Library:
Filter:
crucial-library/Guides (extension) | Libraries > crucial > Instr

Instr Library
ExtensionExtension

loading Instr from disk, from quarks, bulding up a reusable library of functions

Whenever you create an Instr it is stored in the library:

Retrieving it

If you use the same symbol again it overwrites it:

Loading from file

If the Instr is not found already loaded into the Library it will search in the Instr.dir and load it from a file.

Each package and each quark can also include an Instr directory and these will be searched.

So you may also store your instruments in text files and build up a large library of resuable functions.

will look for a file called "TheArrogator.scd"

It will first look in your Instr directory. You may set this in your startup file:

Quarks can also contain Instr, so the loading function will also look through your installed quarks for any folders called Instr.

The cxaudio quark has lots of Instr.

Specify by dot notation to look for an Instr named 'oscillators.sin' in a file named 'oscillators' :

It will look for the files oscillators.scd, oscillators.txt

it expects to find in one of those files an Instr named "oscillators.sin"

It will search the following paths in order:

Instr dependency support

Patches can be set to automatically respawn themselves if the Instr changes.

An Instr sends the .changed message to itself whenever it is redefined. So just executing any of the Instr definitions causes dependents to be sent .update.

Any Patch that is created with the Instr adds itself as a dependant. Set patch.respawnOnChange = 1 to automaticaly restart the Patch on the next even bar.