Re: [PD] Wich licence?

2014-02-14 Thread Thomas Mayer
Hi,

On 14.02.2014 14:16, Mario Mey wrote: I made a Multi-FX Looper called
MEH-SYSTEM, posted in PD Forum:
 http://puredata.hurleur.com/viewtopic.php?pid=37430

 I want to put a license to it. Where should I get information about
 types of licences?

A starter can be http://choosealicense.com/

 I don't think in any restriction... I only would want to know where,
 when, how and by-who it was used. Only that.

For that, you may need a special license like Postcaredware:
http://www.maths.uq.edu.au/~mrb/ostats/license.php

Some other special licenses that are considered Free:
http://www.gnu.org/licenses/license-list.html
http://vimdoc.sourceforge.net/htmldoc/uganda.html

cu Thomas
(who somewhat ironically will continue writing a political article about
free software)
-- 
When one's home has a really excellent computer capable of reaching
other computers anywhere in the Galaxy, one scarcely needs to budge.
(Janov Pelorat in: Isaac Asimov - Foundation's Edge)
http://www.residuum.org/

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


Re: [PD] cryptocurrency and pd

2014-02-06 Thread Thomas Mayer
On 06.02.2014 10:09, i go bananas wrote:
 Has anything been done to try to marry these together yet?  

PuREST JSON includes a sonification for Bitcoin values going back to
2011, but I guess, that is not what you wanted to know.

Thanks,
Thomas
-- 
We left all that stuff out. If there's an error, we have this
routine called panic, and when it is called, the machine crashes,
and you holler down the hall, 'Hey, reboot it.' (Dennis Ritchie)
http://www.residuum.org/

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


[PD] Proposition: Fork of [mtof] for Different tunings

2014-01-26 Thread Thomas Mayer
Hi,

having just read http://www.gramophone.co.uk/features/focus/tuning, I am
thinking about creating an external similar to [mtof] (maybe something
like [mtof_tuning] which should be able to change to different tuning
systems like the ones outlined in the article, and the tuning should be
settable by init parameters and [set( messages.

Does an object like this already exist?

Note, that I won't start programming in the next few months until I have
more time.

But I think, that such an object would appeal to several Pd users, and
it should not be too hard to build it.

Comments, ideas etc. welcome.

Thanks,
Thomas
-- 
When one's home has a really excellent computer capable of reaching
other computers anywhere in the Galaxy, one scarcely needs to budge.
(Janov Pelorat in: Isaac Asimov - Foundation's Edge)
http://www.residuum.org/

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


Re: [PD] Proposition: Fork of [mtof] for Different tunings

2014-01-26 Thread Thomas Mayer
Hi,

On 26.01.2014 17:17, Matthias Kronlachner wrote:
 hi!
 
 have a look at this:
 http://lists.puredata.info/pipermail/pd-list/2006-04/037184.html
 
 its an abstraction and  python script to use scala tuning files.
 for scala you find an enormous amount of different scales/tunings [1].

Yes, that is exactly the functionality I was thinking about, so: No need
for duplicate efforts.

 
 [1] http://www.huygens-fokker.org/scala/downloads.html
 
 On 26/01/14 18:03, Thomas Mayer wrote:
 Hi,

 having just read http://www.gramophone.co.uk/features/focus/tuning, I am
 thinking about creating an external similar to [mtof] (maybe something
 like [mtof_tuning] which should be able to change to different tuning
 systems like the ones outlined in the article, and the tuning should be
 settable by init parameters and [set( messages.

 Does an object like this already exist?

Thanks,
Thomas
-- 
Chaney was aware that anything, however small, can get the eye of the
media if it's repulsive enough. (Robert Anton Wilson - The Universe
Next Door)
http://www.residuum.org/

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


Re: [PD] access to archives

2014-01-23 Thread Thomas Mayer
Hi,

IOhannes m zmoelnig schrieb am 23.01.2014 14:26:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256
 
 On 2014-01-23 14:00, Py Fave wrote:
 is it possible to improve the archive of pd-list ?
 
 
 sure. how?
 
 
 make it a forum ?
 
 
 that would require a bidirectional setup, which is not so trivial.
 mailman has an interface to newsgroups, but
 - - i've never used it
 - - someone has to run a news-server
 - - do you think newsgroups are an appropriate medium these days?

as a member of the German Pirate Party, I know for sure, that such a thing 
exists and in fact is used by lots of members.

According the (obsolete) documentation, the mailing lists use Mailman as well, 
so if you want, I can ask the admin team for up-to-date information:
https://wiki.piratenpartei.de/Syncom/Technik

Hth,
Thomas

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


Re: [PD] access to archives

2014-01-23 Thread Thomas Mayer
Hi,

IOhannes m zmoelnig schrieb am 23.01.2014 14:26:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256
 
 On 2014-01-23 14:00, Py Fave wrote:
 is it possible to improve the archive of pd-list ?
 
 make it a forum ?
 
 
 that would require a bidirectional setup, which is not so trivial.
 mailman has an interface to newsgroups, but
 - - i've never used it
 - - someone has to run a news-server
 - - do you think newsgroups are an appropriate medium these days?

Addendum: The setup requires a NNTP-Server, see the Readme:

https://github.com/annando/Syncom

Hth,
Thomas

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


Re: [PD] access to archives

2014-01-23 Thread Thomas Mayer
On 23.01.2014 16:21, IOhannes m zmoelnig wrote:
 On 2014-01-23 15:42, Thomas Mayer wrote:
 Hi,
 
 IOhannes m zmoelnig schrieb am 23.01.2014 14:26:
 
 - - do you think newsgroups are an appropriate medium these
 days?
 
 as a member of the German Pirate Party, I know for sure, that such
 a thing exists and in fact is used by lots of members.
 
 this doesn't count.
 pirates and other (((schemeing))) hackers are excluded from polls
 about an appropriate medium these days ;-)

My remark was about syncing between mailing lists, NNTP servers and web
fora, but I maybe a little awkwardly placed.

And to answer that question: yes, I am still reading some newsgroups
with my NNTP client.

Thomas
-- 
Prisons are needed only to provide the illusion that courts and police
are effective. They're a kind of job insurance.
(Leto II. in: Frank Herbert, God Emperor of Dune)
http://www.residuum.org/

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


[PD] Check for batch and/or nogui mode from Patch

2014-01-13 Thread Thomas Mayer
Hi,

is there a way to get information on whether Pd has been started with
-batch or -nogui from inside a patch?

I am trying to make unit tests by starting a Pd instance in batch mode
from Python, and comparing the output from [stdout] to the desired
result, and I want Pd to close itself via [; pd quit(. When Pd is not
running in batch mode, then I want to stop this message from being sent
with a [spigot], something like:

[loadbang]
|
[message for object(
|
[object-to-test]
|
[t b a]
| |
| [stdout]
|
|  [test-for-batch-mode]
|  |
[spigot]
|
[; pd quit(

Thanks,
Thomas
-- 
We left all that stuff out. If there's an error, we have this
routine called panic, and when it is called, the machine crashes,
and you holler down the hall, 'Hey, reboot it.' (Dennis Ritchie)
http://www.residuum.org/

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


Re: [PD] Check for batch and/or nogui mode from Patch

2014-01-13 Thread Thomas Mayer
Hi,

On 13.01.2014 21:20, Cyrille Henry wrote:
 hello,
 
 the most simple solution is to add a message at startup :
 pd -batch -send testquit bang

thanks, that worked liked a charm. Minor correction though: The command
line is

pd -batch -send testquit bang

 
 [loadbang]
 |
 [message for object(
 |
 [object-to-test]
 |
 [t b a]
 | |
 | [stdout]
 |
 |   [r testquit]
 |   |
 |  [1 
 |   |
 [spigot 0]
 |
 [; pd quit(

And now: Unit testing PuREST JSON,
Thomas
-- 
Ich komme aus dem Staunen nicht heraus.
Dann bleib halt drin, du Seppel
(Dietmar Dath - Die Abschaffung der Arten)
http://www.residuum.org/

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


Re: [PD] [PD-announce] PuREST JSON 1.0.0 and 1.0.0-json-c-0.10 released

2014-01-05 Thread Thomas Mayer
Hi,

On 03.01.2014 18:27, Thomas Mayer wrote:
 Hello,

 Binaries for Windows and Debian i386 and amd64:
 http://ix.residuum.org/pd/purest_json.html

I have uploaded binaries for Raspbian as well. Download those also from
http://ix.residuum.org/pd/purest_json.html

Thanks,
Thomas
-- 
Anything can be a tool - poverty, war. War is useful because it
is effective in so many areas. (Bijaz to Hayt in: Frank Herbert -
Dune Messiah)
http://www.residuum.org/

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


[PD] [PD-announce] PuREST JSON 1.0.0 and 1.0.0-json-c-0.10 released

2014-01-03 Thread Thomas Mayer
Hello,

I am happy to announce the release of PuREST JSON 1.0.0, code name:
Pendulum, as well as the version 1.0.0-json-c-0.10, code name: Ye Olde
Pendulum.

PuREST JSON is a library for working with RESTful HTTP webservices, and
JSON data.

Authentication and authorization for webservices are available with
basic HTTP auth, cookie authentication, and OAuth. As an example for
OAuth authenticated webservices, a Twitter client is included.

Changes since 0.15.0:
- Info for users while loading object
- Two releases for different versions of json-c
- Bug fixes in [json-encode]:
-- array handling
-- number handling

Github repository:
https://github.com/residuum/PuRestJson

Source code packages:
https://github.com/residuum/PuRestJson/releases

Full documentation:
https://github.com/residuum/PuRestJson/wiki

Binaries for Windows and Debian i386 and amd64:
http://ix.residuum.org/pd/purest_json.html

Build instructions for all platforms:
https://github.com/residuum/PuRestJson/wiki/Compilation

Have fun,
Thomas
-- 
Ich komme aus dem Staunen nicht heraus.
Dann bleib halt drin, du Seppel
(Dietmar Dath - Die Abschaffung der Arten)
http://www.residuum.org/

___
Pd-announce mailing list
pd-annou...@iem.at
http://lists.puredata.info/listinfo/pd-announce

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


Re: [PD] [PD-announce] PuREST JSON 0.15.0 released

2013-12-03 Thread Thomas Mayer
Hi,

your build system (Fink?) probably does not have json-c 0.11, but the
old version 0.10. In that case, use the branch json-c-0.10 for building:

https://github.com/residuum/PuRestJson/tree/json-c-0.10

The head of this branch is in the same state as master without the
switch to json-c 0.11, and is updated on every release.

Hth,
Thomas


On 03.12.2013 02:41, me.grimm wrote:
 on osx im getting:
 
 ld: library not found for -ljson-c
 
 ideas? i didn't get this prior to recent pull of you 0.15
 
 m
 
 
 On Tue, Nov 12, 2013 at 5:00 PM, Thomas Mayer tho...@residuum.org wrote:
 
 Hello,

 I am happy to announce version 0.15.0 of PuREST JSON, code name: The API
 they are a-changing.

 PuREST JSON is a library for working with RESTful HTTP webservices, and
 JSON data.

 Authentication and authorization for webservices are available with
 basic HTTP auth, cookie authentication, and OAuth. As an example for
 OAuth authenticated webservices, a Twitter client is included.

 Changes in the new version:
 - Cancellation is now faster
 - Switch to json-c 0.11
 - Refactoring of code
 - Breaking changes:
   -- [oauth] and [rest]:
  * [write( method is now called [file(
  * [url( method is now called [init(
  * init errors only output to console
  * changes to status outlet:
** on success output bang
** on HTTP error output numerical HTTP status
** on cURL error output list: error code and message
   -- [rest-json] has been removed
   -- [json-decode]:
  * string values will not be checked for numbers or boolean

 If your build tool or platform does not have json-c 0.11 available, use
 the branch json-c-0.10 for compilation.

 Github repository:
 https://github.com/residuum/PuRestJson

 Source code packages:
 https://github.com/residuum/PuRestJson/releases

 Binaries for Windows and Debian i386 and amd64:
 http://ix.residuum.org/pd/purest_json.html

 Build instructions for all platforms:
 https://github.com/residuum/PuRestJson/wiki/Compilation

 Have fun,
 Thomas
 --
 Chaney was aware that anything, however small, can get the eye of the
 media if it's repulsive enough. (Robert Anton Wilson - The Universe
 Next Door)
 http://www.residuum.org/

 ___
 Pd-announce mailing list
 pd-annou...@iem.at
 http://lists.puredata.info/listinfo/pd-announce

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

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


-- 
We left all that stuff out. If there's an error, we have this
routine called panic, and when it is called, the machine crashes,
and you holler down the hall, 'Hey, reboot it.' (Dennis Ritchie)
http://www.residuum.org/

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


Re: [PD] [PD-announce] PuREST JSON 0.15.0 released

2013-12-03 Thread Thomas Mayer
Hi,

On 03.12.2013 22:11, me.grimm wrote:
 got it. ok compiled fine with one warning:
 1 warning generated.
 json-encode.c:318:17: warning: format string is not a string literal
   (potentially insecure) [-Wformat-security]
 fprintf(file, json_string);

With gcc on Linux this does not create a warning. I will fix it in the
next release and replace it with fprintf(file, %s, json_string);

 
 all objects create but oauth i get:
  oauth
 ... couldn't create
 /Users/megrimm/Desktop/PuRestJson-json-c-0.10/oauth.pd_darwin:
 dlopen(/Users/megrimm/Desktop/PuRestJson-json-c-0.10/oauth.pd_darwin, 10):
 Symbol not found: _oauth_sign_url2
   Referenced from:
 /Users/megrimm/Desktop/PuRestJson-json-c-0.10/oauth.pd_darwin
   Expected in: dynamic lookup

This appears to be a linking problem on Mac OS with liboauth. A quick
search revealed some search results, but I cannot verify it as I do not
have a Mac here. Could you please open an issue on Github for that?
http://stackoverflow.com/questions/7857555/liboauth-not-being-linked-correctly
https://github.com/residuum/PuRestJson/issues

Thanks for testing,
Thomas

 
 yeah... i didnt realize the json-c 10/11 prob. I'm actually compiling with
 macports NOT fink but i think both are 0.10
 
 m
 
 
 On Tue, Dec 3, 2013 at 2:38 PM, Thomas Mayer tho...@residuum.org wrote:
 
 Hi,

 your build system (Fink?) probably does not have json-c 0.11, but the
 old version 0.10. In that case, use the branch json-c-0.10 for building:

 https://github.com/residuum/PuRestJson/tree/json-c-0.10

 The head of this branch is in the same state as master without the
 switch to json-c 0.11, and is updated on every release.

 Hth,
 Thomas


 On 03.12.2013 02:41, me.grimm wrote:
 on osx im getting:

 ld: library not found for -ljson-c

 ideas? i didn't get this prior to recent pull of you 0.15

 m


 On Tue, Nov 12, 2013 at 5:00 PM, Thomas Mayer tho...@residuum.org
 wrote:

 Hello,

 I am happy to announce version 0.15.0 of PuREST JSON, code name: The API
 they are a-changing.

 PuREST JSON is a library for working with RESTful HTTP webservices, and
 JSON data.

 Authentication and authorization for webservices are available with
 basic HTTP auth, cookie authentication, and OAuth. As an example for
 OAuth authenticated webservices, a Twitter client is included.

 Changes in the new version:
 - Cancellation is now faster
 - Switch to json-c 0.11
 - Refactoring of code
 - Breaking changes:
   -- [oauth] and [rest]:
  * [write( method is now called [file(
  * [url( method is now called [init(
  * init errors only output to console
  * changes to status outlet:
** on success output bang
** on HTTP error output numerical HTTP status
** on cURL error output list: error code and message
   -- [rest-json] has been removed
   -- [json-decode]:
  * string values will not be checked for numbers or boolean

 If your build tool or platform does not have json-c 0.11 available, use
 the branch json-c-0.10 for compilation.

 Github repository:
 https://github.com/residuum/PuRestJson

 Source code packages:
 https://github.com/residuum/PuRestJson/releases

 Binaries for Windows and Debian i386 and amd64:
 http://ix.residuum.org/pd/purest_json.html

 Build instructions for all platforms:
 https://github.com/residuum/PuRestJson/wiki/Compilation

 Have fun,
 Thomas
 --
 Chaney was aware that anything, however small, can get the eye of the
 media if it's repulsive enough. (Robert Anton Wilson - The Universe
 Next Door)
 http://www.residuum.org/

 ___
 Pd-announce mailing list
 pd-annou...@iem.at
 http://lists.puredata.info/listinfo/pd-announce

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






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



 --
 We left all that stuff out. If there's an error, we have this
 routine called panic, and when it is called, the machine crashes,
 and you holler down the hall, 'Hey, reboot it.' (Dennis Ritchie)
 http://www.residuum.org/

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

 
 
 


-- 
Chaney was aware that anything, however small, can get the eye of the
media if it's repulsive enough. (Robert Anton Wilson - The Universe
Next Door)
http://www.residuum.org/

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


[PD] [PD-announce] PuREST JSON 0.15.0 released

2013-11-12 Thread Thomas Mayer
Hello,

I am happy to announce version 0.15.0 of PuREST JSON, code name: The API
they are a-changing.

PuREST JSON is a library for working with RESTful HTTP webservices, and
JSON data.

Authentication and authorization for webservices are available with
basic HTTP auth, cookie authentication, and OAuth. As an example for
OAuth authenticated webservices, a Twitter client is included.

Changes in the new version:
- Cancellation is now faster
- Switch to json-c 0.11
- Refactoring of code
- Breaking changes:
  -- [oauth] and [rest]:
 * [write( method is now called [file(
 * [url( method is now called [init(
 * init errors only output to console
 * changes to status outlet:
   ** on success output bang
   ** on HTTP error output numerical HTTP status
   ** on cURL error output list: error code and message
  -- [rest-json] has been removed
  -- [json-decode]:
 * string values will not be checked for numbers or boolean

If your build tool or platform does not have json-c 0.11 available, use
the branch json-c-0.10 for compilation.

Github repository:
https://github.com/residuum/PuRestJson

Source code packages:
https://github.com/residuum/PuRestJson/releases

Binaries for Windows and Debian i386 and amd64:
http://ix.residuum.org/pd/purest_json.html

Build instructions for all platforms:
https://github.com/residuum/PuRestJson/wiki/Compilation

Have fun,
Thomas
-- 
Chaney was aware that anything, however small, can get the eye of the
media if it's repulsive enough. (Robert Anton Wilson - The Universe
Next Door)
http://www.residuum.org/

___
Pd-announce mailing list
pd-annou...@iem.at
http://lists.puredata.info/listinfo/pd-announce

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


[PD] [OT] Status of Fink packages

2013-11-09 Thread Thomas Mayer
Hello,

sorry for this off topic question, but I am requiring version 0.11 of
json-c for the next release of PuREST JSON, and I do not have a Mac.

Currently search for packages (http://pdb.finkproject.org/pdb/index.php)
on the Fink website does not load, and so I have no way to see the
current version of json-c in it.

Is there any other way to look up the version? If it has an older
version, can someone please upgrade to 0.11
(https://s3.amazonaws.com/json-c_releases/releases/index.html)?

Thanks in advance,
Thomas
-- 
Theoretically, [the amount of money in circulation] is watched
carefully by clever, serious economists. In practice, all the world's
money is one big swirling, whirling pool. (Cory Doctorow - For The Win)
http://www.residuum.org/

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


Re: [PD] writesf~ time to flush to disk…?

2013-10-01 Thread Thomas Mayer
Hi,

On 30.09.2013 17:22, Jamie Bullock wrote:
 
 Hi folks,
 
 The documentation for writesf~ states that:
 
   You need not provide any disk access time between open and start, 
 but between stop and the next open you must give the object time to flush 
 all the output to disk
 
 This suggests that once writesf~ has received a stop after writing to disk, 
 there is no way to determine whether i) writesf~ is ready to receive another 
 open or ii) the file written to disk is ready for reading.
 
 Could an outlet be added to writesf~, outputing the number of samples written 
 to disk?
 
 The parent patch could then use this outlet to establish when writesf~ is 
 ready to receive another open.

I like the idea, but the outlet could just output a bang, when it is
done, otherwise how do you determine that writesf~ has written all
samples to disk?

Best regards,
Thomas
-- 
Spielen Sie Strip Schnipp-Schnapp? (Adam Weishaupt to Johann
Wolfgang von Goethe in: Robert Shea  Robert A. Wilson, The Golden
Apple)
http://www.residuum.org/

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


Re: [PD] [PD-announce] PuREST JSON 0.14.0 released

2013-09-27 Thread Thomas Mayer
Hi,

it may depend on the version of curl that you are using for compilation:

CURL_SIZEOF_LONG is defined as 4, while sizeof(long) returns 8 on 64bit
systems. This leads to CurlchkszEQ(long, CURL_SIZEOF_LONG) returning -1.

This has been reported in 2008 to the curl mailing list:
http://curl.haxx.se/mail/lib-2008-09/0051.html

Maybe you can temporarily fix that by making the modifications in
curlbuild.h as described in the mail.

Hth,
Thomas

On 27.09.2013 00:04, me.grimm wrote:
 trying a quick compile OSX 10.8 I get:
 
 In file included from /sw/include/curl/curl.h:35:
 /sw/include/curl/curlrules.h:143:6: error: '__curl_rule_01__' declared as an
   array with a negative size
 [CurlchkszEQ(long, CURL_SIZEOF_LONG)];
  ^~~
 /sw/include/curl/curlrules.h:132:27: note: expanded from macro 'CurlchkszEQ'
 #define CurlchkszEQ(t, s) sizeof(t) == s ? 1 : -1
   ^~~
 /sw/include/curl/curlrules.h:153:6: error: '__curl_rule_02__' declared as an
   array with a negative size
 [CurlchkszEQ(curl_off_t, CURL_SIZEOF_CURL_OFF_T)];
  ^~~
 /sw/include/curl/curlrules.h:132:27: note: expanded from macro 'CurlchkszEQ'
 #define CurlchkszEQ(t, s) sizeof(t) == s ? 1 : -1
   ^~~
 
 ideas?
 
 thanks for all the work on this
 
 m
 
 
 On Tue, Sep 24, 2013 at 6:50 AM, Thomas Mayer tho...@residuum.org wrote:
 Hello,

 I am happy to announce version 0.14.0 of PuREST JSON, code name: Davo.

 PuREST JSON is a library for working with RESTful HTTP webservices, and
 JSON data.

 Authentication and authorization for webservices are available with
 basic HTTP auth, cookie authentication, and OAuth. As an example for
 OAuth authenticated webservices, a Twitter client is included.

 Changes in this version:
 - Downloading to file
 - Cancelling of requests possible
 - [rest] and [oauth] now use libcurl multi interface internally

 Github repository:
 https://github.com/residuum/PuRestJson

 Source code packages:
 https://github.com/residuum/PuRestJson/releases

 Binaries for Windows and Debian i386 and amd64:
 http://ix.residuum.org/pd/purest_json.html

 Build instructions for all platforms:
 https://github.com/residuum/PuRestJson/wiki/Compilation

 Have fun,
 Thomas
 --
 Chaney was aware that anything, however small, can get the eye of the
 media if it's repulsive enough. (Robert Anton Wilson - The Universe
 Next Door)
 http://www.residuum.org/

 ___
 Pd-announce mailing list
 pd-annou...@iem.at
 http://lists.puredata.info/listinfo/pd-announce

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


-- 
In an era when everything can be surveiled, all we have left is
politeness.
(Major Napier in: Neal Stephenson: The Diamond Age)
http://www.residuum.org/

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


[PD] [PD-announce] PuREST JSON 0.14.0 released

2013-09-24 Thread Thomas Mayer
Hello,

I am happy to announce version 0.14.0 of PuREST JSON, code name: Davo.

PuREST JSON is a library for working with RESTful HTTP webservices, and
JSON data.

Authentication and authorization for webservices are available with
basic HTTP auth, cookie authentication, and OAuth. As an example for
OAuth authenticated webservices, a Twitter client is included.

Changes in this version:
- Downloading to file
- Cancelling of requests possible
- [rest] and [oauth] now use libcurl multi interface internally

Github repository:
https://github.com/residuum/PuRestJson

Source code packages:
https://github.com/residuum/PuRestJson/releases

Binaries for Windows and Debian i386 and amd64:
http://ix.residuum.org/pd/purest_json.html

Build instructions for all platforms:
https://github.com/residuum/PuRestJson/wiki/Compilation

Have fun,
Thomas
-- 
Chaney was aware that anything, however small, can get the eye of the
media if it's repulsive enough. (Robert Anton Wilson - The Universe
Next Door)
http://www.residuum.org/

___
Pd-announce mailing list
pd-annou...@iem.at
http://lists.puredata.info/listinfo/pd-announce

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


Re: [PD] Migrate away from Sourceforge?

2013-08-30 Thread Thomas Mayer
Hi,

On 29.08.2013 15:53, day five wrote:
 Agree but what alternative do you suggest ?

I just wanted to make the list aware of the problem.

 
 Perhaps sooner or later monetization is inevitable for all open source
 proyects. What hope is there for free software when global currency
 models are rapidly deteriorating. There are always those who would wish
 to capitalize on another's work much like an parasite.

It is one thing to sell free software or make money for distributing it
you did not code yourself, this is absolutely fine behaviour, e.g.
commercial Linux distributions. But using spyware or adware is not an
acceptable behaviour, although it is still compatible with Pd's license.

 Do you think that bitbucket or github are any better ? Who is to say
 that some minutes down the road they will not do the same.

I cannot vouch, that any commercial service will not do the same of
course. Github e.g. stopped supporting downloads of binaries a few
months ago.

It would not be much work to setup mirrors for hosting the code, and in
any event migrate to yet another service, but there are other things to
consider: There is the bug tracker that is hosted by Sourceforge, then
binaries, people and their accounts and access rights, etc.

As I have said before, I just wanted to spark a discussion, I do not
suggest a fix right now.

Best regards,
Thomas

 
 
 On Tue, Aug 27, 2013 at 12:38 PM, Thomas Mayer tho...@residuum.org
 mailto:tho...@residuum.org wrote:
 
 Hello,
 
 Sourceforge's new owner tries to persuade top projects to use a closed
 source installer that includes spyware / adware:
 
 
 http://www.gluster.org/2013/08/how-far-the-once-mighty-sourceforge-has-fallen/
 
 IMHO this in not a good place to host a true free software project any
 more. Any thoughts on this?
 
 Thanks,
 Thomas
 --
 In an era when everything can be surveiled, all we have left is
 politeness.
 (Major Napier in: Neal Stephenson: The Diamond Age)
 http://www.residuum.org/
 
 ___
 Pd-list@iem.at mailto:Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list
 
 


-- 
When one's home has a really excellent computer capable of reaching
other computers anywhere in the Galaxy, one scarcely needs to budge.
(Janov Pelorat in: Isaac Asimov - Foundation's Edge)
http://www.residuum.org/

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


[PD] Migrate away from Sourceforge?

2013-08-27 Thread Thomas Mayer
Hello,

Sourceforge's new owner tries to persuade top projects to use a closed
source installer that includes spyware / adware:

http://www.gluster.org/2013/08/how-far-the-once-mighty-sourceforge-has-fallen/

IMHO this in not a good place to host a true free software project any
more. Any thoughts on this?

Thanks,
Thomas
-- 
In an era when everything can be surveiled, all we have left is
politeness.
(Major Napier in: Neal Stephenson: The Diamond Age)
http://www.residuum.org/

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


[PD] [PD-announce] PuREST JSON 0.13.0 released

2013-07-10 Thread Thomas Mayer
Hello,

I am happy to announce version 0.13.0 of PuREST JSON, code name: heady stuff

PuREST JSON is a library for working with RESTful HTTP webservices, and
JSON data.

Authentication and authorization for webservices are available with
basic HTTP auth, cookie authentication, and OAuth. As an example for
OAuth authenticated webservices, a Twitter client is included.

Changes in this version:
- Setting HTTP headers possible
- Cancelling of requests possible while waiting (experimental)
- Switched Makefile to libary template 1.0.14
- Semantic versioning

Cancelling requests is still an experimental feature, it will not work
reliably and most probably still contains memory leaks. But as real
cancellation may involve a lot of refactoring, I have released this
version anyway.

Github repository: https://github.com/residuum/PuRestJson
Source code packages: https://github.com/residuum/PuRestJson/releases
Binaries for Windows and Debian i386, amd64, and armhf:
http://ix.residuum.org/pd/purest_json.html
Build instructions for all platforms:
https://github.com/residuum/PuRestJson/wiki/Compilation

Have fun,
Thomas
-- 
Theoretically, [the amount of money in circulation] is watched
carefully by clever, serious economists. In practice, all the world's
money is one big swirling, whirling pool. (Cory Doctorow - For The Win)
http://www.residuum.org/

___
Pd-announce mailing list
pd-annou...@iem.at
http://lists.puredata.info/listinfo/pd-announce

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


Re: [PD] 2D slider

2013-04-17 Thread Thomas Mayer
Hi,

thanks to both of you, but both objects are not quite what I had in mind.

Best regards,
Thomas

On 10.04.2013 11:50, Nicolas Montgermont wrote:
 [gcanvas]
 
 n
 
 Le 10/04/13 01:26, Ryan Smith a écrit :
 The grid object would probably work for you.

 On Tue, Apr 9, 2013 at 3:26 PM, Thomas Mayer tho...@residuum.org wrote:
 Hello,

 is there a 2D slider object, similar to a combination of a hslider and
 vslider, something like the Kaoss Pad touchscreen?

 Thanks,
 Thomas
 -- 
 Chaney was aware that anything, however small, can get the eye of the
 media if it's repulsive enough. (Robert Anton Wilson - The Universe
 Next Door)
 http://www.residuum.org/

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

 


-- 
Prisons are needed only to provide the illusion that courts and police
are effective. They're a kind of job insurance.
(Leto II. in: Frank Herbert, God Emperor of Dune)
http://www.residuum.org/

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


[PD] 2D slider

2013-04-09 Thread Thomas Mayer
Hello,

is there a 2D slider object, similar to a combination of a hslider and
vslider, something like the Kaoss Pad touchscreen?

Thanks,
Thomas
-- 
Chaney was aware that anything, however small, can get the eye of the
media if it's repulsive enough. (Robert Anton Wilson - The Universe
Next Door)
http://www.residuum.org/

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


Re: [PD] help with pd error

2013-03-04 Thread Thomas Mayer
On 04.03.2013 18:56, Patrick Pagano wrote:
 After adding -stderr flag to pd-extended, i cannot seem to replicate the
 error again?
 weird scenes inside the coalmine.

Actually, that is pretty normal, as starting Pd with -stderr does not
post anything to the Pd console (which is parsed in Tcl), but to bash
(or your shell or cmd.exe).

There is an open bug related to it:
http://sourceforge.net/tracker/?func=detailatid=478070aid=3589171group_id=55736

Best regards,
Thomas

 
 On 03/04/2013 12:40 PM, IOhannes m zmoelnig wrote:
 On 2013-03-04 18:29, Patrick Pagano wrote:
 i guess i could remove the links in the .objs that reference the
 .mtls but this is wierd that it is generatingthe error when i click
 on a hradio selector.
 could you post the patch?
 could you try tunning the patch with -stderr to get the full error
 message?
 
 fmsdfr
 IOhannes

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

-- 
From the perspective of communication analysis, government is not
an instrument of law and order, but of law and disorder. (Gracchus
Gruad in: Robert Shea  Robert A. Wilson, The Golden Apple)
http://www.residuum.org/

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


Re: [PD] [PD-announce] PuREST JSON 0.11

2013-02-24 Thread Thomas Mayer
Hi,

On 23.02.2013 23:53, me.grimm wrote:
 hello,
 
 just a report if you need one, on osx
 
 liboauth seems to compile and install fine (is not in fink, i just
 grabbed it from sourceforge). just:
 ./configure
 make
 make install
 
 and your oauth seems to find oauth.h fine with that.
 
 also instead if libcurl4-ssl  which you have in your directions i used
 $ fink install libcurl4 and libcurl4-shibs
 
 Running make in the purest_json folder = all is well and i have
 binaries that load with you help files.
 
 ./embed-MacOSX-dependencies.sh is also pretty nice.

Thank you for travelling^W trying out the library and your feedback.

I just updated the build instructions for Mac OS X:
https://github.com/residuum/PuRestJson/wiki/Compilation

Feel free to make edits to this page, that of course applies to build
instructions for any other OS and/or architecture.

Thanks,
Thomas
-- 
We left all that stuff out. If there's an error, we have this
routine called panic, and when it is called, the machine crashes,
and you holler down the hall, 'Hey, reboot it.' (Dennis Ritchie)
http://www.residuum.org/

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


Re: [PD] [PD-announce] PuREST JSON 0.11

2013-02-24 Thread Thomas Mayer
Hi,

On 23.02.2013 17:04, Thomas Mayer wrote:
 Hello,
 
 version 0.11 of PuREST JSON is released. Codename: Long string is long.
 
 PuREST JSON is a library for working with RESTful HTTP webservices,  and
 JSON data.

several people have contacted me, because they wanted to use the graph
API of Facebook with PuREST JSON. Unfortunately, Facebook uses OAuth
2.0, and liboauth (and therefore PuREST JSON) only supports OAuth 1.1 -
and even this not completely as signing requests with RSA-SHA1 keys is
not implemented yet.

I am willing to switch the backend library for OAuth, but I have not
found one that implements version 2.0, and I am not willing to implement
this version all by myself, as the specs are ... let's say very
enterprisy (http://hueniverse.com/2012/07/oauth-2-0-and-the-road-to-hell/).

So, either liboauth will support OAuth 2.0 sometime in the future, or
another library emerges that will support version 2.0 (is there
something available?). Until then, unfortunately only the Facebook API
will work with PuREST JSON:
http://developers.facebook.com/docs/reference/rest/

Thank you,
Thomas
-- 
Ich komme aus dem Staunen nicht heraus.
Dann bleib halt drin, du Seppel
(Dietmar Dath - Die Abschaffung der Arten)
http://www.residuum.org/

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


Re: [PD] [PD-announce] PuREST JSON 0.11

2013-02-24 Thread Thomas Mayer
On 24.02.2013 13:15, Thomas Mayer wrote:
 Until then, unfortunately only the Facebook API
 will work with PuREST JSON:
 http://developers.facebook.com/docs/reference/rest/

Only the _old_ Facebook API

Thomas

-- 
Prisons are needed only to provide the illusion that courts and police
are effective. They're a kind of job insurance.
(Leto II. in: Frank Herbert, God Emperor of Dune)
http://www.residuum.org/

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


[PD] [PD-announce] PuREST JSON 0.11

2013-02-23 Thread Thomas Mayer
Hello,

version 0.11 of PuREST JSON is released. Codename: Long string is long.

PuREST JSON is a library for working with RESTful HTTP webservices,  and
JSON data.

Authentication and authorization for webservices are available with
basic HTTP auth, cookie authentication, and OAuth. As an example for
OAuth authenticated webservices, a Twitter client is included.

Changes in the new version:
- symbols can be longer than MAXPDLENGTH (1024 characters)
- [json-decode] works with lists and any other data type as well
- Setting request timeout for [rest] and [oauth] possible
- Cleaning up of source code and help files
- Bugfixes:
  -- [oauth] posts data again
  -- Fixed segfault in Windows at errors

Github page: https://github.com/residuum/PuRestJson
Binary downloads for Windows and Debian:
http://ix.residuum.org/pd/purest_json.html
Build instructions: https://github.com/residuum/PuRestJson/wiki/Compilation

Have fun,
{name: Thomas}
-- 
Ich komme aus dem Staunen nicht heraus.
Dann bleib halt drin, du Seppel
(Dietmar Dath - Die Abschaffung der Arten)
http://www.residuum.org/

___
Pd-announce mailing list
pd-annou...@iem.at
http://lists.puredata.info/listinfo/pd-announce

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


Re: [PD] OT: Lightest Fastest Linux Window Manager

2013-02-14 Thread Thomas Mayer
Hi,

On 14.02.2013 19:40, Pagano, Patrick wrote:
 Hello
 
 I am setting up a Asus netbook for Pure Data/Gem/pidip and would like to not 
 load the hoggish unity or even gnome seems to slow this little guy down.
 Can linux users suggest a window manager that might serve me best for this 
 purpose.

LXDE: It comes e.g. with Raspbian for the Raspberry Pi and is really
usable, Lubuntu is the Ubuntu variant with it. It used GTK as default
tookit.

XFCE: My favourite, I am using it on a 1 GHz one core Pentium 4 with
Debian, and works really fast. The Ubuntu variant is called Xubuntu.
Toolkit: GTK.

Fluxbox: really lightweight, have not used in in years.

Other lightweight WMs, that I have briefly tested, but not really used:
Englightenment, Openbox, Window Maker.

HTH,
Thomas
-- 
Ich komme aus dem Staunen nicht heraus.
Dann bleib halt drin, du Seppel
(Dietmar Dath - Die Abschaffung der Arten)
http://www.residuum.org/

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


[PD] Debug build of Pd-extended for Windows?

2013-02-12 Thread Thomas Mayer
Hi,

I am trying to debug an external using gdb, that has reproducable
segfaults on Windows. Unfortunately, no stacktrace is possible with gdb.
Is there a build with Debug symbols available, or do I have to compile
it myself?

Thanks in advance,
Thomas
-- 
Chaney was aware that anything, however small, can get the eye of the
media if it's repulsive enough. (Robert Anton Wilson - The Universe
Next Door)
http://www.residuum.org/

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


Re: [PD] Debug build of Pd-extended for Windows?

2013-02-12 Thread Thomas Mayer
Hi,

I have tried the current stable version of Pd-extended, but will try
the older build, when I get my hands on the Windows machine again.

Thanks,
Thomas

On 12.02.2013 21:16, Hans-Christoph Steiner wrote:
 
 I think that Pd-extended 0.43 test builds perhaps a month old or older will
 have the debug symbols in it.  Did you try with Pd-extended 0.43.4 and it
 didn't have the debug symbols?
 
 .hc
 
 On 02/12/2013 03:10 PM, Thomas Mayer wrote:
 Hi,

 I am trying to debug an external using gdb, that has reproducable
 segfaults on Windows. Unfortunately, no stacktrace is possible with gdb.
 Is there a build with Debug symbols available, or do I have to compile
 it myself?

 Thanks in advance,
 Thomas

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


-- 
Theoretically, [the amount of money in circulation] is watched
carefully by clever, serious economists. In practice, all the world's
money is one big swirling, whirling pool. (Cory Doctorow - For The Win)
http://www.residuum.org/

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


Re: [PD] file format for GEM

2013-02-04 Thread Thomas Mayer
On 04.02.2013 16:55, IOhannes zmölnig wrote:
 On 02/03/2013 10:54 PM, Thomas Mayer wrote:
 Pd will only use one core, and one core for the GUI. There are ways to
 distribute the load over several cores, e.g. [pd~] or use several
 instances of Pd that communicate with each others:
 
 Pd will use multiple threads for a few specific tasks, like streaming
 soundfiles from disk (with [readsf~]).

I just wanted to state, that you cannot distribute arbitrary tasks in Pd
to several threads, and therefore CPU cores without a) stating it
explicitely via [pd~] (or [netsend]/[netreceive] or any other way of
inter-instance communication), or b) using externals that support threading.

 
 Gem will also try to utilize multiple threads for special tasks as well,
 like image acquisition.

Best regards,
Thomas
-- 
Ich komme aus dem Staunen nicht heraus.
Dann bleib halt drin, du Seppel
(Dietmar Dath - Die Abschaffung der Arten)
http://www.residuum.org/

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


Re: [PD] file format for GEM

2013-02-03 Thread Thomas Mayer
Hi,

On 03.02.2013 20:19, Stephan Elliot Perez wrote:
 I am just starting to use GEM and am having a problem with video
 playback using pix_film. The CPU goes through the roof and the video
 naturally lags. My original video clips were in .MTS (panasonic, 1920 x
 1080) format. I then converted them into .mp4 (Codecs: H.264, AAC) using
 Handbrake and then into .mov (Codecs: MPEG-4 Video) using MPEGstream.

There was a discussion about this on the list some time ago:
http://www.mail-archive.com/pd-list@iem.at/msg37332.html

 Are the codecs the problem or the video quality/file size the
 problem? What do you suggest I do?

I have made a small bash script for transcoding a video to MJPEG without
sound, you can find it on Github:

https://github.com/residuum/Bash-Scripts/blob/master/mencmjpeg

Usage: ./mencmjpeg original_video new_video
Or: ./mencmjpeg original_video

Hth,
Thomas
-- 
Chaney was aware that anything, however small, can get the eye of the
media if it's repulsive enough. (Robert Anton Wilson - The Universe
Next Door)
http://www.residuum.org/

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


Re: [PD] file format for GEM

2013-02-03 Thread Thomas Mayer
Hi,

please respond to the list, as others may help in answering your
follow-up questions, and / or may benefit from the conversation.0

On 03.02.2013 21:49, Stephan Elliot Perez wrote:
 Thanks. I have no idea what a bash script is or what to do with it, but I
 will read through the thread...

If you use Linux or Mac OS X, bash is usually installed on your system.
It is a command line interface and can be used for scripting.
(http://en.wikipedia.org/wiki/Bash_%28Unix_shell%29)

This particular script is nothing fancy, and I have made it mostly to
remind the parameters for mencoder.

 Also, I selected JPEG-Photo using the program MPEGStreamclip at %100
 quality and it produces quite a large file. With auto, the CPU goes over
 90, but if I drag up or down on the framerate's number box, it stays at
 around 30-40...

I assume JPEG-Photo is MJPEG: The video file gets so large, because you
store a JPEG for each frame instead of full image for keyframes only and
then changes for subsequent frames as do other video codecs (rough
explanation). [pix_film] can then read each frame as a JPEG and does not
need to find the last keyframe and apply the changes to it, so playback
should be possible with lower CPU usage.

Please tell us some information about your system, i.e. CPU, graphic
card, operating system etc., maybe someone with a similar setup can
respond with further advice for optimisation.

Hth,
Thomas
-- 
Chaney was aware that anything, however small, can get the eye of the
media if it's repulsive enough. (Robert Anton Wilson - The Universe
Next Door)
http://www.residuum.org/

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


Re: [PD] file format for GEM

2013-02-03 Thread Thomas Mayer
Hi,

On 03.02.2013 22:48, Stephan Elliot Perez wrote:
 I am talking about PD's CPU meter. I don't have the impression that PD
 takes full advantage of 2 quad-core processors. When processing audio,
 anything over 100 in PD's meter will lead to glitched audio. I am just
 wondering if it will be much more when I load other videos and transition
 between them.

Pd will only use one core, and one core for the GUI. There are ways to
distribute the load over several cores, e.g. [pd~] or use several
instances of Pd that communicate with each others:

http://www.mail-archive.com/pd-list@iem.at/msg33319.html

Hth,
Thomas
-- 
Spielen Sie Strip Schnipp-Schnapp? (Adam Weishaupt to Johann
Wolfgang von Goethe in: Robert Shea  Robert A. Wilson, The Golden
Apple)
http://www.residuum.org/

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


Re: [PD] Jack support on Windows

2013-01-27 Thread Thomas Mayer
Hello,

on Windows only Jackdmp (Jackd2) is available, but the latest version of
Pd-extended (0.43.4-extended) does not work with Jackd2, at least on
Debian Wheezy.

It may be fixed, when this patch is applied
(http://sourceforge.net/tracker/?func=detailatid=478072aid=3582739group_id=55736),
because Jackd2 has removed jack_client_new () from their interface.

I have found another issue with jackd2, because hardware ports are not
reported with the register_port callback, at least not with the way I am
using it in my own software (a C#/Mono replacement for QJackCTL
https://github.com/residuum/MonoMultiJack), but it probably is an issue
in my code.

Hth,
Thomas

On 16.01.2013 18:58, Esteban Viveros wrote:
 Hello list,
 
 Excuse the hassle... But I think this very important ..
 
 The windows version of pd-extended 0.43 don't have support to Jack..
 
 It would be great can connect my new pd extended release to ableton live to
 play a little..
 
 
 
 
 
 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management - 
 http://lists.puredata.info/listinfo/pd-list


-- 
We left all that stuff out. If there's an error, we have this
routine called panic, and when it is called, the machine crashes,
and you holler down the hall, 'Hey, reboot it.' (Dennis Ritchie)
http://www.residuum.org/

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


Re: [PD] Jack support on Windows

2013-01-27 Thread Thomas Mayer
On 27.01.2013 18:09, Hans-Christoph Steiner wrote:
 On 01/27/2013 10:59 AM, Thomas Mayer wrote:
 Hello,

 on Windows only Jackdmp (Jackd2) is available, but the latest version of
 Pd-extended (0.43.4-extended) does not work with Jackd2, at least on
 Debian Wheezy.
 
 Does Pd-vanilla 0.43 or 0.44?  Or does Pd+jackd2 not work anywhere yet?

I have not tried Pd vanilla yet, but will try so in the next days and
then report back.

Best regards,
Thomas
-- 
Theoretically, [the amount of money in circulation] is watched
carefully by clever, serious economists. In practice, all the world's
money is one big swirling, whirling pool. (Cory Doctorow - For The Win)
http://www.residuum.org/

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


[PD] [PD-announce] PuREST JSON 0.9 released

2013-01-19 Thread Thomas Mayer
Hello,

I am happy to announce version 0.9 of PuREST JSON, code name: Sailing to
Colchis.

PuREST JSON is a library for working with RESTful HTTP webservices,  and
JSON data.

Authentication and authorization for webservices are available with
basic HTTP auth, cookie authentication, and OAuth. As an example for
OAuth authenticated webservices, a Twitter client is included.

Changes in the new version:
- [json-encode] writes and reads JSON data to and from files
- [oauth] does not use deprecated functions from liboauth 1.0
- Bugfixes and refactoring

Github page: https://github.com/residuum/PuRestJson
Binary downloads for Windows and Debian:
http://ix.residuum.org/pd/purest_json.html
Build instructions: https://github.com/residuum/PuRestJson/wiki/Compilation

Have fun,
Thomas
-- 
Ich komme aus dem Staunen nicht heraus.
Dann bleib halt drin, du Seppel
(Dietmar Dath - Die Abschaffung der Arten)
http://www.residuum.org/

___
Pd-announce mailing list
pd-annou...@iem.at
http://lists.puredata.info/listinfo/pd-announce

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


[PD] [PD-announce] Downloads for PuREST JSON have moved

2012-12-29 Thread Thomas Mayer
Hello,

as Github has deprecated the downloads section, I have moved the
downloads to my own website:

http://ix.residuum.org/pd/purest_json.html

I have now uploaded a Windows package of the library as well, but [rest]
and [oauth] do not work for some reason on Windows (see
https://github.com/residuum/PuRestJson/issues/10). Help with that bug is
very much appreciated.

What is PuREST JSON?

PuREST JSON is a library for connecting Puredata (Pd) to HTTP services
and encoding and decoding JSON data.

The library can issue GET, POST, PUT and DELETE statements, so
consumation of RESTful services is possible, e.g. CouchDB.

PuREST JSON also includes an object for OAUTH secured webservices, so
you can also use it e.g. for building a Twitter client.

Best regards,
Thomas
-- 
It seems to me, Golan, that the advance of civilization is nothing
but an exercise in the limiting of privacy.
(Janov Pelorat in: Isaac Asimov - Foundation's Edge)
http://www.residuum.org/

___
Pd-announce mailing list
pd-annou...@iem.at
http://lists.puredata.info/listinfo/pd-announce

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


[PD] Rocksmith cable

2012-11-03 Thread Thomas Mayer
Hi,

there is a new musical computer game, Rocksmith. You connect a guitar
with 6.3mm jack with an USB port, and then you can play notes that are
detected on the computer or console.

Has anybody tried that adapter yet (with [hid] or [comport])?

Thanks,
Thomas
-- 
Anything can be a tool - poverty, war. War is useful because it
is effective in so many areas. (Bijaz to Hayt in: Frank Herbert -
Dune Messiah)
http://www.residuum.org/

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


[PD] [PD-announce] PuREST JSON 0.8 released

2012-10-27 Thread Thomas Mayer
Hello,

I am glad to announce version 0.8 of PuREST JSON, code name: I did, I
did taw a putty tat.

PuREST JSON is a library for working with RESTful HTTP webservices,  and
JSON data.

Authentication and authorization for webservices are available with
basic HTTP auth, cookie authentication, and OAuth. As an example for
OAuth authenticated webservices, a Twitter client is included.

New objects:
- [rest] performs RESTful HTTP requests (GET, POST, PUT, DELETE), but
does not parse the returned values for JSON. Basic HTTP authentication
and cookie authentication possible.

- [oauth] performs OAuth secured RESTful requests (GET and POST).

- [urlparams] concatenates a list of key/value pairs as URL parameters,
and properly escapes special characters

Changes:
- [rest-json] is now an abstraction wrapping [rest] and [json-decode],
but should perform as before

See help files, manual and examples for details.

Github repository: https://github.com/residuum/PuRestJson
Debian Package for i386:
https://github.com/downloads/residuum/PuRestJson/pd-purest-json_0.8_i386.deb
Debian Package for Raspberry Pi:
https://github.com/downloads/residuum/PuRestJson/pd-purest-json_0.8_armhf.deb

Incomplete compilation instructions:
https://github.com/residuum/PuRestJson/wiki/Compilation

Have fun,
{name: Thomas}
-- 
Chaney was aware that anything, however small, can get the eye of the
media if it's repulsive enough. (Robert Anton Wilson - The Universe
Next Door)
http://www.residuum.org/

___
Pd-announce mailing list
pd-annou...@iem.at
http://lists.puredata.info/listinfo/pd-announce

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


Re: [PD] Trouble installing Pd Extended 0.43.3 on Raspberry Pi

2012-10-25 Thread Thomas Mayer
Hi,

On 25.10.2012 23:54, Josué Deprat wrote:
 Hello everyone!
 
 I following the installing instructions for Pd extended for Raspberry Pi
 and when I run this command:
 
 $ sudo dpkg -i Pd-0.43.3-extended-20121004.deb
 
 I keep getting this error:
 
 Selecting previously unselected package pd-extended.
 (Reading database ... 57768 files and directories currently installed.)
 Unpacking pd-extended (from Pd-0.43.3-extended-20121004.deb) ...
 dpkg: dependency problems prevent configuration of pd-extended:
  pd-extended depends on libfftw3-3; however:
   Package libfftw3-3 is not installed.

(Snip)

 
 dpkg: error processing pd-extended (--install):
  dependency problems - leaving unconfigured
 Processing triggers for man-db ...
 Processing triggers for menu ...
 Processing triggers for hicolor-icon-theme ...
 Processing triggers for desktop-file-utils ...
 Processing triggers for shared-mime-info ...
 Errors were encountered while processing:
 
 Has anyone else encountered this problem?
 If so, any suggestions?
 

dpkg -i does not install the dependencies automatically, so Pd-extended
is partly installed. To get the dependencies, mark them as automatic and
correctly fix the installation of Pd-Extended, run

apt-get -f install

to fix it (should work with aptitude -f install as well)

HTH,
Thomas
-- 
Ich komme aus dem Staunen nicht heraus.
Dann bleib halt drin, du Seppel
(Dietmar Dath - Die Abschaffung der Arten)
http://www.residuum.org/

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


Re: [PD] No pitch bend objects working

2012-10-18 Thread Thomas Mayer
Hi,

what do you mean by pitch bend? Are you looking for an object that applies 
MIDI pitch bend to MIDI notes? Then see attached patch.

If that is not the desired result, then please tell us, what that object should 
do.

Best regards,
Thomas

- Original Message -
From: andy.fri...@gmail.com
To: pd-list@iem.at
Date: 18.10.2012 11:25:32
Subject: Re: [PD] No pitch bend objects working


 Hi,
 
 Thanks, no - I'm looking for an actual pitch bend object, that works!!!
 
 I'm shocked that none of them work on Windows..
 
 
 
 On 17.10.2012 12:06, Andy Friend wrote:
 Hi guys,
 
 I've tried all the common pitch bend objects: bendout, xbendout, and
 xbendout2 (pitchout doesn't seem to exist anymore).
 
 Midi data is being received by NI Kontakt, but no bending is happening
 (also tested in Realstrat).
 
 This is under Win7 64bit, PD Extended 0.42.5, and PD Vanilla 0.43.3
 (bendout object tested).
 
 I'm pretty desperate here - anyone have any ideas?
 
 Are you looking for a pitchshift effect? If so, there are two
 abstractions for that in my set of abstractions:
 https://github.com/residuum/Puredata-abstractions
 
 Another implementation is available in the examples:
 3.audio.examples/G09.pitchshift.pd
 
 Best regards,
 Thomas
 --
 Ich komme aus dem Staunen nicht heraus.
 Dann bleib halt drin, du Seppel
 (Dietmar Dath - Die Abschaffung der Arten)
 http://www.residuum.org/
 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management - 
 http://lists.puredata.info/listinfo/pd-list


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


Re: [PD] No pitch bend objects working

2012-10-18 Thread Thomas Mayer
Oh, and that [-] should be a [+] obviously.

- Original Message -
From: tho...@residuum.org
To: andy.fri...@gmail.com, pd-list@iem.at
Date: 18.10.2012 12:42:56
Subject: Re: [PD] No pitch bend objects working


 Hi,
 
 what do you mean by pitch bend? Are you looking for an object that applies 
 MIDI pitch bend to MIDI notes? Then see attached patch.
 
 If that is not the desired result, then please tell us, what that object 
 should do.
 
 Best regards,
 Thomas
 
 - Original Message -
 From: andy.fri...@gmail.com
 To: pd-list@iem.at
 Date: 18.10.2012 11:25:32
 Subject: Re: [PD] No pitch bend objects working
 
 
 Hi,
 
 Thanks, no - I'm looking for an actual pitch bend object, that works!!!
 
 I'm shocked that none of them work on Windows..
 
 
 
 On 17.10.2012 12:06, Andy Friend wrote:
 Hi guys,
 
 I've tried all the common pitch bend objects: bendout, xbendout, and
 xbendout2 (pitchout doesn't seem to exist anymore).
 
 Midi data is being received by NI Kontakt, but no bending is happening
 (also tested in Realstrat).
 
 This is under Win7 64bit, PD Extended 0.42.5, and PD Vanilla 0.43.3
 (bendout object tested).
 
 I'm pretty desperate here - anyone have any ideas?
 
 Are you looking for a pitchshift effect? If so, there are two
 abstractions for that in my set of abstractions:
 https://github.com/residuum/Puredata-abstractions
 
 Another implementation is available in the examples:
 3.audio.examples/G09.pitchshift.pd
 
 Best regards,
 Thomas
 --
 Ich komme aus dem Staunen nicht heraus.
 Dann bleib halt drin, du Seppel
 (Dietmar Dath - Die Abschaffung der Arten)
 http://www.residuum.org/
 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management - 
 http://lists.puredata.info/listinfo/pd-list
 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management - 
 http://lists.puredata.info/listinfo/pd-list


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


Re: [PD] No pitch bend objects working

2012-10-18 Thread Thomas Mayer
Hi Andy,

in that case, you need to use [bendin] and [bendout] instead of [ctlin] and 
[ctlout]. Pitch bend does not have a CC number 
(http://www.samplemodeling.com/forum/viewtopic.php?f=2t=119) and uses a range 
of 0-16383 instead of 0-127.

Best regards,
Thomas

- Original Message -
From: andy.fri...@gmail.com
To: tho...@residuum.org
Date: 18.10.2012 16:27:07
Subject: Re: Re: [PD] No pitch bend objects working


 I need to map  to the pitch bend wheel directly - so that it is manipulated
 in the external standalone VST, Kontakt.
 
 There doesn't seem to be an available CC for the pitchbend wheel. Thanks,
 but yours appears to just be a stepped workaround.
 
 
 On 18 October 2012 11:49, Thomas Mayer tho...@residuum.org wrote:
 
 Oh, and that [-] should be a [+] obviously.
 
 - Original Message -
 From: tho...@residuum.org
 To: andy.fri...@gmail.com, pd-list@iem.at
 Date: 18.10.2012 12:42:56
 Subject: Re: [PD] No pitch bend objects working
 
 
  Hi,
 
  what do you mean by pitch bend? Are you looking for an object that
 applies MIDI pitch bend to MIDI notes? Then see attached patch.
 
  If that is not the desired result, then please tell us, what that object
 should do.
 
  Best regards,
  Thomas
 
  - Original Message -
  From: andy.fri...@gmail.com
  To: pd-list@iem.at
  Date: 18.10.2012 11:25:32
  Subject: Re: [PD] No pitch bend objects working
 
 
  Hi,
 
  Thanks, no - I'm looking for an actual pitch bend object, that works!!!
 
  I'm shocked that none of them work on Windows..
 
 
 
  On 17.10.2012 12:06, Andy Friend wrote:
  Hi guys,
 
  I've tried all the common pitch bend objects: bendout, xbendout, and
  xbendout2 (pitchout doesn't seem to exist anymore).
 
  Midi data is being received by NI Kontakt, but no bending is happening
  (also tested in Realstrat).
 
  This is under Win7 64bit, PD Extended 0.42.5, and PD Vanilla 0.43.3
  (bendout object tested).
 
  I'm pretty desperate here - anyone have any ideas?
 
  Are you looking for a pitchshift effect? If so, there are two
  abstractions for that in my set of abstractions:
  https://github.com/residuum/Puredata-abstractions
 
  Another implementation is available in the examples:
  3.audio.examples/G09.pitchshift.pd
 
  Best regards,
  Thomas
  --
  Ich komme aus dem Staunen nicht heraus.
  Dann bleib halt drin, du Seppel
  (Dietmar Dath - Die Abschaffung der Arten)
  http://www.residuum.org/
  ___
  Pd-list@iem.at mailing list
  UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list
  ___
  Pd-list@iem.at mailing list
  UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list
 
 


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


Re: [PD] No pitch bend objects working

2012-10-18 Thread Thomas Mayer
Oh, stupid me. You wrote that in your original message. Forget everything I 
wrote in this thread.

Best regards,
Thomas

- Original Message -
From: andy.fri...@gmail.com
To: tho...@residuum.org
Date: 18.10.2012 17:46:52
Subject: Re: Re: Re: [PD] No pitch bend objects working


 For sure - however [bendout] is not working at all.
 
 It's not Kontakt, as have tested sending from Supercollider and all works
 fine.
 
 Can anyone else on Windows please confirm this, before I lose my mind :)
 
 My set: Win 7 x64, PD_Extended 0.42.5, and PD Vanilla 0.43.3, LoopBe1 and
 MIDI Yoke drivers
 
 
 
 On 18 October 2012 16:35, Thomas Mayer tho...@residuum.org wrote:
 
 Hi Andy,
 
 in that case, you need to use [bendin] and [bendout] instead of [ctlin]
 and [ctlout]. Pitch bend does not have a CC number (
 http://www.samplemodeling.com/forum/viewtopic.php?f=2t=119) and uses a
 range of 0-16383 instead of 0-127.
 
 Best regards,
 Thomas
 
 - Original Message -
 From: andy.fri...@gmail.com
 To: tho...@residuum.org
 Date: 18.10.2012 16:27:07
 Subject: Re: Re: [PD] No pitch bend objects working
 
 
  I need to map  to the pitch bend wheel directly - so that it is
 manipulated
  in the external standalone VST, Kontakt.
 
  There doesn't seem to be an available CC for the pitchbend wheel. Thanks,
  but yours appears to just be a stepped workaround.
 
 
  On 18 October 2012 11:49, Thomas Mayer tho...@residuum.org wrote:
 
  Oh, and that [-] should be a [+] obviously.
 
  - Original Message -
  From: tho...@residuum.org
  To: andy.fri...@gmail.com, pd-list@iem.at
  Date: 18.10.2012 12:42:56
  Subject: Re: [PD] No pitch bend objects working
 
 
   Hi,
  
   what do you mean by pitch bend? Are you looking for an object that
  applies MIDI pitch bend to MIDI notes? Then see attached patch.
  
   If that is not the desired result, then please tell us, what that
 object
  should do.
  
   Best regards,
   Thomas
  
   - Original Message -
   From: andy.fri...@gmail.com
   To: pd-list@iem.at
   Date: 18.10.2012 11:25:32
   Subject: Re: [PD] No pitch bend objects working
  
  
   Hi,
  
   Thanks, no - I'm looking for an actual pitch bend object, that
 works!!!
  
   I'm shocked that none of them work on Windows..
  
  
  
   On 17.10.2012 12:06, Andy Friend wrote:
   Hi guys,
  
   I've tried all the common pitch bend objects: bendout, xbendout, and
   xbendout2 (pitchout doesn't seem to exist anymore).
  
   Midi data is being received by NI Kontakt, but no bending is
 happening
   (also tested in Realstrat).
  
   This is under Win7 64bit, PD Extended 0.42.5, and PD Vanilla 0.43.3
   (bendout object tested).
  
   I'm pretty desperate here - anyone have any ideas?
  
   Are you looking for a pitchshift effect? If so, there are two
   abstractions for that in my set of abstractions:
   https://github.com/residuum/Puredata-abstractions
  
   Another implementation is available in the examples:
   3.audio.examples/G09.pitchshift.pd
  
   Best regards,
   Thomas
   --
   Ich komme aus dem Staunen nicht heraus.
   Dann bleib halt drin, du Seppel
   (Dietmar Dath - Die Abschaffung der Arten)
   http://www.residuum.org/
   ___
   Pd-list@iem.at mailing list
   UNSUBSCRIBE and account-management -
  http://lists.puredata.info/listinfo/pd-list
   ___
   Pd-list@iem.at mailing list
   UNSUBSCRIBE and account-management -
  http://lists.puredata.info/listinfo/pd-list
 
 
 
 


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


Re: [PD] No pitch bend objects working

2012-10-17 Thread Thomas Mayer

Hi,

On 17.10.2012 12:06, Andy Friend wrote:

Hi guys,

I've tried all the common pitch bend objects: bendout, xbendout, and
xbendout2 (pitchout doesn't seem to exist anymore).

Midi data is being received by NI Kontakt, but no bending is happening
(also tested in Realstrat).

This is under Win7 64bit, PD Extended 0.42.5, and PD Vanilla 0.43.3
(bendout object tested).

I'm pretty desperate here - anyone have any ideas?


Are you looking for a pitchshift effect? If so, there are two 
abstractions for that in my set of abstractions: 
https://github.com/residuum/Puredata-abstractions


Another implementation is available in the examples: 
3.audio.examples/G09.pitchshift.pd


Best regards,
Thomas
--
Ich komme aus dem Staunen nicht heraus.
Dann bleib halt drin, du Seppel
(Dietmar Dath - Die Abschaffung der Arten)
http://www.residuum.org/

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


[PD] Splitting Objects

2012-09-24 Thread Thomas Mayer
Hello,

as I have once again done some on PuREST JSON, I had the idea to split
an object into two seperate objects and provide the original object as
an abstraction with the library, where the abstraction provides exactly
the same semantics and logic of the original object.

Is there any pitfall to that approach? One thing I need to take care for
are creation arguments. Anything else I need to consider?

Thanks,
Thomas

PS: OAUTH is working now, I have even successfully twittered from Pd :-)
-- 
Prisons are needed only to provide the illusion that courts and police
are effective. They're a kind of job insurance.
(Leto II. in: Frank Herbert, God Emperor of Dune)
http://www.residuum.org/

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


Re: [PD] [PD-dev] Cross Compiling External for Windows - Problem

2012-08-22 Thread Thomas Mayer
Hello Patrice,

On 14.08.2012 11:52, Patrice Colet wrote:
 
 Output: i686-pc-mingw32-gcc
 -I/home/thomas/src/Pd-0.42.5-extended/pd-win/include/pd -std=c99
 re, how to get information about the linker used, and how
 to
 set it in the Makefile. That was part of the original question,
 
 
 try to put this in LDFLAGS or LIBS  -Wl,--verbose to make linker more 
 talkative...

it seems, that I have problems compiling the external with MinGW on
Windows as well. I will try to make that work first, and then go on with
the compilation with MXE on Linux. Your tips have led to some bugs with
my Makefile already.

Thanks,
Thomas
-- 
Anything can be a tool - poverty, war. War is useful because it
is effective in so many areas. (Bijaz to Hayt in: Frank Herbert -
Dune Messiah)
http://www.residuum.org/

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


Re: [PD] [PD-dev] Cross Compiling External for Windows - Problem

2012-08-13 Thread Thomas Mayer
On 10.08.2012 23:20, Patrice Colet wrote:
  the mail reply says how MSVC is involved, 
 
 int _get_output_format( void ); is a standard MSVC function
 
 http://msdn.microsoft.com/en-us/library/571yb472(v=vs.80).aspx

 the problem is certainly because stdlib is different on windows, for
exemple vasprintf() is missing,
 you have to provide it into the sources, like we have done on
gridflow, or provide another function.

 gcc seems to try mscv's _get_output_format() for resolving it without
success...


It must be a linker problem: When I compile the test application for
json-c with MXE, then there is no problem at all, and I can run the
program in Windows correctly.


 Another thing, I've used s_list in an external that compiles fine with g++ 
 linking and declspec embedding...
 
 
 can you post all the compile process, and what is your linker?

My complete compile process is this:
1. Get MXE development version (https://github.com/mxe/mxe), build the
cross compilation tools and necessary libraries (make curl json-c
libiberty pthreads).
1a. (optional) Run built test application in Windows to ensure correct
build process
2. Get PuREST JSON (https://github.com/residuum/PuRestJson). The
Makefile uses the template 1.0.12.
NB: The Makefile in the repository is not the same one as on my local
machine, I will push it once cross compilation is possible.
3. Run make UNAME=MINGW CROSS=i686-pc-mingw32 CROSS_PATH=/opt/mxe/usr
PD_PATH=/home/thomas/src/Pd-0.42.5-extended/pd-win

Output: i686-pc-mingw32-gcc
-I/home/thomas/src/Pd-0.42.5-extended/pd-win/include/pd -std=c99 -DPD
-DVERSION='0.7.1' -mms-bitfields
-I/home/thomas/src/Pd-0.42.5-extended/pd-win/src -mthreads -Wall -W -g
-I/opt/mxe/usr/i686-pc-mingw32/include -O3 -funroll-loops
-fomit-frame-pointer -o libpurest_json.o -c libpurest_json.c
i686-pc-mingw32-gcc -shared -o libpurest_json.dll libpurest_json.o
-lcurl -ljson -L/home/thomas/src/Pd-0.42.5-extended/pd-win/src
-L/home/thomas/src/Pd-0.42.5-extended/pd-win/bin
-L/home/thomas/src/Pd-0.42.5-extended/pd-win/obj -lpd -lwsock32
-lkernel32 -luser32 -lgdi32 -liberty -lpthread
libpurest_json.o: In function `output_json':
/home/thomas/src/pd/my-objects/purest_json/libpurest_json.c:145:
undefined reference to `s_list'
/opt/mxe/usr/lib/gcc/i686-pc-mingw32/4.7.1/../../../../i686-pc-mingw32/lib/libjson.a(printbuf.o):
In function `vasprintf':
/opt/mxe/tmp-json-c/json-c-0.10/printbuf.c:130: undefined reference to
`_vscprintf'
/opt/mxe/usr/lib/gcc/i686-pc-mingw32/4.7.1/../../../../i686-pc-mingw32/lib/libmingwex.a(pformat.o):pformat.c:(.text+0x1732):
undefined reference to `_get_output_format'
collect2: error: ld returned 1 exit status
make: *** [libpurest_json.dll] Fehler 2

I am not sure, how to get information about the linker used, and how to
set it in the Makefile. That was part of the original question,
apparently setting LD in the Makefile is not enough (see
https://gist.github.com/3307768).

Thanks for your help,
Thomas


-- 
Prisons are needed only to provide the illusion that courts and police
are effective. They're a kind of job insurance.
(Leto II. in: Frank Herbert, God Emperor of Dune)
http://www.residuum.org/

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


Re: [PD] first trial,. but no sound

2012-07-05 Thread Thomas Mayer
Hi Stefan,


On 05.07.2012 17:42, Stefan Thomas wrote:
 Dear Kaj,
 thanks for Your help.
 I've installed the lowlatency kernel and I've also reinstalled qjackctl and
 pd, from the ubuntu repositorys.
 But I still do have the problem, that I don't hear any sound.
 I opened Your patch signal-example and I can see the cables.
 But I can't hear any sound!
 I don't have the option compute audio.
 When I click DSP, nothing happens.
 Shall I install a newer or older version from source?

does any other Jack enabled application produce any sound? You could try
something like amsynth, qsynth or hydrogen just to test, if it is
problem with Pd or your Jack configuration.

Best regards,
Thomas
-- 
Theoretically, [the amount of money in circulation] is watched
carefully by clever, serious economists. In practice, all the world's
money is one big swirling, whirling pool. (Cory Doctorow - For The Win)
http://www.residuum.org/

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


[PD] [PD-announce] Patching Circle in Munich, Germany on May 14

2012-05-01 Thread Thomas Mayer
Hi,

on Monday, May 14, 20:00, we will have the first Pd patching circle in
Munich, Germany. I hope, you do not mind, if I give the information in
German only:

Ort: iRRland, Bergmannstraße 8, München

Das iRRland ist ein ehemaliges Elektrogeschäft auf der Schwanthalerhöhe,
öffentlich am besten zu erreichen mit Tram 18 oder 19, Haltestelle
Trappentreustraße, gemietet vom Department of Volxvergnügen.

Getränke sind zu günstigen Preisen zu erstehen, Strom und WLAN sind
vorhanden.

Bis dann,
Thomas
-- 
Prisons are needed only to provide the illusion that courts and police
are effective. They're a kind of job insurance.
(Leto II. in: Frank Herbert, God Emperor of Dune)
http://www.residuum.org/

___
Pd-announce mailing list
pd-annou...@iem.at
http://lists.puredata.info/listinfo/pd-announce

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


[PD] [PD-announce] PuREST JSON Version 0.7.1 released

2012-04-14 Thread Thomas Mayer

Hello,

I am happy to announce version 0.7.1 of PuREST JSON, Codename: cookie 
monster on the couch [*].


PuREST JSON is a library for working with JSON data and communication 
with RESTful HTTP webservices that use JSON data.


New in this release:
- You can now use cookie authentication, e.g. for secure communication 
with a CouchDB, but it also works for any other implementation of HTTP 
security with cookies, as long as the expected post data is in the 
format name=usernamepassword=password, and only expects 1 cookie 
on each request.


- [rest-json] has a third outlet, that reports the HTTP status of the 
request. That enables you to react e.g. on HTTP status 403 and 
re-authorize your connection.


See the help files, manuals and examples for details.

Github repository: https://github.com/residuum/PuRestJson
Debian package for i386: 
https://github.com/downloads/residuum/PuRestJson/pd-purest-json_0.7.1_i386.deb


Have fun,
Thomas

PS: For those of you waiting for OAUTH: I am still planning to 
implementing it, but I am not sure, if a general implementation is even 
possible. But I will see to it.


[*] Well actually 0.7 was cookie monster on the couch, but it still had 
two serious bug that I have fixed.

--
As long as people kept worrying that the machines were taking over,
they wouldn't notice what was really happening. Which was that the
programmers were taking over. (Robert Anton Wilson - The Homing Pidgeons
http://www.residuum.org/

___
Pd-announce mailing list
pd-annou...@iem.at
http://lists.puredata.info/listinfo/pd-announce

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


Re: [PD] Some more float weirdness/fun

2012-03-08 Thread Thomas Mayer
On 08.03.2012 20:47, Jonathan Wilkes wrote:
 - Original Message -
 From: Roman Haefeli reduz...@gmail.com
 To: pd-list@iem.at
 Cc: 
 Sent: Thursday, March 8, 2012 1:52 PM
 Subject: Re: [PD] Some more float weirdness/fun

 On Thu, 2012-03-08 at 16:23 +0100, Lorenzo Sutton wrote:
 Or, beware of trying to compare floats with [==] ...

 Lorenzo.

 That's a good example of the implications inherent in floats. What you
 call a work-around is actually the correct solution. When counting, make
 sure you count with something that can precisely represented by floats,
 otherwise the error will grow with each iteration. Integers up to
 1.6*10^7 meet that criterion.

 Roman
 
 Is this still an issue when float precision is 64-bit?

The issue will arise later, because you have two a many bits for
representing your value, but the problem still exists.

As Pd is a programming language, this is good read on the issue:
http://en.wikipedia.org/wiki/Floating_point#IEEE_754:_floating_point_in_modern_computers
http://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html

or to make the wording quotable:
https://twitter.com/#!/tomscott/status/174143430170120192

Best regards,
Thomas
-- 
As long as people kept worrying that the machines were taking over,
they wouldn't notice what was really happening. Which was that the
programmers were taking over. (Robert Anton Wilson - The Homing Pidgeons)
http://www.residuum.org/

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


Re: [PD] [PD-announce] Windows and Debian packages for PuREST JSON

2012-01-30 Thread Thomas Mayer

Hi,


On 30.01.2012 14:52, m.e.grimm wrote:

great! Thanks!

works! ... i just get a pd crash when message
http://search.twitter.com/search.json?q=%23puredata; is sent to
[rest-json]


Oops, that was a bug that I reintroduced during some code cleanup. I 
have fixed it in git with commit cee81ff:

https://github.com/residuum/PuRestJson/commit/cee81ff94d044caec1c722cb47b54bdd416ef592

Feel free to post any bugs at https://github.com/residuum/PuRestJson/issues


i will be nice when the oauth is implemented. i was just looking at
this recently to send twitter updates... any idea when this might
work?


Right now, I am merging the helpful patches from Hans-Christoph Steiner 
and writing compilation docs in the Github wiki, cleaning out edges etc. 
When that is done, I will tag it 0.6, and make some binary packages.


After that, I will start with OAuth. The problem with OAuth is not so 
much a programming problem, but more of a design problem. What should be 
done in the Pd object, what is the responsibility of the user, how to 
deal with using one object to get data from different servers, how is 
OAuth really implemented at each provider, etc.


I will start off with some ideas and then post some stuff in the Github 
wiki.




great job... really cool stuff...


Thanks.

All the best,
Thomas
--
Anything can be a tool - poverty, war. War is useful because it
is effective in so many areas. (Bijaz to Hayt in: Frank Herbert -
Dune Messiah)
http://www.residuum.org/

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


Re: [PD] [PD-announce] Windows and Debian packages for PuREST JSON

2012-01-30 Thread Thomas Mayer

Hi,

thank you for testing.

On 30.01.2012 14:13, Oli44 wrote:

Le 27/01/2012 21:58, Thomas Mayer a écrit :

Hello,


Hi Thomas,


I have just uploaded new packages for Windows and Debian (i386) of
PuREST JSON.


I just installed the Debian package on a Ubuntu Studio 10.04 LTS install
into ~/pd-externals with Pd-extended 0.42-5 and it works fine for two
things:

I had to add _ instead of the spaces of the [print] objects of your
help files.


I have just committed this to Github.



I got a crash when trying to connect to couchdb through your example.



I will investigate this.


Here is the crash report.

OH

:~/purematter/purestjson$ pdextended
tk scaling is 1.6821192052980132
*** glibc detected *** pdextended: corrupted double-linked list:
0x09609ac8 ***
=== Backtrace: =
/lib/tls/i686/cmov/libc.so.6(+0x6b591)[0x37f591]
/lib/tls/i686/cmov/libc.so.6(+0x6ce41)[0x380e41]
/lib/tls/i686/cmov/libc.so.6(cfree+0x6d)[0x383ecd]
/usr/lib/libjson.so.0(array_list_free+0x47)[0x1b1aae7]
/usr/lib/libjson.so.0(+0x23f5)[0x1b1b3f5]
/usr/lib/libjson.so.0(json_object_put+0x26)[0x1b1adf6]
/usr/lib/libjson.so.0(+0x1edd)[0x1b1aedd]
/usr/lib/libjson.so.0(array_list_free+0x35)[0x1b1aad5]
/usr/lib/libjson.so.0(+0x23f5)[0x1b1b3f5]
/usr/lib/libjson.so.0(json_object_put+0x26)[0x1b1adf6]
/usr/lib/libjson.so.0(+0x1edd)[0x1b1aedd]
/usr/lib/libjson.so.0(array_list_free+0x35)[0x1b1aad5]
/usr/lib/libjson.so.0(+0x23f5)[0x1b1b3f5]
/usr/lib/libjson.so.0(json_object_put+0x26)[0x1b1adf6]
/usr/lib/libjson.so.0(+0x21ff)[0x1b1b1ff]
/usr/lib/libjson.so.0(lh_table_free+0x2c)[0x1b1d7bc]
/usr/lib/libjson.so.0(+0x2b75)[0x1b1bb75]
/usr/lib/libjson.so.0(json_object_put+0x26)[0x1b1adf6]
/home/olivier/pd-externals/purest_json.pd_linux(json_encode_bang+0x2a0)[0x1ad1b20]
pdextended(outlet_bang+0x33)[0x80b9783]
=== Memory map: 
0011-00111000 r-xp  08:03 589083
/usr/lib/pd-extended/extra/libdir.pd_linux
00111000-00112000 r--p  08:03 589083
/usr/lib/pd-extended/extra/libdir.pd_linux
00112000-00113000 rw-p 1000 08:03 589083
/usr/lib/pd-extended/extra/libdir.pd_linux
00113000-00119000 r-xp  08:03 168352 /usr/lib/libv4l2.so.0
00119000-0011a000 r--p 5000 08:03 168352 /usr/lib/libv4l2.so.0
0011a000-0011e000 rw-p 6000 08:03 168352 /usr/lib/libv4l2.so.0
0011e000-0018e000 r-xp  08:03 192404
/usr/lib/libquicktime.so.1.0.0
0018e000-0018f000 r--p 0006f000 08:03 192404
/usr/lib/libquicktime.so.1.0.0
0018f000-00191000 rw-p 0007 08:03 192404
/usr/lib/libquicktime.so.1.0.0
00191000-00192000 rw-p  00:00 0
00192000-001a5000 r-xp  08:03 135097 /lib/libz.so.1.2.3.3
001a5000-001a6000 r--p 00012000 08:03 135097 /lib/libz.so.1.2.3.3
001a6000-001a7000 rw-p 00013000 08:03 135097 /lib/libz.so.1.2.3.3
001a7000-001c1000 r-xp  08:03 192396 /usr/lib/libdv.so.4.0.3
001c1000-001c2000 r--p 00019000 08:03 192396 /usr/lib/libdv.so.4.0.3
001c2000-001c4000 rw-p 0001a000 08:03 192396 /usr/lib/libdv.so.4.0.3
001c4000-001d rw-p  00:00 0
001d-001de000 r-xp  08:03 147925 /usr/lib/libXext.so.6.4.0
001de000-001df000 r--p d000 08:03 147925 /usr/lib/libXext.so.6.4.0
001df000-001e rw-p e000 08:03 147925 /usr/lib/libXext.so.6.4.0
001e1000-001f r-xp  08:03 187000 /usr/lib/libjack.so.0.0.28
001f-001f1000 r--p e000 08:03 187000 /usr/lib/libjack.so.0.0.28
001f1000-001f3000 rw-p f000 08:03 187000 /usr/lib/libjack.so.0.0.28
001f3000-001fb000 rw-p  00:00 0
001fb000-0026c000 r-xp  08:03 143827
/usr/lib/libMagick++.so.2.0.1
0026c000-0026e000 r--p 0007 08:03 143827
/usr/lib/libMagick++.so.2.0.1
0026e000-0026f000 rw-p 00072000 08:03 143827
/usr/lib/libMagick++.so.2.0.1
0026f000-00291000 r-xp  08:03 192394 /usr/lib/libmpeg3.so.1.5.4
00291000-00296000 rw-p 00022000 08:03 192394 /usr/lib/libmpeg3.so.1.5.4
00296000-002a9000 rw-p  00:00 0
002a9000-002ad000 r-xp  08:03 178565
/usr/lib/libXxf86vm.so.1.0.0
002ad000-002ae000 r--p 3000 08:03 178565
/usr/lib/libXxf86vm.so.1.0.0
002ae000-002af000 rw-p 4000 08:03 178565
/usr/lib/libXxf86vm.so.1.0.0
002af000-002cc000 r-xp  08:03 131184 /lib/libgcc_s.so.1
002cc000-002cd000 r--p 0001c000 08:03 131184 /lib/libgcc_s.so.1
002cd000-002ce000 rw-p 0001d000 08:03 131184 /lib/libgcc_s.so.1
002ce000-002fe000 r-xp  08:03 131141 /usr/lib/liblcms.so.1.0.18
002fe000-002ff000 r--p 0002f000 08:03 131141 /usr/lib/liblcms.so.1.0.18
002ff000-0030 rw-p 0003 08:03 131141 /usr/lib/liblcms.so.1.0.18
0030-00302000 rw-p  00:00 0
00302000-00312000 r-xp  08:03 130355 /lib/libbz2.so.1.0.4
00312000-00313000 r--p f000 08:03 130355 /lib/libbz2.so.1.0.4
00313000-00314000 rw-p 0001 08:03 130355 /lib/libbz2.so.1.0.4
00314000-00467000 r-xp  08:03 132578
/lib/tls/i686/cmov/libc-2.11.1.so
00467000-00468000 ---p 00153000 08:03 132578
/lib/tls/i686

Re: [PD] [PD-announce] Windows and Debian packages for PuREST JSON

2012-01-30 Thread Thomas Mayer

Hi Olivier,

On 30.01.2012 20:29, Thomas Mayer wrote:

Hi,

thank you for testing.

On 30.01.2012 14:13, Oli44 wrote:

I got a crash when trying to connect to couchdb through your example.

Here is the crash report.

OH

:~/purematter/purestjson$ pdextended
tk scaling is 1.6821192052980132
*** glibc detected *** pdextended: corrupted double-linked list:
0x09609ac8 ***
=== Backtrace: =
/lib/tls/i686/cmov/libc.so.6(+0x6b591)[0x37f591]


[snip]


/usr/lib/libjson.so.0(json_object_put+0x26)[0x1b1adf6]
/home/olivier/pd-externals/purest_json.pd_linux(json_encode_bang+0x2a0)[0x1ad1b20]

pdextended(outlet_bang+0x33)[0x80b9783]
=== Memory map: 


[snip]


22: /usr/lib/libjson.so.0(json_object_put+0x26) [0x1b1adf6]
23:


I just wanted to say, that I have just fixed a bug related to calls to 
json_object_put() [1], so maybe that crash is fixed as well. I have not 
updated the binary packages yet.


[1] https://github.com/residuum/PuRestJson/issues/4

Best regards,
Thomas
--
From the perspective of communication analysis, government is not
an instrument of law and order, but of law and disorder. (Gracchus
Gruad in: Robert Shea  Robert A. Wilson, The Golden Apple)
http://www.residuum.org/

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


[PD] [PD-announce] Windows and Debian packages for PuREST JSON

2012-01-27 Thread Thomas Mayer
Hello,

I have just uploaded new packages for Windows and Debian (i386) of
PuREST JSON.

PuREST JSON is a library for connecting Pd to HTTP services and encoding
and decoding JSON data.

The library can issue GET, POST, PUT and DELETE statements, so
consumation of RESTful services is possible, e.g. CouchDB.

https://github.com/residuum/PuRestJson/downloads

I have written compilation instructions in the wiki, and am currently
trying to cross-compile for Windows on Debian. The next logical step is
trying to get cross-compilation for Mac OS X working, any pointers on
how to accomplish that?

Have fun,
{name: Thomas}
-- 
We left all that stuff out. If there's an error, we have this
routine called panic, and when it is called, the machine crashes,
and you holler down the hall, 'Hey, reboot it.' (Dennis Ritchie)
http://www.residuum.org/

___
Pd-announce mailing list
pd-annou...@iem.at
http://lists.puredata.info/listinfo/pd-announce

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


[PD] [PD-announce] PuREST JSON Version 0.5 released

2011-11-28 Thread Thomas Mayer

Hello,

I am happy to announce Version 0.5 of PuREST JSON, a library for working 
with JSON data and communication with RESTful HTTP webservices, that use 
JSON data.


What is JSON?
JSON (JavaScript Object Notation) is a lightweight data-interchange 
format. It is easy for humans to read and write. It is easy for machines 
to parse and generate. It is based on a subset of the JavaScript 
Programming Language, Standard ECMA-262 3rd Edition - December 1999. 
JSON is a text format that is completely language independent but uses 
conventions that are familiar to programmers of the C-family of 
languages, including C, C++, C#, Java, JavaScript, Perl, Python, and 
many others. These properties make JSON an ideal data-interchange language.


Why should I care about JSON and PuREST JSON?
A lot of services on the web are available through JSON webservices, 
e.g. you can use live data from Twitter via a JSON API and use it for 
generative art - an example using Bitcoin prices is included. A lot of 
NoSQL databases use JSON data and a RESTful interface for storing and 
retrieving data, e.g. MongoDB and CouchDB.


Examples, helpfiles and manual are included in the source and Debian 
package.


Download:
Sourcecode from github: https://github.com/residuum/PuRestJson
Debian package for i386: 
https://github.com/downloads/residuum/PuRestJson/purest-json_0.5_i386.deb


See the changelog:
https://github.com/residuum/PuRestJson/blob/master/Changelog.txt

Have fun and best regards,
Thomas
--
Anything can be a tool - poverty, war. War is useful because it
is effective in so many areas. (Bijaz to Hayt in: Frank Herbert -
Dune Messiah)
http://www.residuum.org/

___
Pd-announce mailing list
pd-annou...@iem.at
http://lists.puredata.info/listinfo/pd-announce

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


[PD] CouchPdb is now PuREST JSON

2011-09-19 Thread Thomas Mayer
Hello,

I have just finished some work on my library formerly known as CouchPdb,
PuREST JSON. It is a library for connecting to RESTful webservices and
getting and storing data in JSON format. The library includes three
objects [rest-json], [json-encode] and [json-decode].

Help patches for these objects are included, as well as (incomplete)
build instructions and demo patches.

The library is available from github:
https://github.com/residuum/PuRestJson

A demo track using data from bitcoincharts.com is also available from
soundcloud:
http://soundcloud.com/residuum/the-sound-of-virtual-money

Best regards,
Thomas
-- 
We left all that stuff out. If there's an error, we have this
routine called panic, and when it is called, the machine crashes,
and you holler down the hall, 'Hey, reboot it.' (Dennis Ritchie)
http://www.residuum.org/

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


Re: [PD] [PD-announce] CouchPdb 0.1

2011-09-19 Thread Thomas Mayer
The library has meanwhile been renamed to PuREST JSON, because it 
handles not only CouchDB requests but all kind of RESTful requests to 
webservices: https://github.com/residuum/PuRestJson


On 19.09.2011 13:40, Jamie Bullock wrote:


Hi Thomas,

Congratulations, this sounds like a really useful project.

The URL https://github.com/residuum/CouchPdb is giving me a 404 error however.

All best,

Jamie

--
http://www.jamiebullock.com



On 5 Sep 2011, at 19:31, Thomas Mayer wrote:


Hello,

I am proud to announce CouchPdb 0.1, a library for communication with
CouchDB, a document-oriented database.

The library consists of three objects: [couchdb] for the communication
with CouchDB, [json-encode] for building JSON objects for storing in the
database, and [json-decode] that uses the same mechanisms as [couchdb]
for outputting JSON objects.

Currently the Makefile is only optimized for Debian GNU/Linux Wheezy,
you will need a version of libcurl-dev and libjson0-dev (alias json-c)
installed.

Help patches for the objects are included, please report bugs on the
project homepage. For the help patches to work, you will need to have a
running instance of CouchDB on localhost and port 5984 (standard port).

https://github.com/residuum/CouchPdb

Thanks for your attention and your help,
Thomas
--
When one's home has a really excellent computer capable of reaching
other computers anywhere in the Galaxy, one scarcely needs to budge.
(Janov Pelorat in: Isaac Asimov - Foundation's Edge)
http://www.residuum.org/

___
Pd-announce mailing list
pd-annou...@iem.at
http://lists.puredata.info/listinfo/pd-announce

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



--
We left all that stuff out. If there's an error, we have this
routine called panic, and when it is called, the machine crashes,
and you holler down the hall, 'Hey, reboot it.' (Dennis Ritchie)
http://www.residuum.org/

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


Re: [PD] Announcing CouchPdb development

2011-09-08 Thread Thomas Mayer

Hello all,

On 03.09.2011 18:36, Mathieu Bouchard wrote:

On Wed, 31 Aug 2011, Thomas Mayer wrote:


I came up with lists: The example above outputs now on the left outlet
list id 1
list name my\ name
list year 2011


Yes, that sounds like the appropriate thing to do with Pd.


After a JSON object is decoded, I output a bang on a second outlet, and
therefore can distinguish between two objects in short succession.


Yes, either that or an 'end' message on the first inlet, but what you
did is more usual.


Here is what I came up for arrays and nested objects:
If they come up inside an object, they are output as the symbol that 
they are. The JSON string can then be parsed by another instance of 
[json-decode] (or send it recursively to the same object).


Arrays as symbols themselves are parsed like several seperate objects. 
Here is an example:


Consider the JSON string
{id: 1, name: Residuum,member: {first-name: Thomas, 
last-name: Mayer}, albums: [{year: 2011, name: Der 
Diskokeller des Grauens}, {year: 2009, name: Schrei-Funk-Flaeche}]}


When parsed with an instance of [json-decode] this will output
list id 1
list name Residuum
list member {first-name: Thomas, last-name: Mayer}
list albums [{year: 2011, name: Der Diskokeller des Grauens}, 
{year: 2009, name: Schrei-Funk-Flaeche}]


followed by a bang on the second outlet.

When parsing the array for albums, i.e.
[{year: 2011, name: Der Diskokeller des Grauens}, {year: 2009, 
name: Schrei-Funk-Flaeche}]


This will output:
list year 2011
list name Der\ Diskokeller\ des\ Grauens
bang on second outlet
list year 2009
list name Schrei-Funk-Flaeche
bang on second outlet

The current version is available at https://github.com/residuum/CouchPdb

Thanks for reading,
Thomas
--
[D]ie Kunst flieht, wenn ihr eure Thaten sofort mit dem historischen
Zeltdach überspannt. (Friedrich Nietzsche - Vom Nutzen und Nachtheil
der Historie für das Leben)
http://www.residuum.org/

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


[PD] Problem with lists and data

2011-08-31 Thread Thomas Mayer

Hi there,

while developping my CouchPdb library I came up with the following problem:

I put out lists like this:

list _id 1
list pitch 440

Now I am trying to get the values for _id and pitch as floats, but that 
does not seem to work:


[couchdb]
|
[list trim]
|
[route _id pitch]
\   |
 \  |
[f]   [f]

But I am always getting the message:

error: inlet: expected 'float' but got '1'

When I try to use [symbol] instead of [f], I get a similar error message.

In my object I do the following:

t_atom out_data[2]
SETSYMBOL(out_data[0], gensym(key));
SETFLOAT(out_data[1], json_object_get_double(val));
outlet_list(data_outlet, s_list, 2, out_data[0]);

What am I doing wrong?

Best regards,
Thomas
--
Chaney was aware that anything, however small, can get the eye of the
media if it's repulsive enough. (Robert Anton Wilson - The Universe
Next Door)
http://www.residuum.org/

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


Re: [PD] Balloon Project

2011-08-31 Thread Thomas Mayer
On 31.08.2011 17:59, Dan Wilcox wrote:
 Here's documentation of a small project using balloons, a kinect, and PD:
 
 http://danomatika.com/blog/balloon-project/

Great! Although ... I have some personal problems listening to Nena. Too
many bad memories associated with the woman.

Best regards,
Thomas
-- 
[D]ie Kunst flieht, wenn ihr eure Thaten sofort mit dem historischen
Zeltdach überspannt. (Friedrich Nietzsche - Vom Nutzen und Nachtheil
der Historie für das Leben)
http://www.residuum.org/

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


Re: [PD] Problem with lists and data

2011-08-31 Thread Thomas Mayer

On 31.08.2011 23:19, Jonathan Wilkes wrote:

That probably means you're formatting that part of your list
as symbol-atom '1' instead of float-atom '1'.

Thus, the [route] object is outputting symbol-atom '1', which is just a
message where the selector is the symbol-atom '1'.  The right inlet of [f]
has a method for messages with the selector 'float', but it doesn't have a
symbol-atom '1' method, so you get the error.


Yes, that gave me a pointer to the problem (for those interested, see below)


In my object I do the following:

t_atom out_data[2]
SETSYMBOL(out_data[0], gensym(key));
SETFLOAT(out_data[1], json_object_get_double(val));
outlet_list(data_outlet,s_list, 2,out_data[0]);

What am I doing wrong?


CouchDB more or less always quotes the values, so it is a JSON string, 
which I now parse with:


case json_type_string:
SETSYMBOL(out_data[0], gensym(key));
/* Float values might come as string */
const char *string_value = json_object_get_string(val);
float_value = atof(string_value);
if (float_value == 0  strcmp(string_value, 0) != 0) {
SETSYMBOL(out_data[1], gensym(string_value));
} else {
SETFLOAT(out_data[1], float_value);
}
outlet_list(data_outlet, s_list, 2, out_data[0]);
break;

Now, it is working as intended. Is this the standard way in C to get 
possible floats out of strings?


Best regards,
Thomas
--
Prisons are needed only to provide the illusion that courts and police
are effective. They're a kind of job insurance.
(Leto II. in: Frank Herbert, God Emperor of Dune)
http://www.residuum.org/

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


[PD] Announcing CouchPdb development

2011-08-26 Thread Thomas Mayer
Hello,

inspired by the great effort of Louis-Philippe with Puredis, I have
started developping a library for another of the NoSQL databases out
there, CouchDB.

CouchDB is a database with a RESTful interface, i.e. you connect to the
database with HTTP requests and depending on the HTTP method you perform
the operations. The data you send to CouchDB for storage and the data
you receive back from CouchDB are JSON objects, so (more or less) as a
lemma, the library also contains objects for encoding and decoding JSON
data.

The current version is online at https://github.com/residuum/CouchPdb

A reason for developping the library is Ubuntu One, as it offers a free
5GB space and includes a CouchDB database.

All is in an early stage of development, so do not expect anything to
work, it is still very experimental.

I mainly uploaded it to Github to discuss a few points, where I do not
know how to deal with in a manner fitting Pd, especially when it comes
to encoding and decoding JSON data:

- How should JSON data be dealt with in general? I am currently just
outputting one long symbol separated by spaces, so an object of
{id:1, name: my-name}
becomes
id 1 name my-name
but
{id:1, name: my name, year:2011}
becomes
id 1 name my name year 2011
and thus breaks the pattern of key value key value key value.

I could output this as list, which would make spaces in values not break
the pattern of key value key value key value (really?). But is this
really a way to represent data in the correct Pd way, i.e. does this
data format fit the principle of least surprise?

- How should nested objects and arrays be handled? Should they be
handled at all?

- How to implement attachments (binary files) for data? Or should I
forget about this stuff and e.g. store images as base64 encoded strings?
I am asking this one in particular, because one application of the
object that came into my mind would be a website to upload pictures that
are downloaded by a Pd patch in an installation in some gallery, or
multiple gallery installations worldwide uploading snapshop images and
interacting somehow.

Please do not read the code ;) I have not programmed C for ~10 years,
and I have never coded anything but simple stuff for university. So
actually: Read the code and give me pointers (no pun intended) to
problematic code.

Best regards,
Thomas
-- 
Prisons are needed only to provide the illusion that courts and police
are effective. They're a kind of job insurance.
(Leto II. in: Frank Herbert, God Emperor of Dune)
http://www.residuum.org/

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


Re: [PD] Linux script to launch JACK and Pd at once

2011-01-07 Thread Thomas Mayer
Hi,

On 07.01.2011 20:49, Pierre Massat wrote:
 don't know if it made it through the storm...
 
 2011/1/3 Pierre Massat pimas...@gmail.com
 
 Hi all!

 Happy new year first of all!

 Is there a way i can write a script that would start Jack and Pd in the
 proper order by clicking on a single file?

I have made two simple scripts for that, one that starts jack, qjackctl
and programs, that are in a text file with each program in a seperate
line, and another script to stop all started programs. To use them for
puredata only, rewrite the while[$1]; do done portions to start only Pd.

The textfiles look like that:

pdextended -rt -jack -alsamidi -inchannels 2 -outchannels 8
ardour2

 And is there a way i can start both as root? (I need to use HID) I'm
 assuming this would be quite a big breach though.

To start programs with root provileges, use gksu or gksudo for X11 programs.

cu Thomas
-- 
[D]ie Kunst flieht, wenn ihr eure Thaten sofort mit dem historischen
Zeltdach überspannt. (Friedrich Nietzsche - Vom Nutzen und Nachtheil
der Historie für das Leben)
http://www.residuum.org/
#! /bin/bash
# mknoise v0.1
# starts jackd and qjackctl (if not already running) and programs from a
# text file, each program in new line including options

# takes text file(s) as argument: $ ./mknoise file1 [file2 ...]

if pgrep jackd
then true 
else /usr/bin/jackd -dalsa -r44100  /dev/null 21
fi

if pgrep qjackctl  
then true 
else /usr/bin/qjackctl  /dev/null 21
fi

while [ $1 ]; do
cut -d   -f 1 $1  .musicapplist 
while read; do
X=$REPLY
$X  /dev/null 21
done  $1
shift 
done
#! /bin/bash
# stopnoise v0.1
# stops programs, that have been invoked by mknoise
# including jackd and qjackstl

# run with $ ./stopnoise

while read ; do
X=$REPLY
killall $X
done .musicapplist

rm .musicapplist

killall qjackctl
killall jackd
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] beginner's question - counter inside a counter?

2010-11-20 Thread Thomas Mayer
On 20.11.2010 14:51, 2bad4...@london.com wrote:
 
 Hello,
  
 I have built a counter that counts from 1 to 19 and then starts again from 
 the beginning.
 
 It reads the values from the array. However I would like it to stop after it 
 reads the values three times. I was thinking of using another counter to do 
 that. Any suggestions? Where should I put the other counter and how would it 
 work?

You could count from 0 to 3*19, and then use [mod 19] and [+ 1] to get
the desired values from 0 to 19. When you read 3*19, stop it.

By the way: The standard way in Pd to do a counter is to use the
[f] X [+ 1] idiom.

cu Thomas
-- 
Spielen Sie Strip Schnipp-Schnapp? (Adam Weishaupt to Johann
Wolfgang von Goethe in: Robert Shea  Robert A. Wilson, The Golden
Apple)
http://www.residuum.org/

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


Re: [PD] the Pope likes Pd-extended 0.42.5

2010-09-18 Thread Thomas Mayer
On 18.09.2010 05:05, ydego...@gmail.com wrote:
 Ed Kelly wrote:
 Evangelise boy, the Pope is in town and I think we've got one-up on
 the Vatican
 (do the Mussolini)


 it was :'tanzen Mussolini', 'tanzen Adolf Hitler'
 
 ok, i'm older than any on this list except Miller,
 sometimes sounds an old 'leave your illusion at the door' one,
 i admit
 
 sevy
 
 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list
 

You're both right: Do the Mussolini was by Cabaret Voltaire, Der
Mussolini by DAF ;)

And now back to OT: PD-extended 0.42.5 runs great on both my Debian
squeeze machines and I like it. Thank you, Miller, for developping Pd,
Hans for packaging etc, and all the other contributors.

Best regards,
Thomas
-- 
Spielen Sie Strip Schnipp-Schnapp? (Adam Weishaupt to Johann
Wolfgang von Goethe in: Robert Shea  Robert A. Wilson, The Golden
Apple)
http://www.residuum.org/

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


Re: [PD] Pd-extended 0.41.4 release candidate 1

2009-05-16 Thread Thomas Mayer
Hi,

Hans-Christoph Steiner wrote:
 
 Ok, so this thing is just about ready to release!  Please hammer on it,
 report any little bug or annoyance you might find to the bug tracker! 
 You can see some info about the included changes here:
 
 http://puredata.info/dev/NextRelease
 
 Windows and Debian/PowerPC builds coming soon
 
 http://at.or.at/hans/pd/installers.html
 
 .hc

The deb for Debian Lenny depends on liblame0 from Debian Multimedia
(lame 3.97), but there is also a package libmp3lame0 (lame 3.98) that
conflicts with liblame0. pd-extended 0.40.3-1 depends on libmp3lame0,
that should be the preferred one.

Keep on the good work,
Thomas
-- 
Prisons are needed only to provide the illusion that courts and police
are effective. They're a kind of job insurance.
(Leto II. in: Frank Herbert, God Emperor of Dune)
http://www.residuum.org/

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


Re: [PD] , , , || etc

2009-04-06 Thread Thomas Mayer
Claude Heiland-Allen wrote:
 Martin Peach wrote:
 Mathieu Bouchard wrote:
 On Sun, 5 Apr 2009, Martin Peach wrote:

 The shell's [] (/usr/bin/test) also has -gt,-lt,-ge,-le,-eq,-ne,
 which it uses for numeric comparisons, whereas it uses
 ,,=,=,==,!= for string comparisons. It also needs both by design.
 [snip]
 Oh I see. But that notation is only standard in shell languages
 
 also at least one assembly language:
 
 http://en.wikibooks.org/wiki/68000_Assembly#Conditional_tests
 
 
 Claude

and in the PHP template engine PHPTAL:
http://phptal.motion-twin.com/manual/en/#tal-condition

Thomas
-- 
Spielen Sie Strip Schnipp-Schnapp? (Adam Weishaupt to Johann
Wolfgang von Goethe in: Robert Shea  Robert A. Wilson, The Golden
Apple)
http://www.residuum.org/

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


[PD] Some abstractions for you to take

2009-02-16 Thread Thomas Mayer
Hi,

as I am not a total newbie to Pd any more, I would like to share some of
my abstractions with the list, that I have made for my live performances
which consist of recording audio and midi loops live and play them back.

Another thing I have posted on my website is my vj bot that uses Gem,
maybe it is also an inspiration to some people on this list, although
not really well done ;)

http://www.residuum.org/pd.html

cu Thomas
-- 
[D]ie Kunst flieht, wenn ihr eure Thaten sofort mit dem historischen
Zeltdach überspannt. (Friedrich Nietzsche - Vom Nutzen und Nachtheil
der Historie für das Leben)
http://www.residuum.org/

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


[PD] Dynamically Changing properties of a horizontal slider

2008-12-18 Thread Thomas Mayer
Hello,

I am trying to create a live sampler / looper abstraction. It will have
two horizontal sliders with the start / stop point of the loop. As I
will replace the recording during the performance, I need a way to
change the values of the output range of the slider dynamically, e.g. to
set the range of the slider from 0 to 44100 with

[output-range 0 44100(
|
[s receive_name_of_hsl]

Thanks in advance,
Thomas
-- 
Prisons are needed only to provide the illusion that courts and police
are effective. They're a kind of job insurance.
(Leto II. in: Frank Herbert, God Emperor of Dune)
http://thomas.dergrossebruder.org/

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


Re: [PD] Dynamically Changing properties of a horizontal slider

2008-12-18 Thread Thomas Mayer
Claude Heiland-Allen wrote:
 Thomas Mayer wrote:
 Hello,

 I am trying to create a live sampler / looper abstraction. It will have
 two horizontal sliders with the start / stop point of the loop. As I
 will replace the recording during the performance, I need a way to
 change the values of the output range of the slider dynamically, e.g. to
 set the range of the slider from 0 to 44100 with
 
 check the help patch, pd edit subpatch
 
 almost as you have, but just called range
 

Thanks, that's it.

cu Thomas
-- 
Prisons are needed only to provide the illusion that courts and police
are effective. They're a kind of job insurance.
(Leto II. in: Frank Herbert, God Emperor of Dune)
http://thomas.dergrossebruder.org/

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


Re: [PD] trying to figure out limiter~ (zexy)

2008-12-15 Thread Thomas Mayer
Hi,

Yvan Vander Sanden wrote:
 I was trying to make myself understand how zexy's limiter works but I
 can't get any sound out of it.
 
 In a very basic set-up like this:
 
 [osc~ 440]
|
 [dac~ 1]
 
 I do get sound. But when routing the audio through the limiter there
 is no sound any more
 
 [osc~ 440]
|
 [limiter~]
|
 [dac~ 1]
 

As the help patch states limiter~ does not output the limited signal
itself (as a standard limiter hardware would do), but the
multiplication factor for getting the limited signal.

So, your patch has to look something like
[osc~]
|   \
[limiter~]  [z~ 64]
|   /
[*~]
|
[dac~]

cu Thomas
-- 
Prisons are needed only to provide the illusion that courts and police
are effective. They're a kind of job insurance.
(Leto II. in: Frank Herbert, God Emperor of Dune)
http://thomas.dergrossebruder.org/

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


Re: [PD] [Gnome/Ubuntu] Gem video on external screen

2008-10-22 Thread Thomas Mayer
Hi,

Martin . wrote:
 The CPU jumps to 60% when playing video with the external screen on,
 but lays nicely on 8-9% when only playing on the normal screen. I
 guess lots of people are working with similar stuff - are there other
 (more stable/safe/efficient) ways of getting to this? or is the high
 CPU something to expect when using an external screen?

your problem here definitely is that 3D rendering on the GPU is not
working with two screens, therefore all the computation is done by the CPU.

cu Thomas
-- 
Prisons are needed only to provide the illusion that courts and police
are effective. They're a kind of job insurance.
(Leto II. in: Frank Herbert, God Emperor of Dune)
http://thomas.dergrossebruder.org/

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


Re: [PD] removing NaN

2008-09-13 Thread Thomas Mayer
David Brynjar Franzson wrote:
 Hi,
 
  is there any simple way to replace all NaN values with Zeros or
 to filter them out?

If you do not have lists, then route should do the trick:

[route f]
|   |
|   [0(

cu Thomas
-- 
Prisons are needed only to provide the illusion that courts and police
are effective. They're a kind of job insurance.
(Leto II. in: Frank Herbert, God Emperor of Dune)
http://thomas.dergrossebruder.org/


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


Re: [PD] Pd-0.39.2-extended-rc4 released

2008-07-23 Thread Thomas Mayer
Hans-Christoph Steiner wrote:
 http://at.or.at/hans/pd/installers.html
 
 It's looking quite stable, so please try it if you haven't already so  
 we can find the last bugs.  As far as I know, there aren't any  
 outstanding bugs that need to be fixed for this release.
 
 Test away and file bugs in the bug tracker!
 
 http://puredata.org/dev/bugtracker
 
 (the Mac OS X 10.4/Intel build is not up yet, and will hopefully be  
 up tomorrow).

Did you mean 0.40.3-rc4? If so, there is no such file on the server,
only 0.40.3-rc3 which was released one month ago.

Another thing: Pd-extended for Debian testing is depending on liblame0
while the debian-multimedia repository is replacing liblame0 with
libmp3lame0 with the upgrade from 3.97 to 3.98. Could you please do the
same switch as Pd-extended is a blocker for several other upgrades.

That said, all I can say is: Keep up with the great work and thanks for
all this.

cu Thomas
-- 
Prisons are needed only to provide the illusion that courts and police
are effective. They're a kind of job insurance.
(Leto II. in: Frank Herbert, God Emperor of Dune)
http://thomas.dergrossebruder.org/

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


Re: [PD] Pd-extended 0.40 cannot load libraries

2008-07-18 Thread Thomas Mayer
Hi,

Hans-Christoph Steiner wrote:
 
 Can you post the transcript from the Pd window?  Are you using your own
 .pdrc or .pdsettings?  Sounds like 'libdir' might not be getting
 loaded.  It needs to be loaded first.
 
 Also, it is better to use the default preferences, then use either
 [import] or [declare] to load other libraries that you might need.

yes, 'twas brilling^W libdir that needed to be loaded.

Thanks for the fast help,
Thomas
-- 
Prisons are needed only to provide the illusion that courts and police
are effective. They're a kind of job insurance.
(Leto II. in: Frank Herbert, God Emperor of Dune)
http://thomas.dergrossebruder.org/

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


[PD] Pd-extended 0.40 cannot load libraries

2008-07-17 Thread Thomas Mayer
Hello,

after my switch from Debian Etch to Lenny I have also tried the latest
versions of Pd-extended, 0.40-rc3 and the current autobuilds for 0.40
and 0.42. All three of them cannot load certain libraries that are in my
startup list. Having not followed the list closely in the last weeks and
months, I am not sure if this is a know or even intended behaviour, but
Gem gets loaded without any problems.

Libs that don't get loaded: zexy, flatspace, rtc, cyclone.

cu Thomas
-- 
Prisons are needed only to provide the illusion that courts and police
are effective. They're a kind of job insurance.
(Leto II. in: Frank Herbert, God Emperor of Dune)
http://thomas.dergrossebruder.org/


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


[PD] Pdpedia error messages

2008-06-30 Thread Thomas Mayer
Hi,

when I try to open http://wiki.puredata.info/en/ I get all those php
messages:

Warning: require_once(WikiFamilySettings.php) [function.require-once]:
failed to open stream: Permission denied in
/Library/WebServer/VirtualHosts/pdpedia/htdocs/en/LocalSettings.php on
line 29

Fatal error: require_once() [function.require]: Failed opening required
'WikiFamilySettings.php'
(include_path='/Library/WebServer/VirtualHosts/pdpedia/htdocs/en:/Library/WebServer/VirtualHosts/pdpedia/htdocs/en/includes:/Library/WebServer/VirtualHosts/pdpedia/htdocs/en/languages:.:')
in /Library/WebServer/VirtualHosts/pdpedia/htdocs/en/LocalSettings.php
on line 29

cu Thomas
-- 
Prisons are needed only to provide the illusion that courts and police
are effective. They're a kind of job insurance.
(Leto II. in: Frank Herbert, God Emperor of Dune)
http://thomas.dergrossebruder.org/

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


Re: [PD] [shell] issue

2008-04-29 Thread Thomas Mayer
Olivier Heinry wrote:
 Le Mon, 28 Apr 2008 12:13:10 +0200,
 Thomas Mayer [EMAIL PROTECTED] a écrit :
 
 Olivier Heinry wrote:
 hi,

 I've got this command line that flushes the disk cache on Linux 2.6.16 and 
 later that's very useful to clean big video files from RAM:

 sudo sync; sudo echo 1  /proc/sys/vm/drop_caches

 Any of you has an idea how to give a [sudo cmd( message to the [shell] 
 object and on-interactively give the sudo password?

 One way is to exclude these commands from needing the password via
 http://lists.debian.org/debian-user/2004/02/msg00656.html

 Another way is pipelining stdin:
 echo YOURPASSWORD|sudo sync; ...

 or for some real shell programming and using a textfile for stdin:
 http://www.tldp.org/LDP/abs/html/io-redirection.html

 cu Thomas
 
 Thanks big brother, i've added it to Pdpedia tips and tricks

Thanks, I have elaborated the part a bit, and added pros and cons for
the three methods.

cu Thomas
-- 
Prisons are needed only to provide the illusion that courts and police
are effective. They're a kind of job insurance.
(Leto II. in: Frank Herbert, God Emperor of Dune)
http://thomas.dergrossebruder.org/

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] [shell] issue

2008-04-28 Thread Thomas Mayer
Olivier Heinry wrote:
 hi,
 
 I've got this command line that flushes the disk cache on Linux 2.6.16 and 
 later that's very useful to clean big video files from RAM:
 
   sudo sync; sudo echo 1  /proc/sys/vm/drop_caches

 Any of you has an idea how to give a [sudo cmd( message to the [shell] object 
 and on-interactively give the sudo password?


One way is to exclude these commands from needing the password via
http://lists.debian.org/debian-user/2004/02/msg00656.html

Another way is pipelining stdin:
echo YOURPASSWORD|sudo sync; ...

or for some real shell programming and using a textfile for stdin:
http://www.tldp.org/LDP/abs/html/io-redirection.html

cu Thomas
-- 
Prisons are needed only to provide the illusion that courts and police
are effective. They're a kind of job insurance.
(Leto II. in: Frank Herbert, God Emperor of Dune)
http://thomas.dergrossebruder.org/

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] CRAZY! mcdvd_32.dll

2008-04-03 Thread Thomas Mayer
matteo sisti sette wrote:
 Hi,
 
 I have a project that I made with an old version of GEM under Windows,
 namely a 0.90 compiled on August 3 2004 (a precompiled binary I downloaded
 from iem.at or somewhere).
 
 At that time, I had many difficulties in finding a version that wouldn't
 crash AND that supported dv-pal; however I did find it and the project has
 always worked fine.
 
 In this project I used dv-pal-encoded AVI files and I'm not sure whether
 that version of GEM uses Quicktime or Directshow to open them, but I think
 directshow (apparently supports both).
 
 Currently, for other projects, I usually use a more recent and stable
 version of GEM (still not the latest), but I had some troubles trying to
 upgrade this project to the new version; so, since it just works fine, I
 always run it with its own dedicated version of GEM, that of 2004.
 
 I have run it in a few machines without problems, but now I have copied it
 into another machine and it crashes.
 The funny thing is that the module that crashes is mcdvd_32.dll that is
 found in windows/system32, but on the machine where gem does not crash I
 don't even have that dll anywhere

[snip]

 So what is mcdvd_32.dll?

MainConcept DV Codec according to
http://www.softwaretipsandtricks.com/dll/14693-Mcdvd_32dll.html

 Why is gem using this dll, if the same gem on another machine is not using
 it (it isn't even present in that machine)?
 How can I force him not to use it?

I am not sure, but try moving the dll out of the way, if you have
qcap.dll in the same folder, according to
http://forum.doom9.org/archive/index.php/t-1.html

HTH,
Thomas
-- 
Prisons are needed only to provide the illusion that courts and police
are effective. They're a kind of job insurance.
(Leto II. in: Frank Herbert, God Emperor of Dune)
http://thomas.dergrossebruder.org/

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Linux sounds better than Windows!

2008-03-08 Thread Thomas Mayer
sven wrote:
 i have speaker cables made of pure gold.
 i know what i'm talking about.

About expensive speaker cables:
http://consumerist.com/362926/do-coat-hangers-sound-as-good-monster-cables

cu Thomas
-- 
Prisons are needed only to provide the illusion that courts and police
are effective. They're a kind of job insurance.
(Leto II. in: Frank Herbert, God Emperor of Dune)
http://thomas.dergrossebruder.org/

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] Toggle Audio Computation in Subpatch

2008-02-22 Thread Thomas Mayer
Hello,

is there a way to toggle audio computation in a subpatch when global
computation is on?

Thank you,
Thomas
-- 
Prisons are needed only to provide the illusion that courts and police
are effective. They're a kind of job insurance.
(Leto II. in: Frank Herbert, God Emperor of Dune)
http://thomas.dergrossebruder.org/

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] phasor to square

2008-01-20 Thread Thomas Mayer
raul diaz wrote:
 Hi list!
 
 I need to convert a phasor into a square wave in this way:
 
 phasor:
 
   /   /  /   /   /  /
 /  |/  |/  |/  |/  |/  |
   /|  /|  /|  /|  /|  /|
 /  |/  |/  |/  |/  |/  |
 
 square (2:1):
 __
 |  |   |  |   |
 |  |   |  |   |
 |  ||  ||
 
 
 so, a relation HIGH:LOW holds a high or a low value (1 or 0) a indicate
 number of cycles.
 I need this conversion in order to make a masking, so square doesn't have to
 be an audio signal necessarily (could be a number upload each phasor cycle).
 
 What could be the best implementation for that scheme?

I'm not sure what you mean exactly expecially bi HIGH:LOW, but

[phasor]
|
[~ 0.5]
|
[-~ 0.5]

outputs a perfect square wave, although you need [~] from zexy for that.

cu Thomas
-- 
Prisons are needed only to provide the illusion that courts and police
are effective. They're a kind of job insurance.
(Leto II. in: Frank Herbert, God Emperor of Dune)
http://thomas.dergrossebruder.org/

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Object to store images and movies.

2007-12-06 Thread Thomas Mayer
Donal Carey wrote:
 Hi Derek
 
 Thanks for the reply - to follow on from your info, can I create the 
 database in PD or would I have to use some other program and then read 
 from that using PD ?

One way to accomplish that would be using [textfile]s:

file no1. contains the file names of the textfiles that itself contains
the files for [pix_texture], sth like:

content of file1:

slow;
faster;
fast;

content of slow:

slow_movie1;
slow_movie2;

...

[read file1(
|
[textfile]
|
[read $1]
|
[textfile]
|
[pix_film]
|
[pix_texture]
|

...

every time, the first [textfile] receives a bang, the next line is
selected, the right outlet of [pix_film] gives a bang when the movie is
finished, use that to bang the _2nd_ textfile, so that after
slow_movie1, slow_movie2 is used. Read the help patches as well.

cu Thomas
-- 
Prisons are needed only to provide the illusion that courts and police
are effective. They're a kind of job insurance.
(Leto II. in: Frank Herbert, God Emperor of Dune)
http://thomas.dergrossebruder.org/

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Object to store images and movies.

2007-12-06 Thread Thomas Mayer
Oops, forgot:

Thomas Mayer wrote:
 [read file1(
 |
 [textfile]
 |
 [read $1]
 |
 [textfile]
 |

  [open $1(
  |

 [pix_film]
 |
 [pix_texture]
 |


-- 
Prisons are needed only to provide the illusion that courts and police
are effective. They're a kind of job insurance.
(Leto II. in: Frank Herbert, God Emperor of Dune)
http://thomas.dergrossebruder.org/

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] fft beginner question

2007-11-21 Thread Thomas Mayer
hard off wrote:
 ah cheers frank, thanks for clearing a lot of that up.  you do really
 good explainations.
 
 
 The main reason we use complex numbers in electronic music is
  because they magically automate trigonometric calculations. We
  frequently have to add angles together in order to talk about the
  changing phase of an audio signal as time progresses (or as it is
  shifted in time, as in this chapter). It turns out that, if you
  multiply two complex numbers, the argument of the product is the sum
  of the arguments of the two factors.
 
 so, is that where 'fast' fourier transform comes from then?

Not really, as multiplication is one mathematical operation. 'Fast' in
FFT means reducing the number of mathematical operation from O(N²) to
O(N log N), where N is the number of analyzed frequencies, e.g. for 64
frequencies from (a constant factor times) 64²=4096 to (another constant
factor times) 64 * log(64)~116 operations.

cu Thomas
-- 
Prisons are needed only to provide the illusion that courts and police
are effective. They're a kind of job insurance.
(Leto II. in: Frank Herbert, God Emperor of Dune)
http://thomas.dergrossebruder.org/

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] fft beginner question

2007-11-20 Thread Thomas Mayer
Chuckk Hubbard wrote:
 On Nov 20, 2007 5:39 PM, Frank Barknecht [EMAIL PROTECTED] wrote:
 For some calculations polar, for others cartesian coordinates are
 easier to use. To quote Miller:

   The main reason we use complex numbers in electronic music is
   because they magically automate trigonometric calculations. We
   frequently have to add angles together in order to talk about the
   changing phase of an audio signal as time progresses (or as it is
   shifted in time, as in this chapter). It turns out that, if you
   multiply two complex numbers, the argument of the product is the sum
   of the arguments of the two factors.
 
 I still don't exactly understand why one couldn't just use (x, y)
 vectors; why the y value has to be multiplied by something imaginary.
 I mean, i/j is *defined as* the square root of -1, but it can't really
 *be* the square root of -1...  I've accepted it and moved on to more
 practical questions, but that is still mysterious for me.

Everything in mathematics *is* so if *definined*. You could define your
own mathematics by saying there are no two straight lines that do not
subtend (no parallels). In fact, Riemann did so, and has created a
geometry different from Euklidean, which is the basis for calculation on
a sphere (straight lines - great circles).

http://en.wikipedia.org/wiki/Non-Euclidean_geometry

It does not matter, if it stresses your personal experience, as long
as it does not contradict other definitions in your mathematics.
Negative numbers were a great problem to mathematicians as well:

European mathematicians however, for the most part, resisted the concept
of negative numbers until the 17th century, although Fibonacci allowed
negative solutions in financial problems where they could be interpreted
as debits (chapter 13 of Liber Abaci, 1202) and later as losses (in
Flos). At the same time, the Chinese were indicating negative numbers by
drawing a diagonal stroke through the right-most non-zero digit. The
first use of negative numbers in a European work was by Chuquet during
the 15th century. He used them as exponents, but referred to them as
“absurd numbers”.

http://en.wikipedia.org/wiki/Negative_and_non-negative_numbers#First_usage_of_negative_numbers

cu Thomas
-- 
Prisons are needed only to provide the illusion that courts and police
are effective. They're a kind of job insurance.
(Leto II. in: Frank Herbert, God Emperor of Dune)
http://thomas.dergrossebruder.org/

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] GUI speed test

2007-11-12 Thread Thomas Mayer
Hans-Christoph Steiner wrote:
 I'd be interested to see how this fares on other machines and OSes.  I
 attached the patches

AMD Duron 1.3 GHz, Pd-0.39.3-extended-debian-stable-i386.deb

uname -a:
Linux minerva 2.6.22.10-k7-custom #1 SMP PREEMPT Wed Oct 31 16:02:02 CET
2007 i686 GNU/Linux

Load times:

16.238
13.701
14.87
15.613

cu Thomas
-- 
Prisons are needed only to provide the illusion that courts and police
are effective. They're a kind of job insurance.
(Leto II. in: Frank Herbert, God Emperor of Dune)
http://thomas.dergrossebruder.org/

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] GEM error on latest pd extended with Ubuntu Gutsy

2007-10-30 Thread Thomas Mayer
Hello Enrike,

altern wrote:
 Hi
 
 I am getting this GEM error that was not there before changing to latest 
 PD extended Hans sent last week to the list, with Ubuntu Gutsy (Ubuntu 
 Studio flavor, kernel 2.6.22-14-generic #1 SM). I am trying to play a 
 quicktime video, before there was no problem at all, now it doesnt 
 display anything and sometimes it crashes when trying to open the file.

 and this is the error i get if i run it from the terminal
 
 $ pd video-help.pd
 tk scaling is 1.20094562648
 init : Avifile RELEASE-0.7.47-070916-12:47-4.1.3
 init : Available CPU flags: fpu vme de pse tsc msr pae mce cx8 apic
 sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht
 tm up
 init : 1694.91 MHz Intel(R) Pentium(R) 4 CPU 1.70GHz processor detected
 [h263 @ 0xb6dd4614]run overflow at 0x0 i:1
 [h263 @ 0xb6dd4614]Error at MB: 0
 [h263 @ 0xb6dd4614]run overflow at 0x3 i:1
 [h263 @ 0xb6dd4614]Error at MB: 69
 [h263 @ 0xb6dd4614]run overflow at 0x6 i:1
 [h263 @ 0xb6dd4614]Error at MB: 138
 [h263 @ 0xb6dd4614]run overflow at 0x9 i:1
 [h263 @ 0xb6dd4614]Error at MB: 207
 [h263 @ 0xb6dd4614]run overflow at 0x12 i:1
 [h263 @ 0xb6dd4614]Error at MB: 276
 [h263 @ 0xb6dd4614]run overflow at 0x15 i:1
 [h263 @ 0xb6dd4614]Error at MB: 345
 [h263 @ 0xb6dd4614]concealing 396 DC, 396 AC, 396 MV errors
 
 I have been trying to find if there is some codec or lib i need to 
 install but i could not find any.

Maybe the video is corrupt, have you tried transcoding the video with
mencoder or transcode?

Try

$ mencoder -ovc xvid -xvidencopts bitrate=800 -oac copy -o train.avi
train.mov

and load the film train.avi

cu Thomas
-- 
Prisons are needed only to provide the illusion that courts and police
are effective. They're a kind of job insurance.
(Leto II. in: Frank Herbert, God Emperor of Dune)
http://thomas.dergrossebruder.org/

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] GEM error on latest pd extended with Ubuntu Gutsy

2007-10-30 Thread Thomas Mayer
Roman Haefeli wrote:
 On Tue, 2007-10-30 at 13:38 +0100, Thomas Mayer wrote:
 
 Maybe the video is corrupt, have you tried transcoding the video with
 mencoder or transcode?

 Try

 $ mencoder -ovc xvid -xvidencopts bitrate=800 -oac copy -o train.avi
 train.mov

 and load the film train.avi
 
 hi thomas
 
 maybe i missed something, but i don't quite see why you are suggesting
 to reencode the movie to avi-container with xvid codec. 

I don't have much experience with different codecs/containers and Gem,
but - as I said - my first guess is, that the movie is somehow corrupt.
So 1. reencoding the movie would be an option to check for this, 2.
mencoder is easy to install on a Linux system and 3. this is a setting
that works on my system, as mencoder with -ovc lavc produces movies,
that Gem (pd-extended 0.39-3 on Debian) can't load. That was merely an
idea for troubleshooting.

cu Thomas
-- 
Prisons are needed only to provide the illusion that courts and police
are effective. They're a kind of job insurance.
(Leto II. in: Frank Herbert, God Emperor of Dune)
http://thomas.dergrossebruder.org/

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] [Gem] pix-texture problem on windows

2007-10-14 Thread Thomas Mayer
Hello again,

Thomas Mayer wrote:
 Hello,
 
 I use pd-extended 0.39.0-rc5 on both a Debian and Windows Vista system
 (XP binaries for the latter). While editing the patch in Debian, there
 is no problem, but the Vista system can't pass textures on with
 
 [gemhead]
 |
 [pix_(movie|film|image)] -- reg_exp for human reading only
 |
 [pix_texture]
 |
 [gemhead]   |
 |   |
 [pix_texture]
 |
 [square]
 
 Is this a known issue with Windows or just with Vista?

I can confirm this problem with Windows XP Professional SP 2.

cu Thomas
-- 
Prisons are needed only to provide the illusion that courts and police
are effective. They're a kind of job insurance.
(Leto II. in: Frank Herbert, God Emperor of Dune)
http://thomas.dergrossebruder.org/

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] [Gem] pix-texture problem on windows

2007-10-14 Thread Thomas Mayer
[EMAIL PROTECTED] wrote:
 the diagram shows: one [gemhead] is uploading an image to the gfx-card  
 via [pix_texture].
 another gemhead uses this texture and displays it onto a square.
 
 the 2nd outlet of [pix_texture] should output enough information, so  
 that another [pix_texture] (without a pix in the chain), can re-use  
 the same texture when it get's the info in its 2nd inlet.

Yes, that describes my setup exactly.

 thomas: what is the problem? not working is a rather vague description.
 i recently discovered that the output of the 1st pix-texture would  
 give wrong texture coordinates when using normalized textures  
 (power-of-two sized).
 the w32-binaries certainly still have this bug.

The square is not visible, neither with or without texture, no error
output in the Pd console.

 for now i can think of two workarounds:
 - if your machine/build supports it, try using rectangle-textures and  
 see if it works.

From what I gather from the [pix_texture] help patch,
rectangle-texturing is the default. IIRC while playing around with the
environment mode for [pix_texture] (sending an [env $mode( to inlet 1),
GL_Blend or GL_Add (2 or 3) made the square visible without the texture.

 - if it is not supported, try manually setting the texture-coordinates  
 to 1,1 (e.g. use [pix_coordinate]) (you could also manually set the  
 texcoords by modifying the messages that comes out of [pix_texture];  
 it is human-readable and of the form (iirc): texid width height  
 texmode; you want to modify width and height)

I'll try that when I have my hand on the Vista machine again.

Thanks,
Thomas
-- 
Prisons are needed only to provide the illusion that courts and police
are effective. They're a kind of job insurance.
(Leto II. in: Frank Herbert, God Emperor of Dune)
http://thomas.dergrossebruder.org/

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] [Gem] pix-texture problem on windows

2007-10-13 Thread Thomas Mayer
Hello,

I use pd-extended 0.39.0-rc5 on both a Debian and Windows Vista system
(XP binaries for the latter). While editing the patch in Debian, there
is no problem, but the Vista system can't pass textures on with

[gemhead]
|
[pix_(movie|film|image)] -- reg_exp for human reading only
|
[pix_texture]
|
[gemhead]   |
|   |
[pix_texture]
|
[square]

Is this a known issue with Windows or just with Vista?

Thanks in advance,
Thomas
-- 
Prisons are needed only to provide the illusion that courts and police
are effective. They're a kind of job insurance.
(Leto II. in: Frank Herbert, God Emperor of Dune)
http://thomas.dergrossebruder.org/

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] about sexism

2007-10-08 Thread Thomas Mayer
Chuckk Hubbard wrote:
 On 10/7/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 ola,

 i'm sorry to be boring on this list,
 but here i read everyday terms as :
 'wet dream', 'gang bang' , ..

 and i understand why some girls stay away from this list
 
 
 Understandable, but that's not sexism.
 And I have heard these terms from the mouths of women many, many times.

Wet dream can also relate to the dreams of water on Dune by Paul
Atreides and gang bang can mean [t b b b b b b]

SCNR,
Thomas
-- 
Prisons are needed only to provide the illusion that courts and police
are effective. They're a kind of job insurance.
(Leto II. in: Frank Herbert, God Emperor of Dune)
http://thomas.dergrossebruder.org/

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] [OT] Re: about sexism

2007-10-08 Thread Thomas Mayer
IOhannes m zmoelnig wrote:
 Thomas Mayer wrote:
 Wet dream can also relate to the dreams of water on Dune by Paul
 Atreides and gang bang can mean [t b b b b b b]
 
 indeed this is possible.
 these phrases could also be not english at all and mean something like 
 bubo bubo and forgive.

I have put a SCNR (= Sorry, Could Not Resist) at the bottom of my mail,
so it should not have been taken too seriously. I have not encountered
much sexism on this list, maybe I just have not noticed, except one
thread in the last two weeks. But then, I have been on this list only
for two years, and have been lurking most of the time.

And here is a great comic about online sexism: http://xkcd.com/322/

cu Thomas
-- 
Prisons are needed only to provide the illusion that courts and police
are effective. They're a kind of job insurance.
(Leto II. in: Frank Herbert, God Emperor of Dune)
http://thomas.dergrossebruder.org/

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] [Gem] pix_texture switching not working

2007-09-28 Thread Thomas Mayer
cyrille henry wrote:
 you should make it like this :
 
 
 [gemhead]  [sel 0 1]   [gemhead]
 |   |\|\|
 [pix_film]  | \   | \   [pix_image image_file]
 |  [1([0([0([1( |
 |  /   \  /  \  |
 [pix_texture]  [pix_texture]
  |   |
 /   /
/   /
   /   /
  /   /
 /   /
/   /
   /   /
  /   /
 [spigot]   [spigot]
 \  /
 \/
  \  /
   \/
\  /
 \/
  \  /
   \/
\  /
 \/
  \  /
   \/
 [gemhead]  |
 |  |
 [pix_texture]
 |
 [square]

Thanks, that did it, though I should have seen the obvious solution.

[bang head(
|
[table]

cu Thomas
-- 
Prisons are needed only to provide the illusion that courts and police
are effective. They're a kind of job insurance.
(Leto II. in: Frank Herbert, God Emperor of Dune)
http://thomas.dergrossebruder.org/

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


  1   2   >