def blk.off

emerging-ezaudio@0.4.0.0 · src/mp3_syn.bend:1002

import emerging-ezaudio@0.4.0.0/src/mp3_syn.bend as Mp3Syn
import Base

1002# channel offset: the right channel starts at 576 when there are two
1003def blk.off(+nch: U32, right: Bool) -> U32:
1004  match right:
1005    case False{}:
1006      0
1007    case True{}:
1008      u.mul(u.sub(nch, 1), 576)

Uses (4)

Used by (1)