INNER CODE UNIT · TypeScript
note
scribbletune/scribbletune · src/cli.ts:352
const note = riffScale[idx >= 0 ? idx % riffScale.length : 0];
sectionCache[letter] = clip({
notes: [note],
randomNotes: riffScale,
pattern: sectionPattern,
...clipParams,
});
}
// Clone section events so each block can be mutated independently downstream if needed.
combined.push(
...sectionCache[letter].map(event => ({
...event,
note: event.note ? [...event.note] : null,
}))
);
}