Re: [PD] [cos~]replacement for webPd patch

2015-08-26 Thread s p
Hmm ... actually I got carried away. I can't implement [cos~] or [env~] with native web audio API nodes. I'll have to use a slow ScriptProcessorNode. So if performance is not a concern for you I'll do it, but I won't integrate it to the core of WebPd. On Tue, Aug 25, 2015 at 9:50 AM, Julian

Re: [PD] [cos~]replacement for webPd patch

2015-08-26 Thread Joe White
I'll have to use a slow ScriptProcessorNode. Here's to hoping for Audio Worker Nodes aye :( Out of curiosity how are the native nodes different from using the ScriptProcessorNode? For something simple like abs~ or wrap~ is performance *that *drastically worse? On 26 August 2015 at 09:53,

Re: [PD] [cos~]replacement for webPd patch

2015-08-26 Thread IOhannes m zmoelnig
On 2015-08-26 10:25, s p wrote: Hmm ... actually I got carried away. I can't implement [cos~] or [env~] with native web audio API nodes. I'll have to use a slow ScriptProcessorNode. So if performance is not a concern for you I'll do it, but I won't integrate it to the core of WebPd. since

Re: [PD] [cos~]replacement for webPd patch

2015-08-26 Thread Julian Brooks
Hi Seb, Thanks for having a go. While absolutely agreeing with IOhannes, is it the same situation with [abs~] and [wrap~]? Regards, Julian] On 26 August 2015 at 09:36, IOhannes m zmoelnig zmoel...@iem.at wrote: On 2015-08-26 10:25, s p wrote: Hmm ... actually I got carried away. I can't

Re: [PD] [cos~]replacement for webPd patch

2015-08-26 Thread Julian Brooks
Thanks for the info Seb - will do. On 26 August 2015 at 11:52, s p seb...@gmail.com wrote: since it's really easy to build [cos~] with writing [cos] values to a table¹, wouldn't it make sense to add [cos] and [until] to the WebPd core? @IOhannes yes that's an option. Unfortunately, table

Re: [PD] [cos~]replacement for webPd patch

2015-08-26 Thread s p
Alright! I've added [until], [cos], [sin], [tan], [atan], [log], [exp], [sqrt], [abs] to WebPd. Please tell me if you have any problem! Also please share your experiments when you're done ;) On Wed, Aug 26, 2015 at 2:51 PM, Julian Brooks jbee...@gmail.com wrote: Thanks for the info Seb - will

Re: [PD] [cos~]replacement for webPd patch

2015-08-25 Thread Julian Brooks
Hi Seb (and Chris!), Implementation of classes is a bit beyond me atm (willing to learn though:). If there's a walkthrough I'd be happy to get involved, though I'm aware it would take more time to set up a tutorial than to just implement them. Always happy to help with testing if that's helpful.

Re: [PD] [cos~]replacement for webPd patch

2015-08-25 Thread Julian Brooks
Yay! Mad skills[z]:) Cheers Seb On 25 August 2015 at 07:43, s p seb...@gmail.com wrote: No worries :) I'm aware it would take more time to set up a tutorial than to just implement them. Yes ... I'll implement [osc~] and [env~] (not sure I can, but I'll try) today. On Tue, Aug 25, 2015

Re: [PD] [cos~]replacement for webPd patch

2015-08-25 Thread s p
No worries :) I'm aware it would take more time to set up a tutorial than to just implement them. Yes ... I'll implement [osc~] and [env~] (not sure I can, but I'll try) today. On Tue, Aug 25, 2015 at 9:20 AM, Julian Brooks jbee...@gmail.com wrote: Hi Seb (and Chris!), Implementation of

Re: [PD] [cos~]replacement for webPd patch

2015-08-24 Thread s p
Hi Julian, I've never used [cos~], can you explain to me why an [osc~] with the correct phase cannot do the trick? Cheers On Mon, Aug 24, 2015 at 5:03 PM, Julian Brooks jbee...@gmail.com wrote: Some good stuff here, thanks people. [osc~] doesn't appear to take arguments so that's out. I

Re: [PD] [cos~]replacement for webPd patch

2015-08-24 Thread Julian Brooks
Some good stuff here, thanks people. [osc~] doesn't appear to take arguments so that's out. I don't doubt Alexandre's ears or thoroughness but in this instance,when replacing [cos~] with [osc~] there's a big difference in the sound. Alexandros - thanks for the sketch, yes it does make sense,

Re: [PD] [cos~]replacement for webPd patch

2015-08-24 Thread Alexandre Torres Porres
can you send me the patch so I can hear the difference? there's no argument, but you can use loadbang with a message... 2015-08-24 11:10 GMT-03:00 s p seb...@gmail.com: Hi Julian, I've never used [cos~], can you explain to me why an [osc~] with the correct phase cannot do the trick?

Re: [PD] [cos~]replacement for webPd patch

2015-08-24 Thread Julian Brooks
Hey Seb, Good to hear from you... Does [osc~] take arguments? In my test when I gave the patch an [osc~ 0] I got an error in the console saying '0' not understood and I presumed that was my argument being spat back. I can't really explain why it doesn't sound right to be honest, this is why I'm

Re: [PD] [cos~]replacement for webPd patch

2015-08-24 Thread Jonathan Wilkes via Pd-list
Clarification: when I say you can't substitute one for the other, I mean trying to substitute [osc~] for [cos~]. On Monday, August 24, 2015 10:29 AM, Jonathan Wilkes jancs...@yahoo.com wrote: From what I recall [osc~] is the same as [phasor~]|[cos~] So while there may be some

Re: [PD] [cos~]replacement for webPd patch

2015-08-24 Thread Jonathan Wilkes via Pd-list
From what I recall [osc~] is the same as [phasor~]|[cos~] So while there may be some trivial instances where you can substitute one for the other, generally you can't.  For example-- imagine having some more tilde objects between the [phasor~] and the [cos~] above.  In that case you cannot get

Re: [PD] [cos~]replacement for webPd patch

2015-08-24 Thread Joe White
Jonathan's right, In Pd (vanilla 0.46-4 at least) both [cos~] and [osc~] use the same cos lookup table. Only [osc~] is a signal generator, and [cos~] the raw 'lookup'. Therefore there shouldn't be any difference between [phasor~] - [cos~] and [osc~] if the phase is equal. Check the attached

Re: [PD] [cos~]replacement for webPd patch

2015-08-24 Thread IOhannes m zmölnig
On 08/24/2015 05:30 PM, Joe White wrote: In Pd (vanilla 0.46-4 at least) both [cos~] and [osc~] use the same cos lookup table. Only [osc~] is a signal generator, and [cos~] the raw 'lookup'. Therefore there shouldn't be any difference between [phasor~] - [cos~] and [osc~] if the phase is

Re: [PD] [cos~]replacement for webPd patch

2015-08-24 Thread Alexandre Torres Porres
Unfortunately [osc~] doesn't have the tonal quality I'm after how is that? 2015-08-23 17:35 GMT-03:00 Julian Brooks jbee...@gmail.com: Alexandre Alexandros, Cheers for pitching in. It's for a random bleepy patch. Unfortunately [osc~] doesn't have the tonal quality I'm after - good idea

Re: [PD] [cos~]replacement for webPd patch

2015-08-24 Thread Alexandros Drymonitis
what about this? [table_size( | [until] | [f]x[+ 1] | [t f f]__ | | [/ table_size] | | | [* twoPi] | | | [cos] | | | [tabwrite table name] well, ASCII

Re: [PD] [cos~]replacement for webPd patch

2015-08-24 Thread Alexandre Torres Porres
cause I made some tests, [osc~] will give the same result as [cos~]... 2015-08-24 3:26 GMT-03:00 Alexandre Torres Porres por...@gmail.com: Unfortunately [osc~] doesn't have the tonal quality I'm after how is that? 2015-08-23 17:35 GMT-03:00 Julian Brooks jbee...@gmail.com: Alexandre

Re: [PD] [cos~]replacement for webPd patch

2015-08-24 Thread Joe White
Hi Julian, I've attached an optimised implementation for [cos~] that we've been using for Heavy. It's an approximate taylor series expansion but it should be much faster than just using cosf(). Hopefully webpd supports [abs~] and [wrap~]. Cheers, Joe On 24 August 2015 at 09:18, Alexandros

Re: [PD] [cos~]replacement for webPd patch

2015-08-24 Thread s p
Only [osc~] is a signal generator, and [cos~] the raw 'lookup' Oh right! Makes sense ... I believe [cos~] and [abs~] could both be implemented by using Web Audio API's WaveShaperNode. The closest example is [clip~] implementation which you can find here :

Re: [PD] [cos~]replacement for webPd patch

2015-08-24 Thread Chris McCormick
On 24/08/15 22:03, Julian Brooks wrote: What I do think from the hints and suggestions given is that I've got enough to be getting on with to make something approximately close and hopefully interesting. You could also implement cos~ in WebPd and submit a PR to seb. Here are osc~ and phasor~

Re: [PD] [cos~]replacement for webPd patch

2015-08-23 Thread Alexandre Torres Porres
you can treat [osc~] as [cos~] just give it a frequency of 0 and use the phase inlet as the angle input (from 0 to 1). 2015-08-23 6:14 GMT-03:00 Julian Brooks jbee...@gmail.com: [table] yes (object list here: https://github.com/sebpiq/WebPd/blob/master/OBJECTLIST.md ) not sure about

Re: [PD] [cos~]replacement for webPd patch

2015-08-23 Thread Alexandre Torres Porres
i do realize that, but who knows what he needs this for, it may work... :) 2015-08-23 16:37 GMT-03:00 Alexandros Drymonitis adr...@gmail.com: On Sun, Aug 23, 2015 at 8:04 PM, Alexandre Torres Porres por...@gmail.com wrote: you can treat [osc~] as [cos~] just give it a frequency of 0 and

Re: [PD] [cos~]replacement for webPd patch

2015-08-23 Thread Alexandros Drymonitis
On Sun, Aug 23, 2015 at 8:04 PM, Alexandre Torres Porres por...@gmail.com wrote: you can treat [osc~] as [cos~] just give it a frequency of 0 and use the phase inlet as the angle input (from 0 to 1). But the phase inlet of [osc~] is a control inlet, and [cos~] takes signals..

Re: [PD] [cos~]replacement for webPd patch

2015-08-23 Thread Julian Brooks
... [env~] being another On 23 August 2015 at 10:14, Julian Brooks jbee...@gmail.com wrote: [table] yes (object list here: https://github.com/sebpiq/WebPd/blob/master/OBJECTLIST.md ) not sure about cosinesum message (nice call hadn't thought of that) - will check later when back at it.

Re: [PD] [cos~]replacement for webPd patch

2015-08-23 Thread Julian Brooks
Can't seem to get 'cosinesum message' working with webpd On 23 August 2015 at 21:35, Julian Brooks jbee...@gmail.com wrote: Alexandre Alexandros, Cheers for pitching in. It's for a random bleepy patch. Unfortunately [osc~] doesn't have the tonal quality I'm after - good idea though. On

Re: [PD] [cos~]replacement for webPd patch

2015-08-23 Thread Julian Brooks
Alexandre Alexandros, Cheers for pitching in. It's for a random bleepy patch. Unfortunately [osc~] doesn't have the tonal quality I'm after - good idea though. On 23 August 2015 at 20:53, Alexandre Torres Porres por...@gmail.com wrote: i do realize that, but who knows what he needs this for,

Re: [PD] [cos~]replacement for webPd patch

2015-08-22 Thread Julian Brooks
Replacement with Vanilla please. Will work my up to porting... Cheers Jonathan On 22 August 2015 at 16:50, Jonathan Wilkes jancs...@yahoo.com wrote: Webpd doesn't include every vanilla class. So I guess from Julian's question that [cos~] isn't there. Julian-- are you looking to replace it

Re: [PD] [cos~]replacement for webPd patch

2015-08-22 Thread Jonathan Wilkes via Pd-list
Does webpd have [table] and the cosinesum method for garrays? -Jonathan On Saturday, August 22, 2015 1:44 PM, Julian Brooks jbee...@gmail.com wrote: Replacement with Vanilla please. Will work my up to porting... Cheers Jonathan On 22 August 2015 at 16:50, Jonathan Wilkes

Re: [PD] [cos~]replacement for webPd patch

2015-08-22 Thread i go bananas
Cos~ is vanilla pd. How does it not work? ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list

Re: [PD] [cos~]replacement for webPd patch

2015-08-22 Thread Jonathan Wilkes via Pd-list
Webpd doesn't include every vanilla class.  So I guess from Julian's question that [cos~] isn't there. Julian-- are you looking to replace it with other vanilla objects, or are you trying to figure out how to port it to webpd? -Jonathan On Saturday, August 22, 2015 11:44 AM, i go