[Csnd] bug? with more than one file name in p-fields
| Date | 2011-11-27 23:06 |
| From | luis jure |
| Subject | [Csnd] bug? with more than one file name in p-fields |
[Csound version 5.14 (double samples) Nov 11 2011, linux]
this works:
---------------------------------------
instr 1
a1 soundin p4
out a1
endin
i1 0 3 "foo.wav"
---------------------------------------
but this doesn't:
---------------------------------------
instr 1
a1 soundin p4
a2 soundin p5
out a1
endin
i1 0 3 "foo.wav" "bar.wav"
---------------------------------------
(it doesn't depend on the opcode, it's the same with soundin, diskin,
diskin2, or whatever)
output includes:
***Entering dubious code; n=1
new alloc for instr 1:
soundin: opened 'foo.wav':
44100 Hz, 1 channel(s), 123480 sample frames
INIT ERROR in instr 1: soundin: soundin.3945466: failed to open file
a2 soundin p5 0 0 0 0
B 0.000 - note deleted. i1 had 1 init errors
Score finished in csoundPerform().
Send bugs reports to the Sourceforge bug tracker
https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
|
| Date | 2011-11-27 23:23 |
| From | Adam Puckett |
| Subject | Re: [Csnd] bug? with more than one file name in p-fields |
You can only use one string in a line at a time. So your orchestra needs to read: strset 1, "foo.wav" strset 2, "bar.wav" instr 1 S1 strget p4 S2 strget p5 a1 soundin S1 a2 soundin S2 endin And your score needs to read: i1 0 3 1 2 Hope this helps. On 11/27/11, luis jure |
| Date | 2011-11-27 23:29 |
| From | Victor Lazzarini |
| Subject | Re: [Csnd] bug? with more than one file name in p-fields |
It's not a bug, but a limitation that has always been there. Csound only allows one string per i-statement. It's something we need to solve, but it's not being solved yet.
I think you can get round this particular problem with macros, but the limitation will be lifted at some point.
Regards
Victor
On 27 Nov 2011, at 23:06, luis jure wrote:
>
> [Csound version 5.14 (double samples) Nov 11 2011, linux]
>
> this works:
>
> ---------------------------------------
> instr 1
>
> a1 soundin p4
> out a1
>
> endin
>
>
>
> i1 0 3 "foo.wav"
> ---------------------------------------
>
>
> but this doesn't:
>
> ---------------------------------------
> instr 1
>
> a1 soundin p4
> a2 soundin p5
>
> out a1
>
> endin
>
>
>
> i1 0 3 "foo.wav" "bar.wav"
> ---------------------------------------
>
> (it doesn't depend on the opcode, it's the same with soundin, diskin,
> diskin2, or whatever)
>
> output includes:
>
> ***Entering dubious code; n=1
> new alloc for instr 1:
> soundin: opened 'foo.wav':
> 44100 Hz, 1 channel(s), 123480 sample frames
> INIT ERROR in instr 1: soundin: soundin.3945466: failed to open file
> a2 soundin p5 0 0 0 0
> B 0.000 - note deleted. i1 had 1 init errors
> Score finished in csoundPerform().
>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
> https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie
Send bugs reports to the Sourceforge bug tracker
https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
|
| Date | 2011-11-27 23:41 |
| From | luis jure |
| Subject | Re: [Csnd] bug? with more than one file name in p-fields |
on 2011-11-27 at 23:29 Victor Lazzarini wrote:
>It's not a bug, but a limitation that has always been there.
OK, thank you victor for the quick clarification (hey, it must be quite
late in ireland...). somehow i didn't know of this limitation.
best,
lj
Send bugs reports to the Sourceforge bug tracker
https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
|
| Date | 2011-11-27 23:44 |
| From | luis jure |
| Subject | Re: [Csnd] bug? with more than one file name in p-fields |
on 2011-11-27 at 18:23 Adam Puckett wrote:
>You can only use one string in a line at a time. So your orchestra
>needs to read:
>
>strset 1, "foo.wav"
that's indeed how i've been solving this. but i wanted to design a simple
example for a very basic csound course, and i was hoping i could avoid the
string opcodes for now.
thanks,
lj
Send bugs reports to the Sourceforge bug tracker
https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
|
| Date | 2011-11-27 23:52 |
| From | Victor Lazzarini |
| Subject | Re: [Csnd] bug? with more than one file name in p-fields |
yes, I need to go to bed. Class at 9am tomorrow.
On 27 Nov 2011, at 23:41, luis jure wrote:
>
> on 2011-11-27 at 23:29 Victor Lazzarini wrote:
>
>> It's not a bug, but a limitation that has always been there.
>
> OK, thank you victor for the quick clarification (hey, it must be quite
> late in ireland...). somehow i didn't know of this limitation.
>
> best,
>
> lj
>
>
> Send bugs reports to the Sourceforge bug tracker
> https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie
Send bugs reports to the Sourceforge bug tracker
https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
|
| Date | 2011-11-28 11:13 |
| From | jpff@cs.bath.ac.uk |
| Subject | Re: [Csnd] bug? with more than one file name in p-fields |
I started to write code for this but it did not work as I hoped and I have
not had time to get back to it.
==John ff
> It's not a bug, but a limitation that has always been there. Csound only
> allows one string per i-statement. It's something we need to solve, but
> it's not being solved yet.
> I think you can get round this particular problem with macros, but the
> limitation will be lifted at some point.
>
> Regards
>
> Victor
>
Send bugs reports to the Sourceforge bug tracker
https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
|