Re: [PD] [array] - pointer method

2024-05-22 Thread oliver

Hi, Alex, thanks for your replies !

Ok, I can improve help files, can you open an issue for we to discuss it 
in https://github.com/pure-data/pddp ? It is still vague how you want 
this improved


After going through your answers and other examples again, i finally 
found the cause of my confusion.


In the [array define] help patch the method of remote receive objects is 
introduced, withe the object [array size -s float-array z] as a possible 
receiver.


What i didn't understand is that said objkect needs the "-s float-array 
z" argument to work this way. Could this be explained in the help patch ?


Why those specific arguments and how would a normal user know of them ?

(As for [text], those arguments would be "-s text t" to make things even 
more confusing ;-))


Anyway: Attached you will find a working patch for what i was trying to 
achieve - make [array] work with just it's pointer as a reference - 
without having to give it a specific name.


Thanks, Alex, you pointed me in the right direction ;-)
Maybe the deeper knowledge behind all this is better left in the obscure 
after all ;-)


Best

Oliver
#N canvas 130 130 453 201 10;
#X text 83 129 what does "float-array z" mean ? why those specific arguments ?, 
f 33;
#X obj 266 70 array define;
#X obj 41 110 array sum -s float-array z;
#X obj 266 94 t p;
#X obj 60 78 array set -s float-array z;
#X obj 41 54 t b l b;
#X floatatom 41 136 5 0 0 0 - - - 0;
#X msg 41 26 12 13 14 15;
#X text 122 26 calcualte the sum of these floats;
#X connect 1 0 3 0;
#X connect 2 0 6 0;
#X connect 3 0 2 2;
#X connect 3 0 4 2;
#X connect 5 0 2 0;
#X connect 5 1 4 0;
#X connect 5 2 1 0;
#X connect 7 0 5 0;
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


[PD] [array] - pointer method

2024-05-17 Thread oliver

Hi, dear list !

I know that there are alternatives to the illustrated problem, but i 
just wanted to point out (haha), that the "pointer" method for [array] 
objects is hardly documented and actually seems to be not working at all.


While said method works fine for [text], i have to say that [text]'s 
help patches would also benefit from a demonstration of that feature.


I personnaly find it very handy to be able to use [text] (or [array]) 
for local tasks only without having to worry about naming issues 
(duplicates etc.).


In my attached example, i was working on a simple vanilla-based 
binary-to-digital converter and i wanted to use [array sum] as a 
handmade [accum] object. While the "naming" method with array obviously 
works, the "pointer" method either doesn't or i don't understand it.


Thanks for any clarifications (and yes, i am aware of other vanilla and 
externalized methods to achieve this - but i try to understand [array]'s 
pointer logic)


Best

Oliver



--

/// http://oliver.klingt.org ///


#N canvas 645 21 450 353 10;
#X obj 43 30 tgl 16 0 empty empty empty 0 -8 0 10 #fcfcfc #00 #00 0 1;
#X obj 89 95 pow 0;
#X msg 89 73 2;
#X obj 62 72 *;
#X floatatom 62 93 3 0 0 0 - - - 12;
#X obj 43 51 t b f f;
#X obj 43 137 pack 0 0 0 0 0, f 43;
#X obj 130 30 tgl 16 0 empty empty empty 0 -8 0 10 #fcfcfc #00 #00 0 1;
#X msg 176 73 2;
#X obj 149 72 *;
#X floatatom 149 93 3 0 0 0 - - - 12;
#X obj 130 51 t b f f;
#X obj 223 29 tgl 16 0 empty empty empty 0 -8 0 10 #fcfcfc #00 #00 0 1;
#X msg 269 72 2;
#X obj 242 71 *;
#X floatatom 242 92 3 0 0 0 - - - 12;
#X obj 223 50 t b f f;
#X obj 314 28 tgl 16 0 empty empty empty 0 -8 0 10 #fcfcfc #00 #00 0 1;
#X msg 360 71 2;
#X obj 333 70 *;
#X floatatom 333 91 3 0 0 0 - - - 12;
#X obj 314 49 t b f f;
#X obj 176 95 pow 1;
#X obj 269 94 pow 2;
#X obj 360 93 pow 3;
#X obj 43 208 t b l b;
#X floatatom 43 304 5 0 0 0 - - - 0;
#X obj 94 229 t p;
#X obj 94 208 array define 10;
#X obj 62 256 array set -s;
#X obj 43 283 array sum -s;
#X text 66 189 not working;
#X obj 214 207 t b l b;
#X floatatom 214 283 5 0 0 0 - - - 0;
#X text 311 189 working;
#X obj 277 206 array define \$0-a 10;
#X obj 233 235 array set \$0-a;
#X obj 214 262 array sum \$0-a;
#X connect 0 0 5 0;
#X connect 1 0 3 1;
#X connect 2 0 1 0;
#X connect 3 0 4 0;
#X connect 4 0 6 1;
#X connect 5 0 6 0;
#X connect 5 1 3 0;
#X connect 5 2 2 0;
#X connect 6 0 25 0;
#X connect 6 0 32 0;
#X connect 7 0 11 0;
#X connect 8 0 22 0;
#X connect 9 0 10 0;
#X connect 10 0 6 2;
#X connect 11 0 6 0;
#X connect 11 1 9 0;
#X connect 11 2 8 0;
#X connect 12 0 16 0;
#X connect 13 0 23 0;
#X connect 14 0 15 0;
#X connect 15 0 6 3;
#X connect 16 0 6 0;
#X connect 16 1 14 0;
#X connect 16 2 13 0;
#X connect 17 0 21 0;
#X connect 18 0 24 0;
#X connect 19 0 20 0;
#X connect 20 0 6 4;
#X connect 21 0 6 0;
#X connect 21 1 19 0;
#X connect 21 2 18 0;
#X connect 22 0 9 1;
#X connect 23 0 14 1;
#X connect 24 0 19 1;
#X connect 25 0 30 0;
#X connect 25 1 29 0;
#X connect 25 2 28 0;
#X connect 27 0 29 2;
#X connect 27 0 30 2;
#X connect 28 0 27 0;
#X connect 30 0 26 0;
#X connect 32 0 37 0;
#X connect 32 1 36 0;
#X connect 37 0 33 0;
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] copy data between arrays

2024-04-23 Thread oliver
Also just found out by chance that writing and reading to/from clipboard also 
works !

[write clipboard(
|
[array define a1]


[read clipboard(
|
[array define a2]

Can you confirm this ?

Best

Oliver





Am 23. April 2024 10:15:00 MESZ schrieb "Peter P." :
>Replying to myself here, after this solution has been suggested to me
>off-list:
>
>[bang( 
> 
>|  
> 
>[array get one]
> 
>|  
> 
>[array set two]
>
>seems to work for larger tables without audio dropouts.
>
>Much appreciated help, thanks!
>P
>
>* Peter P.  [2024-04-23 08:54]:
>> Hi list,
>> 
>> I am sure this has been asked many times, but I can't find a solution in
>> the mailing list archive. How can I copy data between arrays, in my case
>> arrays of 48 samples without using externals and without blocking
>> the DSP computation (causing dropouts)?
>> I know that I can write to disk and read from it again, but is there a
>> way that does not require disk access?
>> 
>> Thanks for all ideas!
>> Peter
>
>
>
>___
>Pd-list@lists.iem.at mailing list
>UNSUBSCRIBE and account-management -> 
>https://lists.puredata.info/listinfo/pd-list
>

-- 

Gesendet von meinem Endgerät

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


Re: [PD] RIP Ed Kelly

2024-03-10 Thread Jaime Oliver
Very sad news indeed!
Goodbye Ed Kelly!
J

On Sun, Mar 10, 2024 at 5:07 PM IOhannes m zmölnig  wrote:

> On 3/10/24 18:49, Alexandre Torres Porres wrote:
> > Tehomas Bow on facebook gave us the bad news. He had a stroke and fell,
> got
> > injured and passed away this friday. He leaves us soon, just before
> turning
> > 50. Ed was quite a fun character, I loved him, he'll be missed. Rest in
> > Peace.
>
>
> this is indeed sad news.
> the lone shark now sails uncharted waters.
>
> mdsar
> IOhannes m zmölnig
> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
> https://lists.puredata.info/listinfo/pd-list
>


-- 
**
Jaime E Oliver LR
www.jaimeoliver.pe
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] cannot find ggee external - I need [shell] or [command]

2023-09-01 Thread oliver

Roman Haefeli wrote:

Dear Csaba

On Fri, 2023-09-01 at 02:14 +0200, Csaba Láng wrote:


Can someone give me a compiled COMMAND object from ggee for windows?


[command] (which is a fork of ggee's shell, but was never part of any
distribution) doesn't support Windows. I guess [shell] already didn't
support Windows.


Right, because it's a different OS

On windows, unfortunately, the object [system] (from the MOTEX) library 
is your only choice.


It's incredibly old and raw, i use it only every now and then to execute 
a .bat script. that's about all it can do.


For dynamic commands, i usually use MRPEACH's [binfile] to create a .bat 
file that does exactly what i want and then execute it with [system]


(might be easier now with the possibilities of PD's [file] object ... 
didn't try that yet)


Sorry, no better way (AFAIK)

Best

Oliver




Roman



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




--

/// http://oliver.klingt.org ///





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


Re: [PD] [PD-announce] Pd 0.54-0 test 1 released

2023-06-22 Thread oliver

Miller Puckette wrote:
Are you using the "installer"?  I've been trying it and can't get it to 
go wrong yet.


Yes, i did use the official installer.

It seems to not overwrite the old installation completely,
or so it seems to me.

(thanks for keeping the "portable" zipped version btw, saved my life on 
the road a couple of times ;-))


best

oliver



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


Re: [PD] [PD-announce] Pd 0.54-0 test 1 released

2023-06-22 Thread oliver

just some more minor reports:

WIN 7 /64bit

i downloaded and installed PD 0.54.0-test1 and installed it over PD 0.53 
which didn't go down well at all.


The new audio engine (portaudio) would crash PD when selecetd and the 
preferences interface was a hybrid of the old and new one ...


Only after a complete wiping of the old PD (and PD user settings) a new 
install would work as expected. Also no more crashes on portaudio.


Another strange thing:

When entering startup flags in the preferences window ("font-weight" and 
"font-size" in my case): they can be set but the line is empty after a 
close and restart of PD.


The values are set correctly on startup though !

Best

Oliver


Christof Ressi wrote:
anyhow, this is not something i think worth spending my time on. 

Agreed :)



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





--

/// http://oliver.klingt.org ///





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


Re: [PD] [menubutton] bug on W 11 machine

2023-05-03 Thread oliver

Fred Jan Kraan wrote:

Hi Oliver,

This look a bit like a 32/64 bit issue. For Windows both versions exist 
for Pd and also for the tof library. Are all the Pd versions the same 
word-size and it matches the tof-word-size?




I don't quite get what you mean with "word-size"

Anyway, i'm using 64bit versions of PD since 0.50. I double checked that 
my installed PD 0.53 is the 64-bit version. And W11 is 64 bit only anyway.


As for TOF, there were only 4 possibillities to download with deken for 
my platform (amd64-32).


versions 0.2.1 - 0.2.4. (the latest).
i tried all of them, no difference. everyone produces the reported error.

(i couldn't really find a 32bit version in the deken list)


It might also be a change in the Pd (non-public)-API, but it is good to 
eliminate other possible causes.


Hasn't there been a new TK version lately ?

To me it really feels like a TK-related issue, it's written in red in 
the PD console.


BTW: [pmenu] works fine !

best

Oliver



Greetings,

Fred Jan


Hi,

just tried my (bad) luck on a new Windows 11 machine, and found the 
[menubutton] external of the TOF library to produce an (i guess) TK 
error.


i have the latest PD (0.53.2) and the latest TOF version (0.4.2.)

when i open the helppatch for [menubbutton] i can clear and fill the 
menu but as soon as I select something from it, i get a (red) error 
message in the console:


menubutton021392f40970: no such object

It seems to be Tk related, doesn't it ?

For backtracking, i tried older versions of PD (on the W11 machine), 
and according to this, the error starts with version 0.52.


With PD 0.51, [menubutton] works.

I already files a bug report at Fred-Jan's github site, but just for 
the record: has anybody else experienced this ?


Best

Oliver





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





--

/// http://oliver.klingt.org ///





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


[PD] [menubutton] bug on W 11 machine

2023-05-03 Thread oliver

Hi,

just tried my (bad) luck on a new Windows 11 machine, and found the 
[menubutton] external of the TOF library to produce an (i guess) TK error.


i have the latest PD (0.53.2) and the latest TOF version (0.4.2.)

when i open the helppatch for [menubbutton] i can clear and fill the 
menu but as soon as I select something from it, i get a (red) error 
message in the console:


menubutton021392f40970: no such object

It seems to be Tk related, doesn't it ?

For backtracking, i tried older versions of PD (on the W11 machine), and 
according to this, the error starts with version 0.52.


With PD 0.51, [menubutton] works.

I already files a bug report at Fred-Jan's github site, but just for the 
record: has anybody else experienced this ?


Best

Oliver

--

/// http://oliver.klingt.org ///





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


Re: [PD] object for showing images with a better quality than gif (like ggee/image) ?

2023-04-03 Thread oliver

Ingo wrote:

Thanks Peter!

The moonlib/image is pretty much the same as ggee/image.

I have found out,though that it takes ppm files which are uncompressed and
look much better.
Whith this data format I actually get the quality that I need.

I'll also take a look at iemgui's iem_image.


On a sidenote:


[ggee/image] also opens .png files, whereas [iem_image] does not !

Does anyone know why is that ?


best

oliver



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


Re: [PD] Old patch unable to run

2023-01-17 Thread oliver

Peter P. wrote:

Dear BadMuthaHubbard, (one of my favourite email addresses on this list
since long)

a quick check in the SVN repository of old externals yielded
miXed/doc/help/toxy/tot-help.pd
which makes me assume there is a tot object in either a lib called
[miXed] or [toxy], maybe courtesy of Krzsystof Czaya or Hans-Christoph
Steiner. A quick startpage.com search brings up results which may
indicate that [toxy] is by now unmaintained. Others may have better
knowledge of its current situation.


it was the "TOXY" library ages ago, but yes,
it's not maintained anymore.

IIRC the [tot] object did something similar to "HCS" [folder_list], or 
now on newer PD versions the [file] object natively. i think it just did 
output the content of a given folder, but the usage was a little 
different from the latter objects ... (it's been a very long time since 
i last used it in a patch)


best

oliver



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


[PD] PD/Win7/64 ... iemgui crashing PD

2023-01-04 Thread oliver

Hi,

here's my system

PD > 0.51
WIN 7 / 64bit
IEMGUI v. 1.21-1 (from 13.09.22)

i just discovered, that on any PD version > 0.51, PD crashes when any 
object from the [iemgui] library is being created.


(the loading of the library itself works OK !)


===

Problem signature:
  Problem Event Name:   APPCRASH
  Application Name: pd.com
  Application Version:  0.0.0.0
  Application Timestamp:
  Fault Module Name:iemgui.m_amd64
  Fault Module Version: 0.0.0.0
  Fault Module Timestamp:   
  Exception Code:   c005
  Exception Offset: 7e8a
  OS Version:   6.1.7601.2.1.0.256.48
  Locale ID:3079
  Additional Information 1: fddb
  Additional Information 2: fddbeb7f2ce34ea1cb6747bdc0c70766
  Additional Information 3: 61c7
  Additional Information 4: 61c742530e2d0a66d7bf7d18f9953427

===

PD version 0.51 and ölower don't crash with the same library.

Has anybody else experienced this ?

Is this connected to the iem_gui regression that was recently talked 
about on this list (thread "patch won't open") ? If so, how come PD 0.52 
is affected, too ?


Best

Oliver


--

/// http://oliver.klingt.org ///





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


Re: [PD] shutdown osx via PD

2022-11-12 Thread oliver

Simon Iten wrote:
is there a way to shutdown OSX (without any prompts), from within PD? i 
tried a naive "sudo shutdown -h now" sent to a shell object but did not 
get any reaction. (other simple commands like ls worked though)


you need to provide the full path of the command "shutdown" (i think 
it's either /sbin/shutdown or /usr/sbin/shutdown) when you send it to 
the [shell] object.


plus (IIRC) you would have to permit superuser privileges in order to 
use it as a normal user (=without root password). i don't know the exact 
procedure anymore but you will find the information on the net.


also consider using the newer [command] external instead of [shell]

best

oliver




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


Re: [PD] midi/latency

2022-10-27 Thread oliver

michael strohmann wrote:

HI,
what’s your strategies to reduce midi latency ?

in an installation setting i’m triggering samples from an e-drum (roland pad, 
millenium midi module) and the latency a get with the settigs below is 114 ms 
between trigger and sound.

delay(msec): 50 ms
Block Size: 256

if i go any lower i get “resyncing audio” filling up the pd-window and 
occasional glitches up to a frozen pd…

occasionaly after a restart the latency is even closer to 250ms.

i am running this on a fairly decent gamer pc under windows 10 with the esi 
Gigaport HD+ audio interface


Hi, usually midi interfaces have little to no latencies, or at least 
they are most likely not your bottleneck. you have to use an ASIO driver 
to get real low latencies on windows systems, or ALSA on Linux. It won't 
work with the standard audio driver (MMIO).


For the Gigaport, i think there is an extra ASIO driver for download, 
but "usually" you will be better off with the ASIO4ALL driver (that 
would even work for your internal audiocard) - at least that's my 
experience with this soundcard on a windows machine.


Having said that, i'm not sure that the "Gigaport HD+" really supports 
low latencies at all. I used it once in an installation and remember 
that i had to use a higher amount of PD's audio delay (= soundcard 
buffer = overall latency) than with other soundcards, maybe a trade-off 
for the 8 channels.


Do you need all of them ? (I guess so ...)

Anyway, try the internal soundcard first and see how low you can get 
without hickups or clicks. to really test latencies i always use a test 
setup like this:


[0.5, 0 1000(
|
[line~]   [noise~]
|  |
[*~]
| \
[dac~]

where the midi trigger fires the message box. use your phone recorder to 
measure the "real life" latency between drum pad hit and noise woosh.


just for the record: i'm using a similar setup on an old acer netbook 
with UBUNTU and an old MAYA44USB card and getting very low latencies 
(less than 10ms) using ALSA drivers (PD blocksize 64, PD delay: 8)


i'm pretty sure that it's not your hardware that's lacking, but that you 
have to use a dedicated audio driver (ASIO or ALSA)




best

Oliver





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


Re: [PD] Biased waveform display?

2022-10-10 Thread Jaime Oliver
I'd make a transfer function in the style of waveshaping and use the audio
you want to draw to read it and display the output.

It should not be more computationally expensive than a wavetable oscillator.

Best,

J


On Mon, Oct 10, 2022, 06:44 IOhannes m zmoelnig  wrote:

> On 10/10/22 12:21, jayrope wrote:
> > A quick question:
> >
> > In Vanilla, is it possible to bias solely the display of a waveform in
> > an array in such a manner, that lower volumes visibly appear louder than
> > they are?
>
>
> logarithmic scale on the y-axis (or x-axis, for spectral info)?
> i'm afraid, the answer is "no" (so you have to perform any data mangling
> first, and then show it on a 2nd display-only array)
>
> > Very dynamic audio often would love such a display feature here, however
> > without touching the actual data - and copying large arrays of audio
> > likes to incite dsp dropouts.
>
> it shouldn't take much longer than filling the primary array though. so
> if you are able to do this without dropouts, you should be able to do
> the data mangling as well.
> that is: if you are recording live into the primary array, do a
> simultaneous recording of the mangled data into the secondary array.
>
> if this is not an option, you might want to check the "iem_tab" library.
>
> gamfsd
> IOhannes
> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
> https://lists.puredata.info/listinfo/pd-list
>
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] PD 0.52 bug ? ... [bang~ driven playback]

2022-10-06 Thread oliver

IOhannes m zmoelnig wrote:

On 10/6/22 12:32, Dan Wilcox wrote:

Howdy Oliver,

Actually, use the pure-data develop branch. I don't believe Miller has 
merged this fix into master yet.


this one has been merged into master a few weeks ago.



If you are unsure about building Pd yourself, I could possibly make a 
test build tonight.


you can (always) get builds for the current master from
<https://git.iem.at/pd/pure-data/-/pipelines?ref=master>

the topmost pipeline should have a "download" icon on the far right 
side, where you can pick your platform.


Thanks a lot IOhannes !

Yes, the issue is fixed in the latest build that i downloaded


Much appreciated !

Best

Oliver



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


Re: [PD] PD 0.52 bug ? ... [bang~ driven playback]

2022-10-05 Thread oliver

Peter P. wrote:

Oliver,

can't really comment on your error, but am wondering why you might want
to trigger each dsp block separately, especially opening the file from
hard disk for each dsp block over and over again?


i'm using this method quite often for sync purposes (video-synching 
mostly, but also sending synch messages with udp etc.), since readsf~ 
doesn't output it's playback position.


it's also nice, to scratch around in the the audio file without having 
to load it into RAM.


As i said before,this method (as strange as it may seem) used to work 
without any problem on basically any system i used (even on RPIs and old 
slow netbooks) up until PD 0.52.


best

Oliver





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


[PD] PD 0.52 bug ? ... [bang~ driven playback]

2022-10-05 Thread oliver

Hi, dear list !

I just stumbled upon something strange, probably a bug in PD 0.52. But 
i'm not sure so i thought i send you a test patch to verify ...


Harddisk soundfile playback with a [readsf~] driven by [bang~] used to 
work fine up until PD 0.51. Since 0.52, using this method results in a 
heavily distorted mess (please see attached test patch)


I verified this with different earlier PD versions on different 
computers, both windows and linux systems.


(for the record:
WIN 7 64 bit
WIN 10
UBUNTU JELLYFISH
UBUNTU BIONIC
DEBIAN BULLSEYE)

It's definitely the version 0.52 where this method stopped working.
Changing blocksize doesn't help either

(though: the higher the blocksize, the longer the pauses between each 
soundsniplet. it's as if [bang~] would output it's bangs too slow ? ...)


Can you please make a short test and confirm or falsify my observation ?

Thanks for your help

Best

Oliver


--

/// http://oliver.klingt.org ///


#N canvas 541 52 447 372 10;
#X obj 60 329 dac~, f 5;
#X obj 34 7 bang~;
#X obj 34 179 f, f 8;
#X obj 94 179 + 1;
#X msg 79 157 0, f 2;
#X obj 34 235 * 64;
#X obj 34 157 spigot;
#X obj 59 63 tgl 15 0 empty empty empty 17 7 0 10 #00f8fc #00 #00
0 1;
#X text 96 86 2.) start playing using [bang~];
#X obj 34 256 pack 0 s, f 17;
#X obj 133 27 openpanel;
#X obj 133 6 bng 15 250 50 0 empty empty empty 17 7 0 10 #00fc04 #00
#00;
#X symbolatom 133 48 0 0 0 0 - - - 0;
#X obj 338 68 loadbang;
#X msg 338 89 \; pd dsp 1;
#X floatatom 53 207 10 0 0 0 - - - 0;
#X msg 34 279 0 \, open \$2 \$1 \, 1;
#X text 156 5 1.) select a soundfile from Harddrive;
#X text 119 201 progress in dsp blocks, f 12;
#X obj 79 135 sel 1 0;
#X msg 102 157 0, f 2;
#X obj 59 86 t f f;
#N canvas 44 44 450 300 readsf_inside 0;
#X obj 110 41 inlet;
#X obj 268 40 inlet;
#X obj 268 206 switch~;
#X obj 110 73 readsf~ 2;
#X obj 92 113 outlet~;
#X obj 152 114 outlet~;
#X connect 0 0 3 0;
#X connect 1 0 2 0;
#X connect 3 0 4 0;
#X connect 3 1 5 0;
#X restore 34 301 pd readsf_inside;
#X msg 186 238 0 \, set 64 1 1 \, 1;
#X msg 186 262 0 \, set 1024 1 1 \, 1;
#X msg 186 285 0 \, set 4096 1 1 \, 1;
#X text 311 261 different stutters, f 10;
#X connect 1 0 6 0;
#X connect 2 0 3 0;
#X connect 2 0 5 0;
#X connect 2 0 15 0;
#X connect 3 0 2 1;
#X connect 4 0 2 1;
#X connect 5 0 9 0;
#X connect 6 0 2 0;
#X connect 7 0 21 0;
#X connect 9 0 16 0;
#X connect 10 0 12 0;
#X connect 11 0 10 0;
#X connect 12 0 9 1;
#X connect 13 0 14 0;
#X connect 13 0 23 0;
#X connect 16 0 22 0;
#X connect 19 0 4 0;
#X connect 19 1 20 0;
#X connect 20 0 22 0;
#X connect 21 0 19 0;
#X connect 21 1 6 1;
#X connect 22 0 0 0;
#X connect 22 1 0 1;
#X connect 23 0 22 1;
#X connect 24 0 22 1;
#X connect 25 0 22 1;
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] selecting audio device by device name using startup flag

2022-09-29 Thread oliver

Jakob Laue wrote:

Dear list,
i would like to use the command line to start a patch on a raspberry pi. Is it 
possible to select my audio-out-device by name using startup flags? The name 
that Pd gives my audio device is: 'Scarlett Solo USB (hardware)'
  
The '-audiooutdev' flag is used indicating the number of the device-list, but I am afraid that the lists' order could sometimes change, hence the startup flag would choose the wrong interface.


the [mediasettings] library allows you to change audio / midi interfaces 
from within a PD patch


best

oliver



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


Re: [PD] looking for a simple eq

2022-09-28 Thread oliver

Jakob Laue wrote:

Dear list,
I am looking for a simple equalizer abstraction, preferably vanilla, but can be 
part of an external library, too!


Hi,

i recently made a "channel_gui" abstraction for a patch on the RPI, 
using vanilla filters and the object [equaliser] from the GGEE library 
(you will need to install that first with deken)


it has a lowpass, a highpass, and one parametric EQ like filter (made 
with [equaliser], which basically calculates the right coefficients for 
the vanilla [biquad~] object)


i attach it here, you will have to remove some stuff and tweak it for 
your needs, but it's not too complicated.


plus you can control output volume and add a delay (if needed)

best

oliver
#N canvas 386 128 885 527 12;
#X obj 221 48 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 212 66 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 588 23 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 588 43 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 227 96 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 220 155 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X obj 161 21 cnv 10 88 148 \$0-bgnd \$0-bgnd-r 1 75 10 1 18 -249661
-159808 0;
#X obj 160 155 nbx 5 15 0 200 0 0 \$1-v \$1-v-r vol 60 8 1 12 -262110
-1 -1 100 256;
#X obj 160 20 nbx 3 15 0 44100 0 0 \$1-d \$1-d-r del 45 9 1 12 -203904
-1 -1 0 256;
#X obj 291 393 *~;
#X obj 291 348 biquad~;
#X obj 327 319 equalizer 2 0 8, f 20;
#X obj 160 100 nbx 5 15 20 24000 1 0 \$1-f \$1-f-r freq 60 8 1 12 -204786
-1 -1 2 256;
#X obj 160 115 nbx 5 15 0 10 0 0 \$1-q \$1-q-r q 60 8 1 12 -204786
-1 -1 0 256;
#X obj 160 130 nbx 5 15 -80 80 0 0 \$1-g \$1-g-r gain 60 8 1 12 -204786
-1 -1 0 256;
#X obj 327 289 t b f;
#X obj 373 289 t b f;
#X obj 291 421 dac~ \$1;
#X obj 297 19 loadbang;
#X obj 381 48 delwrite~ \$0-d 1000, f 10;
#X obj 292 118 delread~ \$0-d 0, f 17;
#X obj 382 19 catch~ \$1-out;
#X obj 638 45 del 100;
#X obj 638 70 \$1;
#X msg 532 263 symbol kiste_dfv;
#X obj 532 288 text search kiste_args;
#X obj 532 314 +, f 5;
#X obj 532 341 text get kiste_args;
#X obj 357 348 * 0.01;
#X obj 357 373 pow 2;
#X floatatom 357 400 5 0 0 0 - - -;
#X msg 125 152 100;
#X obj 64 375 text set kiste_args;
#X obj 16 345 spigot;
#X obj 741 122 s \$0-spig;
#X obj 88 345 r \$0-spig;
#X msg 741 96 0;
#X obj 638 123 del 100;
#X msg 638 148 1;
#X obj 67 345 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1
1;
#X obj 26 62 t b f;
#X obj 16 35 t f;
#X obj 36 94 t b f;
#X obj 16 375 t b l;
#X obj 16 402 s writeargs;
#X obj 54 125 t b f;
#X text 390 151 Alle GUIs haben #1 am Anfang, f 9;
#X msg 297 44 bang;
#X obj 494 72 makefilename %d;
#X obj 494 45 \$1;
#X msg 494 97 label \$1;
#X obj 494 122 s \$0-bgnd-r;
#X obj 297 69 s \$0-init;
#X obj 638 19 r \$0-init;
#X obj 494 19 r \$0-init;
#X obj 700 306 r \$0-init;
#X obj 291 198 lop~;
#X obj 292 145 hip~;
#X obj 292 172 demux~;
#X obj 290 222 demux~;
#X obj 344 179 hip~;
#X obj 328 248 lop~;
#X obj 160 47 nbx 5 15 20 2 1 0 \$1-hp \$1-hp-r hp 60 8 1 12 -232576
-1 -1 20 256;
#X obj 160 62 nbx 5 15 20 24000 1 0 \$1-lp \$1-lp-r lp 60 8 1 12 -232576
-1 -1 2 256;
#X obj 160 77 tgl 13 0 \$1-oct \$1-oct-r -6db/-12db 20 8 1 11 -232576
-1 -1 1 1;
#X msg 700 333 0 20 2 1 2 0 0 100, f 14;
#X obj 532 489 s \$1-d-r;
#X obj 553 465 s \$1-hp-r;
#X obj 575 441 s \$1-lp-r;
#X obj 596 418 s \$1-oct-r;
#X obj 618 394 s \$1-f-r;
#X obj 639 489 s \$1-q-r;
#X obj 661 465 s \$1-g-r;
#X obj 683 441 s \$1-v-r;
#X obj 73 164 t b f;
#X obj 92 196 t b f;
#X obj 112 226 t b f;
#X obj 132 257 t b f;
#X obj 16 315 pack 0 0 0 0 0 0 0 0;
#X obj 532 368 unpack 0 0 0 0 0 0 0 0;
#X msg 109 39 20;
#X msg 109 59 24000;
#X msg 109 98 24000;
#X obj 480 186 r kiste_get_dfv_from;
#X obj 532 236 t b f;
#X obj 480 211 + 1;
#X obj 480 236 sel \$1;
#X floatatom 578 235 5 0 0 0 - - -;
#X msg 690 153 symbol kiste_dfv;
#X obj 690 178 text search kiste_args;
#X floatatom 690 228 5 0 0 0 - - -;
#X obj 690 203 +;
#X obj 638 97 t b f f b f b;
#X connect 0 0 80 0;
#X connect 1 0 81 0;
#X connect 4 0 82 0;
#X connect 5 0 31 0;
#X connect 7 0 28 0;
#X connect 7 0 77 0;
#X connect 8 0 20 0;
#X connect 8 0 41 0;
#X connect 9 0 17 0;
#X connect 10 0 9 0;
#X connect 11 0 10 0;
#X connect 12 0 11 0;
#X connect 12 0 74 0;
#X connect 13 0 16 0;
#X connect 13 0 75 0;
#X connect 14 0 15 0;
#X connect 14 0 76 0;
#X connect 15 0 11 0;
#X connect 15 1 11 1;
#X connect 16 0 11 0;
#X connect 16 1 11 2;
#X connect 18 0 47 0;
#X connect 20 0 57 0;
#X connect 21 0 19 0;
#X connect 22 0 23 0;
#X connect 23 0 92 0;
#X connect 24 0 25 0;
#X connect 25 0 26 0;
#X connect 26 0 27 0;
#X connect 27 0 79 0;
#X connect 28 0 29 0;
#X connect 29 0 9 1;
#X connect 29 0 30 0;
#X connect 31 0 7 0;
#X connect 33 0 43 0;
#X connect 35 0 39 0;
#X connect 36 0 34 0;
#X connect 37 0 38 0;
#X connect 38 0 34 0;
#X connect 39 0 33 1;
#X connect 40 0 78 0;
#X connect 40 1 78 1;
#X connect 41 

Re: [PD] [vstplugin~] on a RPI 3 ? ...

2022-09-20 Thread oliver

Christof Ressi wrote:

Hi Oli,

there is no Linux ARM support for [vstplugin~] (yet). Do you actually 
have any VST plugins that are compiled for this platform?


Actually no, i thought i'd like to try [vstplugin~] first, and see how 
far i will get ;-)


there is an article about using vsts on a PI

https://www.matrixsynth.com/2021/04/how-to-use-windows-vst-plugins-on-linux.html

so i figured there must be some possibility to do so


will do some more research

anyway, thanks for your quick reply !


best

oliver



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


[PD] [vstplugin~] on a RPI 3 ? ...

2022-09-20 Thread oliver

Hi, christof !

i'm trying to install [vstplugin~] on a RPI 3+

(PD version is 0.54.1 - raspbian buster)

deken doesn't find any files compiled for ARM.
trying "apt install pd-vstplugin~" doesn't work either


Do i have to try to compile it myself ?
Or do i need a newer system ?


best

oliver



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


Re: [PD] [route] weirdness ...

2022-09-13 Thread oliver

IOhannes m zmölnig wrote:

On 9/13/22 16:11, oliver wrote:
It seems to me, that the [route] object can't handle a mix of float 
and symbol arguments correctly. Meaning, it can either route floats OR 
symbols as expected but not both.


Is this behaviour intentional ?


both intentional and documented:

 > Route checks the first element of a message against each of its 
arguments, which may be numbers or symbols (but not a mixture of the two).


Ah ... damn ... my bad ;-)

Having used [route] for such a long time, i didn't even think of 
re-reading the help file in depth since i thought i knew it all ...


anway, thanks a lot !

best

Oliver



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


[PD] [route] weirdness ...

2022-09-13 Thread oliver

Hi, dear list !

After so many years i am still surprised by some idiosyncratic behaviour 
in PD. Or so it seems to me, please correct me if it's me who doesn't 
get things straight ...


It seems to me, that the [route] object can't handle a mix of float and 
symbol arguments correctly. Meaning, it can either route floats OR 
symbols as expected but not both.


Is this behaviour intentional ?

I thought that route can differentiate between selectors (list, float, 
bang etc.) and (if nothing else fits) the first element of any given 
message. But even if i prepend the message by the selector "list", a 
mixture of floats and symbols in a single route object doesn't work as i 
would expect it ...




I think the attached patch explains better than words, what i mean

Please have a look at it and if someone can explain this to me,
please do so !


best

oliver
#N canvas 350 99 853 728 10;
#X msg 59 83 1 \$1;
#X floatatom 59 63 5 0 0 0 - - - 0;
#X floatatom 102 63 5 0 0 0 - - - 0;
#X floatatom 145 63 5 0 0 0 - - - 0;
#X msg 102 83 2 \$1;
#X msg 145 83 3 \$1;
#X obj 102 112 route 1 2 3, f 19;
#X floatatom 102 133 5 0 0 0 - - - 0;
#X floatatom 139 133 5 0 0 0 - - - 0;
#X floatatom 176 133 5 0 0 0 - - - 0;
#X floatatom 50 171 5 0 0 0 - - - 0;
#X floatatom 103 171 5 0 0 0 - - - 0;
#X floatatom 146 171 5 0 0 0 - - - 0;
#X floatatom 103 241 5 0 0 0 - - - 0;
#X floatatom 140 241 5 0 0 0 - - - 0;
#X floatatom 177 241 5 0 0 0 - - - 0;
#X msg 50 191 bend \$1;
#X msg 103 191 mod \$1;
#X msg 146 191 var \$1;
#X obj 103 220 route bend mod var, f 19;
#X msg 286 92 1 \$1;
#X floatatom 286 72 5 0 0 0 - - - 0;
#X floatatom 329 72 5 0 0 0 - - - 0;
#X floatatom 372 72 5 0 0 0 - - - 0;
#X msg 329 92 2 \$1;
#X msg 372 92 3 \$1;
#X floatatom 329 142 5 0 0 0 - - - 0;
#X floatatom 366 142 5 0 0 0 - - - 0;
#X floatatom 403 142 5 0 0 0 - - - 0;
#X floatatom 412 72 5 0 0 0 - - - 0;
#X floatatom 465 72 5 0 0 0 - - - 0;
#X floatatom 508 72 5 0 0 0 - - - 0;
#X msg 412 92 bend \$1;
#X msg 465 92 mod \$1;
#X msg 508 92 var \$1;
#X obj 329 121 route 1 2 3 bend mod var, f 38;
#X floatatom 439 142 5 0 0 0 - - - 0;
#X floatatom 476 142 5 0 0 0 - - - 0;
#X floatatom 513 142 5 0 0 0 - - - 0;
#X text 101 31 WORKS:;
#X text 381 34 DOESN'T WORK:;
#X msg 317 421 1 \$1;
#X floatatom 317 401 5 0 0 0 - - - 0;
#X floatatom 360 401 5 0 0 0 - - - 0;
#X floatatom 403 401 5 0 0 0 - - - 0;
#X msg 360 421 2 \$1;
#X msg 403 421 3 \$1;
#X floatatom 360 471 5 0 0 0 - - - 0;
#X floatatom 397 471 5 0 0 0 - - - 0;
#X floatatom 434 471 5 0 0 0 - - - 0;
#X floatatom 443 401 5 0 0 0 - - - 0;
#X floatatom 496 401 5 0 0 0 - - - 0;
#X floatatom 539 401 5 0 0 0 - - - 0;
#X msg 443 421 bend \$1;
#X msg 496 421 mod \$1;
#X msg 539 421 var \$1;
#X floatatom 471 503 5 0 0 0 - - - 0;
#X floatatom 508 503 5 0 0 0 - - - 0;
#X floatatom 545 503 5 0 0 0 - - - 0;
#X obj 471 482 route bend mod var, f 19;
#X obj 360 450 route 1 2 3, f 19;
#X text 421 370 WORKAROUND:;
#X msg 306 601 1 \$1;
#X floatatom 306 581 5 0 0 0 - - - 0;
#X floatatom 349 581 5 0 0 0 - - - 0;
#X floatatom 392 581 5 0 0 0 - - - 0;
#X msg 349 601 2 \$1;
#X msg 392 601 3 \$1;
#X floatatom 432 581 5 0 0 0 - - - 0;
#X floatatom 485 581 5 0 0 0 - - - 0;
#X floatatom 528 581 5 0 0 0 - - - 0;
#X msg 432 601 bend \$1;
#X msg 485 601 mod \$1;
#X msg 528 601 var \$1;
#X obj 349 630 route list symbol float, f 38;
#X obj 349 651 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc
#00 #00;
#X obj 426 653 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc
#00 #00;
#X obj 497 653 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc
#00 #00;
#X obj 573 653 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc
#00 #00;
#X floatatom 254 322 5 0 0 0 - - - 0;
#X floatatom 291 322 5 0 0 0 - - - 0;
#X floatatom 328 322 5 0 0 0 - - - 0;
#X obj 254 301 route 1 2 3 bend mod var, f 38;
#X floatatom 364 322 5 0 0 0 - - - 0;
#X floatatom 401 322 5 0 0 0 - - - 0;
#X floatatom 438 322 5 0 0 0 - - - 0;
#X obj 254 280 list trim;
#X obj 340 233 list prepend 1;
#X floatatom 340 211 5 0 0 0 - - - 0;
#X floatatom 438 211 5 0 0 0 - - - 0;
#X obj 438 233 list prepend band;
#X text 490 210 SAME HERE;
#X floatatom 508 321 5 0 0 0 - - - 0;
#X floatatom 545 321 5 0 0 0 - - - 0;
#X floatatom 582 321 5 0 0 0 - - - 0;
#X obj 508 300 route 1 2 3 bend mod var, f 38;
#X floatatom 620 321 5 0 0 0 - - - 0;
#X floatatom 657 321 5 0 0 0 - - - 0;
#X floatatom 694 321 5 0 0 0 - - - 0;
#X obj 561 143 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc
#00 #00;
#X obj 476 322 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc
#00 #00;
#X obj 733 319 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc
#00 #00;
#X text 401 554 WHAT IS IT ANYWAY ? ...;
#X text 329 279 <--- doesn't help;
#X connect 0 0 6 0;
#X connect 1 0 0 0;
#X connect 2 0 4 0;
#X connect 3 0 5 0;
#X connect 4 0 6 0;
#X connect 5 0 6 0;
#X connect 6 0 7 0;
#X connect 6 1 8 0;
#X connect 6 2 9 0;
#X connect 10 0 16 0;
#X connect 11 0 17 

Re: [PD] C externals in M1 give errors

2022-08-15 Thread Jaime Oliver
Hi Chris, Brad, All,

I managed to trace the error to the function below. It reads a text file
and copies its contents to a matrix. The file it's reading is always made
of lines with the same number of elements like this below:

0 4 4 8 32
1 4 4 8 32
2 4 4 8 32
...

The specific error I'm getting right now is that it is reading that number
32 as 29. Again, this same code works fine in all other OSs I've tried.

I'm assuming the issue is in the pow() function and all the typecasting
(int), (double) as Chris suggested?

As for compilation, I am using the latest pd_lib_builder as the makefile.

Thanks for your help!

best,

Jaime

code:

int readbarfile(int a[][8], FILE *f){
int i, ii, j, jj, strsize, temp;
char * line = NULL;
size_t len = 0;
ssize_t read;
char ss[10];
temp=j=0;

ii=0;
while ((read = getline(, , f)) != -1) {
jj  = 4;
strsize = (int) read;
for (i=strsize-1; i>=0; i--){
if ( line[i] == (int) 32 || line[i] == (int) 10) { //space or
newline
if(i != (strsize-1)) {
a[ii][jj] = temp;
jj--;
}
j=0;
temp=0;
}
else {
ss[0] = line[i];
temp += atoi(ss)*( (int) pow((double)10, (double)j) );
j++;
}
}
ii++;
}
return (ii);
}

On Fri, Aug 12, 2022 at 1:57 PM Chris Clepper  wrote:

> That issue only relates to data corruption in the case of major failures
> like power loss and kernel panics.  In most of those situations some data
> loss is not only expected but also the least of your concerns.
>
> As for the original topic, the first thing to check is the usual problems
> moving between architectures like endianess, definition of data structures
> (is long really 32 bits, double 64 bits, etc), memory alignment and
> compiler settings.  Does the code work with all of the optimizations turned
> off?
>
> On Fri, Aug 12, 2022 at 5:58 AM Bastiaan van den Berg 
> wrote:
>
>> Did you read that M1's storage has so much cache + lies to the OS about
>> cache commitments, leading to data corruption sometimes?
>> https://twitter.com/marcan42/status/1494213855387734019
>>
>> On Fri, Aug 12, 2022 at 6:14 AM Jaime Oliver 
>> wrote:
>>
>>> Dear all,
>>>
>>> I have a c external that compiles and runs fine on windows, Linux, and
>>> Mac Intel systems, but while the exact same code compiles ok on a Mac M1
>>> system, it runs with errors.
>>>
>>> I am trying to figure out the bug, but wonder if anyone has come across
>>> something like this? The external itself is not particularly complex. It
>>> writes and reads text files, does basic arithmetic, and uses arrays of
>>> various sizes.
>>>
>>> Does anyone have any suggestions of where to look first?
>>>
>>> Best,
>>>
>>> Jaime
>>> ___
>>> Pd-list@lists.iem.at mailing list
>>> UNSUBSCRIBE and account-management ->
>>> https://lists.puredata.info/listinfo/pd-list
>>>
>> ___
>> Pd-list@lists.iem.at mailing list
>> UNSUBSCRIBE and account-management ->
>> https://lists.puredata.info/listinfo/pd-list
>>
> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
> https://lists.puredata.info/listinfo/pd-list
>


-- 
**
Jaime E Oliver LR
www.jaimeoliver.pe
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


[PD] C externals in M1 give errors

2022-08-11 Thread Jaime Oliver
Dear all,

I have a c external that compiles and runs fine on windows, Linux, and Mac
Intel systems, but while the exact same code compiles ok on a Mac M1
system, it runs with errors.

I am trying to figure out the bug, but wonder if anyone has come across
something like this? The external itself is not particularly complex. It
writes and reads text files, does basic arithmetic, and uses arrays of
various sizes.

Does anyone have any suggestions of where to look first?

Best,

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


Re: [PD] [key], [keyup] and operating system key reapat

2022-05-03 Thread oliver

Peter P. wrote:

Dear Dan and everyone contributing to this issue,

I kinda felt this is a sensitive topic but was not aware of the amount
of frustrating work that has already gone into it. Every bit of it is
much appreciated, thank you and everyone a lot!

So if I would want to write a patch that uses the [key] and [keyup] objects to
work consistently on all three platforms, I would have to tell the user to
turn key repeat off in her operating system AND provide a means to
filter out repeating key ons (Win and OS X), correct?

In this case I happily deal with the current status.


Often key repetitions are desired, for example if i want to make a 
beautiful dividing line like this:


===

Maybe a safer approach would be to provide an abstraction that does the 
filtering depending on the OS.


Of course you will need at least [operating_system] from ZEXY for that, 
so this wouldn't be vanilla only. and of course it has other drawbacks, 
as it would need to be centralised (only one instance of [keyname] and 
then distribute the results with a [send])


that's at least the way i do it

attached is an abstraction i made a few years ago, haven't revised it 
lately, so please just take it as an example (also as it's only for 
windows ATM)


best

oliver

#N canvas 515 92 858 824 10;
#X declare -stdpath iemguts -path iemguts;
#X declare -stdlib zexy -lib zexy;
#X obj 415 717 cnv 14 63 15 empty empty empty 2 2 0 9 -248636 -66577
0;
#X obj 415 716 closebang, f 10;
#X obj 280 209 t b b;
#X obj 330 209 t b b;
#X msg 280 406 1;
#X msg 295 361 stop;
#X obj 280 384 del 500;
#X msg 376 433 1;
#X msg 390 385 stop;
#X obj 376 411 del 500;
#X obj 396 575 s ol_key;
#X msg 307 486 UP;
#X msg 359 486 DOWN;
#X obj 280 429 metro 50;
#X obj 376 456 metro 50;
#X msg 408 486 LEFT;
#X msg 457 486 RIGHT;
#X obj 280 182 route Up Down Left Right, f 34;
#X msg 465 430 1;
#X msg 478 383 stop;
#X obj 465 408 del 500;
#X msg 529 429 1;
#X msg 537 384 stop;
#X obj 529 407 del 500;
#X obj 465 453 metro 50;
#X obj 529 452 metro 50;
#X obj 537 268 route Up Down Left Right, f 34;
#X obj 380 209 t b b;
#X obj 430 209 t b b;
#X obj 50 72 keyname;
#X obj 50 216 pack 0 s;
#X obj 50 262 route 1 0, f 21;
#X obj 50 288 route Control_L Shift_L;
#X obj 111 369 route Control_L Shift_L;
#X obj 50 311 t b;
#X obj 120 311 t b;
#X obj 111 390 t b;
#X obj 178 390 t b;
#X obj 161 513 s shiftstate;
#X msg 50 335 1;
#X msg 111 413 0;
#X msg 178 412 0;
#X msg 120 333 1;
#X text 282 161 ARROW KEYS;
#X obj 396 524 symbol;
#X obj 589 541 outlet;
#X obj 517 541 outlet;
#X text 508 562 KEY DOWN;
#X text 587 561 KEY UP;
#X obj 607 511 s ol_keyup;
#X obj 589 451 symbol;
#X text 52 46 STRG + SHIFT, f 13;
#X obj 219 398 s \$0-up;
#X obj 537 246 r \$0-up;
#X obj 126 685 spigot;
#X msg 167 656 0;
#X msg 145 656 1;
#X obj 45 618 t b b b b;
#X msg 96 656 1;
#X msg 126 706 0;
#X obj 96 733 s \$0-ol_key_spigot;
#X obj 155 513 cnv 5 5 17 empty empty empty 20 12 0 14 -173398 -66577
0;
#X obj 390 575 cnv 5 5 17 empty empty empty 20 12 0 14 -173398 -66577
0;
#X obj 601 511 cnv 5 5 17 empty empty empty 20 12 0 14 -173398 -66577
0;
#X obj 56 760 cnv 5 5 17 empty empty empty 20 12 0 14 -173398 -66577
0;
#X obj 90 733 cnv 5 5 17 empty empty empty 20 12 0 14 -173398 -66577
0;
#X obj 120 619 cnv 5 5 17 empty empty empty 20 12 0 14 -260097 -66577
0;
#X obj 213 398 cnv 5 5 17 empty empty empty 20 12 0 14 -173398 -66577
0;
#X obj 531 246 cnv 5 5 17 empty empty empty 20 12 0 14 -260097 -66577
0;
#X text 413 680 this has to be created before everything else !, f
25;
#X obj 126 619 r ol_key_single_check;
#X obj 62 760 s ol_key_single_check;
#X obj 45 594 del 50;
#X obj 45 572 r check_ol_key_instances;
#X text 44 551 check for multiple instances;
#X obj 415 746 s check_ol_key_instances;
#X obj 570 746 print \$0-CB;
#X obj 511 542 cnv 5 5 17 empty empty empty 20 12 0 14 -102336 -66577
0;
#X obj 583 541 cnv 5 5 17 empty empty empty 20 12 0 14 -102336 -66577
0;
#X obj 573 41 cnv 10 170 20 empty empty needs_IEMGUTS_ZEXY 10 11 0
14 -4160 -262144 0;
#X obj 573 57 cnv 4 130 4 empty empty empty 10 11 0 14 -4160 -262144
0;
#X obj 512 71 cnv 14 230 15 empty empty empty 2 2 0 9 -253181 -66577
0;
#X msg 406 433 0;
#X msg 495 430 0;
#X msg 559 429 0;
#X msg 315 406 0;
#X obj 537 291 t b b;
#X obj 587 292 t b b;
#X obj 637 292 t b b;
#X obj 687 293 t b b;
#X msg 311 676 1;
#X obj 291 746 s \$0-mainspigot-r;
#X obj 50 240 spigot 1;
#X obj 112 240 cnv 5 5 17 empty empty empty 20 12 0 14 -260097 -66577
0;
#X obj 118 240 r \$0-mainspigot;
#X obj 1 1 cnv 3 68 13 \$0-bgnd \$0-bgnd-r Control_L 20 7 1 9 -241339
-66577 0;
#X obj 0 0 tgl 15 0 \$0-mainspigot \$0-mainspigot-r empty 17 7 0 10
-203904 -1 -1 1 1;
#X msg 225 702 pos 0 \$1;
#X msg 208 673 0;
#X msg 237 673 20;
#X msg 119 195 label \$1;
#X obj 119 216 s \$0-bgnd-r;
#X obj 650 746 s \$0-bgnd-r;
#X msg 650 725 label;
#X obj 683 615 cnv 5 5 17 empty empty empty 20 12 0 14 -173398 -66577
0;
#X

[PD] Strange PD crash with ASIO ...

2022-01-30 Thread oliver

Hi, dear list !

Just stumbled across a (probably serious) issue with new PD 0.52

Here's the scenario, on Windows 7 / PD 0.52.1 /64bit:


1.) ASIO with multichannel soundcard (ESI GIGAPort HD)
2.) blocksize 512 / delay 6 (clear sound with "test audio & midi")
3.) a patch (with dsp on) that uses either [env~] or [avg~] or 
[sigmund~] or any signal to float/list conversion process

4.) those floats are converted back again to signals
5.) cutting/deleting any of the "signal->float" connections or 
numberboxes crashes PD



I attached a simple (rather dumb) patch to demonstrate the principle

The crash reliably happens when i disconnect any number box attached to 
[env~]. also changing [env~]'s window size doesn't help


This crash doesn't happen when i use PD 0.51 instead !


As i wrote in the subject, this crash happens ONLY with ASIO as the 
audio driver (also true for "ASIO4ALL"), but not with the MMIO driver.


could you dear windows PD users please test the attached patch and 
verify/falsify my observation ?


best

oliver


--

/// http://pendler.klingt.org //
\\\ http://oliver.klingt.org  \\

#N canvas 875 197 484 412 10;
#X obj 43 349 *~;
#X obj 71 333 line~;
#X obj 74 268 hsl 128 15 0 1 0 0 empty empty empty -2 -8 0 10 #fcfcfc
#00 #00 0 1;
#X obj 71 288 pow 2;
#X obj 71 222 loadbang;
#X floatatom 114 304 5 0 0 0 - - - 0;
#X msg 71 311 \$1 50;
#X floatatom 201 211 5 0 0 0 - - - 0;
#X obj 251 239 dbtorms;
#X obj 42 371 dac~ 1;
#X msg 71 243 0.2;
#X floatatom 251 260 5 0 0 0 - - - 0;
#X obj 204 82 loadbang;
#X msg 204 103 \; pd dsp 1;
#X obj 321 378 dac~ 2;
#X obj 42 143 osc~;
#X obj 42 121 +~;
#X obj 90 83 osc~;
#X obj 90 59 +~ 100;
#X obj 89 12 osc~ 0.1;
#X obj 89 33 *~ 50;
#X obj 90 106 *~ 100;
#X obj 26 84 sig~ 300;
#X obj 42 171 *~;
#X obj 95 155 pow~ 2;
#X obj 95 134 phasor~ -1;
#X obj 323 310 noise~;
#X obj 322 333 *~;
#X obj 322 356 *~ 0.02;
#X obj 201 187 env~;
#X text 201 154 try to delete the number box connected to [env~],
f 24;
#X text 207 12 TEST THIS WITH ASIO DRIVER !!!, f 16;
#X floatatom 350 212 5 0 0 0 - - - 0;
#X obj 396 243 dbtorms;
#X floatatom 396 264 5 0 0 0 - - - 0;
#X obj 251 281 spigot 1;
#X obj 396 289 spigot 0;
#X floatatom 396 310 5 0 0 0 - - - 0;
#X floatatom 251 306 5 0 0 0 - - - 0;
#X obj 354 241 tgl 15 0 empty empty empty 17 7 0 10 #fcfcfc #00
#00 0 1;
#X obj 313 281 == 0;
#X obj 350 186 env~ 1024;
#X connect 0 0 9 0;
#X connect 1 0 0 1;
#X connect 2 0 3 0;
#X connect 3 0 6 0;
#X connect 3 0 5 0;
#X connect 4 0 10 0;
#X connect 6 0 1 0;
#X connect 8 0 11 0;
#X connect 10 0 2 0;
#X connect 11 0 35 0;
#X connect 12 0 13 0;
#X connect 15 0 23 0;
#X connect 16 0 15 0;
#X connect 17 0 21 0;
#X connect 18 0 17 0;
#X connect 19 0 20 0;
#X connect 20 0 18 0;
#X connect 21 0 16 1;
#X connect 22 0 16 0;
#X connect 23 0 0 0;
#X connect 23 0 29 0;
#X connect 23 0 41 0;
#X connect 24 0 23 1;
#X connect 25 0 24 0;
#X connect 26 0 27 0;
#X connect 27 0 28 0;
#X connect 28 0 14 0;
#X connect 29 0 7 0;
#X connect 29 0 8 0;
#X connect 33 0 34 0;
#X connect 34 0 36 0;
#X connect 35 0 27 1;
#X connect 35 0 38 0;
#X connect 36 0 27 1;
#X connect 36 0 37 0;
#X connect 39 0 36 1;
#X connect 39 0 40 0;
#X connect 40 0 35 1;
#X connect 41 0 33 0;
#X connect 41 0 32 0;
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] [sfinfo~]

2022-01-28 Thread oliver

Miller Puckette via Pd-list wrote:

Excellent - nothing to do then.  My favorite kind of dolist.



Well, not quite ...

Lucas' method of using [soundfiler] to get a (really long) soundfile's 
length still loads the complete file into RAM, as it would into an 
array. (i'm talking a 60 minute long audio file here)


This has 3 drawbacks:

1.) audio dropout while loading, depending on the file's length
2.) can use huge amounts of RAM
3.) takes much longer than [soundfile_info]

attached is an example patch that illustrates both approaches.

(use the same long soundfile for each method to see what i mean)



then again: since i use IEMLIB regularly it's not that much of a hassle. 
it's just not plain vanilla, that's all ...



best

oliver
#N canvas 806 80 350 355 10;
#X declare -stdlib iemlib;
#X obj 47 227 soundfiler;
#X msg 196 205 read \$1;
#X obj 196 161 openpanel;
#X obj 196 138 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X obj 19 16 declare -stdlib iemlib;
#X obj 196 229 soundfile_info;
#X obj 47 248 print A;
#X obj 196 250 print B;
#X obj 196 182 t s b;
#X obj 281 14 osc~ 440;
#X obj 281 35 *~ 0.2;
#X obj 269 92 dac~;
#X msg 47 205 read \$1;
#X obj 47 161 openpanel;
#X obj 47 139 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 47 182 t s b;
#X text 45 104 select a long soundfile;
#X obj 74 297 realtime;
#X msg 119 276 bang;
#X floatatom 74 318 0 0 0 0 - - -;
#X obj 223 297 realtime;
#X msg 268 276 bang;
#X floatatom 223 318 0 0 0 0 - - -;
#X obj 281 67 *~ 0;
#X obj 253 37 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X text 68 137 A: ARRAY METHOD;
#X text 214 137 A: WITH IEMLIB;
#X text 195 15 also note audio drop-out, f 11;
#X connect 0 0 6 0;
#X connect 0 0 18 0;
#X connect 1 0 5 0;
#X connect 2 0 8 0;
#X connect 3 0 2 0;
#X connect 5 0 7 0;
#X connect 5 0 21 0;
#X connect 8 0 1 0;
#X connect 8 1 20 0;
#X connect 9 0 10 0;
#X connect 10 0 23 0;
#X connect 12 0 0 0;
#X connect 13 0 15 0;
#X connect 14 0 13 0;
#X connect 15 0 12 0;
#X connect 15 1 17 0;
#X connect 17 0 19 0;
#X connect 18 0 17 1;
#X connect 20 0 22 0;
#X connect 21 0 20 1;
#X connect 23 0 11 0;
#X connect 23 0 11 1;
#X connect 24 0 23 1;
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] [sfinfo~]

2022-01-28 Thread oliver

Miller Puckette via Pd-list wrote:

Hi PA -

Are you doing stuff that "soundfiler" doesn't?  If so, it would be better
to add to the soundfiler object than to add a new object with its own name.


The one thing that [soundfiler] can not do, is to report the length of a 
soundfile WITHOUT fully loading it into an array.


That would be a great feature to have for [soundfiler]'s right outlet, 
especially in the case of big files.


You can get all the other information (channels, samplerate etc.) by 
loading just a small sniplet of the source file (even 1 sample is 
sufficient IIRC) into a buffer, but not the length. you would need to 
add "-resize" to the load flags, which is not useful for (very) long files


i still use IEMLIB's [soundfile_info] for that purpose.



best

oliver



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


Re: [PD] JACK and blocksize

2022-01-16 Thread oliver


As for the need for it, I would personally use it, I tuned my linux 
system to run at 16 samples but I cannot use such settings when I want 
to run Pd (I can with Bitwig and Bespoke synth).


Sorry , a little off topic ...

how exactly did you achieve that ? could you provide some specs ?
(linux distro, kernel, tweaks, JACK or ALSA, soundcard)

i never succeeded in getting any reasonable latency out of BITWIG (the 
"real" latency of let's say a pushed midi trigger and the soundfile in a 
slot being started was always much bigger than stated), so i ditched it 
in the end.


BESPOKE looks awesome, will dig into it ...

FWIW, i find REAPER a great program to team up with PD (via OSC 
communication), though i'm still not at the desired latency i'm looking 
for (any "real" latency less than 10ms would be fine with me)




thanks for any hints

best

oliver



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


[PD] pd 0.52.1 - mediasettings don't work anymore for W7

2021-12-27 Thread oliver
hi, as the title says, since i switched to PD 0.52.1 (big hugs and mille 
grazie again to all people involved !) the "MEDIASETTINGS" externals 
don't work anymore


when i try to creata [audiosettings] i'm getting an alert dialog saying

"the procedure entry point sys_audioapi could not be located in the 
dynamic link library pd.dll"


this is on Windows 7 / 64bit with PD 0.52.1


"MEDIASETTINGS" was last uploaded by lucas in 2018,
so maybe it needs a revision for the new PD ? ...

thanks in advance for any help


best

oliver




--

/// http://pendler.klingt.org //
\\\ http://oliver.klingt.org  \\




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


Re: [PD] infinite reverbs

2021-11-04 Thread oliver

Peter P. wrote:

* Jeppi Jeppi  [2021-11-04 14:07]:

Hi all,
which are your favourite pd abstractions/externals able to work as very 
long/infinite reverbs, possibly with the option to freeze the reverb when 
desired?
[rev3~], the best! 


definitely !

also, the much loved vst-plugin FREEVERB~ is available as a PD-external 
for all platforms (type "freeverb~" on the deken searchbar)


this one has a "freeze" function

best

oliver



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


[PD] ceammc on linux ? ....

2021-09-15 Thread oliver

hi,

is there any reason the CEAMMC linrary is not available for linux ?

at least i can't find them on my DEBIAN (11 - bullseye) and UBUNTU 
(20.04 focal) machines ...


PD 0.51.4


best

oliver



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


Re: [PD] external libraries for Raspberry Pi - how to compile?

2021-09-11 Thread oliver


Am 11. September 2021 15:12:04 MESZ schrieb Ingo :
>Thanks, IOhannes!
>
>Using apt-get took care of most except for iemgui, moocow and toxy.
>

What exact objects do you need from those ?

> 
>
>iemlib is as always incomplete! 

That's strange. I recall it being complete the last time i used a Pi...

I. e. some objects don’t create like e.g.
>[mergefilename], [stripfilename], [splitfilename], etc.
>

With recent PD versions you don't need an object like [mergefilename] anymore. 
You can do basically anything with simple combinations of [symbol] [pack] 
[list] and messages.

Also have a look at the HCS library. That should cover your needs !

Best

Oliver

-- 

Gesendet von meiner Gurkn




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


Re: [PD] [file]

2021-09-09 Thread Jaime Oliver
>
> > Maybe [zexy] contains a backdoor for the NSA,
> > who knows?
>
> i do.
>
> well...?

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


Re: [PD] UBUNTU - problem with pd vanilla externals

2021-08-15 Thread oliver

On 2021-08-11 10:49, IOhannes m zmoelnig wrote:

On 8/9/21 2:07 PM, IOhannes m zmoelnig wrote:
hopefully i'll be able to provide a fix in the Ubuntu/focal 
repositories in the next few days.


ok, we are almost there.
however, *your* help is required to make the final steps.



bug is fixed and reported !

hug and kisses to IOhannes to make it happen !


best

oliver





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


Re: [PD] UBUNTU - problem with pd vanilla externals

2021-08-11 Thread oliver



Am 11. August 2021 10:49:26 MESZ schrieb IOhannes m zmoelnig :
>On 8/9/21 2:07 PM, IOhannes m zmoelnig wrote:

>
>if any of you are using Ubuntu/focal, i would ask you (very nicely) to 
>check whether the proposed fix works for you (and does not introduce any 
>new bugs).
>

Will do as soon as i'm back from vacation, around mid august. Please be patient.

Best

Oliver

-- 

Gesendet von meiner Gurkn




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


Re: [PD] UBUNTU - problem with pd vanilla externals

2021-08-03 Thread oliver

Christof Ressi wrote:
See 
https://github.com/pure-data/pure-data/issues/975#issuecomment-626352674.


AFAICT, it's a packaging issue with that Ubuntu version. Try to build Pd 
from source instead.


Hi, thanks for the hint ...

no other solution though ?
some library that is just mising and could be installed / updated to 
make this work ?


or: does anybody know of other pitch/beat tracker methods / externals ?


thanks again for any help ...

regards

oliver




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


[PD] UBUNTU - problem with pd vanilla externals

2021-08-01 Thread oliver

hi,

i just installed pd on a UBUNTU notebook and i am getting error messages 
when opening the help-intro.pd patch.
some vanilla objects (sigmund~, bonk~, choice) can't be loaded and give 
the following error messages:


/usr/lib/puredata/extra/sigmund~/sigmund~.pd_linux: 
/usr/lib/puredata/extra/sigmund~/sigmund~.pd_linux: undefined symbol: 
__pow_finite
/usr/lib/puredata/tcl/../extra/sigmund~/sigmund~.pd_linux: 
/usr/lib/puredata/tcl/../extra/sigmund~/sigmund~.pd_linux: undefined 
symbol: __pow_finite

 sigmund~
... couldn't create

the errors for the other 2 objects are similar with the following 
differences:


[bonk~]: undefined symbol: __exp_finite
[choice]: undefined symbol: __logf_finite

these are my specs:

OS:
Distributor ID: Ubuntu
Description:Ubuntu 20.04.2 LTS
Release:20.04
Codename:   focal

PD:
Pd-0.50.2 ("") compiled for Debian (0.50.2-3) on 2020/02/24 at 22:30:39 UTC


can somebody help me ?

thanks a lot in advance

oliver




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


Re: [PD] Ability to access error messages from patch

2021-06-14 Thread oliver

Christof Ressi wrote:


i quite like the idea of having a canvas-scope for such an object. 
Personally, I would rather prefer that if the error code would be simply 
output by the same object that generated the error.


that can take a long time, even for vanilla objects ;-)

and there are so many 3rd party objects out there that would all need to 
be modified and re-released in order to fit these quite specific needs.


if it's not too big a project (IOhannes must decide), i think that such 
an object (like [canvaserror]) would do no harm to "everyday users" and 
would at least be very handy for those who have a need for it.





On 6/14/21 10:37 AM, Peter P. wrote:
> Yes, that's a good idea, but what if there are two identical objects
> on the same canvas?

i think that would be *your* problem.
if you want to catch error messages from two instances of the same 
objectclass, just put them into separate canvases.
simple as that. 
I think Peter's concern is valid and it's actually another reason why I 
wouldn't like such a design.


since it would be part of IEMGUTS (which i think is where it belongs 
to), people usually know what they let themselves in for and would 
design their patches accordingly. for example, there's no real need for 
more than one [soundfiler] or [text define] objects in a canvas...




Here's another idea, which I don't really love, but which I would prefer 
over your proposed [canvaserror]:


Method calls which can generate an error send the error code to a global 
[errno] object and the user can query the current error state with a 
bang. This would be similar to 'errno' in C.


If the user queries the errno immediately after the method call, Pd's 
determinism guarantees that the error really belongs to that method 
call. We would have to reserve a special value (e.g. "0") to mean "no 
error".


sounds nice, too. but it wouldn't verbosely specify the type of error, 
like the console output, would it ?


just my 2c

best

oliver




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


Re: [PD] Ability to access error messages from patch

2021-06-14 Thread oliver

Peter P. wrote:

* Roman Haefeli  [2021-06-13 22:53]:

Hi

I was just discussing a feature request to an external (aoo) for
posting error messages to the outlet instead of the Pd console.

Roman, I think this is an excellent ideat!


me too !!!

I am wondering how one would

parse these error messages if they came from one single object outlet to
tell where the error originated from?


in practice it probably wouldn't be that difficult, since you most 
likely know the kind of error message you are looking for. so it should 
be easy to route. or use timed spigots etc...


anyway a [console] object that ouputs every thing that is sent to the PD 
console would be really fantastic and a huge helper for handling objects 
like [soundfiler], the hcs-objects etcetc.


best

oliver



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


[PD] osx - PD network allowance issues

2021-06-07 Thread oliver

hi, dear mac users

recently i installed PD-0.51-4 on an old macbook (10.9.x) and even 
though everything works fine, i always get an alert at startup, asking 
me if i want to allow network connections for this application. i set 
"allow" everytime plus i also set the firewall exceptions for the PD 
package (the one in the applications folder) in the security preferences 
but OSX doesn't seem to care ;-) - i still get this alert on every PD 
startup ...


does somebody here on this list have some experiences in this matter ?

thanks for any help

oliver



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


Re: [PD] vstplugin~ v0.5-test3

2021-05-23 Thread oliver

Christof Ressi wrote:

Hi,

thanks for testing!

I should have mentioned that the 32-bit Linux version comes without the 
Wine bridge...


Can you try the following:

1) download the 64-bit Linux version, copy the "host_pe_i386" app and 
paste it next to the 32-bit vstplugin~ external.




thank you very much, yeah, that did the trick !

i can succesfully load and use vst plugins in 32bit LUBUNTU

(i have to add that the actual filename to put into the vstplugin~ 
folder is "host_i386.exe.so")



genius !

best

oliver



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


Re: [PD] vstplugin~ v0.5-test3

2021-05-23 Thread oliver

Christof Ressi wrote:


Please test and report any issues!

Also, if anyone of you is using Wine, it would be highly appreciated if 
you could try out the new built-in Wine bridge (= load Windows VST 
plugins on Linux)


hi, i tried to open a .dll plugin with your latest test version on a 
32bit LUBUNTU (on a very old laptop) with PD 0.48


wine is installed and i can open 32bit applications.

when i try to load a (standalone) VST plugin (.dll) i first get the 
error message:


"couldn't load '/media/DATA/bufover.dll':Can't bridge CPU architecture 
pe_i386"


when i re-try to open or bridge this .dll, i get a message saying:

'/media/DATA/bufover.dll' is blacklisted



am i even doing this right ? what is the "correct" way to load a VST 
.dll on a linux system that has wine installed ?



best

oliver



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


Re: [PD] ignore hidden files from hcs/folder_list

2021-05-04 Thread oliver

Samuel Burt wrote:

Hi, all.

Does anyone have a suggestion to ignore hidden files preceded by a dot? 
hcs/folder_list outputs all the files matching a wildcard pattern. Seems 
like there should be some way to look for files that start with a dot 
and not pass them.


there's no way to achive that with [folder_list] itself.

you would have to examine every line of ouput, i'm afraid ...

1.) use [hcs/split_path] to just get the filename (without path)
2.) use vanilla's [list fromsymbol] to check for dots (ASCII code 46) at 
the beginning of the list


...


best

oliver



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


Re: [PD] size and position of PD window

2021-04-14 Thread oliver





if you can use externals you can send [wm geometry .pdwindow +400+200( 
to [hcs/sys_gui] (where 400 is x-pixels and 200 is y-pixels)




thanks, yeah ! that's the one i was looking for !


for completeness:

[wm geometry .pdwindow 200x500+400+200(
|
[hcs/sys_gui]

to change size and position:

[Width_x]x[Height_y]+[Pos_x]+[Pos_y]



best

oliver



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


[PD] size and position of PD window

2021-04-14 Thread oliver

hi, dear list !

is there a way to change the PD-console-window's position and size with 
a message form within a patch ?


i know about the "relocate" method for subpatches, but couldn't find out 
how to adress the console window, if that's possible at all.


any ideas ?
(an external or plugin-based solution would do as well)

best

oliver




--

/// http://pendler.klingt.org //
\\\ http://oliver.klingt.org  \\




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


Re: [PD] symbols with zero paddings and spaces

2021-03-17 Thread oliver

On 2021-03-17 14:25, Christof Ressi wrote:

pdsend/pdreceive uses the FUDI protocol (= Pd messages), where strings
that look like floats are converted to a float atom. When serializing
between FUDI strings and Pd atoms, the textual result is not
guaranteed to be the same for number atoms.


i see




the resulting output from [netreceive -u 3001] will be:

udp: "01 2 3 4 05.txt"

 Are you sure? Because I get

1 2 3 4 05.txt


yes, i am sure, at least for my system (Win7 / PD 0.51.4).
see attached .jpg.
(i'm getting the same truncations without the quotes btw.)



which is what I would expect. The float atoms are properly serialized
to their string representation (Pd doesn't remember the original
text!) and "05.txt" is actually a symbol.


is there any way to sent such a symbol untruncated using the methods
above,

 If you want to send it as a single symbol, that's possible, you just
have to escape the whitespace:

"01\ 02\ 0003\ 004\ 05.txt"


thank you very much, that was a pointer in the right direction !
i figured, since the white spaces by themselves where transmitted 
correctly, i wouldn't have to worry about them, but literally escaping 
white spaces within my .tcl script (by forcing a backslash before every 
white space) seems to do the trick !


best

oliver



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


[PD] symbols with zero paddings and spaces

2021-03-17 Thread oliver

hi, dear list !

when i try to send a symbol containing spaces AND numbers prepended by 
zeros with [pdsend], the zeros get truncated in unpredictable ways.


to see what i mean, please do the following:

1.) open the [netreceive] help patch
2.) open a console and try the following command:

== LINUX/OSX: ===

~$ echo "01 02 0003 004 05.txt" | /usr/bin/pdsend 3001 localhost udp

=== WINDOWS: 

echo "01 02 0003 004 05.txt" | "C:\Program Files\Pd\bin\pdsend.exe"  
3001 localhost udp


=

the resulting output from [netreceive -u 3001] will be:

udp: "01 2 3 4 05.txt"


the same is true if a symbol like this is sent from a .tcl script to a 
corresponding [receive] object in a PD patch

(using the "::pd_connect::pdsend" function).

is there any way to sent such a symbol untruncated using the methods 
above, other than transforming them first to ascii code numbers and send 
them as a list of numbers, using [list tosymbol] later in the "PD-world" 
to symbolize it?


thanks for all clarifications

oliver



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


Re: [PD] a barrel of fun: deken v0.7.1

2021-03-07 Thread oliver

IOhannes m zmölnig wrote:

Am 4. März 2021 23:11:33 MEZ schrieb oliver :

IOhannes m zmölnig wrote:





yes, it does so on startup of PD, not on opening the deken window




(hopefully) fixed in deken-0.7.2, available via deken.


YES ! thanks a lot !

best

oliver



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


Re: [PD] a barrel of fun: deken v0.7.1

2021-03-04 Thread oliver

IOhannes m zmölnig wrote:



on error-level 4 i also get this in the console:

Loading plugin: C:/Program Files/Pd/tcl/pd_deken.tcl
[deken]: platform detected: Windows-amd64-float32
Loading plugin: C:/Program Files/Pd/tcl/pd_docsdir.tcl
Loading plugin: C:/Program Files/Pd/extra/deken-plugin/deken-plugin.tcl
[deken] installed version [0.5.0] < 0.7.1...overwriting!
[deken] deken-plugin.tcl (Pd externals search) loaded from C:/Program 
Files/Pd/extra/deken-plugin.

[deken] Platform detected: Windows-amd64-float32---


does any of this worry you?



REST of message (like the others reported):



[...]


ah: so i take it, that the UNHANDLED ERROR appears when loading the 
plugin (and you merely posted the above lines to give context on when 
the error happens)?


yes, it does so on startup of PD, not on opening the deken window

SO you don't get all the nifty features but instead are left with the 
old rusty find externals?




as a matter of fact, i DO get the new "search for ..." options when i 
open the "find externals" window (despite of the startup error), but 
deken now doesn't find ANYTHING.


so no matter if i type "zexy" or "demux" or "shell" i get no result 
whatsoever.


only removing the deken-plugin and restarting PD reverts back to old 
working deken


best

oliver



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


Re: [PD] a barrel of fun: deken v0.7.1

2021-03-04 Thread oliver

same here ...

on error-level 4 i also get this in the console:

Loading plugin: C:/Program Files/Pd/tcl/pd_deken.tcl
[deken]: platform detected: Windows-amd64-float32
Loading plugin: C:/Program Files/Pd/tcl/pd_docsdir.tcl
Loading plugin: C:/Program Files/Pd/extra/deken-plugin/deken-plugin.tcl
[deken] installed version [0.5.0] < 0.7.1...overwriting!
[deken] deken-plugin.tcl (Pd externals search) loaded from C:/Program 
Files/Pd/extra/deken-plugin.

[deken] Platform detected: Windows-amd64-float32---



REST of message (like the others reported):



---
UNHANDLED ERROR: char map list unbalanced
while executing
"string map "@PD_PATH@ $::sys_libdir" $path"
(procedure "::deken::utilities::substpath" line 2)
invoked from within
"::deken::utilities::substpath $p "
(procedure "::deken::utilities::get_writabledir" line 3)
invoked from within
"::deken::utilities::get_writabledir [list $::deken::installpath
] "
(procedure "::deken::find_installpath" line 5)
invoked from within
"::deken::find_installpath"
(procedure "::deken::initialize" line 10)
invoked from within
"::deken::initialize"
invoked from within
"if { [::deken::versioncheck 0.7.1] } {

namespace eval ::deken:: {
namespace export open_searchui
variable winid
variable platform
var..."
("uplevel" body line 100)
invoked from within
"uplevel #0 $tclcode"
FAILED TO LOAD C:/Users/Utente/Documents/Pd/externals/deken-
plugin/deken-plugin.tcl
---



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




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


Re: [PD] Image from shader back to Gem

2021-02-15 Thread oliver




should we open a new category there ?
or maybe that already exists and i missed it ?
anybody else on this list that has some GEM shaders to share ?


lot's have already been send on this list!


i will recheck the archives.
still, i think a central spot on the web containing GEM-ready shaders 
would be great, instead of having to dig through mailing lists.


if i have the time and do some more research i guess i'll start one on 
github


i have the feeling that a lot of people using GEM "roll their own" 
shaders  (i, for one, did) and it would be a great thing to join 
forces, so one doesn't have to reinvent the wheel when looking for a 
simple "brightness/contrast" shader ...
funny, this one can be found in 
pd/help/browser/Gem/exemples/10.glsl/01.simple_texture.pd


haha, right. bad example ;-)
so make that "looking for a simple [threshold] shader" ...

it's quite easy to use shader from shadertoy, at least when it's a 
single pass rendering.


thanks, i will do some research

the resulting texture seems to be 1x1 dimension. i'm sure the error is 
somewhere in the .vert part.

or texturing mode (rectangular or not)


tried that already, but it must be something else.
anyway, thanks for all hints !

best

oliver



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


Re: [PD] Image from shader back to Gem

2021-02-15 Thread oliver

cyrille henry wrote:
What I understand from the original question was how to feed an image 
generated with a shader to pix_movement.

So one need an image, not a texture.
I'm afraid pix_snap is the only solution.


on a more general note:

it would be great to have something like a public [GEM-shader] archive, 
probably something like pdpatchrepo.info


should we open a new category there ?
or maybe that already exists and i missed it ?
anybody else on this list that has some GEM shaders to share ?

i have the feeling that a lot of people using GEM "roll their own" 
shaders  (i, for one, did) and it would be a great thing to join forces, 
so one doesn't have to reinvent the wheel when looking for a simple 
"brightness/contrast" shader ...


my own technical knowledge about shader scripting is close to 
non-existant, but i succeeded in adapting stuff found on the net, so 
that it loads as a shader in GEM. basic stuff only, mixers etc ...


since csaba's original post talks about cropping/rotating a texture 
created from a MATLAB shader (would be also great to share !), one 
possibility could be to feed this texture into another shader.


i tried my clumsy hands on a quick and dirty adaption of MAX's [rota] 
shader, and even though it loads succesfully, it's obviously wrong as 
the resulting texture seems to be 1x1 dimension. i'm sure the error is 
somewhere in the .vert part.


as i said, i got no deep insight into shader scripting, but maybe this 
can help somebody who has


best

oliver



Cheers
c

Le 15/02/2021 à 08:39, IOhannes m zmoelnig a écrit :

On 2/14/21 9:52 PM, Miller Puckette via Pd-list wrote:

I think the question is - within a shader, can you 'snap' an image to
a texture so that it doesn't have to go back and forth between the
GPU and CPU?  I'm curious too... I guess there must be a way to do 
this...



[pix_snap2tex]
or, preferably [gemframebuffer].

gfamsdr
IOhannes


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




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





--

/// http://pendler.klingt.org //
\\\ http://oliver.klingt.org  \\

/*
 *
 * Andrew Benson - andr...@cycling74.com
 * Copyright 2005 - Cycling '74
 *
 * GLSL vertex program for doing a standard vertex transform
 * with texture coordinates, also passing the texture dimensions to the 
fragment shader.
 *
 */

varying vec2 texcoord0;
varying vec2 texcoord1;

varying vec2 texdim0;
varying vec2 texdim1;

void main()
{
// perform standard transform on vertex
gl_Position = ftransform();

// transform texcoords
texcoord0 = vec2(gl_TextureMatrix[0] * gl_MultiTexCoord0);
texcoord1 = vec2(gl_TextureMatrix[1] * gl_MultiTexCoord1);
 
texdim0 = vec2 
(abs(gl_TextureMatrix[0][0][0]),abs(gl_TextureMatrix[0][1][1]));
//  texdim0 = vec2 
(abs(gl_TextureMatrix[1][0][0]),abs(gl_TextureMatrix[1][1][1])); // this was a 
royal fuckup :(
texdim1 = vec2 
(abs(gl_TextureMatrix[1][0][0]),abs(gl_TextureMatrix[1][1][1]));
}//setup for 2 texture
varying vec2 texcoord0;
varying vec2 texcoord1;
varying vec2 texdim0;
uniform vec2 zoom;
uniform vec2 offset;
uniform float theta; 
uniform vec2 anchor;
uniform int boundmode; 
uniform sampler2DRect tex0;
uniform sampler2DRect tex1;
const float pi=3.1415926;

void main()
{
// where is the point?
vec2 sizea = texdim0;
vec2 point = texcoord0;

//transormation matrices
mat2 sca = mat2 (1./zoom.x,0.,0.,1./zoom.y);//scaling matrix (zoom)
mat2 rot = mat2 
(cos(theta),sin(theta),-sin(theta),cos(theta));//rotation matrix

//perform transform
vec2 no = point-anchor*sizea)*rot)*sca)+anchor*sizea)+offset;

//create boundmodes
vec2 no2 = mod(no,sizea);//wrap 

vec2 no4 = 
mix(mod(no,sizea),sizea-mod(no,sizea),floor(mod(no,sizea*2.)/sizea));//folded 
coords

// sampler coord
vec2 tc = no*float(boundmode==0) + no*float(boundmode==1) + 
no2*float(boundmode==2) + no*float(boundmode==3) + no4*float(boundmode==4);


//sample textures
vec4 smp0 = texture2DRect(tex0,tc);
vec4 smp1 = texture2DRect(tex1,texcoord0);

vec2 outbound = sign(floor(no/sizea));//check for point>size
float boundchk = 
float(sign(float(outbound.x!=0.)+float(outbound.y!=0.)));
float checkm0 = float(boundmode==0)*boundchk;
float checkm1 = float(boundmode==1)*float(boundchk==0.);
vec4 ifb0 = mix(smp0,smp1,checkm0);//ignore
vec4 final = ifb0*float(boundmode != 1) + 
if

Re: [PD] ceammc error on windows

2021-02-12 Thread oliver

Christof Ressi wrote:

I have msys2 installed, but I temporarily renamed it.

I've checked the Pd external with Dependency Walker and the symbol 
you're missing is really present in the bundled stdlibc++-6.dll, so I 
have no idea what is going on your side...


ok, a little closer now

i fiddled with CEAMMC versions and version 0.7.1 (from 2019) was the 
only one that worked.


which version is yours ?

BTW: an impressive library !
i just checked the GUI section and it adds a lot of beautiful and 
elegant stuff to PD !


(even though it will make my own personal
GUI approaches obsolete pretty soon ;-)

the only thing bugging me ATM is that my cursor changes to an awkward 
looking upwards arrow when i touch a ceammc GUI.


not very handy, but i will check the linux versions.
but i would also love to check out newer versions on win.

i guess they might be WIN 10 only ? ...

best

oliver



On 12.02.2021 14:55, oliver wrote:

Christof Ressi wrote:
I had a look at the deken package. The 32-bit version is missing lots 
of libraries and consequently doesn't load. The 64-bit version, 
however, looks ok and it loads just fine (Windows 7)


that's strange.

it's not the first time you write this.
do you have a special windows 7 version ? ;-)

really, could it be possible that you (being a developer too) have 
more libraries available as part of your system than the average 
windows user ?




Are you running 32-bit or 64-bit Pd?



It's PD 0.51.4 actually and it's 64bit

the aforementioned error persists

best

oliver



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




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





--

/// http://pendler.klingt.org //
\\\ http://oliver.klingt.org  \\




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


Re: [PD] ceammc error on windows

2021-02-12 Thread oliver

Christof Ressi wrote:
I had a look at the deken package. The 32-bit version is missing lots of 
libraries and consequently doesn't load. The 64-bit version, however, 
looks ok and it loads just fine (Windows 7)


that's strange.

it's not the first time you write this.
do you have a special windows 7 version ? ;-)

really, could it be possible that you (being a developer too) have more 
libraries available as part of your system than the average windows user ?




Are you running 32-bit or 64-bit Pd?



It's PD 0.51.4 actually and it's 64bit

the aforementioned error persists

best

oliver



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


Re: [PD] ceammc error on windows

2021-02-12 Thread oliver

Christof Ressi wrote:
That's because they apparently dynamically link against libstdc++ (and 
probably also libgcc) but don't ship the DLL next to the external. 
That's a common problem with MinGW based software written in C++. 


actually those libraries are included in the ceammc folder, i'm not sure 
of course if they are the right ones, or if the linking is declared 
correctly


best

oliver



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


[PD] ceammc error on windows (was: list item picker widget)

2021-02-12 Thread oliver

Alexandre Torres Porres wrote:
Em qui., 11 de fev. de 2021 às 21:04, Alexandre Torres Porres 
mailto:por...@gmail.com>> escreveu:


  Maybe ceammc has one as it has an unbeatable/extraordinary GUI pack


  yeah, ui.menu :)


hi, on my machine i can't seem to load the CEAMMC library

WIN 7 / 64bit
PD 0.51.2
CEAMMC 0.9.1


on startup, when trying to load the library i twice get an error alert 
(see attachment)



in the PF console i get:

C:\Program Files\Pd\extra\ceammc\ceammc.m_amd64: couldn't load




best

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


[PD] hexadecimal conversion problem

2021-01-19 Thread oliver

hi,

i'm trying to convert arbitrary hexadecimal numbers to decimal ones, 
preferably with vanilla objects.


while it's easy to do it the other way round with [makefilename], i'm 
facing a peculiar problem from hex --> dec when the letter E is present 
and followed by a number.


my approach would be to take a hex number, interpret it as a symbol, get 
each hex-digit's ascii value, and do the conversion from there


let's take the hex number 27E5 as an example

no matter what sort of conversion i try ([symbol], [list tosymbol], 
[makefilename], [fudiformat]), PD always interprets it as a decimal 
number with an exponent, so


[27E5(
|
makefilename %s
|
[print]

will give me "symbol 2.7e+006" in the console (or in a symbol atom).

(of course a number like 27A5 or 275E expands with no problem to a 
straight symbol and can then be ascii-fied)


is there anything i can do to make PD take 27E5 as a literal symbol 
rather than a float ?


best

oliver

--

/// http://pendler.klingt.org //
\\\ http://oliver.klingt.org  \\




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


Re: [PD] unicode symbols and Pd

2021-01-17 Thread oliver

Alexandre Torres Porres wrote:
Em dom., 17 de jan. de 2021 às 17:42, IOhannes m zmölnig 
mailto:zmoel...@iem.at>> escreveu:


you need to convert the unicode codepoint to utf8.


just wondering, how can you do that? :)


i did a little research (there are most likely better/easier ways):



unicode code point (U+) to Hex UTF-8 bytes:

http://www.ltg.ed.ac.uk/~richard/utf-8.cgi?input=8983=decimal

(make sure you select "Interpret as: decimal code point" below !



hexadecimal to decimal:

https://www.rapidtables.com/convert/number/hex-to-decimal.html

or roll your own hex2dec with PD-vanilla ;-)

====

best

oliver



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


Re: [PD] unicode symbols and Pd

2021-01-17 Thread oliver


works for me, but the  VIEWDATA SQUARE (U+2317) is not the "right" 
symbol for sharp https://www.compart.com/en/unicode/U+2317 you actually 
want this one instead => https://www.compart.com/en/unicode/U+266F


sorry, i wasn't clear there. i didn't mean a literally (musical) sharp 
but a simple diamond, as ingo in his first mail wanted to have printed 
on a canvas or any other PD GUI.


neither of our approaches is a "real" sharp/diamond/hash key/pound 
key/raute ... (= ASCII 35), but just a workaround to visually achieve 
what's not possible ATM in PD itself




[list fromsybol] gives me "226 153 175" for this character, please try it.


thanks, yeah ! great to have a real musical sharp here !

best

oliver



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


Re: [PD] unicode symbols and Pd

2021-01-17 Thread oliver

IOhannes m zmölnig wrote:

On 1/17/21 7:40 PM, oliver wrote:




you need to convert the unicode codepoint to utf8.
for the unicodepoint 8983, the utf-8 sequence is "232 166 131".
feeding this sequence to [list tosymbol] will give you "覃" (which is 
think is what you want)


wow, thanks, that's great news !

still, that's not the desired symbol, i think there's been a 
decimal/hexadecimal mismatch of the unicode code point ...


anyway, the right utf-8 sequence for "VIEWDATA SQUARE"
would be "226 140 151", see attached patch.




i'm honestly baffled by this discussion.
afaik we have a working unicode implementation in Pd for more than 10 
years.

what's the buzz, tell me what's a-happening...




(... why wold you want to know ... ;-))

it's the difference between the representation of the sharp symbol in 
symbol canvas vs. GUI canvas, where the sharp symbol is printed as a 
dollar sign.


attached is example image and patch, plus utf-8 solution !

best

oliver
#N canvas 755 238 729 257 12;
#X msg 196 38 35;
#X obj 196 65 makefilename C%c;
#X symbolatom 197 166 10 0 0 0 - - -;
#X obj 85 166 print C-sharp;
#X obj 288 168 hradio 15 1 0 8 empty empty C$ 0 40 0 50 -262144 -1
-258113 0;
#X msg 288 134 label \$1;
#X text 238 38 ASCII;
#X obj 460 62 list tosymbol;
#X symbolatom 460 89 10 0 0 0 - - -;
#X msg 460 34 226 140 151;
#X text 549 35 utf-8 code sequence;
#X obj 460 115 makefilename C%s;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 1 0 3 0;
#X connect 1 0 5 0;
#X connect 5 0 4 0;
#X connect 7 0 8 0;
#X connect 8 0 11 0;
#X connect 9 0 7 0;
#X connect 11 0 5 0;
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] unicode symbols and Pd

2021-01-17 Thread oliver

Ingo wrote:

[8983( works for me on Windows7 64-bit with Pd 0.51.1.


that's really strange. can somebody else confirm this ?
i tested it (on this very system) and i got the result i just posted 
before ...



It doesn't work with Debian 9.5 32-bit with 0.49.


try updating PD with either BACKPORTS enabled in your apt sources list

https://backports.debian.org/Instructions/

or try a "testing" version of DEBIAN, then you should get PD 0.51. on 
LINUX too.




best

oliver



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


Re: [PD] unicode symbols and Pd

2021-01-17 Thread oliver




BTW, I just tried replacing the pound sign [35( with unicode [8983( which is a
pound sign for telephones.
This works on the current Pd 0.51


how so ?

on my machines (win, debian) ASCII code is still wrapped between 0 and 
255, like always. so sending ASCII 8983 to [list tosymbol] outputs the 
same result as ASCII 23. (I'm on PD 0.51.2)


BTW, i use ASCII 164 as a (well, rather unsatisfying) replacement for 
ASCII 35 (diamond).


And yes, I agree it would be great if canvases would allow this 
character to be displayed correctly.


best

oliver



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


Re: [PD] [PD-announce] ELSE 1.0-0 Beta 36 with Tutorial + Camomile Support

2020-12-29 Thread oliver

dearest congrats !

Alexandre Torres Porres wrote:
the new

"pd-forward" message (introduced in Pd 0.51-2)


can you elaborate ?

what does this message do ?
i can't ssem to find any documentation about it ...

best

oliver









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


Re: [PD] decreasing order from 10 numbers

2020-12-16 Thread oliver

Csaba Láng wrote:

Dear list,

I need to make a decreasing order from 10 different numbers.
Namely, I have 10 people doing something finishing in different times, 
and I would like to display their ranking in a decreasing order.

Is it possible to create such an order in Pd?
Any clues are welcome.


many possible ways:

1.) VANILLA: [text define] and the [sort( message
(but as of PD.0.51 you have to take care for the descending order 
manually after sorting)

2.) [list-sort] from the [LIST-ABS] abstractions
3.) [sort] from the [ZEXY] library

best

oliver



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


Re: [PD] ISO works combining PD and sculpture

2020-10-27 Thread Jaime Oliver
I did this one a couple of years ago:
http://www.jaimeoliver.pe/caracoles-iv-2018

On Mon, Oct 26, 2020 at 5:16 PM hans w. koch  wrote:

> i did quite a few (and counting):
> mengenlehre: https://www.youtube.com/watch?v=M7CfOGga8gU
> clock of fifths (app version,made with mobmuplat):
> https://www.youtube.com/watch?v=l0V57rxAJoA
> clock of fifths (installation):
> https://www.youtube.com/watch?v=I6ef9XVDf9U
> shanti: https://www.youtube.com/watch?v=jxhYZCgtVgg
>
> hth, best
>
> hans
>
> > Am 26.10.2020 um 20:54 schrieb bbob :
> >
> > for my students, I'm looking for examples of work that combines PD and
> sculpture (or installations)... i've got a few of the obvious
> pd-sequencer-triggering-drum-solenoids to show them, what else?  links to
> artist sites &/or videos appreciated.
> > ___
> > Pd-list@lists.iem.at mailing list
> > UNSUBSCRIBE and account-management ->
> https://lists.puredata.info/listinfo/pd-list
>
>
>
>
> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
> https://lists.puredata.info/listinfo/pd-list
>


-- 
**
Jaime E Oliver LR
www.jaimeoliver.pe
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] audio interface with multiple outs on raspberry pi

2020-10-09 Thread oliver

IOhannes m zmoelnig wrote:



the interesting question really is: can anybody recommend audio 
interfaces that they have *successfully worked with on the RPi2/RPi3* 
hardware platforms.


hi, once again, for completion:

i used those with RPI2/RPI3 models:

https://www.esi-audio.com/products/maya44usb+/
https://www.esi-audio.de/produkte/gigaporthd+/


no tweaks needed.

i just supported those audio devices with a powered hub, just to be on 
the safe side


best

oliver



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


Re: [PD] audio interface with multiple ins on raspberry pi

2020-10-05 Thread oliver

Chris McCormick wrote:

Hey all,

Same question as the previous poster but I was wondering about inputs 
rather than outputs. Ideal solution:


  * USB.
  * Low cost.
  * More than 2 channels in.
  * Headphone sized jacks.
  * Works with Raspberry Pi

https://www.esi-audio.com/products/maya44usb+/

you should also be able to find its predecessor "maya44usb" on ebay etc. 
 for about 30$ (but this one has just cinch plugs.)


i used it recently in an installation and it worked very fine. also low 
on the CPU


Best

oliver





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


Re: [PD] audio interface with multiple outs on raspberry pi

2020-10-05 Thread Jaime Oliver
do you remember what model they were? I've had bad luck with 7.1
interfaces... did they have any inputs?
best,
J

On Mon, Oct 5, 2020 at 10:29 AM Miller Puckette via Pd-list <
pd-list@lists.iem.at> wrote:

> Yep.  Three were Pi 1s which I think couldn't have powered more than one
> interface.  I thin kyou could hang two or more off a Pi 4, but there won't
> be any way to sync the audio so you'll want to run separate instences of Pd
> or else enjoy the occasional audio resync-click.
>
> cheers
> M
>
> On Mon, Oct 05, 2020 at 08:13:17AM +0200, Peter P. wrote:
> > * Miller Puckette via Pd-list  [2020-10-02 17:31]:
> > > I've used startech "7.1" interfaces (USB powered) with Pis.  The "1"
> is the
> > > same electronics as teh "7" - it's really just an 8ch output.  It has
> 1/8"
> > > connectors which won't age well but it's only $25 or so.  I ended up
> > > buying 5 for an installation.
> > Running on different Pis I assume?
> >
> > thanks, P
> >
> >
> >
> > ___
> > Pd-list@lists.iem.at mailing list
> > UNSUBSCRIBE and account-management ->
> https://urldefense.com/v3/__https://lists.puredata.info/listinfo/pd-list__;!!Mih3wA!VnZuVVXsrhgxSPo3WUA4M_oEJAB_sk5Wq8pYIS6gRL6yrkpyVG_kTZAu6JAQ$
>
>
>
> _______
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
> https://lists.puredata.info/listinfo/pd-list
>


-- 
**
Jaime E Oliver LR
www.jaimeoliver.pe
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] mkdir in motex/system

2020-10-02 Thread oliver

Patrice Colet wrote:


Hello, meanwhile there is hcs/sys_gui for executing TCL commands, since TCL is 
native, there are no dependences, there you have exec or open system commands.

https://www.tcl.tk/man/tcl8.5/tutorial/Tcl26.html



well, i never had too much success with [sys_gui] using the "exec" command

"mkdir", for one, does not work, or at least i can't get it to work. 
(maybe i am using it wrong).


i'm sending

[exec mkdir D:\\test(

but nothing happens.


BUT: what [sys_gui] CAN do, though, is to execute a .bat file (which in 
most cases i prefer to use anyway since i can reliably test the outcome)


so, thanks for the reminder

(and it outputs a bang after completion, too ;-))

best

oliver




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


Re: [PD] audio interface with multiple outs on raspberry pi

2020-10-02 Thread oliver

Jakob Laue wrote:

Dear 0xFFriends,
I am looking for an usb audio interface that has at least 8 outputs so 
that I can have at least 4 stereo outputs from within pd. The challenge: 
I am on a raspberry pi (2 and 3). Does someone of you know about an 
audio interface that supplies this number of outputs AND works with a raspi?


i used the "ESI Gigaport HD+ 8-Output" in a sound installation, and that 
was rock solid. worked even on a RPI 2 (out of the box as far as i remember)


you might want to consider an external power supply (an active usb hub) 
for the soundcard. and (since i was streaming an 8 channel wav file with 
[readsf~] i had to increase PD's audiobuffer and the playback blocksize 
for smooth playback (i put [readsf~] into a subpatch and used [block~ 
2048 1 1] to achieve that - if i remember correctly).


Or is it possible to buy 4 cheap audio interfaces with 2 outputs each 
and use the simultaneously?


I would strongly advise against that

Best

Oliver



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


Re: [PD] mkdir in motex/system

2020-10-02 Thread oliver

Raphael Isdant wrote:
The ceammc library have a [system.exec] object which can run external 
command in separate process with output for every OS.





hi, just tried it on PD 0.51.2 (64bit), Windows 7

i can't seem to load this library

"C:\Program Files\Pd\extra\ceammc\ceammc.m_amd64: couldn't load"

what is your system / PD version ?



Best

Oliver



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


Re: [PD] Concatenating two atoms into one?

2020-10-01 Thread oliver

IOhannes m zmoelnig wrote:

On 2020-10-01 09:22, hans w. koch wrote:

but be aware of the risks of invoking makefilname all too often.


note that if you use dollsyms (as in `[$1$2(`) you are filling up the
symbol table just as well.


i was just about to ask, if the attached modified patch would avoid that 
problem, but you replied already.


could you please clarify the used term "invoke" a bit ?
i guess the number of [makefilename] objects isn't the problem, but how 
much/often its conversion mechanism is used, right ?


does that mean that everytime a number->symbol conversion happens 
(regardless how it is done) the symboltable is filled and will 
eventually slow down or crash PD ?


so, as a live example: writing number values to GUI labels dynamically 
is a potentially dangerous thing ? what's the threshold there ?


or is there any way to clear the symboltable ?

sorry for my noob questions ... just a little concerned right now as i 
use this feature quite often ...


thanks for any insight !

best

oliver


#N canvas 601 150 479 319 12;
#X obj 31 53 hsl 128 15 1 4 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 0 0;
#X obj 178 53 hsl 128 15 1 4 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 0 0;
#X obj 175 76 t b f;
#X obj 349 54 loadbang;
#X msg 349 81 1;
#X text 345 28 initialize it;
#X obj 28 73 int;
#X floatatom 46 106 5 0 0 0 - - -;
#X text 27 23 VANILLA:;
#X obj 207 100 int;
#X obj 28 140 pack f f;
#X msg 28 167 symbol \$1\$2;
#X obj 28 193 float;
#X obj 28 217 change;
#X obj 28 244 print NO REPEATS;
#X connect 0 0 6 0;
#X connect 1 0 2 0;
#X connect 2 0 0 0;
#X connect 2 1 9 0;
#X connect 3 0 4 0;
#X connect 4 0 9 0;
#X connect 6 0 7 0;
#X connect 6 0 10 0;
#X connect 9 0 10 1;
#X connect 10 0 11 0;
#X connect 11 0 12 0;
#X connect 12 0 13 0;
#X connect 13 0 14 0;
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Concatenating two atoms into one?

2020-10-01 Thread oliver

jayrope wrote:

Hello list,
I want to combine integer values from two sources into ONE new value,
preferably a number, just like

Source 1 sends 1, source 2 sends 1, result = 11
Src 3 sends 3, src 2 sends 8, result = 38


hi, here's my approach using [makefilename]

best

oliver
#N canvas 601 150 479 526 12;
#X obj 31 53 hsl 128 15 1 4 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 10600 0;
#X obj 178 53 hsl 128 15 1 4 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 12700 0;
#X obj 28 212 float;
#X symbolatom 48 176 10 0 0 0 - - -;
#X obj 175 76 t b f;
#X obj 28 236 change;
#X obj 28 263 print NO REPEATS;
#X obj 349 54 loadbang;
#X msg 349 81 1;
#X text 345 28 initialize it;
#X obj 28 73 int;
#X floatatom 46 106 5 0 0 0 - - -;
#X obj 28 144 makefilename;
#X text 27 23 VANILLA:;
#X msg 207 125 set %d\$1;
#X obj 207 100 int;
#X text 136 154 see helpfile for [makefilename] ("multiple substitutions")
, f 32;
#X connect 0 0 10 0;
#X connect 1 0 4 0;
#X connect 2 0 5 0;
#X connect 4 0 0 0;
#X connect 4 1 15 0;
#X connect 5 0 6 0;
#X connect 7 0 8 0;
#X connect 8 0 15 0;
#X connect 10 0 11 0;
#X connect 10 0 12 0;
#X connect 12 0 3 0;
#X connect 12 0 2 0;
#X connect 14 0 12 0;
#X connect 15 0 14 0;
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Helvetica Font in Debian 9.5 - Location?

2020-09-29 Thread oliver

Alexandre Torres Porres wrote:
oh, and the workaround so far is that you can set a label without spaces 
via a message to access the properties windows back in the meantime ;)


Another workaround to consider is to replace a normal space with a 
non-breaking space (ASCII 160)


as a matter of fact there are several characters that are problematic 
for Tcl/Tk related objects (such as all vanilla GUI objects but also 
externals like "menubutton" etc.) and will produce an error message when 
you save/reopen a patch or try to edit it's properties.


as a personal "helper" i made myself a "TCL/TK save" patch to throw in 
before creating a label for a GUI, that exchanges all of those 
problematic characters with save ones. (see attachemnt).


of course this is only good for optical usecases (as it actually would 
also alter filenames etc.). it's really just a workaround and doesn't 
solve the underlying problem with Tcl/Tk


best

oliver
#N canvas 122 85 665 595 10;
#X obj 30 35 inlet;
#X obj 407 529 outlet;
#X obj 24 35 cnv 5 5 17 empty empty empty 20 12 0 14 -118750 -66577
0;
#X obj 401 529 cnv 5 5 17 empty empty empty 20 12 0 14 -102336 -66577
0;
#X obj 30 146 list;
#X obj 30 290 list store, f 13;
#X obj 30 195 until;
#X obj 30 221 f, f 7;
#X obj 92 221 + 1;
#X msg 30 264 get \$1 1;
#X obj 73 196 0;
#X obj 30 366 list fromsymbol;
#X obj 30 318 route symbol float;
#X obj 48 342 makefilename %s;
#X obj 30 243 t f f;
#X obj 30 503 list store, f 19;
#X obj 30 478 list trim;
#X obj 30 455 list prepend append;
#X obj 96 389 spigot;
#X obj 30 389 t l b, f 9;
#X obj 30 170 t b b a b, f 19;
#X obj 187 268 list store, f 14;
#X obj 187 196 until;
#X obj 187 220 f;
#X obj 228 220 + 1;
#X msg 187 245 get \$1 1;
#X msg 228 196 0;
#X text 219 150 list drip;
#X obj 407 464 list store, f 13;
#X obj 407 443 list trim;
#X obj 187 170 t b b l b, f 20;
#X symbolatom 505 18 10 0 0 0 - - -;
#X obj 505 32 list fromsymbol;
#X floatatom 505 49 5 0 0 0 - - -;
#X text 190 24 some characters are not allowed by PD \, some produce
a Tcl/Tk error., f 38;
#X text 455 297 36 (dollar);
#X text 191 84 91 (open bracket);
#X text 192 104 93 (close bracket);
#X text 192 114 123 (open brace);
#X text 192 124 125 (close brace);
#X msg 96 421 160;
#X text 130 413 non-breaking space, f 9;
#X text 324 65 replacement:;
#X text 192 66 original:;
#X obj 407 421 list prepend append;
#X msg 271 321 171;
#X msg 301 321 187;
#X msg 241 321 23;
#X text 545 298 35 (diamond);
#X text 455 269 34 (quote);
#X text 206 378 166 (dotted straight line);
#X text 325 84 25;
#X text 325 104 23;
#X text 325 124 187 (>>);
#X text 326 114 171 (<<);
#X text 455 283 35 (diamond);
#X text 545 283 164;
#X obj 407 488 list tosymbol;
#X obj 362 293 spigot 1;
#X obj 407 330 spigot;
#X obj 407 266 == 0;
#X obj 407 240 t f f, f 6;
#X text 455 208 0 = for symbols or internal useage), f 19;
#X obj 407 353 select 34 35 36;
#X msg 467 377 35;
#X msg 437 377 164;
#X msg 407 377 168;
#X text 456 241 1 = for canvas labels, f 25;
#X text 545 269 168;
#X msg 407 215 1;
#X msg 330 321 160;
#X text 355 322 !!!;
#X obj 407 188 loadbang;
#X msg 214 321 25;
#X msg 185 321 166;
#X text 188 347 |;
#X text 188 340 |;
#X obj 187 293 select -92 91 93 123 125 32;
#X text 182 364 was:92 (backslash);
#X text 20 6 anything in;
#X text 456 523 symbol with Tcl/Tk save characters out, f 20;
#X text 183 453 but since PD 0.51 backslashes are possible \, so no
need to escape them anymore, f 30;
#X connect 0 0 4 0;
#X connect 4 0 20 0;
#X connect 5 0 12 0;
#X connect 5 1 6 1;
#X connect 5 1 15 0;
#X connect 6 0 7 0;
#X connect 7 0 8 0;
#X connect 7 0 14 0;
#X connect 8 0 7 1;
#X connect 9 0 5 0;
#X connect 10 0 7 1;
#X connect 11 0 19 0;
#X connect 12 0 11 0;
#X connect 12 1 13 0;
#X connect 13 0 11 0;
#X connect 14 0 9 0;
#X connect 14 1 18 1;
#X connect 15 0 30 0;
#X connect 16 0 15 0;
#X connect 17 0 16 0;
#X connect 18 0 40 0;
#X connect 19 0 17 0;
#X connect 19 1 18 0;
#X connect 20 0 6 0;
#X connect 20 1 10 0;
#X connect 20 2 5 1;
#X connect 20 3 15 1;
#X connect 21 0 77 0;
#X connect 21 1 22 1;
#X connect 21 1 28 0;
#X connect 22 0 23 0;
#X connect 23 0 24 0;
#X connect 23 0 25 0;
#X connect 24 0 23 1;
#X connect 25 0 21 0;
#X connect 26 0 23 1;
#X connect 28 0 57 0;
#X connect 29 0 28 0;
#X connect 30 0 22 0;
#X connect 30 1 26 0;
#X connect 30 2 21 1;
#X connect 30 3 28 1;
#X connect 31 0 32 0;
#X connect 32 0 33 0;
#X connect 40 0 17 0;
#X connect 44 0 29 0;
#X connect 45 0 44 0;
#X connect 46 0 44 0;
#X connect 47 0 44 0;
#X connect 57 0 1 0;
#X connect 58 0 44 0;
#X connect 59 0 63 0;
#X connect 60 0 58 1;
#X connect 61 0 60 0;
#X connect 61 1 59 1;
#X connect 63 0 66 0;
#X connect 63 1 65 0;
#X connect 63 2 64 0;
#X connect 63 3 44 0;
#X connect 64 0 44 0;
#X connect 65 0 44 0;
#X connect 66 0 44 0;
#X connect 69 0 61 0;
#X connect 70 0 44 0;
#X connect 72 0 69 0;
#X connect 73 0 44 0;
#X connect 77 0 74 0;
#X connect 77 1 73 0;
#X connect 77 2 47 0;
#X c

Re: [PD] multichannel vs many stereo writesf objects?

2020-09-28 Thread Jaime Oliver
Hola Fede,

I have now turned to recording stuff in ardour using JACK, thereby
relieving Pd from spending any resources writing files.

best,

J

On Mon, Sep 28, 2020 at 1:00 PM Fede Camara Halac 
wrote:

>
> Hi,
>
> What is more efficient for recording, say, a +15 minute 16 channel
> performance: a single writesf with 16 channels or 8 writesf object with 2
> channels each?
>
> Bonus question: What if I place a stereo writesf inside a patch and run 8
> separate pd~ objects?
>
> The context: recording network performance using Netty McNetface. This is
> why I'm trying to reduce as much processing from the main patch while
> staying within pd-land. (Routing multichannel audio out to another daw
> would be an option that I'm not considering right now)
>
> Thanks!
>
> f
> fdch.github.io
>
>
> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
> https://lists.puredata.info/listinfo/pd-list
>


-- 
**
Jaime E Oliver LR
www.jaimeoliver.pe
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] mkdir in motex/system

2020-09-27 Thread oliver

Christof Ressi wrote:

but all I get is error messages

Would you mind sharing the error messages? ;-)


i guess what christof is pointing at is that [system] doesn't give us 
any error messages at all ;-)


([system] is avery minimalist object, as far as i can guess from a look 
at the source code).


@David:

you have to use double backslashes as path seperators. single 
backslashes are just used to escape special characters in PD.


so, to create a directory called my_temp on partition D, you would write:

[mkdir D:\\my_temp(
|
[system]

Your OS version would be

helpful as well.


must be windows, right ?
i don't think [system] even loads in OSX or LINUX

best

oliver




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


Re: [PD] Folder/ directory creation

2020-09-23 Thread oliver

On 2020-09-23 11:52, David Schaffer wrote:

Hi !

 I was looking for a way to get pd to create a folder in Windows and
couldn’t find one. Since every major programming language out there
has a way to interact with the file system, I assume I’m missing
Something. Can you pont me to the right direction ?




the object you are looking for is [system] from the MOTEX library

best

oliver



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


Re: [PD] Fixed: menubutton bug ...

2020-09-14 Thread oliver

Alexandre Torres Porres wrote:
Hi, right clicking on menubutton doesn't work for showing 
"properties/help" options. It seems this never worked.





it does work alright. just tested it.

it's just a very thin frame (what you might consider [menubotton]'s 
border - probably only 1 pixel wide) around the GUI that you have to hit 
to make the context menu appear.


best

oliver



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


Re: [PD] menubutton bug ...

2020-09-12 Thread oliver

Lucas Cordiviola wrote:

Hi Oliver :)

How about reporting to Fred at https://github.com/electrickery/pd-tof/issues



Hi, Lucas !

Thanks for the heads up ! Just did !


Best

Oliver



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


[PD] menubutton bug ...

2020-09-11 Thread oliver

Hi,

i just discovered a bug in the [menubutton] object of the TOF library, 
in version 0.2.2



if you send a float to the [menubutton] object to recall an item by 
index (or also if you just want to "set" it with a float), it is always 
interpreted as 0, no matter what the sent number was.


on the other hand, symbols work, also with the "set" method.

this bug wasn't there in TOF version 0.2.1, i checked it on PD 0.48 
through 0.51 (both 32 and 64 bit versions)



best

oliver


--

/// http://pendler.klingt.org //
\\\ http://oliver.klingt.org  \\

#N canvas 565 344 459 314 12;
#X obj 41 236 tof/menubutton 124 25 empty empty 0 grey90 black grey95
black -1;
#X obj 41 271 print;
#X msg 99 162 2;
#X text 169 103 works;
#X msg 56 89 symbol tre;
#X text 154 175 doesn't work;
#X obj 41 23 loadbang;
#X msg 41 58 clear \, add uno due tre quattro;
#X msg 103 192 set 3;
#X msg 68 117 set quattro;
#X text 186 238 TOF v 0.2.2.;
#X connect 0 0 1 0;
#X connect 2 0 0 0;
#X connect 4 0 0 0;
#X connect 6 0 7 0;
#X connect 7 0 0 0;
#X connect 8 0 0 0;
#X connect 9 0 0 0;
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] pd~ binary for max/msp - version 0.5 released

2020-09-09 Thread oliver

João Pais wrote:
a new question: I have a german windows, but I prefer to have Pd in 
english. For that, I use a batch script with "set LANG=en" when starting 
Pd. Is that somehow possible with pd~, or it will always follow the OS 
language?


zip and/or remove the "po" folder in PD's main folder

(that's how i do it anyway ...)

best

oliver



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


Re: [PD] Create new directory from patch

2020-08-30 Thread oliver

William Brent wrote:

Hi all,

Can anyone share a strategy for triggering creation of a new directory 
that works on Linux, Mac OS, and Windows? I've been using mkdir commands 
via [shell] for Linux and Mac, but don't know of an option for Windows.





[system] from the MOTEX library
(unfortunately there's no [shell] on windows)

it's quite basic and does no error report, but it works (still). thanks 
to PD now admitting backslashes can be used easily if used carefully


try something like [dir D:\Temp > D:\dir_result.txt(
or (in your case) [mkdir D:\testdir(

(or any other harddrive letter or directory.
"D" is just my personal data partition,
so i'm not messing around on my system partition)

best

oliver



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


Re: [PD] Yin algorithm

2020-07-12 Thread Jaime Oliver
Yes. I thought yin was autocorrelation. In any case, it is "similar"?
Hope you're well!
J

On Sun, Jul 12, 2020, 2:27 PM katja  wrote:

> Jaime do you refer to [helmholtz~]
> (www.katjaas.nl/helmholtz/helmholtz.html)? This uses a time domain
> method, but based on normalized autocorrelation whereas yin uses
> differences if I remember well.
>
> On 7/12/20, Jaime Oliver  wrote:
> > Katja Vetter has a similar one.
> > Best,
> > J
> >
> > On Sun, Jul 12, 2020, 11:18 AM Vinicius Cesar
> > 
> > wrote:
> >
> >> Hi everybody,
> >>
> >> Does anyone know if there's any implementation of yin algorithm for
> >> fundamental frequency estimation in PD?
> >>
> >>
> >> Akk the best,
> >>
> >> Vinicius
> >> ___
> >> Pd-list@lists.iem.at mailing list
> >> UNSUBSCRIBE and account-management ->
> >> https://lists.puredata.info/listinfo/pd-list
> >>
> >
>
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Yin algorithm

2020-07-12 Thread Jaime Oliver
Katja Vetter has a similar one.
Best,
J

On Sun, Jul 12, 2020, 11:18 AM Vinicius Cesar 
wrote:

> Hi everybody,
>
> Does anyone know if there's any implementation of yin algorithm for
> fundamental frequency estimation in PD?
>
>
> Akk the best,
>
> Vinicius
> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
> https://lists.puredata.info/listinfo/pd-list
>
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Gem 0.94 on Windows ? ...

2020-07-10 Thread oliver

Christof Ressi wrote:
What are your specs ? 
I have a Thinkpad L440 with integrated Intel graphics. Windows 7. K-Lite 
codec pack (I think "mega"): https://codecguide.com/


Hi, dear all !

Coming back here after all, because i really think this needs being 
fixed if "Gem" wants to be usable in the windoze world:


Just tried PD 0.51 / Gem 0.94 / K-lite mega codec pack on a new and 
truly dedicated Win10 machine.


Bottom line is:

Only "homer.avi" works for video-playback, all other formats (mjpeg, ut, 
x264, mpeg etc.) will produce 1 frame and then freeze (= crash) PD.


the example clip "homer.avi" was encoded very long ago with the "indeo" 
codec, which has been discontinued officially since 2009 (so, the k-lite 
codec pack doesn't even come to play here). not even ffmpeg could encode 
a "indeo" video these days, let alone at any decent size.


Best

Oliver






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


Re: [PD] exiting edit mode ...

2020-06-25 Thread oliver

On 2020-06-25 13:05, Dan Wilcox wrote:

As with most things, that sounds like a bug.

What's missing is the info on the platform you are using. As you write
"CTRL+E" I assume it's Windows.




It's also on LINUX (Debian Buster with PD 0.51), i tested both 
platforms.


(I use "CTRL" as a shorthand for Strg, Command, Apple etc. just to make 
clear it's not "Shift" or "Alt")


Unfortunately i haven't got a Mac at hand to test there, but i assume 
it's the same there, and that's a regression from PD 0.48




Best

Oliver



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


[PD] exiting edit mode ...

2020-06-24 Thread oliver

hi,

recently i had the feeling that i had to do CTRL+E more often than i 
used to to get out of edit mode.


on a version comparison, i found out that this is actually true.

since PD 0.50 (or was this already introduced in 0.49 ?), when you enter 
edit mode to f.e. type something into a message box, you have to exit 
the edit mode twice:


once to leave the message box, and once to exit edit mode.

i compared this behaviour with PD 0.48, where hitting CTRL+E after 
editing a message box did both things at once (which is much more fluid 
and the behaviour that i would personally prefer).


is this ("new") behaviour intended and
what is the reasoning behind this ?

best

oliver


--

/// http://pendler.klingt.org //
\\\ http://oliver.klingt.org  \\




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


Re: [PD] [expr] - fmod weirdness

2020-06-22 Thread oliver

Christof Ressi wrote:


Your "handmade" version is flawed, e.g. with "4.0002" I get 0.00019.

Just round the output of [expr fmod] to as many fractional digits as you 
need, e.g. [* 1] -> [+ 0.5] -> [int] -> [/ 1] for 4 digits.


BTW, instead of [expr fmod] you can also do [/] -> [wrap] -> [*].


thanks christof, your help is as always spot-on and foolproof !

yes, that's the method i was looking for.

works 100.1% ! ;-)



Also note that the behavior of fmod regarding negative numbers is 
implementation specific, e.g. on my system fmod(-0.1, 1) yields -0.1 
(note the negative sign!). On the other hand, [wrap] will *always* yield 
0.9 (which I think is also what you would expect).




right again of course !

thanks once more, that hint took care of another problem i encountered.

best

oliver






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


[PD] [expr] - fmod weirdness

2020-06-22 Thread oliver

hi,

i just stumbled upon a problem when i tried to use [expr fmod] to 
produce a modified [wrap] object that should be able to produce a float 
wrapped around an arbitrary limit (not just 1 as in vanilla's [wrap])


i know that there are many ways to do this but i tried the [expr] way 
and noticed something weird (not sure if that's a bug, though):



i am getting "inconsistent" results from the [expr] object.
whereas if i'm cranking out a "handmade" version, the results are what 
they are supposed to be.


i attached the patch that shows the problem

is this a single / double precision case ?



best

oliver

--

/// http://pendler.klingt.org //
\\\ http://oliver.klingt.org  \\

#N canvas 221 50 560 502 10;
#X obj 66 329 expr fmod($f1 \, $f2);
#X msg 66 259 4.001;
#X obj 177 278 loadbang;
#X msg 177 301 4;
#X msg 66 235 4.0001;
#X msg 66 281 4.01;
#X msg 66 214 4.1;
#X obj 66 384 print console;
#X floatatom 80 359 10 0 0 0 - - -, f 10;
#X msg 66 170 4.1;
#X msg 326 257 4.001;
#X msg 326 233 4.0001;
#X msg 326 279 4.01;
#X msg 326 212 4.1;
#X msg 326 166 4.1;
#X obj 326 350 %, f 17;
#X obj 425 213 loadbang;
#X msg 425 236 4;
#X obj 326 427 print console;
#X floatatom 340 402 10 0 0 0 - - -, f 10;
#X text 72 103 with expr:;
#X text 340 101 with vanilla objects:;
#X text 206 7 FLOAT MODULO:;
#X text 147 35 TASK: make float numbers wrap at 4;
#X text 191 55 compare the results:;
#X text 63 411 inconsistent results;
#X msg 66 142 4.5;
#X text 99 141 no problem with this one;
#X text 123 213 from here on it gets weird;
#X obj 326 326 * 10;
#X obj 425 325 * 10;
#X msg 326 141 4.5;
#X obj 326 373 / 10;
#X text 324 449 expected results;
#X text 99 162 should produce 0.1 \, but doesn't, f 17;
#X connect 0 0 7 0;
#X connect 0 0 8 0;
#X connect 1 0 0 0;
#X connect 2 0 3 0;
#X connect 3 0 0 1;
#X connect 4 0 0 0;
#X connect 5 0 0 0;
#X connect 6 0 0 0;
#X connect 9 0 0 0;
#X connect 10 0 29 0;
#X connect 11 0 29 0;
#X connect 12 0 29 0;
#X connect 13 0 29 0;
#X connect 14 0 29 0;
#X connect 15 0 32 0;
#X connect 16 0 17 0;
#X connect 17 0 30 0;
#X connect 26 0 0 0;
#X connect 29 0 15 0;
#X connect 30 0 15 1;
#X connect 31 0 29 0;
#X connect 32 0 19 0;
#X connect 32 0 18 0;
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Gem 0.94 on Windows ? ...

2020-06-22 Thread oliver




If you want to try it out, put mpv folder into 
c:\users\\appData\Roaming\pd\ then add this path into pd 
preferences and load mpv-help.pd patch.


Almost all video files should work, even 4k, but I couldn't make youtube 
streaming work again.





Hi, thanks a lot for your efforts !

Just tried your package. Unfortunately on my machine it fails with lots 
of "GL[1282]: invalid operation" error messages and the eventual pd crash.


Apart from that, i think that Gem should work on all systems without 
having to install anything besides it (safe for codecs), let alone 
selfcompiled .dlls


But, as i said: it's most likely a combination of my special machine (or 
graphic card) and the fact that i'm still on W7, as others don't seem to 
have that problem


Best

Oliver



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


Re: [PD] Gem 0.94 on Windows ? ...

2020-06-19 Thread oliver

Christof Ressi wrote:
What are your specs ? 
I have a Thinkpad L440 with integrated Intel graphics. Windows 7. K-Lite 
codec pack (I think "mega"): https://codecguide.com/


Thank you all guys for reporting.

So it seems my laptop is jinxed after all ;-)

I really tried everything from changing codec packs to using an old 
image of a fresh win 7 install with no stuff on it apart from the native 
graphic card drivers.


No difference whatsoever, Gem 0.94 would never work with any image 
related material, at least not on my machine (Lenovo T530 with hybrid 
grahics card). Gem 0.93 works fine as ever.


I'm giving up at this point, but will keep testing on other windows 
machines to hopefully get a better picture of what might be the reason.


Still, good to know that it DOES work on other machines

Thanks again for your patience and time !

Oliver



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


Re: [PD] Gem 0.94 on Windows ? ...

2020-06-18 Thread oliver

Lucas Cordiviola wrote:

On 6/18/2020 3:46 AM, IOhannes m zmölnig wrote:

installing the "k-lite codec pack" should fix this...)


Tested on Win10 and it works fine.


Hi, meanwhile i did tests on various machines (laptops and workstations)

Here are quick results (PD 0.51 / Gem 0.94):

No Win 7 machine could produce images nor video
(ffdshow codecs were installed)

On all Win 10 machines, images did work.
On all Win 10 machines, videos could be loaded but would freeze PD 
immediately (ffdshow codecs were installed, didn't try k-lite codecs)


here's my last error report (opened pix_film helppatch and loaded 
homer.avi):


http://klingt.org/fileservice/downloads/03113521159251667730-oliver_GEM_094_Win10_log.zip

@Lucas: concerning your last report: did the video help patch REALLY 
work or did it just not throw error messages when you opened it ? what 
are your specs ?


@Christof: you seem to be the only one getting Gem 0.94 to work under 
Windows 7. What are your specs ?


(I followed your hint about the errors being related to graphic card 
issues, but that was purely AMD related - i have an intel/nvidia hybrid. 
but then i even tried my tests with dedicated graphic cards (set in 
BIOS) as well - no difference)


I would like to ask my initial question again:

Is anybody on this list successfully using Gem for works with videos 
under Windows ?
If so, what are your specs (OS version, Machine, graphics card, codec 
pack) ?


Thanks for your kind support

Oliver




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


Re: [PD] Gem 0.94 on Windows ? ...

2020-06-16 Thread oliver

Lucas Cordiviola wrote:
This are the errors i get on the console with -verbose and in the CMD on 
win8.1 without loading any example:


https://nc.nubegris.com.ar/index.php/s/a5yoSB6LPwcBES2


I see ...

maybe it is a Win 7 thing after all

Unfortunately I haven't got a W10 machine at hand to test and verify. 
Will do as soon as i can.


@Lucas:

What kind of video codecs (if any) do you have installed on your system ?

I have "ffdshow" on my computer, which served me fine so far. Still, 
that wouldn't explain the failures at the loading of image-related 
Gem-Plugins.


As reported, i'm getting those error messages at EVERY plugin Gem tries 
to load


Thanks so far !

Oliver



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


Re: [PD] Gem 0.94 on Windows ? ...

2020-06-16 Thread oliver

On 2020-06-16 15:00, IOhannes m zmölnig wrote:

On 2020-06-16 14:52, oliver wrote:

Hi, dear List !

Gem tries to load all .dll files from its directory and fails with 
"#87:

The parameter is incorrect." and "DLLerror(0x57)The parameter is
incorrect."


wtf?
that error message doesn't tell me anything.

in any case, could just just purge the extra/Gem folder and start anew?


also, what happens if you don't install Gem to @PDPATH@/extra but
instead to "some other" location (including one without spaces)




Hi, i just tried all of those, no difference.

Anyway, here is my complete error log file, maybe it tells you more in 
its completeness ?


http://klingt.org/fileservice/downloads/00970407159231471030-oliver_GEM_094_Win7_log.zip

Best

Oliver



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


[PD] Gem 0.94 on Windows ? ...

2020-06-16 Thread oliver

Hi, dear List !

Is anybody here succesfully using Gem 0.94 on Windows ?
I mean complete with image and video support ?

Since Gem 0.94, i was not able to run any image or videos anymore (it 
used to work fine with 0.93)


My setup is: PD 0.51 (64bit) / Gem 0.94 (64bit) / Windows 7 (64bit)

In an attempt to monitor error messages according to IOhannes' 
suggestions, i think that the most important errors i get are those:


GEM: load plugins 'film' in 'C:/Program Files/Pd/extra/Gem/'
GEM: pattern : C:/Program Files/Pd/extra/Gem/gem_film*.dll
GEM: dylib loading file 'C:/Program Files/Pd/extra/Gem/gem_filmAVI.dll'!
GEM: GemDylib failed: #87: The parameter is incorrect.
GEM: GemDylib throwing: DLLerror(0x57)The parameter is incorrect.
GEM: library loading returned: DLLerror(0x57)The parameter is incorrect.
GEM: dylib loading file 'C:/Program Files/Pd/extra/Gem/gem_filmDS.dll'!
GEM: GemDylib failed: #87: The parameter is incorrect.
GEM: GemDylib throwing: DLLerror(0x57)The parameter is incorrect.
GEM: library loading returned: DLLerror(0x57)The parameter is incorrect.

and so on ...

Gem tries to load all .dll files from its directory and fails with "#87: 
The parameter is incorrect." and "DLLerror(0x57)The parameter is 
incorrect."



Maybe it's my old Windows 7 that is not supported ? ...
In LINUX/Debian 10 everything works fine ! (can't test OSX atm, sorry)


Thanks for any suggestions or reports !

Best

Oliver




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


Re: [PD] how to load a different font in Pd via sartup?

2020-06-10 Thread oliver

On 2020-06-10 13:41, Christof Ressi wrote:

Also works here on Windows:

pd -font-face "Courier New"

Don't forget the quotation marks.



This method will work only when PD is started from the command line or 
from a script.


It's still not working when a font-face with spaces is defined in the 
File/Preferences/Startup Section of PD


Best

Oliver



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


[PD] intelligent patching manual ? ...

2020-06-07 Thread oliver

Hi,

i'm beginning to use PD's "intelligent patching" features with much 
pleasure, it's a great everyday helper.


But it seems quite undocumented, or am i missing something ?

There are 2 Tutorial videos by IOhannes on vimeo, but i think a small 
"text only" handout to summarize the features would be more helpful in a 
day-to-day situation. Probably in the DOC section of PD 0.52 ?


Best

Oliver



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


  1   2   3   4   5   >