AlgaLib

Interpolating live coding environment

AlgaLib

This is the SuperCollider implementation of Alga, an interpolating live coding environment.

Alga is a new environment for live coding that focuses on the creation and connection of sonic modules. Unlike other audio software environments, the act of connecting Alga modules together is viewed as an essential component of music composing and improvising, and not just as a mean towards static audio patches. In Alga, the definition of a new connection between the output of a module and the input of another does not happen instantaneously, but it triggers a process of parameter interpolation over a specified window of time.

Installation

To install AlgaLib, you can either:

  • Use the Quarks system: Quarks.install("https://github.com/vitreo12/AlgaLib")

OR

  • git clone this repository to your Platform.userExtensionDir.

AlgaUGens

For AlgaLib to work correctly, a set of specific UGens must be installed. To install them, follow these simple instructions:

  1. Download the correct version for your OS from https://github.com/vitreo12/AlgaUGens/releases/tag/v1.2.0

  2. Unzip the file to your SuperCollider's Platform.userExtensionDir.

Examples

For usage and examples, check the Help files and the Examples folder.

AlgaNode

https://user-images.githubusercontent.com/32070555/139412547-f727eed9-aa9e-4efd-a17d-ea41a5476bbc.mp4

```SuperCollider //Boot Alga ( Alga.boot({ //Declare an AlgaSynthDef AlgaSynthDef(\sine, { SinOsc.ar(\freq.ar(440)) }).add;

//Wait for definition to be sent to server
s.sync;

//Declare a node and play to stereo output
a = AlgaNode(\sine, interpTime:2).play(chans:2);

}); )

//Change \freq parameter. Note how it interpolates to new value over 2 seconds a <<.freq 220;

//Declare a square oscillator with variable frequency 1 to 100 b = AlgaNode({ Pulse.ar(LFNoise1.kr(1).range(1, 100)) });

//Map the b node to a's \freq parameter, scaling the -1 to 1 range to 100 to 1000. //The interpolation will take 5 seconds to complete a.from(b, \freq, scale: [100, 1000], time:5);

//Declare a new Sine oscillator to use as LFO c = AlgaNode(\sine, [\freq, 2]);

//Also connect c to a's \freq, mixing with what was already there. //This will use a's interpTime, 2 a.mixFrom(c, \freq, scale:[-100, 100]);

//Clear over 3 seconds. Note how the interpolation will bring us back //to just having b modulating a's frequency parameter c.clear(time:3);

//Clear over 5 seconds. No more connections: //now we'll interpolate back to a's \freq default value, 440 b.clear(time:5);

//Bye bye a.clear(time:3); ```

AlgaPattern

https://user-images.githubusercontent.com/32070555/139412596-2e8ebe1b-ce53-4667-941e-d95e722763d5.mp4

```SuperCollider ( //Boot Alga Alga.boot({ //Declare a simple AlgaSynthDef. //Note that for it to be used in an AlgaPattern it must free itself. //Also, note the 'sampleAccurate' argument. This allows the AlgaSynthDef to use OffsetOut instead of Out //for sample accurate retriggering. AlgaSynthDef(\sinePerc, { SinOsc.ar(\freq.kr(440)) * EnvPerc.ar }, sampleAccurate: true).add;

//Wait for definition to be sent to server
s.sync;

//Create an AlgaPattern and play it.
//Unlike Pbind, AlgaPatterns use an Event to describe the parameter -> value mapping.
a = AlgaPattern((
    def: \sinePerc,
    dur: 0.5
)).play(chans: 2);

}); )

//Interpolate over the new Pseq. 'sched: 1' triggers it at the next beat a.from(Pseq([220, 440, 880], inf), \freq, time: 3, sched: 1);

//Interpolate over the new Pwhite. a.from(Pwhite(220, 880), \freq, time: 3, sched: 1);

//Interpolation can be sampled and held instead of being dynamic a.from(Pseq([220, 440, 880], inf), \freq, sampleAndHold: true, time: 3, sched: 1);

//Change \dur does not trigger interpolation (yet), but it applies the changes directly a.from(Pwhite(0.03, 0.5), \dur, sched: 1);

//Alternatively, the 'replaceDur' option can be used to trigger a 'replace' call, allowing for volume transitions a.replaceDur = true;

//Now it will 'replace' a.from(0.25, \dur, time: 3, sched: 1);

//Bye bye a.clear(time: 2); ```

AA
Project
Source file
Extension
Superclass:
AlgaArg
AI
Project
Source file
Extension
Superclass:
AlgaInterpreter
AM
Project
Source file
Extension
Superclass:
AlgaMonoPattern
AMP
Project
Source file
Extension
Superclass:
AlgaMonoPattern
AN
Project
Source file
Extension
Superclass:
AlgaNode
AO
Project
Source file
Extension
Superclass:
AlgaOut
AP
Project
Source file
Extension
Superclass:
AlgaPattern
APP
Extension
Superclass:
AlgaPatternPlayer
APS
Project
Source file
Extension
Superclass:
AlgaProxySpace
AQ
Project
Source file
Extension
Superclass:
AlgaQuant
AS
Project
Source file
Extension
Superclass:
AlgaStep
ASeq
Project
Source file
Extension
Superclass:
AlgaSequencer
AT
Project
Source file
Extension
Superclass:
AlgaTemp
Alga
Project
Source file
Extension
Superclass:
AlgaActionScheduler
Extension
Superclass:
AlgaArg
Project
Source file
Extension
Superclass:
AlgaBlock
Project
Source file
Extension
Superclass:
AlgaBlocksDict
Project
Source file
Extension
Superclass:
AlgaBus
Project
Source file
Extension
Superclass:
AlgaDetectSilence
Extension
Superclass:
AlgaDynamicEnvelopes
Extension
Superclass:
AlgaEnvGate
Project
Source file
Extension
Superclass:
AlgaEnvPerc
Project
Source file
Extension
Superclass:
AlgaGroup
Project
Source file
Extension
Superclass:
Group
AlgaInterpreter
Project
Source file
Extension
Superclass:
AlgaMono
Project
Source file
Extension
Superclass:
AlgaMonoPattern
AlgaMonoPattern
Project
Source file
Extension
Superclass:
AlgaPattern
AlgaNode
Project
Source file
Extension
Superclass:
AlgaOut
Project
Source file
Extension
Superclass:
AlgaParGroup
Project
Source file
Extension
Superclass:
AlgaGroup
AlgaParser
Project
Source file
Extension
Superclass:
AlgaPatch
Project
Source file
Extension
Superclass:
AlgaPattern
Project
Source file
Extension
Superclass:
AlgaNode
AlgaPatternInterpStreams
Extension
Superclass:
AlgaPatternPlayer
Extension
Superclass:
AlgaPkr
Project
Source file
Extension
Superclass:
Pfunc
AlgaPlayer
Extension
Superclass:
AlgaPatternPlayer
AlgaProxySpace
Project
Source file
Extension
Superclass:
AlgaPseg
Project
Source file
Extension
Superclass:
Pstep
AlgaQuant
Project
Source file
Extension
Superclass:
AlgaReader
Extension
Superclass:
AlgaReaderPfunc
Extension
Superclass:
Pfuncn
AlgaReplaceBadValues
Extension
Superclass:
AlgaReschedulingEventStreamPlayer
Extension
Superclass:
AlgaScheduler
Project
Source file
Extension
Superclass:
AlgaThread
AlgaSequencer
Project
Source file
Extension
Superclass:
AlgaServerOptions
Extension
Superclass:
AlgaSpinRoutine
Project
Source file
Extension
Superclass:
AlgaStartup
Project
Source file
Extension
Superclass:
AlgaStep
Project
Source file
Extension
Superclass:
AlgaSynth
Project
Source file
Extension
Superclass:
Synth
AlgaSynthDef
Project
Source file
Extension
Superclass:
SynthDef
AlgaSynthDefSpec
Project
Source file
Extension
Superclass:
AlgaTemp
Project
Source file
Extension
Superclass:
AlgaThread
Project
Source file
Extension
Superclass:
Buffer
Extension
Superclass:
Bus
Project
Source file
Extension
Superclass:
Clock
Extension
Superclass:
Dictionary
Extension
Superclass:
Env
Extension
Superclass:
EnvPerc
Project
Source file
Extension
Superclass:
AlgaEnvPerc
Event
Extension
Superclass:
EventStreamPlayer
Extension
Superclass:
FilterPattern
Extension
Superclass:
Function
Extension
Superclass:
List
Extension
Superclass:
ListPattern
Extension
Superclass:
LiteralFunctions
Project
Source file
Extension
Superclass:
Extension
Superclass:
Number
Extension
Superclass:
Object
Extension
Superclass:
OrderedIdentitySet
Extension
Superclass:
PathName
Extension
Superclass:
Pattern
Extension
Superclass:
PlayBuf
Extension
Superclass:
SequenceableCollection
Extension
Superclass:
Server
Project
Source file
Extension
Superclass:
Set
Extension
Superclass:
Stream
Extension
Superclass:
String
Extension
Superclass:
Symbol
Extension
Superclass:
SynthDef
Extension
Superclass:
SynthDescLib
Extension
Superclass:
SystemClock
Extension
Superclass:
TempoClock
Extension
Superclass:
Thread
Extension
Superclass:
UGen
Extension
Superclass:
v1.3.3
Date
2022-12-20
Git hash
6e6e5225c8f6eb4915f46f9d95dd3c8975a1013d
v1.3.1
Date
2022-10-14
Git hash
024225485fac1a5e7058c8d9ad1568ca62a04e96
v1.3.0
Date
2022-09-13
Git hash
c1e12acffe821bf18a11125d9a59cba1430c97a1
v1.2.1
Date
2022-06-26
Git hash
1e5a43d79451721ffb75e2642e398946634d61b3
v1.2.0
Date
2022-06-09
Git hash
f64a2dc85960d39f3e0a75bf4e45092f62177d3f
v1.1.1
Date
2022-03-10
Git hash
b9ae5d6d0cea55218a5b96ab4488584fc24cf21c
v1.1.0
Date
2022-03-03
Git hash
37b59c347cc08e71e01e8b0d3127f3b7569565d9
v1.0.0
Date
2021-12-22
Git hash
c5b2f92981767dc73cdf8303d4f0a01ddcb4a928

Installation

Repository

URL

https://github.com/vitreo12/AlgaLib

Since

2019-11-03

Last update

2023-03-27

Current version

v1.3.3

Quark info

name

AlgaLib

path

AlgaLib

author

vitreo12

helpdoc

HelpSources/Classes/Alga.schelp

summary

Interpolating live coding environment

version

1.3.3

Possible dependcies

Possible dependants