<div>Hi all,</div>
<div> </div>
<div>Thanks for the nice replies regarding my first perl program :)</div>
<div>I don&#39;t have a www connection at home now, so sorry for the late reply.</div>
<div> </div>
<div>I modified my first version a bit and also made a second version with a different usage.</div>
<div> </div>
<div>Now I have <a href="https://sites.google.com/site/experimentalfrush/installed-apps/tapeutape/listdir?attredirects=0&amp;d=1" target="_blank">listdir</a> which should be copied to the directory containing the samples. Run it from there.</div>


<div><a href="https://sites.google.com/site/experimentalfrush/installed-apps/tapeutape/listdir?attredirects=0&amp;d=1" target="_blank">https://sites.google.com/site/experimentalfrush/installed-apps/tapeutape/listdir?attredirects=0&amp;d=1</a></div>


<div> </div>
<div>The other version is <a href="https://sites.google.com/site/experimentalfrush/installed-apps/tapeutape/dir2tap?attredirects=0&amp;d=1" target="_blank">dir2tap</a> which should be placed in your tapeutape preset folder and has usage like this: dir2tap /path/to/dir. It then saves thisfolder.tap into the folder where it was executed from.</div>


<div><a href="https://sites.google.com/site/experimentalfrush/installed-apps/tapeutape/dir2tap?attredirects=0&amp;d=1" target="_blank">https://sites.google.com/site/experimentalfrush/installed-apps/tapeutape/dir2tap?attredirects=0&amp;d=1</a></div>


<div> </div>
<div>Now by default the minnote, maxnote and rootnote value are rising from 0 to 127. If you need to load more that 128 wavfiles, replace the ==note== variable in the source to a default numeric value between 0 and 127.</div>


<div> </div>
<div>Also,  each Instrument now gets the name of its loaded .wav file. Editing this will be less work than editing &quot;new instrument&quot;.</div>
<div> </div>
<div>Renato wrote:</div>
<div>&gt; 1) save to &quot;currentdir&quot;.tap instead of thisdirectory.tap. I.e. if I run</div>
<div>&gt; the script in the directory drum_machine I should end up with</div>
<div>&gt; drum_machine.tap</div>
<div> </div>
<div>I suppose that&#39;s a name that needs to be given only once, so give the name you choose when you edited thisfolder.tap with Tapeutape itself. Thanks for the request anyway, I&#39;ll see how to implement that.</div>


<div> </div>
<div>&gt; 2) assign midi notes, with a range of 2-3 notes for each (for drums I</div>
<div>&gt; think that&#39;s enough?) </div>
<div> </div>
<div>Now the range is just one note, this way I also make sure no more than 128 files are loaded at once, because if note=&quot;129&quot; is written in the .tap file, it crashes Tapeutape when you click on that instrument. It&#39;s possible to assign a note range to each sample, but that would take 3 extra variables: the min note, max note and total number of files loaded for the check. This is another good feature request, useful for Florent too I guess.</div>


<div> </div>
<div>Have a nice day.</div>
<div>Peter</div>