A SuperCollider unit generator that outputs a trigger from its fire input when armed. It’s armed by a trigger at its arm input and disarms once fired.
// synchronise random stream of triggers to a clock
(
a.free; a = {
t = Dust.ar(5);
c = Impulse.ar(8);
TArmFire.ar(t, c);
}.play
)
// align triggers to clock
(
a.free; a = {
t = Impulse.ar(5);
c = Impulse.ar(8);
TArmFire.ar(t, c);
}.play
)
// align triggers to a swung clock
(
a.free; a = {
t = Impulse.ar(5);
c = Impulse.ar(4) + Impulse.ar(4, 0.3);
TArmFire.ar(t, c);
}.play
)
- CMake >= 3.5
- SuperCollider source code
Clone the project:
git clone https://github.com/triss/tarmfire
cd tarmfire
mkdir build
cd build
Then, use CMake to configure and build it:
cmake -DSC_PATH=~/sources/supercollider/ -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=~/.local/share/SuperCollider/Extensions ..
make && make install
-DCMAKE_INSTALL_PREFIX
should be the path to your SuperColider Extension directory.
-DSC_PATH
should be set to the path of your SuperCollider source files.
This unit generator was developed with the SuperCollider cookiecutter.
Use the command in regenerate
to update CMakeLists.txt when you add or remove files from the
project. You don't need to run it if you only change the contents of existing files. You may need to
edit the command if you add, remove, or rename plugins, to match the new plugin paths. Run the
script with --help
to see all available options.