Csound Csound-dev Csound-tekno Search About

Using the Array Output Version of Diskin2 With Raw (Headerless) Audio Files

Date2015-08-30 03:34
FromJohn Moeller
SubjectUsing the Array Output Version of Diskin2 With Raw (Headerless) Audio Files
Dear Forum,

I have to mix several 96-channel interleaved sound files.  I discovered that .wav and .aif files appear have a limit to their size (and 96-channel sound files eat up data quickly, as you can imagine).  At 96kHz/24 bit, my files won't get longer than 1 minute, 30 seconds.  I was trying to generate a 4 minute file.  The data seems to be there because the resulting file was about 6.8 GB in size, but as I mentioned, it was only 1.5 minutes in duration.  I understand raw (headerless) audio files do not have such a data size limit.  However, I am having trouble using the diskin2 opcode with the array output option (which is what is needed because it is 96 channels--it appears that the normal output version can handle up to 40 channels, whereas the array output version does not have a limit).  I 
 have included some example code below (using just two channels), with comments on what works and what doesn't.  I am guessing that because the audio is headerless, the diskin2 opcode doesn't know how many channels the audio has (e.g., it seems to think it is just one channel, and thus doesn't know what to do with the interleaved data).  I tried specifying the size of the array with the init opcode, but that didn't work.  I also tried using a global array (just to give it a try).  Any thoughts on this?  Is this possible?

Thank you,

John








sr = 96000
ksmps = 256
nchnls = 2
0dbfs = 1

gaArr[] init 2

instr 1

;This works:
;	a1, a2 diskin2 "2ChnlHeaderless.raw", 1, 0, 0, 8, 0, 8192, 0
;	outch 1, a1, 2, a2


;This hangs Csound up, and it has to be force quit:
;	ar1[] diskin2 "2ChnlHeaderless.raw", 1, 0, 0, 8, 0, 8192, 0
;	outch 1, ar1[0], 2, ar1[1]	


;This gives the error "INIT ERROR in instr 1: diskin2: 2ChnlHeaderless.raw: failed to open file":
;	ar1[] init 2
;	ar1 diskin2 "2ChnlHeaderless.raw", 1, 0, 0, 8, 0, 8192, 0
;	outch 1, ar1[0], 2, ar1[1]


;This gives the error "INIT ERROR in instr 1: diskin2: 2ChnlHeaderless.raw: failed to open file":	
;	ar1[] init 2
;	ar1[] diskin2 "2ChnlHeaderless.raw", 1, 0, 0, 8, 0, 8192, 0
;	outch 1, ar1[0], 2, ar1[1]
	

;This gives the error "INIT ERROR in instr 1: diskin2: 2ChnlHeaderless.raw: failed to open file":
;	gaArr[] diskin2 "2ChnlHeaderless.raw", 1, 0, 0, 8, 0, 8192, 0
;	outch 1, gaArr[0], 2, gaArr[1]
	

;This gives the error "INIT ERROR in instr 1: diskin2: 2ChnlHeaderless.raw: failed to open file":
;	gaArr diskin2 "2ChnlHeaderless.raw", 1, 0, 0, 8, 0, 8192, 0
;	outch 1, gaArr[0], 2, gaArr[1]
	
endin




i1 0 5
e






------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-08-30 13:44
Fromjpff
SubjectRe: Using the Array Output Version of Diskin2 With Raw (Headerless) Audio Files
I thik there is a bug in diskin2 with an array.  Initial lok a the code 
suggests that the number of channels is not being set.  I should default 
to the size of the array.  Not on the develoment comoute at present but 
will look closer later
==John ff


------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-08-30 13:51
FromVictor Lazzarini
SubjectRe: Using the Array Output Version of Diskin2 With Raw (Headerless) Audio Files
it works with a header-based file. 

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 30 Aug 2015, at 13:44, jpff  wrote:
> 
> I thik there is a bug in diskin2 with an array.  Initial lok a the code 
> suggests that the number of channels is not being set.  I should default 
> to the size of the array.  Not on the develoment comoute at present but 
> will look closer later
> ==John ff
> 
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-users mailing list
> Csound-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-users
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-08-30 13:57
FromVictor Lazzarini
SubjectRe: Using the Array Output Version of Diskin2 With Raw (Headerless) Audio Files
Have you tried a different format (like IRCAM, WAVEFORMATEX, etc?). I did a little test here and
it appears the IRCAM format will work.
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 30 Aug 2015, at 03:34, John Moeller  wrote:
> 
> Dear Forum,
> 
> I have to mix several 96-channel interleaved sound files.  I discovered that .wav and .aif files appear have a limit to their size (and 96-channel sound files eat up data quickly, as you can imagine).  At 96kHz/24 bit, my files won't get longer than 1 minute, 30 seconds.  I was trying to generate a 4 minute file.  The data seems to be there because the resulting file was about 6.8 GB in size, but as I mentioned, it was only 1.5 minutes in duration.  I understand raw (headerless) audio files do not have such a data size limit.  However, I am having trouble using the diskin2 opcode with the array output option (which is what is needed because it is 96 channels--it appears that the normal output version can handle up to 40 channels, whereas the array output version does not have a limit).  
 I have included some example code below (using just two channels), with comments on what works and what doesn't.  I am guessing that because the audio is headerless, the diskin2 opcode doesn't know ho
> w many channels the audio has (e.g., it seems to think it is just one channel, and thus doesn't know what to do with the interleaved data).  I tried specifying the size of the array with the init opcode, but that didn't work.  I also tried using a global array (just to give it a try).  Any thoughts on this?  Is this possible?
> 
> Thank you,
> 
> John
> 
> 
> 
> 
> 
> 
> 
> 
> sr = 96000
> ksmps = 256
> nchnls = 2
> 0dbfs = 1
> 
> gaArr[] init 2
> 
> instr 1
> 
> ;This works:
> ;	a1, a2 diskin2 "2ChnlHeaderless.raw", 1, 0, 0, 8, 0, 8192, 0
> ;	outch 1, a1, 2, a2
> 
> 
> ;This hangs Csound up, and it has to be force quit:
> ;	ar1[] diskin2 "2ChnlHeaderless.raw", 1, 0, 0, 8, 0, 8192, 0
> ;	outch 1, ar1[0], 2, ar1[1]	
> 
> 
> ;This gives the error "INIT ERROR in instr 1: diskin2: 2ChnlHeaderless.raw: failed to open file":
> ;	ar1[] init 2
> ;	ar1 diskin2 "2ChnlHeaderless.raw", 1, 0, 0, 8, 0, 8192, 0
> ;	outch 1, ar1[0], 2, ar1[1]
> 
> 
> ;This gives the error "INIT ERROR in instr 1: diskin2: 2ChnlHeaderless.raw: failed to open file":	
> ;	ar1[] init 2
> ;	ar1[] diskin2 "2ChnlHeaderless.raw", 1, 0, 0, 8, 0, 8192, 0
> ;	outch 1, ar1[0], 2, ar1[1]
> 	
> 
> ;This gives the error "INIT ERROR in instr 1: diskin2: 2ChnlHeaderless.raw: failed to open file":
> ;	gaArr[] diskin2 "2ChnlHeaderless.raw", 1, 0, 0, 8, 0, 8192, 0
> ;	outch 1, gaArr[0], 2, gaArr[1]
> 	
> 
> ;This gives the error "INIT ERROR in instr 1: diskin2: 2ChnlHeaderless.raw: failed to open file":
> ;	gaArr diskin2 "2ChnlHeaderless.raw", 1, 0, 0, 8, 0, 8192, 0
> ;	outch 1, gaArr[0], 2, gaArr[1]
> 	
> endin
> 
> 
> 
> 
> i1 0 5
> e
> 
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-users mailing list
> Csound-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-users
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-08-30 14:00
FromVictor Lazzarini
SubjectRe: Using the Array Output Version of Diskin2 With Raw (Headerless) Audio Files
Have you tried a different format (like IRCAM, WAVEFORMATEX, etc?). I did a little test here and
it appears the IRCAM format will work.
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 30 Aug 2015, at 03:34, John Moeller  wrote:
> 
> Dear Forum,
> 
> I have to mix several 96-channel interleaved sound files.  I discovered that .wav and .aif files appear have a limit to their size (and 96-channel sound files eat up data quickly, as you can imagine).  At 96kHz/24 bit, my files won't get longer than 1 minute, 30 seconds.  I was trying to generate a 4 minute file.  The data seems to be there because the resulting file was about 6.8 GB in size, but as I mentioned, it was only 1.5 minutes in duration.  I understand raw (headerless) audio files do not have such a data size limit.  However, I am having trouble using the diskin2 opcode with the array output option (which is what is needed because it is 96 channels--it appears that the normal output version can handle up to 40 channels, whereas the array output version does not have a limit).  
 I have included some example code below (using just two channels), with comments on what works and what doesn't.  I am guessing that because the audio is headerless, the diskin2 opcode doesn't know ho
> w many channels the audio has (e.g., it seems to think it is just one channel, and thus doesn't know what to do with the interleaved data).  I tried specifying the size of the array with the init opcode, but that didn't work.  I also tried using a global array (just to give it a try).  Any thoughts on this?  Is this possible?
> 
> Thank you,
> 
> John
> 
> 
> 
> 
> 
> 
> 
> 
> sr = 96000
> ksmps = 256
> nchnls = 2
> 0dbfs = 1
> 
> gaArr[] init 2
> 
> instr 1
> 
> ;This works:
> ;	a1, a2 diskin2 "2ChnlHeaderless.raw", 1, 0, 0, 8, 0, 8192, 0
> ;	outch 1, a1, 2, a2
> 
> 
> ;This hangs Csound up, and it has to be force quit:
> ;	ar1[] diskin2 "2ChnlHeaderless.raw", 1, 0, 0, 8, 0, 8192, 0
> ;	outch 1, ar1[0], 2, ar1[1]	
> 
> 
> ;This gives the error "INIT ERROR in instr 1: diskin2: 2ChnlHeaderless.raw: failed to open file":
> ;	ar1[] init 2
> ;	ar1 diskin2 "2ChnlHeaderless.raw", 1, 0, 0, 8, 0, 8192, 0
> ;	outch 1, ar1[0], 2, ar1[1]
> 
> 
> ;This gives the error "INIT ERROR in instr 1: diskin2: 2ChnlHeaderless.raw: failed to open file":	
> ;	ar1[] init 2
> ;	ar1[] diskin2 "2ChnlHeaderless.raw", 1, 0, 0, 8, 0, 8192, 0
> ;	outch 1, ar1[0], 2, ar1[1]
> 	
> 
> ;This gives the error "INIT ERROR in instr 1: diskin2: 2ChnlHeaderless.raw: failed to open file":
> ;	gaArr[] diskin2 "2ChnlHeaderless.raw", 1, 0, 0, 8, 0, 8192, 0
> ;	outch 1, gaArr[0], 2, gaArr[1]
> 	
> 
> ;This gives the error "INIT ERROR in instr 1: diskin2: 2ChnlHeaderless.raw: failed to open file":
> ;	gaArr diskin2 "2ChnlHeaderless.raw", 1, 0, 0, 8, 0, 8192, 0
> ;	outch 1, gaArr[0], 2, gaArr[1]
> 	
> endin
> 
> 
> 
> 
> i1 0 5
> e
> 
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-users mailing list
> Csound-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-users
> Send bugs reports to
>      https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-08-30 14:08
FromVictor Lazzarini
SubjectRe: Using the Array Output Version of Diskin2 With Raw (Headerless) Audio Files
I have also tried CAF. I was able to a 30 min file with 96 channels, and
opened it with csound, no problem.
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 30 Aug 2015, at 14:00, Victor Lazzarini  wrote:
> 
> Have you tried a different format (like IRCAM, WAVEFORMATEX, etc?). I did a little test here and
> it appears the IRCAM format will work.
> ========================
> Dr Victor Lazzarini
> Dean of Arts, Celtic Studies and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952 
> 
>> On 30 Aug 2015, at 03:34, John Moeller  wrote:
>> 
>> Dear Forum,
>> 
>> I have to mix several 96-channel interleaved sound files.  I discovered that .wav and .aif files appear have a limit to their size (and 96-channel sound files eat up data quickly, as you can imagine).  At 96kHz/24 bit, my files won't get longer than 1 minute, 30 seconds.  I was trying to generate a 4 minute file.  The data seems to be there because the resulting file was about 6.8 GB in size, but as I mentioned, it was only 1.5 minutes in duration.  I understand raw (headerless) audio files do not have such a data size limit.  However, I am having trouble using the diskin2 opcode with the array output option (which is what is needed because it is 96 channels--it appears that the normal output version can handle up to 40 channels, whereas the array output version does not have a limit). 
  I have included some example code below (using just two channels), with comments on what works and what doesn't.  I am guessing that because the audio is headerless, the diskin2 opcode doesn't know 
> ho
>> w many channels the audio has (e.g., it seems to think it is just one channel, and thus doesn't know what to do with the interleaved data).  I tried specifying the size of the array with the init opcode, but that didn't work.  I also tried using a global array (just to give it a try).  Any thoughts on this?  Is this possible?
>> 
>> Thank you,
>> 
>> John
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> sr = 96000
>> ksmps = 256
>> nchnls = 2
>> 0dbfs = 1
>> 
>> gaArr[] init 2
>> 
>> instr 1
>> 
>> ;This works:
>> ;	a1, a2 diskin2 "2ChnlHeaderless.raw", 1, 0, 0, 8, 0, 8192, 0
>> ;	outch 1, a1, 2, a2
>> 
>> 
>> ;This hangs Csound up, and it has to be force quit:
>> ;	ar1[] diskin2 "2ChnlHeaderless.raw", 1, 0, 0, 8, 0, 8192, 0
>> ;	outch 1, ar1[0], 2, ar1[1]	
>> 
>> 
>> ;This gives the error "INIT ERROR in instr 1: diskin2: 2ChnlHeaderless.raw: failed to open file":
>> ;	ar1[] init 2
>> ;	ar1 diskin2 "2ChnlHeaderless.raw", 1, 0, 0, 8, 0, 8192, 0
>> ;	outch 1, ar1[0], 2, ar1[1]
>> 
>> 
>> ;This gives the error "INIT ERROR in instr 1: diskin2: 2ChnlHeaderless.raw: failed to open file":	
>> ;	ar1[] init 2
>> ;	ar1[] diskin2 "2ChnlHeaderless.raw", 1, 0, 0, 8, 0, 8192, 0
>> ;	outch 1, ar1[0], 2, ar1[1]
>> 	
>> 
>> ;This gives the error "INIT ERROR in instr 1: diskin2: 2ChnlHeaderless.raw: failed to open file":
>> ;	gaArr[] diskin2 "2ChnlHeaderless.raw", 1, 0, 0, 8, 0, 8192, 0
>> ;	outch 1, gaArr[0], 2, gaArr[1]
>> 	
>> 
>> ;This gives the error "INIT ERROR in instr 1: diskin2: 2ChnlHeaderless.raw: failed to open file":
>> ;	gaArr diskin2 "2ChnlHeaderless.raw", 1, 0, 0, 8, 0, 8192, 0
>> ;	outch 1, gaArr[0], 2, gaArr[1]
>> 	
>> endin
>> 
>> 
>> 
>> 
>> i1 0 5
>> e
>> 
>> 
>> 
>> 
>> 
>> 
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-users mailing list
>> Csound-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-users
>> Send bugs reports to
>>     https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-users mailing list
> Csound-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-users
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-08-30 14:14
FromRichard Dobson
SubjectRe: Using the Array Output Version of Diskin2 With Raw (Headerless) Audio Files
The WAVE and WAVE-EX (and AIFF etc) are all 32bit formats (counting 
sizes in bytes in a 32bit value), so maximum size is 4GB (less size of 
header). For larger files one would need to use one of the new 64bit 
formats such as RF64 or w64, or CAF; or any other format that can 
represent sizes in a large enough word (or combination). I know there is 
support for basic CAF in libsndfile, not sure if Eric added either or 
both of the others.

Richard Dobson

On 30/08/2015 13:57, Victor Lazzarini wrote:
> Have you tried a different format (like IRCAM, WAVEFORMATEX, etc?). I
> did a little test here and it appears the IRCAM format will work.
> ======================== Dr Victor Lazzarini Dean of Arts, Celtic
> Studies and Philosophy, Maynooth University, Maynooth, Co Kildare,
> Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952
>
>> On 30 Aug 2015, at 03:34, John Moeller 
>> wrote:
>>
>> Dear Forum,
>>
>> I have to mix several 96-channel interleaved sound files.  I
>> discovered that .wav and .aif files appear have a limit to their
>> size (and 96-channel sound files eat up data quickly, as you can
>> imagine).  At 96kHz/24 bit, my files won't get longer than 1
>> minute, 30 seconds.  I was trying to generate a 4 minute file.  The
>> data seems to be there because the resulting file was about 6.8 GB
>> in size, but as I mentioned, it was only 1.5 minutes in duration.
....

------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-08-30 14:18
FromVictor Lazzarini
SubjectRe: Using the Array Output Version of Diskin2 With Raw (Headerless) Audio Files
CAF seems to work fine, as does IRCAM.
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 30 Aug 2015, at 14:14, Richard Dobson  wrote:
> 
> The WAVE and WAVE-EX (and AIFF etc) are all 32bit formats (counting 
> sizes in bytes in a 32bit value), so maximum size is 4GB (less size of 
> header). For larger files one would need to use one of the new 64bit 
> formats such as RF64 or w64, or CAF; or any other format that can 
> represent sizes in a large enough word (or combination). I know there is 
> support for basic CAF in libsndfile, not sure if Eric added either or 
> both of the others.
> 
> Richard Dobson
> 
> On 30/08/2015 13:57, Victor Lazzarini wrote:
>> Have you tried a different format (like IRCAM, WAVEFORMATEX, etc?). I
>> did a little test here and it appears the IRCAM format will work.
>> ======================== Dr Victor Lazzarini Dean of Arts, Celtic
>> Studies and Philosophy, Maynooth University, Maynooth, Co Kildare,
>> Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952
>> 
>>> On 30 Aug 2015, at 03:34, John Moeller 
>>> wrote:
>>> 
>>> Dear Forum,
>>> 
>>> I have to mix several 96-channel interleaved sound files.  I
>>> discovered that .wav and .aif files appear have a limit to their
>>> size (and 96-channel sound files eat up data quickly, as you can
>>> imagine).  At 96kHz/24 bit, my files won't get longer than 1
>>> minute, 30 seconds.  I was trying to generate a 4 minute file.  The
>>> data seems to be there because the resulting file was about 6.8 GB
>>> in size, but as I mentioned, it was only 1.5 minutes in duration.
> ....
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-users mailing list
> Csound-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-users
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-08-31 13:41
Fromjpff
SubjectRe: Using the Array Output Version of Diskin2 With Raw (Headerless) Audio Files
W64 and RF64 are in libsndfile

On Sun, 30 Aug 2015, Richard Dobson wrote:

> The WAVE and WAVE-EX (and AIFF etc) are all 32bit formats (counting
> sizes in bytes in a 32bit value), so maximum size is 4GB (less size of
> header). For larger files one would need to use one of the new 64bit
> formats such as RF64 or w64, or CAF; or any other format that can
> represent sizes in a large enough word (or combination). I know there is
> support for basic CAF in libsndfile, not sure if Eric added either or
> both of the others.
>
> Richard Dobson
>
> On 30/08/2015 13:57, Victor Lazzarini wrote:
>> Have you tried a different format (like IRCAM, WAVEFORMATEX, etc?). I
>> did a little test here and it appears the IRCAM format will work.
>> ======================== Dr Victor Lazzarini Dean of Arts, Celtic
>> Studies and Philosophy, Maynooth University, Maynooth, Co Kildare,
>> Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952
>>
>>> On 30 Aug 2015, at 03:34, John Moeller 
>>> wrote:
>>>
>>> Dear Forum,
>>>
>>> I have to mix several 96-channel interleaved sound files.  I
>>> discovered that .wav and .aif files appear have a limit to their
>>> size (and 96-channel sound files eat up data quickly, as you can
>>> imagine).  At 96kHz/24 bit, my files won't get longer than 1
>>> minute, 30 seconds.  I was trying to generate a 4 minute file.  The
>>> data seems to be there because the resulting file was about 6.8 GB
>>> in size, but as I mentioned, it was only 1.5 minutes in duration.
> ....
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-users mailing list
> Csound-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-users
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
>

------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-08-31 14:01
FromVictor Lazzarini
SubjectRe: Using the Array Output Version of Diskin2 With Raw (Headerless) Audio Files
Best decision ever made, to use libsndfile.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 31 Aug 2015, at 13:41, jpff  wrote:
> 
> W64 and RF64 are in libsndfile
> 
>> On Sun, 30 Aug 2015, Richard Dobson wrote:
>> 
>> The WAVE and WAVE-EX (and AIFF etc) are all 32bit formats (counting
>> sizes in bytes in a 32bit value), so maximum size is 4GB (less size of
>> header). For larger files one would need to use one of the new 64bit
>> formats such as RF64 or w64, or CAF; or any other format that can
>> represent sizes in a large enough word (or combination). I know there is
>> support for basic CAF in libsndfile, not sure if Eric added either or
>> both of the others.
>> 
>> Richard Dobson
>> 
>>> On 30/08/2015 13:57, Victor Lazzarini wrote:
>>> Have you tried a different format (like IRCAM, WAVEFORMATEX, etc?). I
>>> did a little test here and it appears the IRCAM format will work.
>>> ======================== Dr Victor Lazzarini Dean of Arts, Celtic
>>> Studies and Philosophy, Maynooth University, Maynooth, Co Kildare,
>>> Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952
>>> 
>>>> On 30 Aug 2015, at 03:34, John Moeller 
>>>> wrote:
>>>> 
>>>> Dear Forum,
>>>> 
>>>> I have to mix several 96-channel interleaved sound files.  I
>>>> discovered that .wav and .aif files appear have a limit to their
>>>> size (and 96-channel sound files eat up data quickly, as you can
>>>> imagine).  At 96kHz/24 bit, my files won't get longer than 1
>>>> minute, 30 seconds.  I was trying to generate a 4 minute file.  The
>>>> data seems to be there because the resulting file was about 6.8 GB
>>>> in size, but as I mentioned, it was only 1.5 minutes in duration.
>> ....
>> 
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-users mailing list
>> Csound-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-users
>> Send bugs reports to
>>       https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-users mailing list
> Csound-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-users
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-08-31 21:42
Fromjdm771
SubjectRe: Using the Array Output Version of Diskin2 With Raw (Headerless) Audio Files
Perfect.  Using the CAF format overcame the file size limitation of .wav and
.aif, and it worked with the array output version of diskin2.  I am most
grateful.

-John

 


Victor Lazzarini wrote
> I have also tried CAF. I was able to a 30 min file with 96 channels, and
> opened it with csound, no problem.
> ========================
> Dr Victor Lazzarini
> Dean of Arts, Celtic Studies and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952 
> 
>> On 30 Aug 2015, at 14:00, Victor Lazzarini <

> Victor.Lazzarini@

> > wrote:
>> 
>> Have you tried a different format (like IRCAM, WAVEFORMATEX, etc?). I did
>> a little test here and
>> it appears the IRCAM format will work.
>> ========================
>> Dr Victor Lazzarini
>> Dean of Arts, Celtic Studies and Philosophy,
>> Maynooth University,
>> Maynooth, Co Kildare, Ireland
>> Tel: 00 353 7086936
>> Fax: 00 353 1 7086952 
>> 
>>> On 30 Aug 2015, at 03:34, John <

> jmoeller01@.ac

> > wrote:
>>> 
>>> Dear Forum,
>>> 
>>> I have to mix several 96-channel interleaved sound files.  I discovered
>>> that .wav and .aif files appear have a limit to their size (and
>>> 96-channel sound files eat up data quickly, as you can imagine).  At
>>> 96kHz/24 bit, my files won't get longer than 1 minute, 30 seconds.  I
>>> was trying to generate a 4 minute file.  The data seems to be there
>>> because the resulting file was about 6.8 GB in size, but as I mentioned,
>>> it was only 1.5 minutes in duration.  I understand raw (headerless)
>>> audio files do not have such a data size limit.  However, I am having
>>> trouble using the diskin2 opcode with the array output option (which is
>>> what is needed because it is 96 channels--it appears that the normal
>>> output version can handle up to 40 channels, whereas the array output
>>> version does not have a limit).  I have included some example code below
>>> (using just two channels), with comments on what works and what doesn't. 
>>> I am guessing that because the audio is headerless, the diskin2 opcode
>>> doesn't know how many channels the audio has (e.g., it seems to think it
>>> is just one channel, and thus doesn't know what to do with the
>>> interleaved data).  I tried specifying the size of the array with the
>>> init opcode, but that didn't work.  I also tried using a global array
>>> (just to give it a try).  Any thoughts on this?  Is this possible?
>>> 
>>> Thank you,
>>> 
>>> John
>>> 
>>> 
>>> 
>>> 
> 
>>> 
> 
>>> 
> 
>>> 
> 
>>> 
>>> sr = 96000
>>> ksmps = 256
>>> nchnls = 2
>>> 0dbfs = 1
>>> 
>>> gaArr[] init 2
>>> 
>>> instr 1
>>> 
>>> ;This works:
>>> ;	a1, a2 diskin2 "2ChnlHeaderless.raw", 1, 0, 0, 8, 0, 8192, 0
>>> ;	outch 1, a1, 2, a2
>>> 
>>> 
>>> ;This hangs Csound up, and it has to be force quit:
>>> ;	ar1[] diskin2 "2ChnlHeaderless.raw", 1, 0, 0, 8, 0, 8192, 0
>>> ;	outch 1, ar1[0], 2, ar1[1]	
>>> 
>>> 
>>> ;This gives the error "INIT ERROR in instr 1: diskin2:
>>> 2ChnlHeaderless.raw: failed to open file":
>>> ;	ar1[] init 2
>>> ;	ar1 diskin2 "2ChnlHeaderless.raw", 1, 0, 0, 8, 0, 8192, 0
>>> ;	outch 1, ar1[0], 2, ar1[1]
>>> 
>>> 
>>> ;This gives the error "INIT ERROR in instr 1: diskin2:
>>> 2ChnlHeaderless.raw: failed to open file":	
>>> ;	ar1[] init 2
>>> ;	ar1[] diskin2 "2ChnlHeaderless.raw", 1, 0, 0, 8, 0, 8192, 0
>>> ;	outch 1, ar1[0], 2, ar1[1]
>>> 	
>>> 
>>> ;This gives the error "INIT ERROR in instr 1: diskin2:
>>> 2ChnlHeaderless.raw: failed to open file":
>>> ;	gaArr[] diskin2 "2ChnlHeaderless.raw", 1, 0, 0, 8, 0, 8192, 0
>>> ;	outch 1, gaArr[0], 2, gaArr[1]
>>> 	
>>> 
>>> ;This gives the error "INIT ERROR in instr 1: diskin2:
>>> 2ChnlHeaderless.raw: failed to open file":
>>> ;	gaArr diskin2 "2ChnlHeaderless.raw", 1, 0, 0, 8, 0, 8192, 0
>>> ;	outch 1, gaArr[0], 2, gaArr[1]
>>> 	
>>> endin
>>> 
>>> 
> 
>>> 
> 
>>> 
>>> i1 0 5
>>> e
>>> 
>>> 
> 
>>> 
> 
>>> 
>>> 
>>> 
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-users mailing list

> Csound-users@.sourceforge

> https://lists.sourceforge.net/lists/listinfo/csound-users
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here





--
View this message in context: http://csound.1045644.n5.nabble.com/Using-the-Array-Output-Version-of-Diskin2-With-Raw-Headerless-Audio-Files-tp5743341p5743391.html
Sent from the Csound - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-08-31 21:52
FromVictor Lazzarini
SubjectRe: Using the Array Output Version of Diskin2 With Raw (Headerless) Audio Files
Glad it worked.
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 31 Aug 2015, at 21:42, jdm771  wrote:
> 
> Perfect.  Using the CAF format overcame the file size limitation of .wav and
> .aif, and it worked with the array output version of diskin2.  I am most
> grateful.
> 
> -John
> 
> 
> 
> 
> Victor Lazzarini wrote
>> I have also tried CAF. I was able to a 30 min file with 96 channels, and
>> opened it with csound, no problem.
>> ========================
>> Dr Victor Lazzarini
>> Dean of Arts, Celtic Studies and Philosophy,
>> Maynooth University,
>> Maynooth, Co Kildare, Ireland
>> Tel: 00 353 7086936
>> Fax: 00 353 1 7086952 
>> 
>>> On 30 Aug 2015, at 14:00, Victor Lazzarini <
> 
>> Victor.Lazzarini@
> 
>> > wrote:
>>> 
>>> Have you tried a different format (like IRCAM, WAVEFORMATEX, etc?). I did
>>> a little test here and
>>> it appears the IRCAM format will work.
>>> ========================
>>> Dr Victor Lazzarini
>>> Dean of Arts, Celtic Studies and Philosophy,
>>> Maynooth University,
>>> Maynooth, Co Kildare, Ireland
>>> Tel: 00 353 7086936
>>> Fax: 00 353 1 7086952 
>>> 
>>>> On 30 Aug 2015, at 03:34, John <
> 
>> jmoeller01@.ac
> 
>> > wrote:
>>>> 
>>>> Dear Forum,
>>>> 
>>>> I have to mix several 96-channel interleaved sound files.  I discovered
>>>> that .wav and .aif files appear have a limit to their size (and
>>>> 96-channel sound files eat up data quickly, as you can imagine).  At
>>>> 96kHz/24 bit, my files won't get longer than 1 minute, 30 seconds.  I
>>>> was trying to generate a 4 minute file.  The data seems to be there
>>>> because the resulting file was about 6.8 GB in size, but as I mentioned,
>>>> it was only 1.5 minutes in duration.  I understand raw (headerless)
>>>> audio files do not have such a data size limit.  However, I am having
>>>> trouble using the diskin2 opcode with the array output option (which is
>>>> what is needed because it is 96 channels--it appears that the normal
>>>> output version can handle up to 40 channels, whereas the array output
>>>> version does not have a limit).  I have included some example code below
>>>> (using just two channels), with comments on what works and what doesn't. 
>>>> I am guessing that because the audio is headerless, the diskin2 opcode
>>>> doesn't know how many channels the audio has (e.g., it seems to think it
>>>> is just one channel, and thus doesn't know what to do with the
>>>> interleaved data).  I tried specifying the size of the array with the
>>>> init opcode, but that didn't work.  I also tried using a global array
>>>> (just to give it a try).  Any thoughts on this?  Is this possible?
>>>> 
>>>> Thank you,
>>>> 
>>>> John
>>>> 
>>>> 
>>>> 
>>>> 
>> 
>>>> 
>> 
>>>> 
>> 
>>>> 
>> 
>>>> 
>>>> sr = 96000
>>>> ksmps = 256
>>>> nchnls = 2
>>>> 0dbfs = 1
>>>> 
>>>> gaArr[] init 2
>>>> 
>>>> instr 1
>>>> 
>>>> ;This works:
>>>> ;	a1, a2 diskin2 "2ChnlHeaderless.raw", 1, 0, 0, 8, 0, 8192, 0
>>>> ;	outch 1, a1, 2, a2
>>>> 
>>>> 
>>>> ;This hangs Csound up, and it has to be force quit:
>>>> ;	ar1[] diskin2 "2ChnlHeaderless.raw", 1, 0, 0, 8, 0, 8192, 0
>>>> ;	outch 1, ar1[0], 2, ar1[1]	
>>>> 
>>>> 
>>>> ;This gives the error "INIT ERROR in instr 1: diskin2:
>>>> 2ChnlHeaderless.raw: failed to open file":
>>>> ;	ar1[] init 2
>>>> ;	ar1 diskin2 "2ChnlHeaderless.raw", 1, 0, 0, 8, 0, 8192, 0
>>>> ;	outch 1, ar1[0], 2, ar1[1]
>>>> 
>>>> 
>>>> ;This gives the error "INIT ERROR in instr 1: diskin2:
>>>> 2ChnlHeaderless.raw: failed to open file":	
>>>> ;	ar1[] init 2
>>>> ;	ar1[] diskin2 "2ChnlHeaderless.raw", 1, 0, 0, 8, 0, 8192, 0
>>>> ;	outch 1, ar1[0], 2, ar1[1]
>>>> 	
>>>> 
>>>> ;This gives the error "INIT ERROR in instr 1: diskin2:
>>>> 2ChnlHeaderless.raw: failed to open file":
>>>> ;	gaArr[] diskin2 "2ChnlHeaderless.raw", 1, 0, 0, 8, 0, 8192, 0
>>>> ;	outch 1, gaArr[0], 2, gaArr[1]
>>>> 	
>>>> 
>>>> ;This gives the error "INIT ERROR in instr 1: diskin2:
>>>> 2ChnlHeaderless.raw: failed to open file":
>>>> ;	gaArr diskin2 "2ChnlHeaderless.raw", 1, 0, 0, 8, 0, 8192, 0
>>>> ;	outch 1, gaArr[0], 2, gaArr[1]
>>>> 	
>>>> endin
>>>> 
>>>> 
>> 
>>>> 
>> 
>>>> 
>>>> i1 0 5
>>>> e
>>>> 
>>>> 
>> 
>>>> 
>> 
>>>> 
>>>> 
>>>> 
>> 
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-users mailing list
> 
>> Csound-users@.sourceforge
> 
>> https://lists.sourceforge.net/lists/listinfo/csound-users
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> 
> 
> 
> 
> --
> View this message in context: http://csound.1045644.n5.nabble.com/Using-the-Array-Output-Version-of-Diskin2-With-Raw-Headerless-Audio-Files-tp5743341p5743391.html
> Sent from the Csound - General mailing list archive at Nabble.com.
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-users mailing list
> Csound-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-users
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here