[Csnd-dev] OT: cs-s7-main
| Date | 2026-11-13 20:03 |
| From | James Hearon |
| Subject | [Csnd-dev] OT: cs-s7-main |
|
This is a nice and very cool application using s7.
For building on linux, I needed to modify a function signature in cs-s7-main/src/cs-s7.c to match my current csound version 7 build:
static CS_VARIABLE* create_s7obj(void* cs, void* p, INSDS ctx) {
CSOUND* csound = (CSOUND) cs;
CS_VARIABLE* var = (CS_VARIABLE )
csound->Calloc(csound, sizeof(CS_VARIABLE));
IGN(p);
var->memBlockSize = CS_FLOAT_ALIGN(sizeof(S7OBJ));
var->initializeVariableMemory = var_init_mem;
var->ctx = ctx;
return var;
}
I also built libtecla and tweaked the CMakeLists.txt to use libtecla for the repl instead of the fallback vanilla repl.
Seems to work fine for the test2.scm,
cs-s7> (load "/opt/cs-s7-main/examples/test2.scm")
;;; test2.com example
(define cs (make-csound))
(csound-options cs "--0dbfs=1")
(csound-options cs "--nchnls=2")
(csound-options cs "-s")
(csound-options cs "-d")
(csound-options cs "-+rtaudio=ALSA")
(csound-options cs "-odevaudio")
(csound-options cs "-b1024")
(csound-options cs "-B1024")
(csound-start cs)
(define code "instr 1
sig:a = oscili(p4, p5)
outs((linen(sig,0.8,p3,0.8)), (linen(sig,0.8,p3,0.8)))
endin
schedule(1,0,2,0.8,440)
")
(csound-compile-string cs code)
Regards,
Jim
|
| Date | 2026-11-13 20:10 |
| From | vlz |
| Subject | Re: [Csnd-dev] OT: cs-s7-main |
| Could you make a PR to adjust this? I have not updated it to be compatible to the release version. Thanks Prof. Victor Lazzarini Maynooth University Ireland On 13 Nov 2026, at 20:04, James Hearon <j_hearon@hotmail.com> wrote:
|
| Date | 2026-11-13 20:26 |
| From | Michael Gogins |
| Subject | Re: [Csnd-dev] OT: cs-s7-main |
Thanks! ----------------------------------------------------- Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Fri, Nov 13, 2026 at 9:04 PM James Hearon <j_hearon@hotmail.com> wrote:
|