Skip to main content

Transmissions

Data passes between processing operations using connections. Connections can only connect inputs and outputs of the same type, this type including the data type and the transmission type. There are two types of transmissions in Mélodium: Stream and Block.

Stream

A streaming transmission is likely to send as many values as necessary so that the processing operations concerned can carry out their operations.

treatment my_treatment()
input foo: Stream<byte>
output bar: Stream<string>
{
/*
This processing can receive as many bytes as necessary to work,
and send strings when ready.
*/
}

Block

A block transmission sends at most a single value of the given type. This type of transmission is particularly used to observe a result or transmit triggers.

treatment my_treatment()
input foo: Block<string>
output bar: Block<u32>
{
/*
This processing receives a single character string to work with,
and outputs a single integer value as a result.
*/
}