[squeak-dev] Bad loop parameters in AIFF [Repost without large attachment]
deeteeoh1138 at gmail.com
Sat Feb 5 12:36:10 UTC 2022
Try placing the unzipped "cello f" folder into directory "path_to_foo"
SampledInstrument readSimpleInstrument: 'cello' fromDirectory: 'path_to_foo'
I see your comment about the negative loop length, however this appears to
be the bug itself---I verified in Snd that the loop points are 44100 and
On Sat, Feb 5, 2022 at 7:08 AM karl ramberg <karlramberg at gmail.com> wrote:
> Do you have a short doIt to load these samples ?
> I'm not sure how you set it up.
> A quick look at aiffloop.txt I see this:
> Receiver: a LoopedSampledSound
> Arguments and temporary variables:
> aSoundBuffer: a SoundBuffer(0 0 0 1 1 1 2 2 2 2 2 3 3 3 3 3 3 3 3 2 2 2 2 1 1 0...etc...
> loopEndIndex: 0
> loopSampleCount: -44100
> So there will probably be issues with negative number of samples in the loop
> On Sat, Feb 5, 2022 at 2:46 AM David O'Toole <deeteeoh1138 at gmail.com>
>> (Apologies if this is a double post, I think the other will be rejected
>> on account of the 2+MB AIFF file I attached. Instead I've put up a Zip file
>> of the AIFFs I'm trying to import, on GDrive:
>> Original message:
>> I have AIFF files with loop points all set the same, beginning at sample
>> 44100 and ending at 88200. I am trying to use
>> SampledInstrument(class)>>#readSimpleInstrument:fromDirectory: to create a
>> sampled instrument.
>> In Snd i can verify the loop points are correct:
>> > >(sound-loop-info (open-sound "~/sessions/orch.mosaic/cello f/36.aif"))
>> (44100 88200 0 0 0 0 1 1)
>> But as you can see in the bug report/screenshot, the end point becomes 0
>> somehow when it reaches note 36.aif, resulting in an error. I've also
>> included the offending .aif file, which might be malformed in some way I
>> haven't discovered.
>> How might I go about debugging this further?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Squeak-dev