Bugs item #3542093, was opened at 2012-07-10 10:41 Message generated for change (Comment added) made by menno0 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=564599&aid=3542093&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: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Menno (menno0) Assigned to: Nobody/Anonymous (nobody) Summary: outrg issue Initial Comment: outrg does give the right results, but closes more than once with a memory invalid pointer error example: ; 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 outrg.wav -W ;;; for file output any platform sr = 44100 ksmps = 32 nchnls = 4 ;quad 0dbfs = 1 instr 1 kcps = p4 asig1 vco2 .5, 55 ;sawtooth1 asig2 vco2 .5, 110 ;sawtooth2 asig3 vco2 .5, 220 ;sawtooth3 asig4 vco2 .5, 440 ;sawtooth4 kstart randomh 1,4.99, kcps ;choose between 1 and 4 kstart = int(kstart) printks "number of the first channel = %d\n",1/ p4+0.1, kstart ;decide what will be the start channel for asig1 outrg kstart, asig1, asig2, asig3, asig4 ;start with 55 Hz in channel1, 110 Hz in ch.2, ;220 Hz in ch.3, 440 Hz in ch.4 endin i 1 0 10 1 i 1 11 5 30 e ---------------------------------------------------------------------- >Comment By: Menno (menno0) Date: 2012-10-07 04:13 Message: The opcode seemed to ber repaired but it is not. Here is an example from John Ffitch: ; 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 outrg.wav -W ;;; for file output any platform sr = 48000 ksmps = 32 nchnls = 4 ;quad 0dbfs = 1 instr 1 kleft init 1 asig vco2 .5, 220 ;sawtooth idur = p3/(nchnls-1) knext init idur kpos init 0 krate init 1/idur kbase init 0 ktime timeinsts if ktime>=knext then kleft = kleft + 1 knext = knext + idur kpos = 0 kbase = ktime else kpos = (ktime-kbase)/idur endif ;printks "speaker %d position %f\n", 0, kleft, kpos a1,a2 pan2 asig, kpos outrg kleft, a1, a2 kpos = kbase/idur endin i 1 0 10 e3 a screenshot of the crash is attached ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=564599&aid=3542093&group_id=81968 ------------------------------------------------------------------------------ Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net