It seems as though the chunk size is incorrect for the APPL chunk
in SOS (SPC) files written out via 'exportSpc'. I used the following
Python code fragment to create the SOS file (from morphtest.py):
a = loris.Analyzer( 390 )
cf = loris.AiffFile('clarinet.aiff')
v = cf.samples()
samplerate = cf.sampleRate()
clar = a.analyze( v, samplerate )
loris.channelize( clar, loris.createFreqReference( clar, 0, 1000 ), 1 )
loris.distill( clar )
loris.exportSpc( 'clar.pytest.spc', clar, 90 )
The resulting file has an APPL (SOSe) chunk size of 2092 (0x82c),
though the partial data seems to continue beyond this. The next
chunk (SSND) doesn't start until 0x1800 bytes later. I suspect the
size should have been 0x82c + 0x1800. My AIFF file parser chokes
on this (and any other .spc files) created by Loris.
BTW, what I was hoping to do was to batch convert a larger
number of sample file to SOS format for use with Kyma. The file
appears to be readable in Kyma, but the result is not quite what I
would have expected. I have not been using Loris long enough to
know whether it is a result of the errant chunk size or the settings
I am using in Loris.
Log in to post a comment.