[Csnd-dev] strget for pfields

Ben Hackbarth <[email protected]> Wed, 11 Mar 2026 11:42:39 +0000
Newsgroups gmane.comp.audio.csound.devel
Message-ID <CAJubPZ4pc6EPBvWhx7qU7KqgEUwRceUyPG_tdNoB4Cg7PheuQw@mail.gmail.com>
--000000000000b64c66064cbe2235
Content-Type: text/plain; charset="UTF-8"

Dear all,

I am running into issues with strget in the latest stable version
(6.18.1_14.arm64_sequoia). More specifically, strget does not seem capable
of pulling strings from p-fields as it once did.
The csd below prints nothing for me at the terminal.
Commit a1580f9cdf331c35dceb486f4231871ce0b00266 works fine, however; I get
'mystring' printed with puts as expected.

Thanks for any insight, Ben


<CsoundSynthesizer>
<CsOptions>
--format=wav /tmp/assemblage.wav
</CsOptions>
<CsInstruments>
sr = 44100
ksmps = 32
nchnls = 2


instr 200
Sfilename   strget   p4
puts Sfilename, 1
endin

</CsInstruments>

<CsScore>
i200 0.0 1 "mystring"
e
</CsScore>
</CsoundSynthesizer>

--000000000000b64c66064cbe2235
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Dear all,</div><div><br></div><div>I am running into =
issues with strget in the latest stable version (6.18.1_14.arm64_sequoia). =
More specifically, strget does not seem capable of pulling strings from p-f=
ields as it once did.</div><div>The csd below prints nothing for me at the =
terminal. Commit=C2=A0a1580f9cdf331c35dceb486f4231871ce0b00266 works fine, =
however; I get &#39;mystring&#39; printed with puts as expected.</div><div>=
<br></div><div>Thanks for any insight, Ben</div><div><br></div><div><br></d=
iv><div>&lt;CsoundSynthesizer&gt;<br>&lt;CsOptions&gt;<br>--format=3Dwav /t=
mp/assemblage.wav<br>&lt;/CsOptions&gt;<br>&lt;CsInstruments&gt;<br>sr =3D =
44100<br>ksmps =3D 32<br>nchnls =3D 2<br><br><br>instr 200<br>	Sfilename =
=C2=A0 strget =C2=A0 p4<br>	puts Sfilename, 1<br>endin<br><br>&lt;/CsInstru=
ments&gt;<br><br>&lt;CsScore&gt;<br>i200 0.0 1 &quot;mystring&quot;<br>e<br=
>&lt;/CsScore&gt;<br>&lt;/CsoundSynthesizer&gt;</div></div>

--000000000000b64c66064cbe2235--