Csound Csound-dev Csound-tekno Search About

[Csnd] Strange short lived loscil run

Date2008-11-14 01:27
FromTobiah
Subject[Csnd] Strange short lived loscil run
For some reason, audio output is abruptly silenced
after about 43 seconds.  Performance continues, 
but there is no sound.  Playing the soundfile
alone is fine.

The loscil docs say that I can use
up to (2 ** 24) sample frames.

The input file can be found at:

http://tobiah.org/steel.wav

Thanks,

Tobiah

Csound version 5.08 (double samples) Apr 16 2008

***** CSD *****


        
                -o dac
        
        

                sr       = 44100
                ksmps    = 100
                nchnls   = 2

                instr 1
                        asigl, asigr    loscil          32767, 1, 1, 1
                                        outs            asigl, asigr
                endin

        

        

                f1 0 0 1 "steel.wav" 0 0 0
                i1 0.0 137.308

        




***** SNDINFO *****
util sndinfo:
steel.wav:
        srate 44100, stereo, 16 bit WAV, 137.308 seconds
        (6055275 sample frames)






Date2008-11-14 21:36
Fromsal g sofia
Subject[Csnd] Re: Strange short lived loscil run
Hi Tobiah,

I tried your example code and does exactly what you said.
But by adding  the "loscil" plays the entire
file lenght (2.17ms).

asigl, asigr    loscil          32767, 1, 1, 1, <1>

Regards,
--Sal


On Thu, 13 Nov 2008, Tobiah wrote:

> For some reason, audio output is abruptly silenced
> after about 43 seconds.  Performance continues, but there is no sound. 
> Playing the soundfile
> alone is fine.
>
> The loscil docs say that I can use
> up to (2 ** 24) sample frames.
>
> The input file can be found at:
>
> http://tobiah.org/steel.wav
>
> Thanks,
>
> Tobiah
>
> Csound version 5.08 (double samples) Apr 16 2008
>
> ***** CSD *****
>
> 
>       
>               -o dac
>       
>       
>
>               sr       = 44100
>               ksmps    = 100
>               nchnls   = 2
>
>               instr 1
>                       asigl, asigr    loscil          32767, 1, 1, 1
>                                       outs            asigl, asigr
>               endin
>
>       
>
>       
>
>               f1 0 0 1 "steel.wav" 0 0 0
>               i1 0.0 137.308
>
>       
>
> 
>
>
> ***** SNDINFO *****
> util sndinfo:
> steel.wav:
>       srate 44100, stereo, 16 bit WAV, 137.308 seconds
>       (6055275 sample frames)
>
>
>
>
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
> csound"
>

Date2008-11-15 02:42
FromTobiah
Subject[Csnd] Re: Re: Strange short lived loscil run
sal g sofia wrote:
> 
> Hi Tobiah,
> 
> I tried your example code and does exactly what you said.
> But by adding  the "loscil" plays the entire
> file lenght (2.17ms).

Thanks for the tip.  I thought that you had
solved it, but what is actually happening, is
that the file jumps back to the beginning every
42 seconds.

I tried explicitly setting imod1 to 0, but then
I got silence again, after 42 seconds.

I recorded this file with 'audacity' with default
settings.  I don't think that audacity is setting
any loop points, and even if it did, I should be
able to override with imod1 of 0.

It seems that either loscil has an upper limit
on its max table size, which should be documented,
or there may be a real bug here.

What would be the next option for large table
playback.  phasor/tablei combo?   Is there anything
more concise?

Thanks,

Toby

Date2008-11-15 03:06
FromTobiah
Subject[Csnd] Re: Re: Re: Strange short lived loscil run
> What would be the next option for large table
> playback.  phasor/tablei combo?   Is there anything
> more concise?


Actually, is there *anything* besides loscil
that can read stereo samples out of a stereo
GEN01 table?

Am I looking at this the wrong way?  I just want
to have random access to a soundfile during performance,
preferable with variable pitch.  Well, for a sound
greater than 42 seconds in length anyway.

Thanks,

Tobiah

Date2008-11-15 17:11
FromTobiah
Subject[Csnd] Re: Strange short lived loscil run
Tobiah wrote:
> For some reason, audio output is abruptly silenced
> after about 43 seconds.  Performance continues, but there is no sound.  
> Playing the soundfile
> alone is fine.

I tried explicitly setting the loop beginning and end,
and find that there is a limit on loop point size at the
conspicuous point of 42.19 seconds.  If I specify
1860970 or less for the loop endpoint, the orchestra runs.  
Anything greater than that gets:

INIT ERROR in instr 1: illegal sustain loop data
asigl   asigr   loscil  32767   1       1       1       1       1       1860971 -1      0       0
          B  0.000 - note deleted.  i1 had 1 init errors


Is that an arbitrary limit that could be increased?

Thanks,

Toby

Date2008-11-17 21:13
Fromjoachim heintz
Subject[Csnd] Re: Re: Re: Re: Strange short lived loscil run
I wrote an UDO using poscil3 for playing samples from a GEN01 table,  
for 1 or 2 or more channels. It's on http://www.csounds.com/udo/  
("SamplePlay")
The restriction is that it needs one table for each channel, but  
perhaps regardless this is useful for your aims.
Best -
	joachim




Am 15.11.2008 um 04:06 schrieb Tobiah:

>
>> What would be the next option for large table
>> playback.  phasor/tablei combo?   Is there anything
>> more concise?
>
>
> Actually, is there *anything* besides loscil
> that can read stereo samples out of a stereo
> GEN01 table?
>
> Am I looking at this the wrong way?  I just want
> to have random access to a soundfile during performance,
> preferable with variable pitch.  Well, for a sound
> greater than 42 seconds in length anyway.
>
> Thanks,
>
> Tobiah
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"