### Example <buses> Element with Two Buses
Source: https://decentsampler-developers-guide.readthedocs.io/en/latest/_sources/the-buses-element.md.txt
This example demonstrates how to define two buses within the <buses> element, specifying their volumes and output targets.
```xml
```
--------------------------------
### Configure FM Synthesis with fm6op Oscillator
Source: https://decentsampler-developers-guide.readthedocs.io/en/latest/topic-how-to-use-fm-synthesis.html
Set waveform to "fm6op" on an oscillator and configure FM parameters on the parent group. This example demonstrates basic FM synthesis setup with specific algorithm and operator settings.
```xml
```
--------------------------------
### Multi-Oscillator Layering Example
Source: https://decentsampler-developers-guide.readthedocs.io/en/latest/_sources/the-groups-element.md.txt
Creates a rich synthesized sound by layering multiple oscillators with different waveforms, tunings, and panning. This example demonstrates creating a fundamental saw wave, an octave-up sine wave, a sub-bass sine wave, and detuned saw waves for stereo width.
```xml
```
--------------------------------
### Basic Wavetable Oscillator Setup
Source: https://decentsampler-developers-guide.readthedocs.io/en/latest/the-groups-element.html
Defines a group with a wavetable oscillator, specifying the wavetable file and initial position.
```xml
```
--------------------------------
### Multi-State Control Example
Source: https://decentsampler-developers-guide.readthedocs.io/en/latest/_sources/the-ui-element.md.txt
Example of a multi-state control used for language selection. It utilizes different images for main, hover, and click states.
```xml
```
--------------------------------
### MIDI Note-Based Keyswitch Setup
Source: https://decentsampler-developers-guide.readthedocs.io/en/latest/_sources/topic-keyswitches.md.txt
Use this XML configuration to map MIDI notes to control group parameters. MIDI note 11 enables group 0 and disables group 1, while MIDI note 12 performs the opposite action. This setup utilizes the `fixed_value` translation type for direct parameter control.
```xml
```
--------------------------------
### Configure Wave Folder Effect with UI Bindings
Source: https://decentsampler-developers-guide.readthedocs.io/en/latest/_sources/the-effects-element.md.txt
This example shows how to set up a wave folder effect at the group level for per-voice processing. It includes UI bindings for 'Drive' and 'Threshold' parameters.
```xml
```
--------------------------------
### Implement Dropdown Menu with Options
Source: https://decentsampler-developers-guide.readthedocs.io/en/latest/_sources/topic-dropdown-menus.md.txt
Use and elements to define dropdown menus and their associated actions. The example demonstrates switching between two groups using `fixed_value` bindings.
```xml
```
--------------------------------
### Dynamic Polyphony Control with Bindings
Source: https://decentsampler-developers-guide.readthedocs.io/en/latest/_sources/the-tags-element.md.txt
Shows how to dynamically control tag polyphony using button states and bindings. This example creates a mono/poly switch for a tag.
```xml
```
--------------------------------
### Configure xyPad with X and Y Bindings
Source: https://decentsampler-developers-guide.readthedocs.io/en/latest/_sources/the-ui-element.md.txt
Define the bindings for the x and y axes of an xyPad control. This example shows how to map physical movements on the pad to specific parameters like volume and filter frequency.
```xml
```
--------------------------------
### User-Defined Wavetable Oscillator Setup
Source: https://decentsampler-developers-guide.readthedocs.io/en/latest/_sources/the-groups-element.md.txt
Configures a wavetable oscillator using a custom .wav file, allowing for timbral scanning effects by transitioning between frames.
```xml
```
--------------------------------
### Configure a Notch Filter
Source: https://decentsampler-developers-guide.readthedocs.io/en/latest/the-effects-element.html
Example of implementing a notch filter, which is useful for removing specific frequencies. The 'q' and 'frequency' attributes define its behavior.
```xml
```
--------------------------------
### Binding to Controls by Tag
Source: https://decentsampler-developers-guide.readthedocs.io/en/latest/_sources/appendix-b-the-binding-element.md.txt
Use tags to address multiple controls simultaneously. This example shows how to bind to all controls with the 'some-controls' tag.
```xml
```
--------------------------------
### Route Audio to an Auxiliary Output
Source: https://decentsampler-developers-guide.readthedocs.io/en/latest/_sources/topic-how-to-use-buses-and-auxiliary-outputs.md.txt
Use the `outputXTarget` attributes within ``, ``, or `` elements to direct audio to specific outputs. This example routes audio to `AUX_STEREO_OUTPUT_1` with a specified volume.
```xml
```
--------------------------------
### Define Note Sequences with
Source: https://decentsampler-developers-guide.readthedocs.io/en/latest/_sources/the-noteSequences-element.md.txt
Use the element to define custom note sequences. This example demonstrates a sequence named 'Maj1Slow' with specific note timings and velocities, mimicking an Omnichord strum.
```xml
```
--------------------------------
### Basic <oscilloscope> Element Configuration
Source: https://decentsampler-developers-guide.readthedocs.io/en/latest/_sources/the-ui-element.md.txt
This example demonstrates how to configure the <oscilloscope> element with essential attributes like position, dimensions, and custom colors. Ensure the element is placed within a <tab> element.
```xml
```
--------------------------------
### Mod Wheel Control of Filter Cutoff (Per-Voice)
Source: https://decentsampler-developers-guide.readthedocs.io/en/latest/_sources/the-modulators-element.md.txt
Example of using the mod wheel (CC#1) to control filter cutoff frequency. It uses per-voice channel tracking for independent control per note, suitable for MPE setups.
```xml
```
--------------------------------
### Using Custom Skin Images for UI Controls
Source: https://decentsampler-developers-guide.readthedocs.io/en/latest/_sources/the-ui-element.md.txt
This example demonstrates how to configure a `labeled-knob` and a `control` element with custom skin images. Ensure the `style` attribute matches the image orientation and that `customSkinImage` points to a valid KnobMan formatted image.
```xml
```
--------------------------------
### Envelope Element
Source: https://decentsampler-developers-guide.readthedocs.io/en/latest/_sources/the-modulators-element.md.txt
An example of an element, which defines an ADSR envelope. This can be used for controlling group-level effects.
```xml
```
--------------------------------
### Basic Wavetable Oscillator Group
Source: https://decentsampler-developers-guide.readthedocs.io/en/latest/_sources/the-groups-element.md.txt
Defines a group with a wavetable oscillator. This is a fundamental setup for using wavetables.
```xml
```
--------------------------------
### MIDI Note to Menu Option Binding
Source: https://decentsampler-developers-guide.readthedocs.io/en/latest/_sources/the-midi-element.md.txt
This example shows how to change a menu option using MIDI notes as keyswitches. Each note triggers a `control` binding to update the UI control at `position="1"` to a specific `translationValue`.
```xml
```
--------------------------------
### Configure Wave Shaper Effect
Source: https://decentsampler-developers-guide.readthedocs.io/en/latest/the-effects-element.html
Set up a wave shaper effect within a DecentSampler group. This example shows how to bind UI elements to control the drive, drive boost, and output level parameters of the wave shaper.
```xml
```
--------------------------------
### Control FM Depth with a Knob
Source: https://decentsampler-developers-guide.readthedocs.io/en/latest/_sources/topic-how-to-use-fm-synthesis.md.txt
Example of binding a UI knob to control the FM depth parameter (OSCILLATOR_FM_OP2_LEVEL). This allows for real-time timbre morphing.
```xml
```
--------------------------------
### Menu Element Example
Source: https://decentsampler-developers-guide.readthedocs.io/en/latest/_sources/the-ui-element.md.txt
Basic structure for a drop-down menu element. The 'value' attribute indicates the 1-based index of the selected option, with 0 meaning no selection.
```xml
```
--------------------------------
### Monophonic Lead Synth with Portamento
Source: https://decentsampler-developers-guide.readthedocs.io/en/latest/_sources/the-groups-element.md.txt
Configures a Moog-style monophonic lead synthesizer with portamento. This example includes UI controls for attack, glide time, and cutoff, along with layered detuned saw oscillators and LFO vibrato.
```xml
```
--------------------------------
### Monophonic Lead Synth with Portamento
Source: https://decentsampler-developers-guide.readthedocs.io/en/latest/the-groups-element.html
A complete example of a Moog-style monophonic lead synthesizer. It features portamento, detuned oscillators, and monophonic behavior enforced by tag polyphony.
```xml
```
--------------------------------
### Basic FM6OP Oscillator Configuration
Source: https://decentsampler-developers-guide.readthedocs.io/en/latest/_sources/topic-how-to-use-fm-synthesis.md.txt
Configure the fm6op oscillator by setting waveform to 'fm6op' on the oscillator and FM parameters on the parent group. This example sets algorithm 5 with specific operator ratios, levels, and envelope settings.
```xml
```
--------------------------------
### Configure a Low-Pass Filter
Source: https://decentsampler-developers-guide.readthedocs.io/en/latest/the-effects-element.html
Example of adding a 2-pole resonant low-pass filter to the global effects chain. The 'resonance' and 'frequency' attributes control the filter's characteristics.
```xml
```
--------------------------------
### mpeTimbre Modulator Setup
Source: https://decentsampler-developers-guide.readthedocs.io/en/latest/_sources/the-modulators-element.md.txt
Use mpeTimbre to control timbre in response to MPE messages. Ensure the plugin is in MPE mode. 'risingSmoothingTime' and 'fallingSmoothingTime' control response speed.
```xml
```
--------------------------------
### Add Global Effects with
Source: https://decentsampler-developers-guide.readthedocs.io/en/latest/_sources/the-effects-element.md.txt
Use the element directly under to apply effects globally to all instruments. This example shows a basic low-pass filter with tags for referencing.
```xml
```
--------------------------------
### Create a Simple Looping Animation
Source: https://decentsampler-developers-guide.readthedocs.io/en/latest/_sources/topic-how-to-use-animations.md.txt
Use the `` tag to display a sequence of images as an animation. Ensure the `path` points to a valid image strip and `numFrames` matches the frames in the strip. The `sourceFormat` must be set correctly (e.g., `vertical_image_strip`).
```xml
```
--------------------------------
### Basic midiVelocity Modulator Setup
Source: https://decentsampler-developers-guide.readthedocs.io/en/latest/_sources/the-modulators-element.md.txt
Use midiVelocity to control parameters based on note-on velocity. The 'scope' attribute determines if velocity is global or per-voice. Default 'scope' is 'voice'.
```xml
```