Csound Csound-dev Csound-tekno Search About

Re: Help Needed: loscil

Date2006-05-27 23:52
From"Art Hunkins"
SubjectRe: Help Needed: loscil
Thanks for the suggestion, Andres.

Using it, I still get a comparable error message:

audio sr = 44100, stereo, reading both channels
opening AIFF infile C:\My Documents\My Music\SEAMUS\Good\Seamus2norm.aiff
INIT ERROR in instr 1: illegal sustain loop data
a1 a2 loscil kamp 1 1 1 1 0 0 -1 0 0
   B  0.000 - note deleted.  i1 had 1 init errors

I wish I could be certain my sample has loop data in it; if it does, the
above should certainly work. As I wasn't sure, I attempted the previous
version.

Does anyone know for sure whether Audacity adds loop information? I've been
looking around among other basic sample editors and see virtually no
reference to loop points at all. This would seem to me to be a fairly
desired feature!

Art Hunkins

----- Original Message ----- 
From: "Andres Cabrera" 
To: "Art Hunkins" 
Sent: Saturday, May 27, 2006 5:56 PM
Subject: Re: [Csnd] Help Needed: loscil


Hi Art,

I think you need to do something like:
a1,a2  loscil kamp, 1, 1, 1, 1

(Change the 261.626 to 1 and remove the last '1')
So that you play the loop at the original speed, otherwise your code
plays the loop transposed more than 9 octaves down...

Cheers,
Andrés




kfreq = ftlenOn Sat, 2006-05-27 at 18:00 -0400, Art Hunkins wrote:
> I'm just starting to work with samples in Csound 5.02 beta, and am having
> trouble doing simple looping, i.e., repeating the entire sample. I recall
> some talk here about loop problems with loscil, but was not then involved
> with samples and so recall nothing specific.
>
> Here is the error output I'm getting (when rendering):
>
> opening AIFF infile C:\My Documents\My Music\SEAMUS\Good\Seamus2norm.aiff
> INIT ERROR in instr 1: illegal sustain loop data
> a1 a2 loscil kamp 1 1 1 261.626 1 0 -1 0 0
>    B  0.000 - note deleted.  i1 had 1 init errors
>
> My relevent orch code is:
>
> instr 1
>
> kamp   linseg 0, .01, 10000, p3 - .02, 10000, .01, 0
> a1,a2  loscil kamp, 1, 1, 1, 261.626, 1
>
>    outs a1, a2
>
> endin
>
> The orchestra and sample are stereo. (The final 1 in loscil is to enable
> ordinary looping. Without this loop flag, my orchestra works fine.)
>
> F1 is as follows:
>
> f 1 0 0 1 "C:\My Documents\My Music\SEAMUS\Good\Seamus2norm.aiff" 0 0 0
>
> which I believe to be correct (I tried with a .wav version of the sample
as
> well, and get the same result).
>
> My audio editor is Audacity, and I don't know whether I'm even setting
loop
> points correctly in there or not. I've selected the entire sample before
> doing looped playback, and then exported to either .wav or .aiff. As
> mentioned above, all I want to do is simply loop the entire sample.
> Audacity's docs don't talk about loop points at all, even though Audacity
> itself loops fine. Do I need to change editors?
>
> I'd appreciate any help. I've the distinct feeling I'm missing something
> really basic.
>
> Art Hunkins
>

Date2006-06-03 16:36
FromGregory Cooksey
SubjectSlightly OT: Loop points in audacity (was Re: Help Needed: loscil)
On May 27, 2006, at 5:52 PM, Art Hunkins wrote:
> Does anyone know for sure whether Audacity adds loop information?  
> I've been
> looking around among other basic sample editors and see virtually no
> reference to loop points at all. This would seem to me to be a fairly
> desired feature!

As far as I can tell, Audacity has no support for loop points.  I've  
been trying to build it on my system to see how hard it would be to  
add some rudimentary support, but have been unsuccessful so far.

-Greg

Date2006-06-03 17:35
FromBen Collver
SubjectRe: Slightly OT: Loop points in audacity (was Re: Help Needed: loscil)
AttachmentsNone