diff options
author | Richard <q@1bpm.net> | 2025-09-13 16:37:04 +0100 |
---|---|---|
committer | Richard <q@1bpm.net> | 2025-09-13 16:37:04 +0100 |
commit | 1376945b3d351ceeb3ac38210f66627d91f413fd (patch) | |
tree | d20593c6287ea024ce36c854c5a9244f20c1d917 /examples | |
download | csound-cueextract-1376945b3d351ceeb3ac38210f66627d91f413fd.tar.gz csound-cueextract-1376945b3d351ceeb3ac38210f66627d91f413fd.tar.bz2 csound-cueextract-1376945b3d351ceeb3ac38210f66627d91f413fd.zip |
Diffstat (limited to 'examples')
-rw-r--r-- | examples/example1.csd | 32 | ||||
-rw-r--r-- | examples/example1.wav | bin | 0 -> 353154 bytes |
2 files changed, 32 insertions, 0 deletions
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 @@ +<CsoundSynthesizer> +<CsOptions> +</CsOptions> +<CsInstruments> + +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 + +</CsInstruments> +<CsScore> +i"run" 0 1 +</CsScore> +</CsoundSynthesizer> + diff --git a/examples/example1.wav b/examples/example1.wav Binary files differnew file mode 100644 index 0000000..5e842aa --- /dev/null +++ b/examples/example1.wav |