WaveBeans / wavebeans

Audio Processing. On scale.
https://wavebeans.io
Apache License 2.0
24 stars 0 forks source link

Custom merge-remap with function #21

Closed asubb closed 4 years ago

asubb commented 4 years ago

We need to add support for merging two different streams by specifying the function to merge with. Also that function may return something different than was specified as an input type.

stream1.merge(stream2) { x, y -> x + y }

The signature of the merge function is:

(T?, T?) -> R
asubb commented 4 years ago

Implemented in https://github.com/asubb/wavebeans/pull/23