Csound Csound-dev Csound-tekno Search About

[Csnd] question for docB re dbRackCsound

Date2023-01-08 16:04
FromDave Seidel
Subject[Csnd] question for docB re dbRackCsound
Hi docB!

I'm finally starting to play with dbRackCsound, experimenting with porting a custom instrument I made for the Nebulae module. I'm getting compilation error (assuming that's what the blinking red light indicates). Is there any way to see the error messages?

Thanks,
Dave
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

Date2023-01-08 16:37
FromDave Seidel
SubjectRe: [Csnd] question for docB re dbRackCsound
OK, got it working. Didn't think to actually run the code through Csound on the commandline. D'oh!

On Sun, Jan 8, 2023 at 11:04 AM Dave Seidel <dave.seidel@gmail.com> wrote:
Hi docB!

I'm finally starting to play with dbRackCsound, experimenting with porting a custom instrument I made for the Nebulae module. I'm getting compilation error (assuming that's what the blinking red light indicates). Is there any way to see the error messages?

Thanks,
Dave
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

Date2023-01-08 18:01
FromDave Seidel
SubjectRe: [Csnd] question for docB re dbRackCsound
New issue: I haven't yet been able to get the control inputs to work Here's an example snippet:

  koffa = scale2(chnget:k("P1"), 0.001, 0.1, -10, 10)
  koffb = scale2(chnget:k("IN1C1"), 0.001, 0.1, -5, -5)
  koff = koffa ;+ koffb
  koff1 = koff
  koff2 = 2 * koff
  koff3 = 3 * koff
  koff4 = 4 * koff

 Here, I'm trying to get the value in IN1C1 and add it to the value of P1. If I change the line

    koff = koffa ;+ koffb 

to 

    koff = koffa + koffb 

(i.e., remove the comment), this kills Rack.exe.

What am I doing wrong?

On Sun, Jan 8, 2023 at 11:37 AM Dave Seidel <dave.seidel@gmail.com> wrote:
OK, got it working. Didn't think to actually run the code through Csound on the commandline. D'oh!

On Sun, Jan 8, 2023 at 11:04 AM Dave Seidel <dave.seidel@gmail.com> wrote:
Hi docB!

I'm finally starting to play with dbRackCsound, experimenting with porting a custom instrument I made for the Nebulae module. I'm getting compilation error (assuming that's what the blinking red light indicates). Is there any way to see the error messages?

Thanks,
Dave
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

Date2023-01-08 18:24
FromdocB <000005d2745f1ec0-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [Csnd] question for docB re dbRackCsound
Hi

i think here is the problem

 > koffb = scale2(chnget:k("IN1C1"), 0.001, 0.1, -5, -5)

as scale2 seems to return infinity or "not a number" if the range is -5,-5

should be -5,5 i guess

On linux this does not crash Rack but there is NAN on the output.

best regards

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

Date2023-01-08 19:29
FromDave Seidel
SubjectRe: [Csnd] question for docB re dbRackCsound
Argh! That was it, thanks! One of those insidious bugs that isn't  caught by a syntax check. This works now for IN1, but now my usage of IN2 is failing (without that bug, but probably with a different one:

  kndxa = scale2(chnget:k("P2"), giNumTables-1, 0, -10, 10)  
  kndxb = scale2(chnget:k("IN2C1"), giNumTables-1, 0, -5, 5)
  kndx = kndxa ;+ kndxb
  ftmorf kndx, giList, giMorf  
  
I threw in the qnan() check just to see what happens, but this code fails with or without that check, apparently on use of the kndxb variable.. I'm sure that there's some other horrible bug that I am just not seeing. I am sending similar LFOs to IN1 and IN2 (-5 to +5).

(BTW: the workflow I'm using now is to edit the Csound code in VSCode as an ORC file, and then execute "csound --orc --syntax-check-only <filename>"  before pasting it into the module.)

On Sun, Jan 8, 2023 at 1:25 PM docB <000005d2745f1ec0-dmarc-request@listserv.heanet.ie> wrote:
Hi

i think here is the problem

 > koffb = scale2(chnget:k("IN1C1"), 0.001, 0.1, -5, -5)

as scale2 seems to return infinity or "not a number" if the range is -5,-5

should be -5,5 i guess

On linux this does not crash Rack but there is NAN on the output.

best regards

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

Date2023-01-08 19:33
FromDave Seidel
SubjectRe: [Csnd] question for docB re dbRackCsound
Attachmentsrisset.orc  
Attaching the entire ORC file for context.

On Sun, Jan 8, 2023 at 2:29 PM Dave Seidel <dave.seidel@gmail.com> wrote:
Argh! That was it, thanks! One of those insidious bugs that isn't  caught by a syntax check. This works now for IN1, but now my usage of IN2 is failing (without that bug, but probably with a different one:

  kndxa = scale2(chnget:k("P2"), giNumTables-1, 0, -10, 10)  
  kndxb = scale2(chnget:k("IN2C1"), giNumTables-1, 0, -5, 5)
  kndx = kndxa ;+ kndxb
  ftmorf kndx, giList, giMorf  
  
I threw in the qnan() check just to see what happens, but this code fails with or without that check, apparently on use of the kndxb variable.. I'm sure that there's some other horrible bug that I am just not seeing. I am sending similar LFOs to IN1 and IN2 (-5 to +5).

(BTW: the workflow I'm using now is to edit the Csound code in VSCode as an ORC file, and then execute "csound --orc --syntax-check-only <filename>"  before pasting it into the module.)

On Sun, Jan 8, 2023 at 1:25 PM docB <000005d2745f1ec0-dmarc-request@listserv.heanet.ie> wrote:
Hi

i think here is the problem

 > koffb = scale2(chnget:k("IN1C1"), 0.001, 0.1, -5, -5)

as scale2 seems to return infinity or "not a number" if the range is -5,-5

should be -5,5 i guess

On linux this does not crash Rack but there is NAN on the output.

best regards

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

Date2023-01-08 19:43
FromDave Seidel
SubjectRe: [Csnd] question for docB re dbRackCsound
Attachmentsrisset.orc.txt  
Seems like the previous attachment was rejected, here it is again with a .txt suffix.

On Sun, Jan 8, 2023 at 2:33 PM Dave Seidel <dave.seidel@gmail.com> wrote:
Attaching the entire ORC file for context.

On Sun, Jan 8, 2023 at 2:29 PM Dave Seidel <dave.seidel@gmail.com> wrote:
Argh! That was it, thanks! One of those insidious bugs that isn't  caught by a syntax check. This works now for IN1, but now my usage of IN2 is failing (without that bug, but probably with a different one:

  kndxa = scale2(chnget:k("P2"), giNumTables-1, 0, -10, 10)  
  kndxb = scale2(chnget:k("IN2C1"), giNumTables-1, 0, -5, 5)
  kndx = kndxa ;+ kndxb
  ftmorf kndx, giList, giMorf  
  
I threw in the qnan() check just to see what happens, but this code fails with or without that check, apparently on use of the kndxb variable.. I'm sure that there's some other horrible bug that I am just not seeing. I am sending similar LFOs to IN1 and IN2 (-5 to +5).

(BTW: the workflow I'm using now is to edit the Csound code in VSCode as an ORC file, and then execute "csound --orc --syntax-check-only <filename>"  before pasting it into the module.)

On Sun, Jan 8, 2023 at 1:25 PM docB <000005d2745f1ec0-dmarc-request@listserv.heanet.ie> wrote:
Hi

i think here is the problem

 > koffb = scale2(chnget:k("IN1C1"), 0.001, 0.1, -5, -5)

as scale2 seems to return infinity or "not a number" if the range is -5,-5

should be -5,5 i guess

On linux this does not crash Rack but there is NAN on the output.

best regards

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

Date2023-01-08 19:48
FromdocB <000005d2745f1ec0-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [Csnd] question for docB re dbRackCsound

In the logfile of Rack there is the csound error message:

Invalid ftable no. 0.000000

so i guess that frmorf gets a table index of 0.

maybe this should be checked before passing.


On 1/8/23 20:33, Dave Seidel wrote:
Attaching the entire ORC file for context.

On Sun, Jan 8, 2023 at 2:29 PM Dave Seidel <dave.seidel@gmail.com> wrote:
Argh! That was it, thanks! One of those insidious bugs that isn't  caught by a syntax check. This works now for IN1, but now my usage of IN2 is failing (without that bug, but probably with a different one:

  kndxa = scale2(chnget:k("P2"), giNumTables-1, 0, -10, 10)  
  kndxb = scale2(chnget:k("IN2C1"), giNumTables-1, 0, -5, 5)
  kndx = kndxa ;+ kndxb
  ftmorf kndx, giList, giMorf  
  
I threw in the qnan() check just to see what happens, but this code fails with or without that check, apparently on use of the kndxb variable.. I'm sure that there's some other horrible bug that I am just not seeing. I am sending similar LFOs to IN1 and IN2 (-5 to +5).

(BTW: the workflow I'm using now is to edit the Csound code in VSCode as an ORC file, and then execute "csound --orc --syntax-check-only <filename>"  before pasting it into the module.)

On Sun, Jan 8, 2023 at 1:25 PM docB <000005d2745f1ec0-dmarc-request@listserv.heanet.ie> wrote:
Hi

i think here is the problem

 > koffb = scale2(chnget:k("IN1C1"), 0.001, 0.1, -5, -5)

as scale2 seems to return infinity or "not a number" if the range is -5,-5

should be -5,5 i guess

On linux this does not crash Rack but there is NAN on the output.

best regards

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

Date2023-01-08 20:12
FromDave Seidel
SubjectRe: [Csnd] question for docB re dbRackCsound
Interesting, I don't get that error. And AFAIK, ftmorf is zero-based, which is how I've been using it for a while. But thanks very much, I will keep looking.

On Sun, Jan 8, 2023 at 2:49 PM docB <000005d2745f1ec0-dmarc-request@listserv.heanet.ie> wrote:

In the logfile of Rack there is the csound error message:

Invalid ftable no. 0.000000

so i guess that frmorf gets a table index of 0.

maybe this should be checked before passing.


On 1/8/23 20:33, Dave Seidel wrote:
Attaching the entire ORC file for context.

On Sun, Jan 8, 2023 at 2:29 PM Dave Seidel <dave.seidel@gmail.com> wrote:
Argh! That was it, thanks! One of those insidious bugs that isn't  caught by a syntax check. This works now for IN1, but now my usage of IN2 is failing (without that bug, but probably with a different one:

  kndxa = scale2(chnget:k("P2"), giNumTables-1, 0, -10, 10)  
  kndxb = scale2(chnget:k("IN2C1"), giNumTables-1, 0, -5, 5)
  kndx = kndxa ;+ kndxb
  ftmorf kndx, giList, giMorf  
  
I threw in the qnan() check just to see what happens, but this code fails with or without that check, apparently on use of the kndxb variable.. I'm sure that there's some other horrible bug that I am just not seeing. I am sending similar LFOs to IN1 and IN2 (-5 to +5).

(BTW: the workflow I'm using now is to edit the Csound code in VSCode as an ORC file, and then execute "csound --orc --syntax-check-only <filename>"  before pasting it into the module.)

On Sun, Jan 8, 2023 at 1:25 PM docB <000005d2745f1ec0-dmarc-request@listserv.heanet.ie> wrote:
Hi

i think here is the problem

 > koffb = scale2(chnget:k("IN1C1"), 0.001, 0.1, -5, -5)

as scale2 seems to return infinity or "not a number" if the range is -5,-5

should be -5,5 i guess

On linux this does not crash Rack but there is NAN on the output.

best regards

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

Date2023-01-08 20:26
FromDave Seidel
SubjectRe: [Csnd] question for docB re dbRackCsound
BTW, I don't know if this is possible, but it would be really useful to send Csound print*() output to the Rack log.
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

Date2023-01-08 20:34
FromdocB <000005d2745f1ec0-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [Csnd] question for docB re dbRackCsound

on my side it does show:

printk 0.5 kindx

[50.414 info src/DBCSound.hpp:100 compile] csound compiled ksnps=32 nchnls=2
 i   1 time    52.23000:     2.50000
 i   1 time    52.73000:     2.50000
 i   1 time    53.23000:     2.50000
 i   1 time    53.73000:     2.50000
 i   1 time    54.23000:     2.50000
 i   1 time    54.73000:     2.50000
 i   1 time    55.23000:     2.50000
 i   1 time    55.73000:     2.50000

On 1/8/23 21:26, Dave Seidel wrote:
BTW, I don't know if this is possible, but it would be really useful to send Csound print*() output to the Rack log.
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

Date2023-01-08 20:46
FromdocB <000005d2745f1ec0-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [Csnd] question for docB re dbRackCsound

From my tests i assume that there can an index overflow i.e. kindx > 6 if P2 is < 10

It does work if P2 = 10 what means that kndxb = 0. if kndxb > 0  then there could occur greater indexes as in the log file printed

(i added "printk 0.5,kndx")

i   1 time   377.42467:     7.90272
Invalid ftable no. 0.000000

if P2 = 10 then it looks  ok e.g.

i   1 time    45.50067:     0.18161
 i   1 time    46.00067:     1.36173
 i   1 time    46.50067:     3.09503
 i   1 time    47.00067:     4.53410
 i   1 time    47.50067:     4.98996
 i   1 time    48.00067:     4.24227
 i   1 time    48.50067:     2.65244
 i   1 time    49.00067:     0.98279
 i   1 time    49.50067:     0.05293
 i   1 time    50.00067:     0.31542
 i   1 time    50.50067:     1.64635
 i   1 time    51.00067:     3.38955
 i   1 time    51.50067:     4.69761
 i   1 time    52.00067:     4.94344
 i   1 time    52.50067:     4.00820
 i   1 time    53.00067:     2.34322
 i   1 time    53.50067:     0.74858
 i   1 time    54.00067:     0.00846
 i   1 time    54.50067:     0.48291



 

On 1/8/23 21:12, Dave Seidel wrote:
Interesting, I don't get that error. And AFAIK, ftmorf is zero-based, which is how I've been using it for a while. But thanks very much, I will keep looking.

On Sun, Jan 8, 2023 at 2:49 PM docB <000005d2745f1ec0-dmarc-request@listserv.heanet.ie> wrote:

In the logfile of Rack there is the csound error message:

Invalid ftable no. 0.000000

so i guess that frmorf gets a table index of 0.

maybe this should be checked before passing.


On 1/8/23 20:33, Dave Seidel wrote:
Attaching the entire ORC file for context.

On Sun, Jan 8, 2023 at 2:29 PM Dave Seidel <dave.seidel@gmail.com> wrote:
Argh! That was it, thanks! One of those insidious bugs that isn't  caught by a syntax check. This works now for IN1, but now my usage of IN2 is failing (without that bug, but probably with a different one:

  kndxa = scale2(chnget:k("P2"), giNumTables-1, 0, -10, 10)  
  kndxb = scale2(chnget:k("IN2C1"), giNumTables-1, 0, -5, 5)
  kndx = kndxa ;+ kndxb
  ftmorf kndx, giList, giMorf  
  
I threw in the qnan() check just to see what happens, but this code fails with or without that check, apparently on use of the kndxb variable.. I'm sure that there's some other horrible bug that I am just not seeing. I am sending similar LFOs to IN1 and IN2 (-5 to +5).

(BTW: the workflow I'm using now is to edit the Csound code in VSCode as an ORC file, and then execute "csound --orc --syntax-check-only <filename>"  before pasting it into the module.)

On Sun, Jan 8, 2023 at 1:25 PM docB <000005d2745f1ec0-dmarc-request@listserv.heanet.ie> wrote:
Hi

i think here is the problem

 > koffb = scale2(chnget:k("IN1C1"), 0.001, 0.1, -5, -5)

as scale2 seems to return infinity or "not a number" if the range is -5,-5

should be -5,5 i guess

On linux this does not crash Rack but there is NAN on the output.

best regards

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

Date2023-01-08 20:53
FromPartev Sarkissian <0000060b2ef1338e-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [Csnd] question for docB re dbRackCsound
Had issue with compiling error with my onboard mic a couple weeks back, which 
I never use to begin with, I leave it turned off, 'mic in 0' and never a problem. 

Checked internal setting on the laptop, still got 'mic in 0' which was never 
problem before. Still had compiling error. 

I uninstalled dbRackCsound, check my system preference settings for audio, 
nothing changed, ran one of my Csound projects and it all came back. No 
compiling errors. 

Maybe with all the audio software on my computer, it didn't want to deal 
with another. So now I'm wondering about that. dbRack use resources that 
prioritized for itself over Csound???


-PBS

Hmmm,.... 
Thinking face



-----Original Message-----
From: Dave Seidel <dave.seidel@GMAIL.COM>
To: CSOUND@LISTSERV.HEANET.IE
Sent: Sun, Jan 8, 2023 4:37 pm
Subject: Re: [Csnd] question for docB re dbRackCsound

OK, got it working. Didn't think to actually run the code through Csound on the commandline. D'oh!

On Sun, Jan 8, 2023 at 11:04 AM Dave Seidel <dave.seidel@gmail.com> wrote:
Hi docB!

I'm finally starting to play with dbRackCsound, experimenting with porting a custom instrument I made for the Nebulae module. I'm getting compilation error (assuming that's what the blinking red light indicates). Is there any way to see the error messages?

Thanks,
Dave
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

Date2023-01-08 21:10
FromdocB <000005d2745f1ec0-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [Csnd] question for docB re dbRackCsound

i cannot understand your compiling issue with csound, but dbRackCsound simply runs one csound instance

which does not interfere with any audio devices of the system as it uses the vcvrack audio inputs and outputs.

If the csound module is deleted in a vcv rack patch, the csound instance is stopped and destroyed.

On 1/8/23 21:53, Partev Sarkissian wrote:
Had issue with compiling error with my onboard mic a couple weeks back, which 
I never use to begin with, I leave it turned off, 'mic in 0' and never a problem. 

Checked internal setting on the laptop, still got 'mic in 0' which was never 
problem before. Still had compiling error. 

I uninstalled dbRackCsound, check my system preference settings for audio, 
nothing changed, ran one of my Csound projects and it all came back. No 
compiling errors. 

Maybe with all the audio software on my computer, it didn't want to deal 
with another. So now I'm wondering about that. dbRack use resources that 
prioritized for itself over Csound???


-PBS

Hmmm,.... 
Thinking face



-----Original Message-----
From: Dave Seidel <dave.seidel@GMAIL.COM>
To: CSOUND@LISTSERV.HEANET.IE
Sent: Sun, Jan 8, 2023 4:37 pm
Subject: Re: [Csnd] question for docB re dbRackCsound

OK, got it working. Didn't think to actually run the code through Csound on the commandline. D'oh!

On Sun, Jan 8, 2023 at 11:04 AM Dave Seidel <dave.seidel@gmail.com> wrote:
Hi docB!

I'm finally starting to play with dbRackCsound, experimenting with porting a custom instrument I made for the Nebulae module. I'm getting compilation error (assuming that's what the blinking red light indicates). Is there any way to see the error messages?

Thanks,
Dave
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

Date2023-01-08 21:20
FromPartev Sarkissian <0000060b2ef1338e-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [Csnd] question for docB re dbRackCsound



🤔🤔 Hmmm,… double hmmm,… 


-PBS 



-----Original Message-----
From: docB <000005d2745f1ec0-dmarc-request@LISTSERV.HEANET.IE>
To: CSOUND@LISTSERV.HEANET.IE
Sent: Sun, Jan 8, 2023 9:10 pm
Subject: Re: [Csnd] question for docB re dbRackCsound

i cannot understand your compiling issue with csound, but dbRackCsound simply runs one csound instance
which does not interfere with any audio devices of the system as it uses the vcvrack audio inputs and outputs.
If the csound module is deleted in a vcv rack patch, the csound instance is stopped and destroyed.
On 1/8/23 21:53, Partev Sarkissian wrote:
Had issue with compiling error with my onboard mic a couple weeks back, which 
I never use to begin with, I leave it turned off, 'mic in 0' and never a problem. 

Checked internal setting on the laptop, still got 'mic in 0' which was never 
problem before. Still had compiling error. 

I uninstalled dbRackCsound, check my system preference settings for audio, 
nothing changed, ran one of my Csound projects and it all came back. No 
compiling errors. 

Maybe with all the audio software on my computer, it didn't want to deal 
with another. So now I'm wondering about that. dbRack use resources that 
prioritized for itself over Csound???


-PBS

Hmmm,.... 
Thinking face



-----Original Message-----
From: Dave Seidel <dave.seidel@GMAIL.COM>
To: CSOUND@LISTSERV.HEANET.IE
Sent: Sun, Jan 8, 2023 4:37 pm
Subject: Re: [Csnd] question for docB re dbRackCsound

OK, got it working. Didn't think to actually run the code through Csound on the commandline. D'oh!

On Sun, Jan 8, 2023 at 11:04 AM Dave Seidel <dave.seidel@gmail.com> wrote:
Hi docB!

I'm finally starting to play with dbRackCsound, experimenting with porting a custom instrument I made for the Nebulae module. I'm getting compilation error (assuming that's what the blinking red light indicates). Is there any way to see the error messages?

Thanks,
Dave
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
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

Date2023-01-08 21:37
FromDave Seidel
SubjectRe: [Csnd] question for docB re dbRackCsound
I need to take a break from this and cook dinner. However, I note that "printk" does not leave anything in the rack log for me.

On Sun, Jan 8, 2023 at 4:20 PM Partev Sarkissian <0000060b2ef1338e-dmarc-request@listserv.heanet.ie> wrote:



🤔🤔 Hmmm,… double hmmm,… 


-PBS 



-----Original Message-----
From: docB <000005d2745f1ec0-dmarc-request@LISTSERV.HEANET.IE>
To: CSOUND@LISTSERV.HEANET.IE
Sent: Sun, Jan 8, 2023 9:10 pm
Subject: Re: [Csnd] question for docB re dbRackCsound

i cannot understand your compiling issue with csound, but dbRackCsound simply runs one csound instance
which does not interfere with any audio devices of the system as it uses the vcvrack audio inputs and outputs.
If the csound module is deleted in a vcv rack patch, the csound instance is stopped and destroyed.
On 1/8/23 21:53, Partev Sarkissian wrote:
Had issue with compiling error with my onboard mic a couple weeks back, which 
I never use to begin with, I leave it turned off, 'mic in 0' and never a problem. 

Checked internal setting on the laptop, still got 'mic in 0' which was never 
problem before. Still had compiling error. 

I uninstalled dbRackCsound, check my system preference settings for audio, 
nothing changed, ran one of my Csound projects and it all came back. No 
compiling errors. 

Maybe with all the audio software on my computer, it didn't want to deal 
with another. So now I'm wondering about that. dbRack use resources that 
prioritized for itself over Csound???


-PBS

Hmmm,.... 
Thinking face



-----Original Message-----
From: Dave Seidel <dave.seidel@GMAIL.COM>
To: CSOUND@LISTSERV.HEANET.IE
Sent: Sun, Jan 8, 2023 4:37 pm
Subject: Re: [Csnd] question for docB re dbRackCsound

OK, got it working. Didn't think to actually run the code through Csound on the commandline. D'oh!

On Sun, Jan 8, 2023 at 11:04 AM Dave Seidel <dave.seidel@gmail.com> wrote:
Hi docB!

I'm finally starting to play with dbRackCsound, experimenting with porting a custom instrument I made for the Nebulae module. I'm getting compilation error (assuming that's what the blinking red light indicates). Is there any way to see the error messages?

Thanks,
Dave
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
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

Date2023-01-08 21:46
FromdocB <000005d2745f1ec0-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [Csnd] question for docB re dbRackCsound


On 1/8/23 22:37, Dave Seidel wrote:
I need to take a break from this and cook dinner. However, I note that "printk" does not leave anything in the rack log for me.
ok i will check this, maybe i have to grab the csound messages and put them into the rack info log.

On Sun, Jan 8, 2023 at 4:20 PM Partev Sarkissian <0000060b2ef1338e-dmarc-request@listserv.heanet.ie> wrote:



🤔🤔 Hmmm,… double hmmm,… 


-PBS 



-----Original Message-----
From: docB <000005d2745f1ec0-dmarc-request@LISTSERV.HEANET.IE>
To: CSOUND@LISTSERV.HEANET.IE
Sent: Sun, Jan 8, 2023 9:10 pm
Subject: Re: [Csnd] question for docB re dbRackCsound

i cannot understand your compiling issue with csound, but dbRackCsound simply runs one csound instance
which does not interfere with any audio devices of the system as it uses the vcvrack audio inputs and outputs.
If the csound module is deleted in a vcv rack patch, the csound instance is stopped and destroyed.
On 1/8/23 21:53, Partev Sarkissian wrote:
Had issue with compiling error with my onboard mic a couple weeks back, which 
I never use to begin with, I leave it turned off, 'mic in 0' and never a problem. 

Checked internal setting on the laptop, still got 'mic in 0' which was never 
problem before. Still had compiling error. 

I uninstalled dbRackCsound, check my system preference settings for audio, 
nothing changed, ran one of my Csound projects and it all came back. No 
compiling errors. 

Maybe with all the audio software on my computer, it didn't want to deal 
with another. So now I'm wondering about that. dbRack use resources that 
prioritized for itself over Csound???


-PBS

Hmmm,.... 
Thinking face



-----Original Message-----
From: Dave Seidel <dave.seidel@GMAIL.COM>
To: CSOUND@LISTSERV.HEANET.IE
Sent: Sun, Jan 8, 2023 4:37 pm
Subject: Re: [Csnd] question for docB re dbRackCsound

OK, got it working. Didn't think to actually run the code through Csound on the commandline. D'oh!

On Sun, Jan 8, 2023 at 11:04 AM Dave Seidel <dave.seidel@gmail.com> wrote:
Hi docB!

I'm finally starting to play with dbRackCsound, experimenting with porting a custom instrument I made for the Nebulae module. I'm getting compilation error (assuming that's what the blinking red light indicates). Is there any way to see the error messages?

Thanks,
Dave
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
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

Date2023-01-08 22:02
FromDave Seidel
SubjectRe: [Csnd] question for docB re dbRackCsound
I'm on Win11, if that makes a difference.

On Sun, Jan 8, 2023 at 4:47 PM docB <000005d2745f1ec0-dmarc-request@listserv.heanet.ie> wrote:


On 1/8/23 22:37, Dave Seidel wrote:
I need to take a break from this and cook dinner. However, I note that "printk" does not leave anything in the rack log for me.
ok i will check this, maybe i have to grab the csound messages and put them into the rack info log.

On Sun, Jan 8, 2023 at 4:20 PM Partev Sarkissian <0000060b2ef1338e-dmarc-request@listserv.heanet.ie> wrote:



🤔🤔 Hmmm,… double hmmm,… 


-PBS 



-----Original Message-----
From: docB <000005d2745f1ec0-dmarc-request@LISTSERV.HEANET.IE>
To: CSOUND@LISTSERV.HEANET.IE
Sent: Sun, Jan 8, 2023 9:10 pm
Subject: Re: [Csnd] question for docB re dbRackCsound

i cannot understand your compiling issue with csound, but dbRackCsound simply runs one csound instance
which does not interfere with any audio devices of the system as it uses the vcvrack audio inputs and outputs.
If the csound module is deleted in a vcv rack patch, the csound instance is stopped and destroyed.
On 1/8/23 21:53, Partev Sarkissian wrote:
Had issue with compiling error with my onboard mic a couple weeks back, which 
I never use to begin with, I leave it turned off, 'mic in 0' and never a problem. 

Checked internal setting on the laptop, still got 'mic in 0' which was never 
problem before. Still had compiling error. 

I uninstalled dbRackCsound, check my system preference settings for audio, 
nothing changed, ran one of my Csound projects and it all came back. No 
compiling errors. 

Maybe with all the audio software on my computer, it didn't want to deal 
with another. So now I'm wondering about that. dbRack use resources that 
prioritized for itself over Csound???


-PBS

Hmmm,.... 
Thinking face



-----Original Message-----
From: Dave Seidel <dave.seidel@GMAIL.COM>
To: CSOUND@LISTSERV.HEANET.IE
Sent: Sun, Jan 8, 2023 4:37 pm
Subject: Re: [Csnd] question for docB re dbRackCsound

OK, got it working. Didn't think to actually run the code through Csound on the commandline. D'oh!

On Sun, Jan 8, 2023 at 11:04 AM Dave Seidel <dave.seidel@gmail.com> wrote:
Hi docB!

I'm finally starting to play with dbRackCsound, experimenting with porting a custom instrument I made for the Nebulae module. I'm getting compilation error (assuming that's what the blinking red light indicates). Is there any way to see the error messages?

Thanks,
Dave
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
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
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

Date2023-01-08 22:46
FromdocB <000005d2745f1ec0-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [Csnd] question for docB re dbRackCsound

https://github.com/docb/dbRackCsound/releases/tag/v2.0.4

here you can get a version which displays the csound messages as Rack INFO messages.

(tested on Win11 VM)


On 1/8/23 23:02, Dave Seidel wrote:
I'm on Win11, if that makes a difference.

On Sun, Jan 8, 2023 at 4:47 PM docB <000005d2745f1ec0-dmarc-request@listserv.heanet.ie> wrote:


On 1/8/23 22:37, Dave Seidel wrote:
I need to take a break from this and cook dinner. However, I note that "printk" does not leave anything in the rack log for me.
ok i will check this, maybe i have to grab the csound messages and put them into the rack info log.

On Sun, Jan 8, 2023 at 4:20 PM Partev Sarkissian <0000060b2ef1338e-dmarc-request@listserv.heanet.ie> wrote:



🤔🤔 Hmmm,… double hmmm,… 


-PBS 



-----Original Message-----
From: docB <000005d2745f1ec0-dmarc-request@LISTSERV.HEANET.IE>
To: CSOUND@LISTSERV.HEANET.IE
Sent: Sun, Jan 8, 2023 9:10 pm
Subject: Re: [Csnd] question for docB re dbRackCsound

i cannot understand your compiling issue with csound, but dbRackCsound simply runs one csound instance
which does not interfere with any audio devices of the system as it uses the vcvrack audio inputs and outputs.
If the csound module is deleted in a vcv rack patch, the csound instance is stopped and destroyed.
On 1/8/23 21:53, Partev Sarkissian wrote:
Had issue with compiling error with my onboard mic a couple weeks back, which 
I never use to begin with, I leave it turned off, 'mic in 0' and never a problem. 

Checked internal setting on the laptop, still got 'mic in 0' which was never 
problem before. Still had compiling error. 

I uninstalled dbRackCsound, check my system preference settings for audio, 
nothing changed, ran one of my Csound projects and it all came back. No 
compiling errors. 

Maybe with all the audio software on my computer, it didn't want to deal 
with another. So now I'm wondering about that. dbRack use resources that 
prioritized for itself over Csound???


-PBS

Hmmm,.... 
Thinking face



-----Original Message-----
From: Dave Seidel <dave.seidel@GMAIL.COM>
To: CSOUND@LISTSERV.HEANET.IE
Sent: Sun, Jan 8, 2023 4:37 pm
Subject: Re: [Csnd] question for docB re dbRackCsound

OK, got it working. Didn't think to actually run the code through Csound on the commandline. D'oh!

On Sun, Jan 8, 2023 at 11:04 AM Dave Seidel <dave.seidel@gmail.com> wrote:
Hi docB!

I'm finally starting to play with dbRackCsound, experimenting with porting a custom instrument I made for the Nebulae module. I'm getting compilation error (assuming that's what the blinking red light indicates). Is there any way to see the error messages?

Thanks,
Dave
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
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
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

Date2023-01-09 02:43
FromDave Seidel
SubjectRe: [Csnd] question for docB re dbRackCsound
Thanks very much, I will try it out, should be very helpful in debugging my issue. 

On Sun, Jan 8, 2023, 5:48 PM docB <000005d2745f1ec0-dmarc-request@listserv.heanet.ie> wrote:

https://github.com/docb/dbRackCsound/releases/tag/v2.0.4

here you can get a version which displays the csound messages as Rack INFO messages.

(tested on Win11 VM)


On 1/8/23 23:02, Dave Seidel wrote:
I'm on Win11, if that makes a difference.

On Sun, Jan 8, 2023 at 4:47 PM docB <000005d2745f1ec0-dmarc-request@listserv.heanet.ie> wrote:


On 1/8/23 22:37, Dave Seidel wrote:
I need to take a break from this and cook dinner. However, I note that "printk" does not leave anything in the rack log for me.
ok i will check this, maybe i have to grab the csound messages and put them into the rack info log.

On Sun, Jan 8, 2023 at 4:20 PM Partev Sarkissian <0000060b2ef1338e-dmarc-request@listserv.heanet.ie> wrote:



🤔🤔 Hmmm,… double hmmm,… 


-PBS 



-----Original Message-----
From: docB <000005d2745f1ec0-dmarc-request@LISTSERV.HEANET.IE>
To: CSOUND@LISTSERV.HEANET.IE
Sent: Sun, Jan 8, 2023 9:10 pm
Subject: Re: [Csnd] question for docB re dbRackCsound

i cannot understand your compiling issue with csound, but dbRackCsound simply runs one csound instance
which does not interfere with any audio devices of the system as it uses the vcvrack audio inputs and outputs.
If the csound module is deleted in a vcv rack patch, the csound instance is stopped and destroyed.
On 1/8/23 21:53, Partev Sarkissian wrote:
Had issue with compiling error with my onboard mic a couple weeks back, which 
I never use to begin with, I leave it turned off, 'mic in 0' and never a problem. 

Checked internal setting on the laptop, still got 'mic in 0' which was never 
problem before. Still had compiling error. 

I uninstalled dbRackCsound, check my system preference settings for audio, 
nothing changed, ran one of my Csound projects and it all came back. No 
compiling errors. 

Maybe with all the audio software on my computer, it didn't want to deal 
with another. So now I'm wondering about that. dbRack use resources that 
prioritized for itself over Csound???


-PBS

Hmmm,.... 
Thinking face



-----Original Message-----
From: Dave Seidel <dave.seidel@GMAIL.COM>
To: CSOUND@LISTSERV.HEANET.IE
Sent: Sun, Jan 8, 2023 4:37 pm
Subject: Re: [Csnd] question for docB re dbRackCsound

OK, got it working. Didn't think to actually run the code through Csound on the commandline. D'oh!

On Sun, Jan 8, 2023 at 11:04 AM Dave Seidel <dave.seidel@gmail.com> wrote:
Hi docB!

I'm finally starting to play with dbRackCsound, experimenting with porting a custom instrument I made for the Nebulae module. I'm getting compilation error (assuming that's what the blinking red light indicates). Is there any way to see the error messages?

Thanks,
Dave
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
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
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

Date2023-01-09 15:41
FromDave Seidel
SubjectRe: [Csnd] question for docB re dbRackCsound
OK, I found my fundamental problem, which was that two of my calls to scale2 had the min/max values reversed.

Now I am running into a different issue, which is a bit subtle. I am using IN1 and IN2 for LFO inputs. The LFO I'm using (which is typical) has a range of -5 to 5, so I am scaling the input based on those min/max values. If I remove the cable from INx, they return to 0. This makes sense, but my scaling converts them to non-zero values. I understand what is happening, but what I'd really like is a way to know that INx is not cabled so I can then completely disregard the value from the corresponding channel. I hope this makes sense. Basically, I need to know if each IN port is cabled or not. I can't just compare to 0.
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

Date2023-01-09 16:49
FromDave Seidel
SubjectRe: [Csnd] question for docB re dbRackCsound
OK, I can work around this by using unipolar LFOs instead of bipolar LFOs. But I still think we need a way to know if the control inputs are connected if we want to be able to use bipolar control inputs.

Another issue: if I have a control signal connected, and then disconnect it, the channel for that input retains the value of the last incoming signal. I think input channels should reset to 0 when disconnected.

On Mon, Jan 9, 2023 at 10:41 AM Dave Seidel <dave.seidel@gmail.com> wrote:
OK, I found my fundamental problem, which was that two of my calls to scale2 had the min/max values reversed.

Now I am running into a different issue, which is a bit subtle. I am using IN1 and IN2 for LFO inputs. The LFO I'm using (which is typical) has a range of -5 to 5, so I am scaling the input based on those min/max values. If I remove the cable from INx, they return to 0. This makes sense, but my scaling converts them to non-zero values. I understand what is happening, but what I'd really like is a way to know that INx is not cabled so I can then completely disregard the value from the corresponding channel. I hope this makes sense. Basically, I need to know if each IN port is cabled or not. I can't just compare to 0.
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

Date2023-01-09 18:19
FromdocB <000005d2745f1ec0-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [Csnd] question for docB re dbRackCsound


OK, I can work around this by using unipolar LFOs instead of bipolar LFOs. But I still think we need a way to know if the control inputs are connected if we want to be able to use bipolar control inputs.

Another issue: if I have a control signal connected, and then disconnect it, the channel for that input retains the value of the last incoming signal. I think input channels should reset to 0 when disconnected.

ok this an easy one.

but the other issue is more difficult. i think would have to provide an additional built in opcode which delivers the connection status of an input.


On Mon, Jan 9, 2023 at 10:41 AM Dave Seidel <dave.seidel@gmail.com> wrote:
OK, I found my fundamental problem, which was that two of my calls to scale2 had the min/max values reversed.

Now I am running into a different issue, which is a bit subtle. I am using IN1 and IN2 for LFO inputs. The LFO I'm using (which is typical) has a range of -5 to 5, so I am scaling the input based on those min/max values. If I remove the cable from INx, they return to 0. This makes sense, but my scaling converts them to non-zero values. I understand what is happening, but what I'd really like is a way to know that INx is not cabled so I can then completely disregard the value from the corresponding channel. I hope this makes sense. Basically, I need to know if each IN port is cabled or not. I can't just compare to 0.
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

Date2023-01-09 18:30
FromDave Seidel
SubjectRe: [Csnd] question for docB re dbRackCsound
I just put up a draft PR to reset the control channels when they disconnect, it's probably going in the wrong direction: https://github.com/docb/dbRackCsound/pull/10

On Mon, Jan 9, 2023 at 1:20 PM docB <000005d2745f1ec0-dmarc-request@listserv.heanet.ie> wrote:


OK, I can work around this by using unipolar LFOs instead of bipolar LFOs. But I still think we need a way to know if the control inputs are connected if we want to be able to use bipolar control inputs.

Another issue: if I have a control signal connected, and then disconnect it, the channel for that input retains the value of the last incoming signal. I think input channels should reset to 0 when disconnected.

ok this an easy one.

but the other issue is more difficult. i think would have to provide an additional built in opcode which delivers the connection status of an input.


On Mon, Jan 9, 2023 at 10:41 AM Dave Seidel <dave.seidel@gmail.com> wrote:
OK, I found my fundamental problem, which was that two of my calls to scale2 had the min/max values reversed.

Now I am running into a different issue, which is a bit subtle. I am using IN1 and IN2 for LFO inputs. The LFO I'm using (which is typical) has a range of -5 to 5, so I am scaling the input based on those min/max values. If I remove the cable from INx, they return to 0. This makes sense, but my scaling converts them to non-zero values. I understand what is happening, but what I'd really like is a way to know that INx is not cabled so I can then completely disregard the value from the corresponding channel. I hope this makes sense. Basically, I need to know if each IN port is cabled or not. I can't just compare to 0.
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

Date2023-01-09 18:31
FromDave Seidel
SubjectRe: [Csnd] question for docB re dbRackCsound
Maybe you could avoid a new opcode by creating an additional channel for each control port that would be set to 1 for connected, or 0 for disconnected.

On Mon, Jan 9, 2023 at 1:30 PM Dave Seidel <dave.seidel@gmail.com> wrote:
I just put up a draft PR to reset the control channels when they disconnect, it's probably going in the wrong direction: https://github.com/docb/dbRackCsound/pull/10

On Mon, Jan 9, 2023 at 1:20 PM docB <000005d2745f1ec0-dmarc-request@listserv.heanet.ie> wrote:


OK, I can work around this by using unipolar LFOs instead of bipolar LFOs. But I still think we need a way to know if the control inputs are connected if we want to be able to use bipolar control inputs.

Another issue: if I have a control signal connected, and then disconnect it, the channel for that input retains the value of the last incoming signal. I think input channels should reset to 0 when disconnected.

ok this an easy one.

but the other issue is more difficult. i think would have to provide an additional built in opcode which delivers the connection status of an input.


On Mon, Jan 9, 2023 at 10:41 AM Dave Seidel <dave.seidel@gmail.com> wrote:
OK, I found my fundamental problem, which was that two of my calls to scale2 had the min/max values reversed.

Now I am running into a different issue, which is a bit subtle. I am using IN1 and IN2 for LFO inputs. The LFO I'm using (which is typical) has a range of -5 to 5, so I am scaling the input based on those min/max values. If I remove the cable from INx, they return to 0. This makes sense, but my scaling converts them to non-zero values. I understand what is happening, but what I'd really like is a way to know that INx is not cabled so I can then completely disregard the value from the corresponding channel. I hope this makes sense. Basically, I need to know if each IN port is cabled or not. I can't just compare to 0.
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