Csound Csound-dev Csound-tekno Search About

[Csnd] GEN28 in space

Date2025-02-19 21:26
FromEnrico Francioni <00000005323c8739-dmarc-request@LISTSERV.HEANET.IE>
Subject[Csnd] GEN28 in space
Hi,

I'm here again to ask for help:
I once again have serious problems to make the function (ifn) read to the opcode space.
The function is a Gen 28 that reads data from a text file (.txt) to move the sound in the four-phone space.

Maybe CsoundQt has some problem with this?

*

Here is a passage of the csd:






sr = 44100
ksmps = 128
nchnls_i = 1
nchnls = 4
0dbfs = 1


gir ftgen 1, 0, 0, -28, "move.txt"


instr 1

aout oscil .1, 220, 2
kport linseg 0,.2,1,p3-(.2*2),1,.2,0
aout	= aout * kport

ifn = 1

ktime line 0, 5, 5

kx =	0
ky =	0

a1, a2, a3, a4	space aout, ifn, ktime, .1, kx, ky
aLf, aRf, aLr, aRr	spsend

outch 1, a1, 2, a2, 3, a3, 4, a4

endin



i1 0		5
e



*

The content of the "move.txt" file is as follows:

0 1 1
1 -1 -1
2 -1 1
3 1 -1
4 1 1
5 1 1

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

Date2025-02-20 19:59
Fromjoachim heintz
SubjectRe: [Csnd] GEN28 in space
hi enrico -

i tried your code and got an error message about this line, saying that 
function table 2 does not exist:
	aout oscil .1, 220, 2

so when you remove the last argument, it seems to work.  and if you want 
to to me a favor, use oscili or poscil rather than oscil (because oscil 
is not interpolating at all) =)

best -
	joachim


On 19/02/2025 22:26, Enrico Francioni wrote:
> Hi,
> 
> I'm here again to ask for help:
> I once again have serious problems to make the function (ifn) read to the opcode space.
> The function is a Gen 28 that reads data from a text file (.txt) to move the sound in the four-phone space.
> 
> Maybe CsoundQt has some problem with this?
> 
> *
> 
> Here is a passage of the csd:
> 
> 
> 
> 
> 
> 
> sr = 44100
> ksmps = 128
> nchnls_i = 1
> nchnls = 4
> 0dbfs = 1
> 
> 
> gir ftgen 1, 0, 0, -28, "move.txt"
> 
> 
> instr 1
> 
> aout oscil .1, 220, 2
> kport linseg 0,.2,1,p3-(.2*2),1,.2,0
> aout	= aout * kport
> 
> ifn = 1
> 
> ktime line 0, 5, 5
> 
> kx =	0
> ky =	0
> 
> a1, a2, a3, a4	space aout, ifn, ktime, .1, kx, ky
> aLf, aRf, aLr, aRr	spsend
> 
> outch 1, a1, 2, a2, 3, a3, 4, a4
> 
> endin
> 
> 
> 
> i1 0		5
> e
> 
> 
> 
> *
> 
> The content of the "move.txt" file is as follows:
> 
> 0 1 1
> 1 -1 -1
> 2 -1 1
> 3 1 -1
> 4 1 1
> 5 1 1
> 
> 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

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

Date2025-02-28 05:48
FromJosh Moore
SubjectRe: [Csnd] GEN28 in space
sometimes that dirty non-interpolated sound is better, bit reduction even better

On Thu, Feb 20, 2025 at 11:59 AM joachim heintz <jh@joachimheintz.de> wrote:
hi enrico -

i tried your code and got an error message about this line, saying that
function table 2 does not exist:
        aout oscil .1, 220, 2

so when you remove the last argument, it seems to work.  and if you want
to to me a favor, use oscili or poscil rather than oscil (because oscil
is not interpolating at all) =)

best -
        joachim


On 19/02/2025 22:26, Enrico Francioni wrote:
> Hi,
>
> I'm here again to ask for help:
> I once again have serious problems to make the function (ifn) read to the opcode space.
> The function is a Gen 28 that reads data from a text file (.txt) to move the sound in the four-phone space.
>
> Maybe CsoundQt has some problem with this?
>
> *
>
> Here is a passage of the csd:
>
> <CsoundSynthesizer>
> <CsOptions>
> </CsOptions>
> <CsInstruments>
>
> sr = 44100
> ksmps = 128
> nchnls_i = 1
> nchnls = 4
> 0dbfs = 1
>
>
> gir ftgen 1, 0, 0, -28, "move.txt"
>
>
> instr 1
>
> aout oscil .1, 220, 2
> kport linseg 0,.2,1,p3-(.2*2),1,.2,0
> aout  = aout * kport
>
> ifn = 1
>
> ktime line 0, 5, 5
>
> kx =  0
> ky =  0
>
> a1, a2, a3, a4        space aout, ifn, ktime, .1, kx, ky
> aLf, aRf, aLr, aRr    spsend
>
> outch 1, a1, 2, a2, 3, a3, 4, a4
>
> endin
>
> </CsInstruments>
> <CsScore>
> i1 0          5
> e
> </CsScore>
> </CsoundSynthesizer>
>
> *
>
> The content of the "move.txt" file is as follows:
>
> 0 1 1
> 1 -1 -1
> 2 -1 1
> 3 1 -1
> 4 1 1
> 5 1 1
>
> 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

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
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

Date2025-02-28 18:25
Fromjoachim heintz
SubjectRe: [Csnd] GEN28 in space
agreed, but then it is a conscious decision, and not that you are 
surprised that csound sounds that bad ...

On 28/02/2025 06:48, Josh Moore wrote:
> sometimes that dirty non-interpolated sound is better, bit reduction 
> even better
> 
> On Thu, Feb 20, 2025 at 11:59 AM joachim heintz  > wrote:
> 
>     hi enrico -
> 
>     i tried your code and got an error message about this line, saying that
>     function table 2 does not exist:
>              aout oscil .1, 220, 2
> 
>     so when you remove the last argument, it seems to work.  and if you
>     want
>     to to me a favor, use oscili or poscil rather than oscil (because oscil
>     is not interpolating at all) =)
> 
>     best -
>              joachim
> 
> 
>     On 19/02/2025 22:26, Enrico Francioni wrote:
>      > Hi,
>      >
>      > I'm here again to ask for help:
>      > I once again have serious problems to make the function (ifn)
>     read to the opcode space.
>      > The function is a Gen 28 that reads data from a text file (.txt)
>     to move the sound in the four-phone space.
>      >
>      > Maybe CsoundQt has some problem with this?
>      >
>      > *
>      >
>      > Here is a passage of the csd:
>      >
>      > 
>      > 
>      > 
>      > 
>      >
>      > sr = 44100
>      > ksmps = 128
>      > nchnls_i = 1
>      > nchnls = 4
>      > 0dbfs = 1
>      >
>      >
>      > gir ftgen 1, 0, 0, -28, "move.txt"
>      >
>      >
>      > instr 1
>      >
>      > aout oscil .1, 220, 2
>      > kport linseg 0,.2,1,p3-(.2*2),1,.2,0
>      > aout  = aout * kport
>      >
>      > ifn = 1
>      >
>      > ktime line 0, 5, 5
>      >
>      > kx =  0
>      > ky =  0
>      >
>      > a1, a2, a3, a4        space aout, ifn, ktime, .1, kx, ky
>      > aLf, aRf, aLr, aRr    spsend
>      >
>      > outch 1, a1, 2, a2, 3, a3, 4, a4
>      >
>      > endin
>      >
>      > 
>      > 
>      > i1 0          5
>      > e
>      > 
>      > 
>      >
>      > *
>      >
>      > The content of the "move.txt" file is as follows:
>      >
>      > 0 1 1
>      > 1 -1 -1
>      > 2 -1 1
>      > 3 1 -1
>      > 4 1 1
>      > 5 1 1
>      >
>      > Csound mailing list
>      > Csound@listserv.heanet.ie 
>      > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND      listserv.heanet.ie/cgi-bin/wa?A0=CSOUND>
>      > Send bugs reports to
>      > https://github.com/csound/csound/issues      csound/csound/issues>
>      > Discussions of bugs and features can be posted here
> 
>     Csound mailing list
>     Csound@listserv.heanet.ie 
>     https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND      listserv.heanet.ie/cgi-bin/wa?A0=CSOUND>
>     Send bugs reports to
>     https://github.com/csound/csound/issues      csound/issues>
>     Discussions of bugs and features can be posted here
> 
> 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  csound/csound/issues> Discussions of bugs and features can be posted here

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