Bugs item #3542093, was opened at 2012-07-10 10:41 Message generated for change (Comment added) made by veplaini 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: Victor Lazzarini (veplaini) 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: Victor Lazzarini (veplaini) Date: 2012-10-18 07:24 Message: I can't reproduce it with 2 channels on dac or with 4 channels to a soundfile (OSX). Can you: 1) try this with a soundfile output instead 2) try this with 2 channels instead of 4 If these are still crashing, then it's OS-dependent as I can't reproduce this on my OSX system. ---------------------------------------------------------------------- Comment By: Menno (menno0) Date: 2012-10-18 07:17 Message: I installed the latest Winxound and was able to save the error output. CsoundQt crashes immediately so i was unable to get the output. The output is attached. I'm on Xubuntu 12.04 64 bit ---------------------------------------------------------------------- Comment By: Victor Lazzarini (veplaini) Date: 2012-10-17 08:16 Message: can't reproduce the crash in your second example either (setting nchnls=2) ---------------------------------------------------------------------- Comment By: Victor Lazzarini (veplaini) Date: 2012-10-17 08:13 Message: Sorry I can't reproduce the crash here. I don't have four channels, but I am using file output. Can you check if this crashes with file output too? ---------------------------------------------------------------------- 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 ------------------------------------------------------------------------------ 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