Reading long input sounds with loscil3

Hello,

I made an instrument that usually can identify if a file is mono or stereo, which sample rate, and file length, and from that calculate the correct number of samples to read into a table and play with loscil3. But now I'm using some very long input sounds and get errors like this:

instr 3: ibeg11 = 0.000 iend11 = 3003031.000 itimeforloopuntouched1 = 0.500
(these are printed parameters from the instrument)

beg: 0, end = -2147483648, maxphs = -1219862529
INIT ERROR in instr 3: illegal sustain loop data
asigraw1 loscil3 kamp ksamplespeedratio1 itablenum1 ibas imod1 ibeg11 iend11 imod2 ibeg21 iend21

Does maxphs = -1219862529 mean that this is the maximum duration of a table? If so, is there a way to expand maximum length?

The sound if read this way (in a macro):
itablenum$B ftgentmp itablenum$B, 0, 0, -1, $A, 0, 0, 0

I include more of the log below. Sounds shorter than 45 seconds are ok, longer sounds seem to always fail. The sounds in this example are all tam-tams with very long resonance time, maybe I will have to cut their endings in order to use them?

Best,
Ruben
_____________________________
http://www.bek.no/~ruben/

new alloc for instr 21:
new alloc for instr 22:
new alloc for instr 23:
new alloc for instr 24:
new alloc for instr 25:
new alloc for instr 26:
new alloc for instr 27:
new alloc for instr 28:
B 0.000 .. 2.730 T 2.730 TT 2.730 M: 1713.8 5207.3 1330.8 2987.3
new alloc for instr 3:
WARNING: xtt-plast-mid-ff.AIF: no PEAK chunk was found, scanning file for maximum amplitude
instr 3: isr1 = 44100.000 ilength1 = 68.096 ichan1 = 1.000 ipeak1 = 31999.023 iampmultiplier1 = 0.078 ip3adjusted1 = 57.449 isamplespeedratio1 = 1.185
WARNING: xtt-kn.ndle-edge-pDenois.aiff: no PEAK chunk was found, scanning file for maximum amplitude
instr 3: isr2 = 44100.000 ilength2 = 6.216 ichan2 = 1.000 ipeak2 = 27914.148 iampmultiplier2 = 0.090 ip3adjusted2 = 57.449 isamplespeedratio2 = 0.108
ftable 131:
deferred alloc
audio sr = 44100, monaural
opening AIFF infile /AriaCsound/xtt-plast-mid-ff.AIF
defer length 3003032
instr 3: ibeg11 = 0.000 iend11 = 3003031.000 itimeforloopuntouched1 = 0.500
beg: 0, end = -2147483648, maxphs = -1219862529
INIT ERROR in instr 3: illegal sustain loop data
asigraw1 loscil3 kamp ksamplespeedratio1 itablenum1 ibas imod1 ibeg11 iend11 imod2 ibeg21 iend21
ftable 132:
deferred alloc
audio sr = 44100, monaural
opening AIFF infile /AriaCsound/xtt-kn.ndle-edge-pDenois.aiff
defer length 274126
instr 3: ibeg12 = 0.000 iend12 = 274125.000 itimeforloopuntouched2 = 0.500
instr 3: ifftsize1 = 4096.000 iolaps1 = 8.000 idec = 0.150 ipitchratiowithrisk4clicks1 = 0.565 ifftsizedivider1 = 1.000
instr 3: ifftsize2 = 32768.000 iolaps2 = 8.000 idec = 0.150 ipitchratiowithrisk4clicks2 = 0.356 ifftsizedivider2 = 1.000
instr 3: iHz1 = 78.323 isamplespeedratio1 = 1.185 ipitchcorrection1 = 0.844 iEstimateSampleBaseHz1 = 138.583
instr 3: iHz2 = 78.323 isamplespeedratio2 = 0.108 ipitchcorrection2 = 9.242 iEstimateSampleBaseHz2 = 220.000
instr 3: iromnummer1 = 3.000 iromnummer2 = 5.000 irevbalfn = 1206.000
B 2.730 - note deleted. i3 had 1 init errors
B 2.730 .. 2.979 T 2.979 TT 2.979 M: 4306.9 3466.5 1125.9 1496.9
WARNING: xtt-plast-edge-mfDenois.aiff: no PEAK chunk was found, scanning file for maximum amplitude
instr 3: isr1 = 44100.000 ilength1 = 15.816 ichan1 = 1.000 ipeak1 = 31974.023 iampmultiplier1 = 0.078 ip3adjusted1 = 55.849 isamplespeedratio1 = 0.283
WARNING: xtt-jazz-edge-fDenois.aiff: no PEAK chunk was found, scanning file for maximum amplitude
instr 3: isr2 = 44100.000 ilength2 = 21.332 ichan2 = 1.000 ipeak2 = 31983.023 iampmultiplier2 = 0.078 ip3adjusted2 = 55.849 isamplespeedratio2 = 0.382
ftable 133:
deferred alloc
audio sr = 44100, monaural
opening AIFF infile /AriaCsound/xtt-plast-edge-mfDenois.aiff
defer length 697486
instr 3: ibeg11 = 0.000 iend11 = 697485.000 itimeforloopuntouched1 = 0.500
ftable 134:
deferred alloc
audio sr = 44100, monaural
opening AIFF infile /AriaCsound/xtt-jazz-edge-fDenois.aiff
defer length 940742
instr 3: ibeg12 = 0.000 iend12 = 940741.000 itimeforloopuntouched2 = 0.500
instr 3: ifftsize1 = 16384.000 iolaps1 = 8.000 idec = 0.150 ipitchratiowithrisk4clicks1 = 0.897 ifftsizedivider1 = 1.000
instr 3: ifftsize2 = 16384.000 iolaps2 = 8.000 idec = 0.150 ipitchratiowithrisk4clicks2 = 0.897 ifftsizedivider2 = 1.000
instr 3: iHz1 = 110.765 isamplespeedratio1 = 0.283 ipitchcorrection1 = 3.531 iEstimateSampleBaseHz1 = 123.467
instr 3: iHz2 = 110.765 isamplespeedratio2 = 0.382 ipitchcorrection2 = 2.618 iEstimateSampleBaseHz2 = 123.467
instr 3: iromnummer1 = 3.000 iromnummer2 = 5.000 irevbalfn = 604.000
B 2.979 .. 3.804 T 3.804 TT 3.804 M: 1816.9 1771.4 912.7 1379.3
new alloc for instr 3:
WARNING: xtt-plast-edge-mfDenois.aiff: no PEAK chunk was found, scanning file for maximum amplitude
instr 3: isr1 = 44100.000 ilength1 = 15.816 ichan1 = 1.000 ipeak1 = 31974.023 iampmultiplier1 = 0.078 ip3adjusted1 = 50.507 isamplespeedratio1 = 0.313
WARNING: xtt-tymp-mid-ff.AIF: no PEAK chunk was found, scanning file for maximum amplitude
instr 3: isr2 = 44100.000 ilength2 = 67.455 ichan2 = 1.000 ipeak2 = 31999.023 iampmultiplier2 = 0.078 ip3adjusted2 = 50.507 isamplespeedratio2 = 1.336
ftable 135:
deferred alloc
audio sr = 44100, monaural
opening AIFF infile /AriaCsound/xtt-plast-edge-mfDenois.aiff
defer length 697486
instr 3: ibeg11 = 0.000 iend11 = 697485.000 itimeforloopuntouched1 = 0.500
ftable 136:
deferred alloc
audio sr = 44100, monaural
opening AIFF infile /AriaCsound/xtt-tymp-mid-ff.AIF
defer length 2974763
instr 3: ibeg12 = 0.000 iend12 = 2974762.000 itimeforloopuntouched2 = 0.500
beg: 0, end = -2147483648, maxphs = -1248809985
INIT ERROR in instr 3: illegal sustain loop data
asigsecond1 loscil3 kamp ksamplespeedratio2 itablenum2 ibas imod1 ibeg12 iend12 imod2 ibeg22 iend22
instr 3: ifftsize1 = 32768.000 iolaps1 = 8.000 idec = 0.150 ipitchratiowithrisk4clicks1 = 1.706 ifftsizedivider1 = 1.000
instr 3: ifftsize2 = 8192.000 iolaps2 = 8.000 idec = 0.150 ipitchratiowithrisk4clicks2 = 1.706 ifftsizedivider2 = 1.000
instr 3: iHz1 = 210.673 isamplespeedratio1 = 0.313 ipitchcorrection1 = 3.193 iEstimateSampleBaseHz1 = 123.467
instr 3: iHz2 = 210.673 isamplespeedratio2 = 1.336 ipitchcorrection2 = 0.749 iEstimateSampleBaseHz2 = 123.467
instr 3: iromnummer1 = 5.000 iromnummer2 = 5.000 irevbalfn = 1207.000
B 3.804 - note deleted. i3 had 1 init errors
B 3.804 .. 4.715 T 4.715 TT 4.715 M: 492.4 715.1 324.1 675.1
WARNING: xtt-kn.ndle-edge-pDenois.aiff: no PEAK chunk was found, scanning file for maximum amplitude
instr 3: isr1 = 44100.000 ilength1 = 6.216 ichan1 = 1.000 ipeak1 = 27914.148 iampmultiplier1 = 0.090 ip3adjusted1 = 58.145 isamplespeedratio1 = 0.107
WARNING: xtt-plast-mid-ff.AIF: no PEAK chunk was found, scanning file for maximum amplitude
instr 3: isr2 = 44100.000 ilength2 = 68.096 ichan2 = 1.000 ipeak2 = 31999.023 iampmultiplier2 = 0.078 ip3adjusted2 = 58.145 isamplespeedratio2 = 1.171
ftable 137:
deferred alloc
audio sr = 44100, monaural
opening AIFF infile /AriaCsound/xtt-kn.ndle-edge-pDenois.aiff
defer length 274126
instr 3: ibeg11 = 0.000 iend11 = 274125.000 itimeforloopuntouched1 = 0.500
ftable 138:
deferred alloc
audio sr = 44100, monaural
opening AIFF infile /AriaCsound/xtt-plast-mid-ff.AIF
defer length 3003032
instr 3: ibeg12 = 0.000 iend12 = 3003031.000 itimeforloopuntouched2 = 0.500
beg: 0, end = -2147483648, maxphs = -1219862529
INIT ERROR in instr 3: illegal sustain loop data
asigsecond1 loscil3 kamp ksamplespeedratio2 itablenum2 ibas imod1 ibeg12 iend12 imod2 ibeg22 iend22
instr 3: ifftsize1 = 65536.000 iolaps1 = 8.000 idec = 0.150 ipitchratiowithrisk4clicks1 = 1.634 ifftsizedivider1 = 1.000
instr 3: ifftsize2 = 4096.000 iolaps2 = 8.000 idec = 0.150 ipitchratiowithrisk4clicks2 = 1.224 ifftsizedivider2 = 1.000
instr 3: iHz1 = 201.741 isamplespeedratio1 = 0.107 ipitchcorrection1 = 9.354 iEstimateSampleBaseHz1 = 123.467
instr 3: iHz2 = 201.741 isamplespeedratio2 = 1.171 ipitchcorrection2 = 0.854 iEstimateSampleBaseHz2 = 164.804
instr 3: iromnummer1 = 3.000 iromnummer2 = 5.000 irevbalfn = 1209.000
B 4.715 - note deleted. i3 had 1 init errors
B 4.715 .. 4.819 T 4.819 TT 4.819 M: 175.7 165.5 218.3 145.8
WARNING: xtt-plast-mid-ppDenois.aiff: no PEAK chunk was found, scanning file for maximum amplitude
instr 3: isr1 = 44100.000 ilength1 = 17.557 ichan1 = 1.000 ipeak1 = 31999.023 iampmultiplier1 = 0.078 ip3adjusted1 = 52.432 isamplespeedratio1 = 0.335
WARNING: xtt-jazz-mid-f.AIF: no PEAK chunk was found, scanning file for maximum amplitude
instr 3: isr2 = 44100.000 ilength2 = 55.806 ichan2 = 1.000 ipeak2 = 31999.023 iampmultiplier2 = 0.078 ip3adjusted2 = 52.432 isamplespeedratio2 = 1.064
ftable 139:
deferred alloc
audio sr = 44100, monaural
opening AIFF infile /AriaCsound/xtt-plast-mid-ppDenois.aiff
defer length 774263
instr 3: ibeg11 = 0.000 iend11 = 774262.000 itimeforloopuntouched1 = 0.500
ftable 140:
deferred alloc
audio sr = 44100, monaural
opening AIFF infile /AriaCsound/xtt-jazz-mid-f.AIF
defer length 2461044
instr 3: ibeg12 = 0.000 iend12 = 2461043.000 itimeforloopuntouched2 = 0.500
beg: 0, end = -2147483648, maxphs = -1774858241
INIT ERROR in instr 3: illegal sustain loop data
asigsecond1 loscil3 kamp ksamplespeedratio2 itablenum2 ibas imod1 ibeg12 iend12 imod2 ibeg22 iend22
instr 3: ifftsize1 = 16384.000 iolaps1 = 8.000 idec = 0.150 ipitchratiowithrisk4clicks1 = 0.591 ifftsizedivider1 = 1.000
instr 3: ifftsize2 = 8192.000 iolaps2 = 8.000 idec = 0.150 ipitchratiowithrisk4clicks2 = 0.497 ifftsizedivider2 = 1.000
instr 3: iHz1 = 72.909 isamplespeedratio1 = 0.335 ipitchcorrection1 = 2.986 iEstimateSampleBaseHz1 = 123.467
instr 3: iHz2 = 72.909 isamplespeedratio2 = 1.064 ipitchcorrection2 = 0.940 iEstimateSampleBaseHz2 = 146.828
instr 3: iromnummer1 = 3.000 iromnummer2 = 4.000 irevbalfn = 603.000
B 4.819 - note deleted. i3 had 1 init errors
B 4.819 .. 5.273 T 5.272 TT 5.272 M: 143.4 180.6 208.1 222.3
WARNING: xtt-plast-mid-mfDenois.aiff: no PEAK chunk was found, scanning file for maximum amplitude
instr 3: isr1 = 44100.000 ilength1 = 44.444 ichan1 = 1.000 ipeak1 = 32064.021 iampmultiplier1 = 0.078 ip3adjusted1 = 57.653 isamplespeedratio1 = 0.771
WARNING: xtt-plast-edge-ppDEnois.aiff: no PEAK chunk was found, scanning file for maximum amplitude
instr 3: isr2 = 44100.000 ilength2 = 13.762 ichan2 = 1.000 ipeak2 = 31959.025 iampmultiplier2 = 0.078 ip3adjusted2 = 57.653 isamplespeedratio2 = 0.239
ftable 141:
deferred alloc
audio sr = 44100, monaural
opening AIFF infile /AriaCsound/xtt-plast-mid-mfDenois.aiff
defer length 1959980
instr 3: ibeg11 = 0.000 iend11 = 1959979.125 itimeforloopuntouched1 = 0.500
ftable 142:
deferred alloc
audio sr = 44100, monaural
opening AIFF infile /AriaCsound/xtt-plast-edge-ppDEnois.aiff
defer length 606904
instr 3: ibeg12 = 0.000 iend12 = 606903.000 itimeforloopuntouched2 = 0.500
instr 3: ifftsize1 = 16384.000 iolaps1 = 8.000 idec = 0.150 ipitchratiowithrisk4clicks1 = 0.958 ifftsizedivider1 = 1.000
instr 3: ifftsize2 = 32768.000 iolaps2 = 8.000 idec = 0.150 ipitchratiowithrisk4clicks2 = 1.139 ifftsizedivider2 = 1.000
instr 3: iHz1 = 140.607 isamplespeedratio1 = 0.771 ipitchcorrection1 = 1.297 iEstimateSampleBaseHz1 = 146.828
instr 3: iHz2 = 140.607 isamplespeedratio2 = 0.239 ipitchcorrection2 = 4.189 iEstimateSampleBaseHz2 = 123.467
instr 3: iromnummer1 = 5.000 iromnummer2 = 5.000 irevbalfn = 1205.000
B 5.273 .. 5.651 T 5.651 TT 5.651 M: 88.7 135.5 70.5 250.3
new alloc for instr 3:
WARNING: xtt-v.mh-mid-ff.AIF: no PEAK chunk was found, scanning file for maximum amplitude

Re: Reading long input sounds with loscil3

I don't really know what's causing the errors, but according to the GEN1 manual page, the maximum table size is 2^24 points, which, at 44100 kHz, comes out to about 380 seconds for a mono file. So unless you're using over 8 channels or samples with higher sampling rates you should be able to get over 45 seconds read in.

Re: Reading long input sounds with loscil3

Thanks, all the sounds were mono 44100 hz, so maybe GEN1 actually can create the tables.
The log shows errors from loscil3, could the problem just be reading long tables with loscil3? I didn't find anything about maximum input length for loscil3 in the manual. I shortened the sounds, and my instrument works again now, it seems like I met a limit. 50 second works, 55 seconds or more doesn't.
The 'maxphs' also seem to vary a bit in the log:

beg: 0, end = -2147483648, maxphs = -1219862529
beg: 0, end = -2147483648, maxphs = -1248809985
beg: 0, end = -2147483648, maxphs = -1774858241

I'll just stick to shorter sounds for now.

Ruben

viagra online ed drugs cialis uk z-pack pharmacy uk z pak buy zithromax viagra uk avanafil generic cialis z-pak buy viagra uk generic viagra cheap generic viagra z pack ed pills kamagra uk staxyn cialis online Canadian pharmacy viagra zpak zpack Canadian pharmacy