From 1376945b3d351ceeb3ac38210f66627d91f413fd Mon Sep 17 00:00:00 2001 From: Richard Date: Sat, 13 Sep 2025 16:37:04 +0100 Subject: initial --- examples/example1.csd | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 examples/example1.csd (limited to 'examples/example1.csd') diff --git a/examples/example1.csd b/examples/example1.csd new file mode 100644 index 0000000..7108182 --- /dev/null +++ b/examples/example1.csd @@ -0,0 +1,32 @@ + + + + + +sr = 44100 +ksmps = 1 +nchnls = 2 +0dbfs = 1 +seed 0 + +/* + list the cues in the file, showing time in seconds and samples +*/ +instr run + Sfile = "example1.wav" + icues[] cueextract Sfile + isr = filesr(Sfile) + + index = 0 + while (index < lenarray(icues)) do + prints sprintf("%f (%d)\n", icues[index] / sr, icues[index]) + index += 1 + od +endin + + + +i"run" 0 1 + + + -- cgit v1.2.3