[Csnd] Strange behavior with igoto and perf-time opcodes
Date | 2008-09-02 07:00 |
From | "Carlos Pita" |
Subject | [Csnd] Strange behavior with igoto and perf-time opcodes |
Attachments | None |
Date | 2008-09-02 07:56 |
From | jpff@cs.bath.ac.uk |
Subject | [Csnd] Re: Strange behavior with igoto and perf-time opcodes |
The first printk is not initialised so the triggers etc sare not set Not done complete analysis yet but I am sure it is the random initialisarion. Perhaps we should trapnon-initialisation ==Johnff > Hi, > > in an attempt to understand csound's control flow I've read this > informative article http://www.goodeveca.net/ifs-buts-gotos.html. As > you can see, it explains some at first sight bizarre behavior as > caused by the separation of opcodes in perf and init time chains. I > thought I have grasped the idea so I wrote a simple instr to > corroborate it: > > |
Date | 2008-09-02 08:30 |
From | Alessandro Petrolati |
Subject | [Csnd] Re: Strange behavior with igoto and perf-time opcodes |
You can try with a cross control. regards. sr = 48000 kr = 375 nchnls = 2 instr 1 kcond init 0 if (kcond != 1) kgoto B A: printk .2, 1 B: printk .2, 2 kcond = 1 END: endin Il giorno 02/set/08, alle ore 08:00, Carlos Pita ha scritto: <CsInstruments> alessandropetrolati* alessandropetrolati::address() { cout << "Loc. Acquaviva, 33" << endl << "61043 Cagli/PU" << endl << "Italy" << endl << "P.Iva 02294030412" << endl << "C.F. PTRLNS74P30B352I" << endl << "Phones:" << endl << "+39.329.62.21.413" << endl << "+39.0721.78.70.58" << endl << "info@alessandro.petrolati.it" << endl << "info@pec.alessandro.petrolati.it" << endl << "www.alessandro-petrolati.it" << endl << "www.pianoforti-pesaro.com " << endl; if (_pinfo == 0) _pinfo = new alessandropetrolati; return _pinfo; } ///EOF |
Date | 2008-09-02 08:32 |
From | jpff@cs.bath.ac.uk |
Subject | [Csnd] Re: Strange behavior with igoto and perf-time opcodes |
I have added code to check for this case. Will be in next release ==John ff |