[CSOUND-DEV:5014] sssfinit being called?
Date | 2004-07-18 08:04 |
From | stevenyi |
Subject | [CSOUND-DEV:5014] sssfinit being called? |
Hi all, Has anyone else noticed that sssfinit not being called from oload in csound5? It seems that lately I've been unable to have csound load some files that are in my INCDIR though I've changed nothing in the CSD. Also, after putting in some printf statements in sssfinit the values are never called, and putting a printf test in oload.c on a line above sssfinit the printf statement is never called. I tried adding these printf statements in oload.c (around line 664): printf("*********** TEST 1 ******************\n"); if ((nn = init0()) > 0) /* run instr 0 inits */ die(Str(X_828,"header init errors")); if ((ensmps != (MYFLT) ksmps) || (gblspace[0]/gblspace[1] != gblspace[2])) { /* & chk consistency */ printf("sr = %f, kr = %f, ksmps = %f\n", gblspace[0], gblspace[1], gblspace[2]); die(Str(X_903,"inconsistent sr, kr, ksmps")); /* one more time */ } tpidsr = TWOPI_F / esr; /* now set internal */ mtpdsr = -tpidsr; /* consts */ pidsr = PI_F / esr; mpidsr = -pidsr; sicvt = FMAXLEN / esr; kicvt = FMAXLEN / ekr; hfkprd = FL(0.5) / ekr; onedsr = FL(1.0) / esr; onedkr = FL(1.0) / ekr; /* IV - Sep 8 2002: save global variables that depend on ksmps */ global_ksmps = ksmps; global_ensmps = ensmps; global_ekr = ekr; global_onedkr = onedkr; global_hfkprd = hfkprd; global_kicvt = kicvt; global_kcounter = kcounter; /* dv32768 = FL(1.0) / FL(32768.0); IV - Jul 11 2002 */ cpsoctinit(); reverbinit(); printf("*********** TEST 2 ******************\n"); The strange thing is the first printf for TEST 1 prints, but the second one does not. I guess it's just late but I'm not seeing anything in the lines here that would prevent execution of the function from reaching the TEST 2 line. Any help here would be appreciated! steven |
Date | 2004-07-18 19:32 |
From | "Matt J. Ingalls" |
Subject | [CSOUND-DEV:5019] Re: sssfinit being called? |
dont know if this helps, but in csound4 i had recently discovered a problem with sssfinit was being called too late and ended up putting it right before the init0() as some instr0 stuff was failing without access to the filepaths. On Sun, 18 Jul 2004, stevenyi wrote: > Hi all, > > Has anyone else noticed that sssfinit not being called from oload in > csound5? It seems that lately I've been unable to have csound load some > files that are in my INCDIR though I've changed nothing in the CSD. > Also, after putting in some printf statements in sssfinit the values are > never called, and putting a printf test in oload.c on a line above > sssfinit the printf statement is never called. I tried adding these > printf statements in oload.c (around line 664): > > printf("*********** TEST 1 ******************\n"); > if ((nn = init0()) > 0) /* run instr 0 > inits */ > die(Str(X_828,"header init errors")); > if ((ensmps != (MYFLT) ksmps) || > (gblspace[0]/gblspace[1] != gblspace[2])) { /* & chk > consistency */ > printf("sr = %f, kr = %f, ksmps = %f\n", > gblspace[0], gblspace[1], gblspace[2]); > die(Str(X_903,"inconsistent sr, kr, ksmps")); /* one more > time */ > } > tpidsr = TWOPI_F / esr; /* now set > internal */ > mtpdsr = -tpidsr; /* > consts */ > pidsr = PI_F / esr; > mpidsr = -pidsr; > sicvt = FMAXLEN / esr; > kicvt = FMAXLEN / ekr; > hfkprd = FL(0.5) / ekr; > onedsr = FL(1.0) / esr; > onedkr = FL(1.0) / ekr; > /* IV - Sep 8 2002: save global variables that depend on ksmps */ > global_ksmps = ksmps; global_ensmps = ensmps; global_ekr = ekr; > global_onedkr = onedkr; global_hfkprd = hfkprd; global_kicvt = > kicvt; > global_kcounter = kcounter; > /* dv32768 = FL(1.0) / FL(32768.0); IV - Jul 11 2002 */ > cpsoctinit(); > reverbinit(); > printf("*********** TEST 2 ******************\n"); > > The strange thing is the first printf for TEST 1 prints, but the second > one does not. I guess it's just late but I'm not seeing anything in the > lines here that would prevent execution of the function from reaching > the TEST 2 line. > > Any help here would be appreciated! > steven > > |
Date | 2004-07-18 20:51 |
From | stevenyi |
Subject | [CSOUND-DEV:5023] Re: sssfinit being called? |
Thanks Matt, I'm not sure what is going on yet as I've put a printf in sssfinit and it is never called when I run csound5. I'm going to do some more debugging in a moment to see what's preventing oload from executing it's whole function body. steven On Sun, 2004-07-18 at 11:32, Matt J. Ingalls wrote: > dont know if this helps, but > in csound4 i had recently discovered a problem with sssfinit > was being called too late and ended up putting it right before > the init0() as some instr0 stuff was failing without access > to the filepaths. > > > > > > On Sun, 18 Jul 2004, stevenyi wrote: > > > Hi all, > > > > Has anyone else noticed that sssfinit not being called from oload in > > csound5? It seems that lately I've been unable to have csound load some > > files that are in my INCDIR though I've changed nothing in the CSD. > > Also, after putting in some printf statements in sssfinit the values are > > never called, and putting a printf test in oload.c on a line above > > sssfinit the printf statement is never called. I tried adding these > > printf statements in oload.c (around line 664): > > > > printf("*********** TEST 1 ******************\n"); > > if ((nn = init0()) > 0) /* run instr 0 > > inits */ > > die(Str(X_828,"header init errors")); > > if ((ensmps != (MYFLT) ksmps) || > > (gblspace[0]/gblspace[1] != gblspace[2])) { /* & chk > > consistency */ > > printf("sr = %f, kr = %f, ksmps = %f\n", > > gblspace[0], gblspace[1], gblspace[2]); > > die(Str(X_903,"inconsistent sr, kr, ksmps")); /* one more > > time */ > > } > > tpidsr = TWOPI_F / esr; /* now set > > internal */ > > mtpdsr = -tpidsr; /* > > consts */ > > pidsr = PI_F / esr; > > mpidsr = -pidsr; > > sicvt = FMAXLEN / esr; > > kicvt = FMAXLEN / ekr; > > hfkprd = FL(0.5) / ekr; > > onedsr = FL(1.0) / esr; > > onedkr = FL(1.0) / ekr; > > /* IV - Sep 8 2002: save global variables that depend on ksmps */ > > global_ksmps = ksmps; global_ensmps = ensmps; global_ekr = ekr; > > global_onedkr = onedkr; global_hfkprd = hfkprd; global_kicvt = > > kicvt; > > global_kcounter = kcounter; > > /* dv32768 = FL(1.0) / FL(32768.0); IV - Jul 11 2002 */ > > cpsoctinit(); > > reverbinit(); > > printf("*********** TEST 2 ******************\n"); > > > > The strange thing is the first printf for TEST 1 prints, but the second > > one does not. I guess it's just late but I'm not seeing anything in the > > lines here that would prevent execution of the function from reaching > > the TEST 2 line. > > > > Any help here would be appreciated! > > steven > > > > > > |
Date | 2004-07-18 20:58 |
From | stevenyi |
Subject | [CSOUND-DEV:5024] Re: sssfinit being called? |
Hi Matt, You were completely right. I moved sssfinit above init0() and that solved everything. I'm going to overwrite my files from CVS to start fresh and commit the change momentarily. Thanks! steven On Sun, 2004-07-18 at 11:32, Matt J. Ingalls wrote: > dont know if this helps, but > in csound4 i had recently discovered a problem with sssfinit > was being called too late and ended up putting it right before > the init0() as some instr0 stuff was failing without access > to the filepaths. > > > > > > On Sun, 18 Jul 2004, stevenyi wrote: > > > Hi all, > > > > Has anyone else noticed that sssfinit not being called from oload in > > csound5? It seems that lately I've been unable to have csound load some > > files that are in my INCDIR though I've changed nothing in the CSD. > > Also, after putting in some printf statements in sssfinit the values are > > never called, and putting a printf test in oload.c on a line above > > sssfinit the printf statement is never called. I tried adding these > > printf statements in oload.c (around line 664): > > > > printf("*********** TEST 1 ******************\n"); > > if ((nn = init0()) > 0) /* run instr 0 > > inits */ > > die(Str(X_828,"header init errors")); > > if ((ensmps != (MYFLT) ksmps) || > > (gblspace[0]/gblspace[1] != gblspace[2])) { /* & chk > > consistency */ > > printf("sr = %f, kr = %f, ksmps = %f\n", > > gblspace[0], gblspace[1], gblspace[2]); > > die(Str(X_903,"inconsistent sr, kr, ksmps")); /* one more > > time */ > > } > > tpidsr = TWOPI_F / esr; /* now set > > internal */ > > mtpdsr = -tpidsr; /* > > consts */ > > pidsr = PI_F / esr; > > mpidsr = -pidsr; > > sicvt = FMAXLEN / esr; > > kicvt = FMAXLEN / ekr; > > hfkprd = FL(0.5) / ekr; > > onedsr = FL(1.0) / esr; > > onedkr = FL(1.0) / ekr; > > /* IV - Sep 8 2002: save global variables that depend on ksmps */ > > global_ksmps = ksmps; global_ensmps = ensmps; global_ekr = ekr; > > global_onedkr = onedkr; global_hfkprd = hfkprd; global_kicvt = > > kicvt; > > global_kcounter = kcounter; > > /* dv32768 = FL(1.0) / FL(32768.0); IV - Jul 11 2002 */ > > cpsoctinit(); > > reverbinit(); > > printf("*********** TEST 2 ******************\n"); > > > > The strange thing is the first printf for TEST 1 prints, but the second > > one does not. I guess it's just late but I'm not seeing anything in the > > lines here that would prevent execution of the function from reaching > > the TEST 2 line. > > > > Any help here would be appreciated! > > steven > > > > > > |
Date | 2004-07-19 01:11 |
From | Andres Cabrera |
Subject | [CSOUND-DEV:5025] Something wrong with my karma |
I promise I've been treating everyone nicely, but my cvs access attempts have resulted in: cvs commit -m "no message" vstedit.html (in directory H:\C_Progs\csound5\Opcodes\vst4cs\doc\) **** Access denied: Insufficient Karma (mantaraya36|csound5/Opcodes/vst4cs/doc|) How can I be pruified? |
Date | 2004-07-19 07:17 |
From | jpff@codemist.co.uk |
Subject | [CSOUND-DEV:5032] Re: Something wrong with my karma |
Sorry Andreas; typo. Hope now fixed ==John ffitch |