def trim
import emerging-ezaudio@0.4.0.0/main.bend as EmergingEzaudioimport Base
143# frames [start, start + nframes). none when that span passes the end.
144def trim(c: Clip, +start: U32, +nframes: U32) -> Maybe<&2, Clip>:
145 match c:
146 case Clip{+hz, +nch, fmt, +pcm}:
147 trim.go(U32.is_le((start + nframes : U32), count.of(nch, U32.from_nat(List.length(&2, U32, pcm)))), hz, nch,
148 fmt, pcm, start, nframes)
Uses (9)
Used by (0)
No other definition uses this definition.