Re: [PD] some GEM questions, shaders anyone ? ...

2017-04-15 Thread Julian Brooks
Hi Oliver,

Perhaps useful if you haven't seen this thread already:
(I think a few more in archives too)
http://thread.gmane.org/gmane.comp.multimedia.puredata.general/81617

Regards,

Julian

On 15 April 2017 at 14:36, oliver  wrote:

> hi, people !
>
> some update on the subject:
>
> i looked around and found this GEM-shader dedicated github-space:
>
> https://github.com/mxa/glsl
>
> bingo ! all of those patches worked alright !
>
>
> more important for anybody interested: it contains a very useful
> abstraction called "pix_shader.pd" which makes working with glsl shaders
> much easier !
>
> cyrille henry wrote:
>
> can you open the shader file on a windows text editor?
>> I never had this kind of error.
>>
>
> IOhannes wrote:
>
> i can think of two possible problems:
> - line endings (CRLF vs LF)
> - paths with spaces
>
> i think i can rule out the latter - i have PD on running as a "standalone"
> application on an extra partition with no-space paths. plus all other files
> (images etc.) that are called with an "open" message in the GEM glsl
> example patches load alright
>
> i will give messing around with line endings a try
>
> How to develop shader is not specific to GEM, and you'll file billions
>> of website dedicated to glsl.
>>
>
> well, as i said i didn't find too many ...
>
> the good thing about the aforementioned site is, that it contains not only
> the glsl shaders but also PD-patches to dig deeper into the glsl
> functions/code.
>
> thanks for all replys, already helped a lot !
>
> 
>
> again, a call to the list:
>
> a dedicated place that holds a collection of glsl shaders/examples
> optimized for GEM (i.e. with help patches) would be great, and i think the
> puredata.info/downloads section would be a good place to hold it.
>
> if you know about other PD (GEM) dedicated glsl site or github space, i'd
> be glad if you could post it.
>
> 
>
>
> best
>
> oliver
>
>
> ---
> Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
> https://www.avast.com/antivirus
>
>
>
> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> https://lists.puredata.info/li
> stinfo/pd-list
>
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] .pdrc?

2017-04-15 Thread Peter P.
* zmoel...@iem.at  [2017-04-14 08:48]:
[...]
> this is mainly because ~/.pdsettings works differently from .pdrc (which
> just had one-cmdline-arg per line).
> instead, .pdsettings uses key/value pairs with the "keys" being
> predefined and not corresponding to any cmdline args, so "autopatch: 0"
> is not a valid setting here (and "noautopatch" or "-noautopatch" are
> totally not).
> luckily you can specify cmdline-args in the "flags" section, so having
> "flags: -noautopatch" should do what you want.
Thank you! This indeed works! 

best, P

___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] netsend

2017-04-15 Thread oliver

zmoel...@iem.at wrote:

On 04/15/2017 09:46 PM, oliver wrote:

i use the OSCX library (get it via deken) to do the job


why would you use the most buggy implementation of OSC that is
available for Pd?


1.) because nobody ever told me that it is
2,) because i use it without any trouble for quite a while now ...



Pd>=0.46 has (simple) OSC built-in.


which  could not cope with, unfortunately. or at least i couldn't 
get it to work. thus my need for an alternative, and OSCX worked 
flawlessly right away


it is also the first Pd version

that includes deken, so i assume that this is your target platform.

if you need bundles, timestamps or support for older versions of Pd
(why would you?), use mrpeach/osc.


ok, will do that !



as a sidenote:

i'm not a developer, just a simple PD user. how am i supposed to know 
that a library is "the most buggy implementation of OSC that is 
available for Pd" ?
if that is really the case, a short note inside deken or at least inside 
the library's folder would be very helpful. something like "is 
outdated/potentially buggy. use mrpeach/osc etc. instead" ...


best

oliver

---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus


___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] netsend

2017-04-15 Thread zmoelnig
On 04/15/2017 03:58 PM, cristiano piatti wrote:
> Good morning,
> i receive osc data through netreceive into pd.
> How can i netsend these data outside from pd ?
> Could someone please make me an example ?

the netsend binary that comes with your Pd?

not an example, but a writeup of the actual protocol:
  https://en.wikipedia.org/wiki/FUDI

gfamrds
IOhannes



signature.asc
Description: OpenPGP digital signature
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] netsend

2017-04-15 Thread zmoelnig
On 04/15/2017 09:46 PM, oliver wrote:
> i use the OSCX library (get it via deken) to do the job

why would you use the most buggy implementation of OSC that is available
for Pd?

Pd>=0.46 has (simple) OSC built-in. it is also the first Pd version that
includes deken, so i assume that this is your target platform.

if you need bundles, timestamps or support for older versions of Pd (why
would you?), use mrpeach/osc.

gfamsdr
IOhannes



signature.asc
Description: OpenPGP digital signature
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] netsend

2017-04-15 Thread oliver

hi, if i understood correctly, you want to send data from PD to an
external application.

this is how i do it: (see attached file)

i use the OSCX library (get it via deken) to do the job



best

oliver



cristiano piatti wrote:

Good morning,
i receive osc data through netreceive into pd.
How can i netsend these data outside from pd ?
Could someone please make me an example ?
Thanks a lot.

___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list





---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus
#N canvas 656 336 541 300 10;
#X obj 16 250 sendOSC, f 10;
#X floatatom 16 273 5 0 0 0 - - -, f 5;
#X msg 124 250 disconnect;
#X floatatom 73 273 5 0 0 0 - - -, f 5;
#X obj 15 10 loadbang;
#X obj 16 226 r \$0-osc;
#X obj 15 54 s \$0-osc;
#X obj 124 271 s \$0-osc;
#X obj 16 175 s \$0-osc;
#X obj 16 132 list prepend send;
#X obj 16 153 list trim;
#X obj 239 84 s \$0-osc-cmd;
#X obj 16 111 r \$0-osc-cmd;
#X floatatom 240 41 5 0 0 0 - - -, f 5;
#X obj 346 82 s \$0-osc-cmd;
#X floatatom 347 39 5 0 0 0 - - -, f 5;
#X msg 346 59 //2 \$1;
#X msg 239 61 //1 \$1;
#X obj 242 241 s \$0-osc-cmd;
#X floatatom 242 135 5 0 0 0 - - -, f 5;
#X obj 242 191 pack 0 s 0;
#X symbolatom 281 135 10 0 0 0 - - -, f 10;
#X floatatom 352 136 5 0 0 0 - - -, f 5;
#X obj 352 155 t b f;
#X obj 281 157 t b s;
#X obj 371 232 list prepend set;
#X msg 371 273 /mylist 7 symbol 0;
#X obj 371 253 list trim;
#X msg 242 215 /mylist \$1 \$2 \$3;
#X msg 15 33 connect localhost ;
#X text 80 9 connect to a port;
#X text 15 91 format lists for sendOSC:;
#X text 14 207 finally send it:;
#X text 364 212 this is the full list:;
#X text 236 3 some example messages that are sent into an external
application ():, f 38;
#X text 239 116 a list:;
#X connect 0 0 1 0;
#X connect 0 1 3 0;
#X connect 2 0 7 0;
#X connect 4 0 29 0;
#X connect 5 0 0 0;
#X connect 9 0 10 0;
#X connect 10 0 8 0;
#X connect 12 0 9 0;
#X connect 13 0 17 0;
#X connect 15 0 16 0;
#X connect 16 0 14 0;
#X connect 17 0 11 0;
#X connect 19 0 20 0;
#X connect 20 0 28 0;
#X connect 21 0 24 0;
#X connect 22 0 23 0;
#X connect 23 0 20 0;
#X connect 23 1 20 2;
#X connect 24 0 20 0;
#X connect 24 1 20 1;
#X connect 25 0 27 0;
#X connect 27 0 26 0;
#X connect 28 0 18 0;
#X connect 28 0 25 0;
#X connect 29 0 6 0;
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


[PD] sending motion messages to subpatch

2017-04-15 Thread a. adhiyatma
Hi everyone,

I'm trying to get my subpatch to move around in its parent patch by
sending it the message [motion x y z(
unfortunately when I send the message the post window shows
"consistency check failed: editor"
I've attached a snippet to show the problem. I'm curious if anyone
else is getting this bug, if it's a no-longer supported holdover from
extended, or if there's another way to do this.

I'm using Pd Vanilla 0.47-1.

Thanks in advance!

A.


motionexample.pd
Description: Binary data
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


[PD] netsend

2017-04-15 Thread cristiano piatti
Good morning,
i receive osc data through netreceive into pd.
How can i netsend these data outside from pd ?
Could someone please make me an example ?
Thanks a lot.

___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] some GEM questions, shaders anyone ? ...

2017-04-15 Thread oliver

hi, people !

some update on the subject:

i looked around and found this GEM-shader dedicated github-space:

https://github.com/mxa/glsl

bingo ! all of those patches worked alright !


more important for anybody interested: it contains a very useful 
abstraction called "pix_shader.pd" which makes working with glsl shaders 
much easier !


cyrille henry wrote:


can you open the shader file on a windows text editor?
I never had this kind of error.


IOhannes wrote:

i can think of two possible problems:
- line endings (CRLF vs LF)
- paths with spaces

i think i can rule out the latter - i have PD on running as a 
"standalone" application on an extra partition with no-space paths. plus 
all other files (images etc.) that are called with an "open" message in 
the GEM glsl example patches load alright


i will give messing around with line endings a try


How to develop shader is not specific to GEM, and you'll file billions
of website dedicated to glsl.


well, as i said i didn't find too many ...

the good thing about the aforementioned site is, that it contains not 
only the glsl shaders but also PD-patches to dig deeper into the glsl 
functions/code.


thanks for all replys, already helped a lot !



again, a call to the list:

a dedicated place that holds a collection of glsl shaders/examples 
optimized for GEM (i.e. with help patches) would be great, and i think 
the puredata.info/downloads section would be a good place to hold it.


if you know about other PD (GEM) dedicated glsl site or github space, 
i'd be glad if you could post it.





best

oliver


---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus


___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] some GEM questions, shaders anyone ? ...

2017-04-15 Thread zmoelnig
On 04/14/2017 04:30 PM, cyrille henry wrote:
>>
>> [glsl_vertex]: error reading file
>> [glsl_fragment]: error reading file
>>
[...]
> 
> can you open the shader file on a windows text editor?

i can think of two possible problems:
- line endings (CRLF vs LF)
- paths with spaces

mdsa
IOhannes



signature.asc
Description: OpenPGP digital signature
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Formant from SC in Pd?

2017-04-15 Thread Alexandre Torres Porres
well, seems like it's related to paf :)

check F13.paf.control.pd and you see the same parameters

so it seems Pd used to have this kind of oscillator natively, as part of
the extra objects (the paf~ external), but it was removed because of the
IRCAM patent. Since that patent expired, paf~ could be brought back to
vanilla's extra, and I have requested that before. I was considering making
a clone of Formant from SC, but now it really just makes more sense to
reinforce the idea of bringing the paf code back to business.



2017-04-14 16:23 GMT-03:00 Alexandre Torres Porres :

> checking Csound's fof opcode, formant really seems like a version of it
>
> 2017-04-14 1:55 GMT-03:00 Alexandre Torres Porres :
>
>> BTW, here's an excerpt from Formant's code, found in here
>> 
>>  from
>> line 2451
>>
>> LOOP1(inNumSamples,
>> if (phase3 < onecyc13) {
>> ZXP(out) = (*(float*)((char*)sine + (((phase3 + tqcyc13) >> xlobits) &
>> xlomask13)) + 1.f)
>> *  *(float*)((char*)sine + ((phase2 >> xlobits) & xlomask13));
>> phase3 += formfreq;
>> } else {
>> ZXP(out) = 0.f;
>> }
>> phase1 += freq1;
>> phase2 += freq2;
>> if (phase1 > onecyc13) {
>> phase1 -= onecyc13;
>> phase2 = phase1 * freq2 / freq1;
>> phase3 = phase1 * freq3 / freq1;
>> }
>> );
>>
>> 2017-04-13 21:15 GMT-03:00 Alexandre Torres Porres :
>>
>>>
>>> 2017-04-13 19:25 GMT-03:00 JTG III :
>>>
 Chant was the program that implemented Fof synthesis, both developed at
 IRCAM in the late 70's/early 80's or thereabouts.
 I haven't used SC in a long time, and now I'm unsure about those ugens.
 Also, a quick search for anything on the "filter version"  of FOF
 didn't seem to bring anything up, but there's an article in this anthology
 of early eighties Computer Music Journal articles that I have at home which
 at least mentions it, I think. I can check when I get home, or you can find
 it on Sci-Hub.

>>>
>>> "Formlet", the "FOF-like filter", is just a resonant filter with an
>>> attack/decay envelope. I was able to replicate it. Though I get the idea
>>> that the fof-filter thingy is based on a bank of such filters, huh?
>>> "Formant", on the other hand, is described as an "oscillator", it
>>> "generates a set of harmonics around a formant frequency at a given
>>> fundamental frequency", has parameters for fundamental frequency, formant
>>> frequency and bandwidth of the formant frequency.
>>>
>>> I'm really curious on how to implement it as a pd patch ;) - but I don't
>>> think I've seen anything like it in the Pd world.
>>>
>>> cheers
>>>
>>
>>
>
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list