Csound Csound-dev Csound-tekno Search About

[Cs-dev] Csound problems with samples

Date2009-04-28 15:13
Fromdavistro
Subject[Cs-dev] Csound problems with samples
Hi, 

We have been using the opcodes soundin and diskin, and in both of them we've
the same error, the error saids:
 
SECTION 1:
new alloc for instr 1:
INIT ERROR in instr 1: soundin: Give me Love.wav: failed to open file
asig        soundin        p4        0        0        0        0        
          B  0.000 - note deleted.  i1 had 1 init errors
inactive allocs returned to freespace
end of score.                   overall amps:      0  
1 errors in performance
Elapsed time at end of performance: real: 0.107s, CPU: 0.060s
0 512-byte soundblks of floats written to dac
-->CsoundLib Terminated...

 the program in csound and the audio file are in the same folder.

 instr 1
        asig         soundin p4, 0, 0
        out asig

endin

 i1 0 2 "Give me Love.wav"

The only way that our program works is using an audio file created with
Csound.
-- 
View this message in context: http://www.nabble.com/Csound-problems-with-samples-tp23277932p23277932.html
Sent from the Csound - Dev mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2009-04-28 16:04
FromSteven Yi
SubjectRe: [Cs-dev] Csound problems with samples
Did you try removing the spaces in the file name, so it's
"GiveMeLove.wav"?  Perhaps there is a problem there with spaces.

On Tue, Apr 28, 2009 at 7:13 AM, davistro  wrote:
>
> Hi,
>
> We have been using the opcodes soundin and diskin, and in both of them we've
> the same error, the error saids:
>
> SECTION 1:
> new alloc for instr 1:
> INIT ERROR in instr 1: soundin: Give me Love.wav: failed to open file
> asig        soundin        p4        0        0        0        0
>          B  0.000 - note deleted.  i1 had 1 init errors
> inactive allocs returned to freespace
> end of score.                   overall amps:      0
> 1 errors in performance
> Elapsed time at end of performance: real: 0.107s, CPU: 0.060s
> 0 512-byte soundblks of floats written to dac
> -->CsoundLib Terminated...
>
>  the program in csound and the audio file are in the same folder.
>
>  instr 1
>        asig         soundin p4, 0, 0
>        out asig
>
> endin
>
>  i1 0 2 "Give me Love.wav"
>
> The only way that our program works is using an audio file created with
> Csound.
> --
> View this message in context: http://www.nabble.com/Csound-problems-with-samples-tp23277932p23277932.html
> Sent from the Csound - Dev mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Register Now & Save for Velocity, the Web Performance & Operations
> Conference from O'Reilly Media. Velocity features a full day of
> expert-led, hands-on workshops and two days of sessions from industry
> leaders in dedicated Performance & Operations tracks. Use code vel09scf
> and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2009-04-28 16:09
FromAnthony Kozar
SubjectRe: [Cs-dev] Csound problems with samples
There are several possible explanations here, but the fact that you can open
any audio file created with Csound using your instrument but not other
file(s) suggests that there is something wrong with the other file(s).

Can you run this command on the commandline and tell us the output?

  sndinfo "Give me Love.wav"

If that fails, you can send your full Csound orchestra/score file and the
audio file directly to me (PLEASE DON'T POST THE AUDIO FILE TO THE LIST),
and I will take a look.

Anthony Kozar
mailing-lists-1001 AT anthonykozar DOT net
http://anthonykozar.net/

davistro wrote on 4/28/09 10:13 AM:

> We have been using the opcodes soundin and diskin, and in both of them we've
> the same error, the error saids:
> 
> SECTION 1:
> new alloc for instr 1:
> INIT ERROR in instr 1: soundin: Give me Love.wav: failed to open file
> 
> the program in csound and the audio file are in the same folder.
> 
> instr 1
>       asig         soundin p4, 0, 0
>       out asig
> 
> endin
> 
> i1 0 2 "Give me Love.wav"
> 
> The only way that our program works is using an audio file created with
> Csound.


------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net