Bugs item #3581670, was opened at 2012-10-29 12:04 Message generated for change (Settings changed) made by jpff You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=564599&aid=3581670&group_id=81968 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Opcodes Group: csound5 >Status: Closed Resolution: Fixed Priority: 5 Private: No Submitted By: Menno (menno0) Assigned to: John ffitch (jpff) Summary: harmon234 issue Initial Comment: perhaps this is a bug: p4 doesn't always seem to kick in using the harmon234 opcode. It has an effect typing in the p4 value directly but when using the score below, the result is okay when the p4 change is from a higher to a lower value, while in the next section where values of p4 change from low to high, the result stays frozen at the first p4, ie. 5 ; Select audio/midi flags here according to platform -odac ;;;realtime audio out ;-iadc ;;;uncomment -iadc if realtime audio input is needed too ; For Non-realtime ouput leave only the line below: ; -o harmon2.wav -W ;;; for file output any platform sr = 44100 ksmps = 32 nchnls = 2 0dbfs = 1 instr 1 aout diskin2 "fox.wav", 1, 0, 1 kmaxvar = 0.1 imode = 1 iminfrq = 100 iprd = 0.02 koct, kamp pitch aout, .01, 6, 10, 10 ilow = p4 asig harmon3 aout, koct, .9, 1.5, 0.7, 0, p4 ;asig harmon3 aout, koct, 300, 800, 2000, 1, 9 print p4 ; outs (asig + aout)*.5, (asig + aout)*.5 ;mix dry&wet signal outs asig*.5, asig*.5 endin s i1 0 2.7 8.8 i1 3 2.7 8.0 i1 6 2.7 5 s i1 0 2.7 5 i1 3 2.7 8.0 i1 6 2.7 8.8 e ---------------------------------------------------------------------- >Comment By: John ffitch (jpff) Date: 2012-10-30 02:44 Message: Better fix committed -- closing bug ---------------------------------------------------------------------- Comment By: John ffitch (jpff) Date: 2012-10-30 02:32 Message: I have committed a patch to git. I have left the bug open for the present as I suspect a more efficient fix may be possible. Not tested totally yet either ---------------------------------------------------------------------- Comment By: John ffitch (jpff) Date: 2012-10-30 02:05 Message: Reading the code it does seem that many initialisations are not done if thre was an earlier structure and lower goes up. Will look more closely later ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=564599&aid=3581670&group_id=81968 ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net