| I (eventually) found your source file and I made one edit to lines
808/809
{(char*)sym(OPCODE_NAME), sizeof(dataspace), 0, 3, makeDescription(FAUST_OUTPUTS), makeDescription(FAUST_INPUTS, FAUST_ACTIVES),
(SUBR)init, (SUBR)process32bits }
I then make one change to your compile line t give the opcode name
(and a small change for my file layout)
c++ -std=c++11 -shared -fPIC -Iinclude -DOPCODE_NAME=testonepole
testonepole.dsp.cpp -o testonepole.so
I then ran your .csd file
...
Loading command-line libraries:
./testonepole.so
rtaudio: pulseaudio module enabled
rtmidi: ALSA Raw MIDI module enabled
Elapsed time at end of orchestra compile: real: 0.003s, CPU: 0.003s
sorting score ...
... done
Elapsed time at end of score sort: real: 0.003s, CPU: 0.003s
graphics suppressed, ascii substituted
0dBFS level = 1.0
orch now loaded
audio buffered in 256 sample-frame blocks
PulseAudio output server: default
pulseaudio output open
writing 256 sample blks of 64-bit floats to dac
SECTION 1:
new alloc for instr 1:
B 0.000 .. 1.000 T 1.000 TT 1.000 M: 0.45212
Score finished in csoundPerform().
inactive allocs returned to freespace
end of score. overall amps: 0.45212
overall samples out of range: 0
0 errors in performance
Elapsed time at end of performance: real: 0.835s, CPU: 0.028s
188 256 sample blks of 64-bit floats written to dac
The sound was noise with a spectral gap between 4kHz and 4.9kHz (by
eye not necessarily correct). What did you expect?
==John ffitch
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here |