def blk.off
import emerging-ezaudio@0.4.0.0/src/mp3_syn.bend as Mp3Synimport 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)