
aRts-builder comes with several examples, which can be opened through ->. Some of them are in the folder, some of them (which for some reason don't work with the current release) are left in the todo folder.
The examples fall into several categories:
Standalone examples illustrating how to use each of the built-in
arts modules (named example_*.arts). These
typically send some output to a sound card.
Instruments built from lower level arts modules (named
instrument_*.arts). These following a standard
convention for input and output ports so they can be used by the MIDI
manager in artscontrol.
Templates for creating new modules (names
template_*.arts).
Effects which can be used as reusable building blocks (named
effect_*.arts) [ all in todo ]
Mixer elements used for creating mixers, including graphical
controls (named mixer_element_*.arts). [ all in todo ]
Miscellaneous modules that don't fit into any of the above categories.
Detailed Description Of Each Module:
example_stereo_beep.artsGenerates a 440Hz sine wave tone in the left channel and an 880Hz sine wave tone in the right channel, and sends it to the sound card output. This is referenced in the aRts documentation.
example_sine.artsGenerates a 440 Hz sine wave.
example_pulse.artsGenerates a 440 Hz pulse wave with a 20% duty cycle.
example_softsaw.artsGenerates a 440 Hz sawtooth wave.
example_square.artsGenerates a 440 Hz square wave.
example_tri.artsGenerates a 440 Hz triangle wave.
example_noise.artsGenerates white noise.
example_dtmf1.artsGenerates a dual tone by producing 697 and 1209 Hz sine waves, scaling them by 0.5, and adding them together. This is the DTMF tone for the digit "1" on a telephone keypad.
example_atan_saturate.artsRuns a triangle wave through the atan saturate filter.
example_autopanner.artsUses an autopanner to pan a 400 Hz sine wave between the left and right speakers at a 2 Hz rate.
example_brickwall.artsScales a sine wave by a factor of 5 and then runs it through a brickwall limiter.
example_bus.artsDownlinks from a bus called “Bus” and uplinks to the bus “out_soundcard” with the left and right channels reversed.
example_cdelay.artsDownlinks from a bus called “Delay”, uplinks the right channel through a 0.5 second cdelay, and the left channel unchanged. You can use artscontrol to connect the effect to a sound player and observe the results.
example_delay.arts
This is the same as example_cdelay.arts but used
the delay effect.
example_capture_wav.arts
This uses the Synth_CAPTURE_WAV to save a 400 Hz sine wave as a wav
file. Run the module for a few seconds, and then examine the file
created in /tmp. You can play the
file with a player such as kaiman.
example_data.artsThis uses the Data module to generate a constant stream of the value “3” and sends it to a Debug module to periodically display it. It also contains a Nil module, illustrating how it can be used to do nothing at all.
example_adsr.artsShows how to create a simple instrument sound using the Envelope Adsr module, repetitively triggered by a square wave.
example_fm.artsThis uses the FM Source module to generate a 440 Hz sine wave which is frequency modulated at a 5 Hz rate.
example_freeverb.artsThis connects the Freeverb effect from a bus downlink to a bus outlink. You can use artscontrol to connect the effect to a sound player and observe the results.
example_flanger.artsThis implements a simple flanger effect (it doesn't appear to work yet, though).
example_moog.artsThis structure combines the two channels from a bus into one, passes it though the Moog VCF filter, and sends it out the out_soundcard bus.
example_pitch_shift.artsThis structure passes the left channel of sound card data through the Pitch Shift effect. Adjust the speed parameter to vary the effect.
example_rc.artsThis structure passes a white noise generator though an RC filter and out to the sound card. By viewing the FFT Scope display in artscontrol you can see how this varies from an unfiltered noise waveform.
example_sequence.artsThis demonstrates the Sequence module by playing a sequence of notes.
example_shelve_cutoff.artsThis structure passes a white noise generator though a Shelve Cutoff filter and out to the sound card. By viewing the FFT Scope display in artscontrol you can see how this varies from an unfiltered noise waveform.
example_equalizer.artsThis demonstrates the Std_Equalizer module. It boosts the low and high frequencies by 6 dB.
example_tremolo.artsThis demonstrates the Tremolo effect. It modulates the left and right channels using a 10 Hz tremolo.
example_xfade.artsThis example mixes 440 and 880 Hz sine waves using a cross fader. Adjust the value of the cross fader's percentage input from -1 to 1 to control the mixing of the two signals.
example_pscale.artsThis illustrates the Pscale module (I'm not sure if this is a meaningful example).
example_play_wav.arts
This illustrates the Play Wave module. You will need to
enter the full path to a .wav file
as the filename parameter.
This shows the Multi Add module which accepts any number of inputs. It sums three Data modules which produce inputs of 1, 2, and 3, and displays the result 6.
Would you like to comment or contribute an update to this page?
Send feedback to the TDE Development Team