def ix.poke
import emerging-ezaudio@0.4.0.0/src/mp3_syn.bend as Mp3Synimport Base
354# write a short list into the spectrum Array
355def ix.poke(hop: Nat, acc: Array<F32>, src: List<&2, F32>, +at: U32) -> Array<F32>:
356 match hop src:
357 case 0n _:
358 acc
359 case _ Nil{}:
360 acc
361 case 1n+p +hd <> tl:
362 ix.poke(p, Array.set(F32, acc, at, hd), tl, u.add(at, 1))