<div dir="ltr">
<pre class="gmail-aLF-aPX-K0-aPE">Do you have a short doIt to load these samples ?<br>I'm not sure how you set it up.<br>A quick look at aiffloop.txt I see this: <br>LoopedSampledSound>>samples:loopEnd:loopLength:pitch:samplingRate:
        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<br><br></pre><pre class="gmail-aLF-aPX-K0-aPE">So there will probably be issues with negative number of samples in the loop<br><br></pre><pre class="gmail-aLF-aPX-K0-aPE">Best,<br>Karl<br></pre>

</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Feb 5, 2022 at 2:46 AM David O'Toole <<a href="mailto:deeteeoh1138@gmail.com">deeteeoh1138@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>(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: <a href="https://drive.google.com/file/d/16BvtxS9tkIPJRcx-cri1gPGM5p0E7uV_/view?usp=sharing" target="_blank">https://drive.google.com/file/d/16BvtxS9tkIPJRcx-cri1gPGM5p0E7uV_/view?usp=sharing</a></div><div><br></div><div>Original message: </div><div><br></div><div>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. </div><div><br></div><div>In Snd i can verify the loop points are correct:</div><div><br></div>> >(sound-loop-info (open-sound "~/sessions/orch.mosaic/cello f/36.aif"))<br>(44100 88200 0 0 0 0 1 1)<br><div><br></div><div>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. </div><div><br></div><div>How might I go about debugging this further? </div></div>
<br>
</blockquote></div>