Re: [PD] Loading arrays with arbitrary wave forms

2014-04-10 Thread Alexandros Drymonitis
You can implement the same thing with Pd only. I've attached a patch that creates the same waveform as the one you're loading, plus adds the three guard points for the cubic interpolation. On Thu, Apr 10, 2014 at 3:48 AM, David dfket...@gmail.com wrote: Thanks again to everyone that replied. I

Re: [PD] Loading arrays with arbitrary wave forms

2014-04-10 Thread IOhannes m zmölnig
On 04/09/2014 09:46 AM, IOhannes m zmoelnig wrote: [sin]| ah, there is no [sin] object, use [cos] instead. anyhow, the patch was not really meant to be be copied to your Pd instance, but to show how easy it is to do what you want. it basically consists of two three parts: #1

Re: [PD] Loading arrays with arbitrary wave forms

2014-04-10 Thread Alexandre Torres Porres
hey, I tried making mine a bit more understandable it works with any table size. Just set the size as the argument in the [table] object. This means it works with [tabosc4~] if you'd like, and it makes the extra 3 guard points correctively. The guard points thing and interpolation is a bit hard

Re: [PD] Loading arrays with arbitrary wave forms

2014-04-09 Thread IOhannes m zmoelnig
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 2014-04-09 02:41, David wrote: Any suggestions on how I could do that in Pure Data? [loadbang] | [1024( | [t f f| | [; mytable resize $1( | [until] | |+---+ [i -1] | [+ 1]| [t f f] | | +--+ | [t f f] |

Re: [PD] Loading arrays with arbitrary wave forms

2014-04-09 Thread tim vets
I don't know if it's exactly what you had in mind, but here's an example with expr gr, Tim 2014-04-09 9:46 GMT+02:00 IOhannes m zmoelnig zmoel...@iem.at: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 2014-04-09 02:41, David wrote: Any suggestions on how I could do that in Pure Data?

Re: [PD] Loading arrays with arbitrary wave forms

2014-04-09 Thread David
Thanks to everyone who replied, I'll try your suggestions when I get home tonight. David. ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list

Re: [PD] Loading arrays with arbitrary wave forms

2014-04-09 Thread David
Right, I think 'sinesum' takes care of that for you. I don't know if Tim's example takes care of that or not. Thanks again. On Wed, Apr 9, 2014 at 10:36 AM, Alexandre Torres Porres por...@gmail.comwrote: the tricky detail you'd have to think of, if you're planing to use [tabread4~], is that

Re: [PD] Loading arrays with arbitrary wave forms

2014-04-09 Thread Alexandre Torres Porres
the tricky detail you'd have to think of, if you're planing to use [tabread4~], is that you need 3 extra points that are copies of existing points. The help file will tell you that. [tabosc4~], in extent, needs a power of 2 plus the 3 extra points. 2014-04-09 9:21 GMT-03:00 David

Re: [PD] Loading arrays with arbitrary wave forms

2014-04-09 Thread Alexandre Torres Porres
I made one that takes care of it, here you go it's just doing a hann window, but you tweak any way you want it :) 2014-04-09 11:52 GMT-03:00 David dfket...@gmail.com: Right, I think 'sinesum' takes care of that for you. I don't know if Tim's example takes care of that or not. Thanks again.

Re: [PD] Loading arrays with arbitrary wave forms

2014-04-09 Thread Alexandre Torres Porres
and I'm using it for an envelope... 2014-04-09 12:42 GMT-03:00 Alexandre Torres Porres por...@gmail.com: I made one that takes care of it, here you go it's just doing a hann window, but you tweak any way you want it :) 2014-04-09 11:52 GMT-03:00 David dfket...@gmail.com: Right, I think

Re: [PD] Loading arrays with arbitrary wave forms

2014-04-09 Thread Alexandros Drymonitis
And here's a patch that creates guard points. Your table should already have a size of (2^x) + 3, which is taken care of in the patch. On Wed, Apr 9, 2014 at 6:43 PM, Alexandre Torres Porres por...@gmail.comwrote: and I'm using it for an envelope... 2014-04-09 12:42 GMT-03:00 Alexandre

[PD] Loading arrays with arbitrary wave forms

2014-04-08 Thread David
Hi! Is there some way to fill an array (table) with an arbitrary wave form programatically? I know I can use sinesum or cosinesum to generate sums of sinusoidal wave forms, and in theory any periodic waveform can be generated this way. But I want to generate wave forms using more complicated

Re: [PD] Loading arrays with arbitrary wave forms

2014-04-08 Thread Alexandre Torres Porres
just - think of the table size you want. - get its period in seconds, or better, its frequency, according to the sample rate - use this frequency as the frequency of [phasor~], going from 0 to 1 (be careful to set the starting phase as zero, as well) - make [phasor~] feed whatever crazy idea