Thank you ! It works well with your samples (waveforms) but I had to resize my array to 515 to make it work. I found the explanation in the tabsosc4~ help patch :
"The table should have a power of two points plus three "guard points", one at the beginning and two at the end, which should be wraparound copies of the last point and the first two points, respectively."
These kinds of start/stop bits are necessary. In this case 515 points = 1 guard point + 2^9 points (512 points waveform) + 2 guard points. I just wonder why these "guard points" are not 'generated' internally by the tabosc4~object.
Another question: Michal, in your samples the triangle and square are between 0 and 1. To use them as sound oscillators (like osc~), i think it would be better to get a signal between -1 and 1, ie for a triangle waveform, something like 0 1 0 -1 0 . Am i right ?
BR nicolas
From: Michal Seta mis@music.mcgill.ca Date: Sat, 11 Aug 2001 01:49:27 -0400
That's a little trickier. Create an array and feed it the file I attached for triangle/square. Use soundfiler with -resize switch to adjust the table size for the triangle/square to fit in well. And there you go with your triangle and square wave generator using tabosc4~.
NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar... Une gamme d'outils gratuits et performants à votre service. Web/Wap : www.netcourrier.com Téléphone/Fax : 08 92 69 00 21 (0,34 E TTC/min - 2,21 F TTC/min) Minitel: 3615 NETCOURRIER (0,15 E TTC/min - 1,00 F TTC/min)