View Source SuperCollider.SynthDef.Encoder (SuperCollider v0.1.5)

Helper functions to encode Elixir data types into the binary format used by SuperCollider.

Link to this section Summary

Functions

Takes an number and encodes it into SuperCollider's 8-bit integer format.

Takes an number and encodes it into SuperCollider's 16-bit integer format.

Takes an number and encodes it into SuperCollider's 32-bit integer format.

Takes an number and encodes it into SuperCollider's 32-bit float format.

Takes a list of numbers and encodes it into SuperCollider's 32-bit float array format.

Takes a list of key-value pairs and encodes it into SuperCollider's dictionary format.

Takes a list of key-value pairs and encodes it into SuperCollider's dictionary format.

Takes a string and encodes it into SuperCollider's pstring format.

Link to this section Functions

Takes an number and encodes it into SuperCollider's 8-bit integer format.

Takes an number and encodes it into SuperCollider's 16-bit integer format.

Takes an number and encodes it into SuperCollider's 32-bit integer format.

Takes an number and encodes it into SuperCollider's 32-bit float format.

Takes a list of numbers and encodes it into SuperCollider's 32-bit float array format.

Link to this function

write_name_float_pairs(name_value_pairs)

View Source

Takes a list of key-value pairs and encodes it into SuperCollider's dictionary format.

In this function, the key-value pairs must be of the following types:

  • key: is a string
  • value: is a float.
Link to this function

write_name_integer_pairs(name_value_pairs)

View Source

Takes a list of key-value pairs and encodes it into SuperCollider's dictionary format.

In this function, the key-value pairs must be of the following types:

  • key: is a string
  • value: is an integer.

Takes a string and encodes it into SuperCollider's pstring format.