Demiurge/Standard Blocks

From Stm32World Wiki
Revision as of 09:29, 20 August 2022 by Niclas (talk | contribs)
Jump to navigation Jump to search


All blocks has a single Output signal, to which an Input on another block can be connected. The rare cases of multiple Output blocks, such as #Pan, and accomplishes this by having sub-blocks for each Output that downstream blocks can be connected to.

ADSR - Attack, Decay, Sustain, Release

[1]

Inputs

Description |

Audio Inport

[2]

Inputs

| Name | Description | |------|-------------| | *none* | |

Audio Outport

[3]

Inputs

| Name | Description | |------|-------------| | input | The audio signal to be set to the physical output port as an audio signal. |

Averager

[4]

Inputs

| Name | Description | |------|-------------| | input | The signal to be averaged. | | averaging_control | The amount of averging to be applied to the signal |

Calculator

[5]

Inputs

| Name | Description | |------|-------------| | input | The signal to apply the [***Function***](functions.md) on. |


CFX RBJ Filter

[6]

Inputs

| Name | Description | |------|-------------| | input | Signal to be filtered | | frequency | Frequency to be filtered at | | Q | Q factor which sets slope and ringing | | gain | Gain/attenuation in the filter |

| type |

  • 0 - low pass
  • 1 - high pass
  • 2 - bandpass (csg)
  • 3 - bandpass (czpg)
  • 4 - notch
  • 5 - allpass
  • 6 - peaking
  • 7 - low shelf
  • 8 - high shelf

|

Control Pair

[7]

Inputs

| Name | Description | |------|-------------| | *none* | |

CV Inport

[8]

Inputs

| Name | Description | |------|-------------| | *none* | |

CV Outport

[9]

Inputs

| Name | Description | |------|-------------| | input | The signal to be set to the physical output prot as a CV signal |

Fixed Signal

[10]

Inputs

| Name | Description | |------|-------------| | *none* | |

Gate Inport

[11]

Inputs

| Name | Description | |------|-------------| | *none* | |

Gate Outport

[12]

Inputs

| Name | Description | |------|-------------| | input | The signal to be set to the physical output prot as a Gate signal. |

Inverter

[13]

Inputs

| Name | Description | |------|-------------| | input | The signal to be inverted. | | scale | Scaling of the signal | | offset | Offset around which the signal should be inverted. |

LED

[14]

Inputs

| Name | Description | |------|-------------| | input | The RGB value of the LED to be set. Only used if r, g and b are not configured. | | r | The RED value to be set to the physical LED. | | g | The GREEN value to be set to the physical LED. | | b | The BLUE value to be set to the physical LED. |

Lg

[15]

Inputs

| Name | Description | |------|-------------| | input | The signal that wil have *ln* (the natural logarithm) applied to it |

Lg2

[16]

Inputs

| Name | Description | |------|-------------| | input | The signal that wil have *log2* applied to it |

Lg10

[17]

Inputs

| Name | Description | |------|-------------| | input | The signal that wil have *log10* applied to it |

Mixer

[18]

Inputs

| Name | Description | |------|-------------| | inputs[] | An array of signals to be mixed to the ***Output*** | | volumes[] | An array of volume controllers, one for each ***Input*** |

Offset

[19]

Inputs

| Name | Description | |------|-------------| | input | The signal to be offsetted | | offset_control | The amount of offset to be applied to the ***Input*** |

Oscillator

The [Oscillator](blocks/oscillator.md) is a block that generates waveforms at a controllable frequency and amplitude. The start of the waveform is also controllable with the *trigger*, but should be used with caution as it introduces spike frequencies.

[20]

Inputs

| Name | Description | |------|-------------| | frequency | The frequency to generate. For non-SINE, it is the inverse of the full cycle period | | amplitude | The amplitude of the output signal. | | trigger | Re-trigger the wave generation to time zero. |

Pan

[21]

Inputs

| Name | Description | |------|-------------| | input | The signal to be split in a *left* and *right* channel. | | control | The balance between *left* (0V) and *right* (10V) channel |

Sub-blocks

| Name | Description | |------|-------------| | left_channel | | | right_channel | |

Passthru

[22]

Inputs

| Name | Description | |------|-------------| | input | The signal to be pass to the output. |

Potentiometer

[23]

Inputs

| Name | Description | |------|-------------| | *none* | |

Push Button

[24]

Inputs

| Name | Description | |------|-------------| | *none* | |

Scale

[25]

Inputs

| Name | Description | |------|-------------| | input | The signal to be scaled. | | control | The amplication/attenuation control. 0V=muted, 10V=~20dB gain

State Variable Filter

[26]

Inputs

| Name | Description | |------|-------------| | input | Signal to be filtered | | frequency | Frequency to be filtered at | | Q | Q factor which sets slope and ringing | | gain | Gain/attenuation in the filter |

Sub-blocks

| Name | Description | |------|-------------| | lowpass_out | Low pass filter output signal | | highpass_out | High pass filter output signal | | bandpass_out | Bandpass filter output signal | | notch_out | Notch filter output signal |

Volume

[27]

Inputs

| Name | Description | |------|-------------| | input | Signal to be volume controlled. | | control | The amplication/attenuation control. output=input*(0.05 * control + 0.5) |