Re: [PD] audio 1.0 not clipping?
On Sat, 10 Sep 2011, Miller Puckette wrote: I assume this is happening on a Macintosh -- on that platform, Pd sends floating point straight to the Mac audio system. Rumor has it that the Mac might compress and/or equalize the signal on its way out, so who knows what you're actually getting. But anyway, (and probably contrary to Pd's documentation) audio isn't automatically clipped on Pd's output on Mac although it is on Linux and Windows whose audio systems are explicitly fixed point (and probably not messed with by hte system). But if you use JACK on Linux, you also have floats, so, no built-in clipping either. Right ? ___ | Mathieu Bouchard tél: +1.514.383.3801 Villeray, Montréal, QC ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] question about echo and shell
Hello I want to use this expression with [shell] [echo patatiptata | tee -a /Applications/puredata/32-espacedeportation/test.txt no result ? when I try with terminal no problem. why echo doesn't fonction with shell ? p ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] question about echo and shell
Yop ok for Ubuntu, but I m on OSX who can try on OSX ? thx p Le 11 sept. 2011 à 09:28, Ingo a écrit : I had it working on Ubuntu before. Ingo -Ursprüngliche Nachricht- Von: pd-list-boun...@iem.at [mailto:pd-list-boun...@iem.at] Im Auftrag von philippe boisnard Gesendet: Sonntag, 11. September 2011 09:14 An: Pd List Betreff: [PD] question about echo and shell Hello I want to use this expression with [shell] [echo patatiptata | tee -a /Applications/puredata/32- espacedeportation/test.txt no result ? when I try with terminal no problem. why echo doesn't fonction with shell ? p ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] Arduino - transmit serial data while running firmata?
Is it possible to transmit serial data from the computer through the serial port of Arduino to a serial lcd display while running firmata? And if yes, how? Ingo ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] pix_write questions
hello, i think you should try pix_buffer objects (+ pix_buffer_write and pix_buffer_read) have a look at the help files. Cyrille Le 11/09/2011 05:52, Sebastian Valenzuela a écrit : Subject: pix_write questions Hello, I would like to capture an image from the streaming video im getting in the pix_video object using pix_write. I would then want the outlet of pix_write to send that captured image to be loaded in pix_image. Here it is again: pix_video pix_write pix_image Is this possible? I feel like I would have to save this image somewhere along the line. If you send an example script, could you please tell me how to open it? I'm kind of new to this environment. Thank you for taking the time to read this, Sebastian ___ 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] Can GEM select a color from an image?
Yes... you're completely right Mathieu... I've made a bad link between his question and my pix_knowledge (maybe because it was 1h30 AM :-p ) Cheers. 01ivier 2011/9/11 Mathieu Bouchard ma...@artengine.ca On Sun, 11 Sep 2011, Olivier B wrote: I think [pix_mean_color] is what you need. This only finds the average colour, which is usually not the same as the most prevalent colour, even though it is the best estimator. The best estimator means that it's your best guess when someone asks you to predict pixels picked randomly in the image. It leads to least square error : (predicated - random)² is as low as it can be, on the long term. In statistics, we learn about Average, Median and Mode, usually all 3 at once, as 3 basic approaches, three kinds of «middles» of the data. What Sebastian is looking for is more like Mode, which looks like the easiest of the 3, but is actually the hardest of the 3, especially when doing in multidimension spaces (such as red,green,blue) and on continuous scales (256 values per dimension is continuous enough for what I'm talking about). There are several gotchas about peaks in statistical distributions. __**__** ___ | Mathieu Bouchard tél: +1.514.383.3801 Villeray, Montréal, QC -- Envie de tisser ? http://yamatierea.org/papatchs/ ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] Chord by me
Hi, Chord is a drone metal piece I wrote for the Cologne Music Night 2011, where it was performed in a very nice location, the Kunststation St. Peter, an old romanic church from around 1500. So far I don't have a recording of the performance, so here you get one of the final rehearsals I did with the piece on the day before the concert. http://footils.org/2011/09/11/chord/ The concert was recorded as well by the local radio station WDR and may be played tonight on WDR3 on 9/11/2011 somewhen between 20pm and 2am. http://www.wdr3.de/konzert/details/artikel/koelner-musiknacht-2011.html Streams: http://www.wdr.de/wdrlive/wdrplayer/wdr3player.html Best, -- Frank ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] filtering out non-unique, unordered lists from collection of lists
What's a good way to compare a list to a collection of other lists to see whether it's already present in the collection? From a collection of lists, I want to keep only one instance of each unique list. Also, I would have to treat the lists as 'unordered' so that 1 2 2 3 4 is considered as being the same as 2 4 3 2 1, and only one of them will be kept. thanks, Tim ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] question about echo and shell
I usually go for [system] for simple shell related things and it works with echo perfectly (but once again its in ubuntu). On Sun, Sep 11, 2011 at 8:31 AM, philippe boisnard philem...@mac.comwrote: Yop ok for Ubuntu, but I m on OSX who can try on OSX ? thx p Le 11 sept. 2011 à 09:28, Ingo a écrit : I had it working on Ubuntu before. Ingo -Ursprüngliche Nachricht- Von: pd-list-boun...@iem.at [mailto:pd-list-boun...@iem.at] Im Auftrag von philippe boisnard Gesendet: Sonntag, 11. September 2011 09:14 An: Pd List Betreff: [PD] question about echo and shell Hello I want to use this expression with [shell] [echo patatiptata | tee -a /Applications/puredata/32- espacedeportation/test.txt no result ? when I try with terminal no problem. why echo doesn't fonction with shell ? p ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list -- Pedro Lopes (HCI Researcher / MSc) contact: pedro.lo...@ist.utl.pt website: http://web.ist.utl.pt/Pedro.Lopes / http://pedrolopesresearch.wordpress.com/ | http://twitter.com/plopesresearch ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] audio 1.0 not clipping?
Aha, yes, jack also does floating point and so won't clip except at its own interface to the audio system (on linux0 or presumably never (on Mac). cheers Miller On Sun, Sep 11, 2011 at 02:19:07AM -0400, Mathieu Bouchard wrote: On Sat, 10 Sep 2011, Miller Puckette wrote: I assume this is happening on a Macintosh -- on that platform, Pd sends floating point straight to the Mac audio system. Rumor has it that the Mac might compress and/or equalize the signal on its way out, so who knows what you're actually getting. But anyway, (and probably contrary to Pd's documentation) audio isn't automatically clipped on Pd's output on Mac although it is on Linux and Windows whose audio systems are explicitly fixed point (and probably not messed with by hte system). But if you use JACK on Linux, you also have floats, so, no built-in clipping either. Right ? ___ | Mathieu Bouchard tél: +1.514.383.3801 Villeray, Montréal, QC ___ 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] question about echo and shell
On Sun, 11 Sep 2011, Pedro Lopes wrote: I usually go for [system] for simple shell related things and it works with echo perfectly (but once again its in ubuntu). In theory, there is not any difference between OSX and GNU/Linux for [shell] and [system] and some more. They both have system(), popen(), fork(), exec(), and /bin/bash (except very old OSX). It's usually when trying with the other OSes that things can go wrong. Windows needs different code for doing this, and has a different shell. Apple iOS would be like OSX but it disables those functions completely. Android can have /bin/bash but it's not there by default, and its libc is different. ___ | Mathieu Bouchard tél: +1.514.383.3801 Villeray, Montréal, QC ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] (breaking symbols) was Re: find a list of numbers in a text file
On Fri, 9 Sep 2011, Hans-Christoph Steiner wrote: How would you then describe how Pd judges the difference between a symbol and a float? I wish there was more on this topic in the manual, but there is not. It's quite hard to do biblical interpretation... and it doesn't necessarily pay off. In the facts, programmes are written for machines to execute, and only incidentally for people to read. So, issues of backward compatibility happen regardless of what the manual actually says, and it's possible that a programme doesn't reflect the intent, that a manual doesn't reflect the intent, and/or that a manual doesn't reflect the programme. How you resolve such a conflict is... some kind of triple-edged sword... but remember that the intent in question needs not to be the original intent, I'm talking about the current intents. E.g. if you pass a symbol through [trigger float], which is documented as something that «converts» data, and what it does to any symbol is turn it to 0, you can safely throw away both the documentation and the presumed original intent and move on. Then you may decide a new intent that is useful instead of nonsensical. ___ | Mathieu Bouchard tél: +1.514.383.3801 Villeray, Montréal, QC___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] question about echo and shell
On Sep 11, 2011, at 12:20 PM, Mathieu Bouchard wrote: On Sun, 11 Sep 2011, Pedro Lopes wrote: I usually go for [system] for simple shell related things and it works with echo perfectly (but once again its in ubuntu). In theory, there is not any difference between OSX and GNU/Linux for [shell] and [system] and some more. They both have system(), popen(), fork(), exec(), and /bin/bash (except very old OSX). It's usually when trying with the other OSes that things can go wrong. Windows needs different code for doing this, and has a different shell. Apple iOS would be like OSX but it disables those functions completely. Android can have /bin/bash but it's not there by default, and its libc is different. In practice, [shell], [system], and [popen] the objects work quite a bit differently. .hc If you are not part of the solution, you are part of the problem. ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] [PD-announce] Origination and Metacreation: a conversation with Ben Bogart
On Sat, Sep 10, 2011 at 20:38, Mathieu Bouchard ma...@artengine.ca wrote: On Thu, 8 Sep 2011, Marco Donnarumma wrote: Dear all, it's with great pleasure that I share with you this piece. I had an inspiring, in-depth conversation with artist and fellow Pd'er Ben Bogart over the last months, and this is the result: « Rational and creative thought are two extremes of a single process. Rational associations involve activations of few memories in very focused directions, while creative associations involve the activation of many memories in many different directions. » Oh, so THAT's what creativity means ! Why is it called creative, if one can create new thoughts and new things from rational thought, especially thoughts and things that so-called «creative» thought can't come up with ? Fortunately, that kind of jargon isn't used in the actual MSc thesis. I mean, the word creative is not used in the same way, especially as the word «rational» doesn't appear at all. Well, I'm not academic and I'm also rather careful with dualist ideas, however, instead of creative vs rational, which are, least to say, not mutually exclusive, I usually use inductive vs deductive. Maybe that's what you mean too - maybe not... Andras ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] audio 1.0 not clipping?
When using the internal speakers on a Macbook a limiter is put into the CoreAudio chain. A 3rd party hardware driver won't have this though. Since Rich says he can hear harmonics the sine wave is being clipped so things are working as expected. On Sun, Sep 11, 2011 at 1:57 AM, Miller Puckette m...@ucsd.edu wrote: Hi all -- I assume this is happening on a Macintosh -- on that platform, Pd sends floating point straight to the Mac audio system. Rumor has it that the Mac might compress and/or equalize the signal on its way out, so who knows what you're actually getting. But anyway, (and probably contrary to Pd's documentation) audio isn't automatically clipped on Pd's output on Mac although it is on Linux and Windows whose audio systems are explicitly fixed point (and probably not messed with by hte system). cheers Miller On Sun, Sep 11, 2011 at 01:49:52AM -0400, Mathieu Bouchard wrote: On Sun, 11 Sep 2011, Rich E wrote: Does anyone know why this doesn't clip?: [osc~ 200] | [*~ 1.5] | [dac~] I'm trying this using pd 0.43 and the audio still sounds good (although some extra harmonics can be heard), despite the phases being in the range of [-1.5, 1.5]... ? No, you mean the amplitude is 1.5. You're not doing anything about the phase (and anyway, it's relative, so you can only hear phase difference, not phase). If you hear extra harmonics, then it has to be already clipping. What makes you think that it isn't ? ___ | Mathieu Bouchard tél: +1.514.383.3801 Villeray, Montréal, QC ___ 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
[PD] Multitrack recorder
Hi, I m trying to write a multitrack recorder based on writesf~ and readsf~ . I m faced with a serious issue... There seems to be some latency either when writing to a file or reading from it (i can't tell). This means that i can't record a second track on top of another as an overdub and playback both. Assuming that Pd's diplayed latency in the audio settings is right (???), that is 100ms, i tried triggering the readsf~ after a 100 ms-long delay, to no avail. I thought it would be a piece of cake to program this, but well, apparently it's not...? Needless to say that i can't use table as i plan to use it for possibly long recordings (my goal is to use it on a phone with PdDroidParty). So here's the question : is there any latency when writing or reading to a file, and if yes, is it measurable and foreseeable? Thanks! Pierre ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Multitrack recorder
I forgot to mention that i can't use sfplay~ since PdDroidParty doesn't support externals... 2011/9/11 Pierre Massat pimas...@gmail.com Hi, I m trying to write a multitrack recorder based on writesf~ and readsf~ . I m faced with a serious issue... There seems to be some latency either when writing to a file or reading from it (i can't tell). This means that i can't record a second track on top of another as an overdub and playback both. Assuming that Pd's diplayed latency in the audio settings is right (???), that is 100ms, i tried triggering the readsf~ after a 100 ms-long delay, to no avail. I thought it would be a piece of cake to program this, but well, apparently it's not...? Needless to say that i can't use table as i plan to use it for possibly long recordings (my goal is to use it on a phone with PdDroidParty). So here's the question : is there any latency when writing or reading to a file, and if yes, is it measurable and foreseeable? Thanks! Pierre ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Arduino - transmit serial data while running firmata?
Check out the string support in Firmata for sending strings. .hc On Sep 11, 2011, at 3:40 AM, Ingo wrote: Is it possible to transmit serial data from the computer through the serial port of Arduino to a serial lcd display while running firmata? And if yes, how? Ingo ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list Making boring techno music is really easy with modern tools, but with live coding, boring techno is much harder. - Chris McCormick ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] audio 1.0 not clipping?
Yep, on a macbook. Right, it sounded like there was a limiter in there, although I had remembered in linux that any signal |1.0| gets horrible clipping artefacts. Thanks for the explanation. Cheers, Rich On Mon, Sep 12, 2011 at 4:50 AM, chris clepper cgclep...@gmail.com wrote: When using the internal speakers on a Macbook a limiter is put into the CoreAudio chain. A 3rd party hardware driver won't have this though. Since Rich says he can hear harmonics the sine wave is being clipped so things are working as expected. On Sun, Sep 11, 2011 at 1:57 AM, Miller Puckette m...@ucsd.edu wrote: Hi all -- I assume this is happening on a Macintosh -- on that platform, Pd sends floating point straight to the Mac audio system. Rumor has it that the Mac might compress and/or equalize the signal on its way out, so who knows what you're actually getting. But anyway, (and probably contrary to Pd's documentation) audio isn't automatically clipped on Pd's output on Mac although it is on Linux and Windows whose audio systems are explicitly fixed point (and probably not messed with by hte system). cheers Miller On Sun, Sep 11, 2011 at 01:49:52AM -0400, Mathieu Bouchard wrote: On Sun, 11 Sep 2011, Rich E wrote: Does anyone know why this doesn't clip?: [osc~ 200] | [*~ 1.5] | [dac~] I'm trying this using pd 0.43 and the audio still sounds good (although some extra harmonics can be heard), despite the phases being in the range of [-1.5, 1.5]... ? No, you mean the amplitude is 1.5. You're not doing anything about the phase (and anyway, it's relative, so you can only hear phase difference, not phase). If you hear extra harmonics, then it has to be already clipping. What makes you think that it isn't ? ___ | Mathieu Bouchard tél: +1.514.383.3801 Villeray, Montréal, QC ___ 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 ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] Multiplying signal by complex number to create and see phase shift
Greetings All I plan on adding a phase shift to a signal/a wave file I import which is easy enough mathematically example: if the signal is x=sin(2*pi*1*t) to do a phase shift I would just multiply x*e(-i*pi) which would phase shift the signal by 90 degrees. But how does one multiple signals by complex numbers in PD like -i? note: there will be a several different phase shifts so a simple hibert transform won't work in this instance thanks -- ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] (breaking symbols) was Re: find a list of numbers in a text file
- Original Message - From: Mathieu Bouchard ma...@artengine.ca To: Hans-Christoph Steiner h...@at.or.at Cc: pd-list@iem.at Sent: Sunday, September 11, 2011 2:04 PM Subject: Re: [PD] (breaking symbols) was Re: find a list of numbers in a text file On Fri, 9 Sep 2011, Hans-Christoph Steiner wrote: How would you then describe how Pd judges the difference between a symbol and a float? I wish there was more on this topic in the manual, but there is not. It's quite hard to do biblical interpretation... and it doesn't necessarily pay off. In the facts, programmes are written for machines to execute, and only incidentally for people to read. So, issues of backward compatibility happen regardless of what the manual actually says, and it's possible that a programme doesn't reflect the intent, that a manual doesn't reflect the intent, and/or that a manual doesn't reflect the programme. How you resolve such a conflict is... some kind of triple-edged sword... but remember that the intent in question needs not to be the original intent, I'm talking about the current intents. E.g. if you pass a symbol through [trigger float], which is documented as something that «converts» data, and what it does to any symbol is turn it to 0, you can safely throw away both the documentation and the presumed original intent and move on. Then you may decide a new intent that is useful instead of nonsensical. But [trigger] _can_ convert message types: [float 1( | [trigger list] | [symbol] | [select list float] | | | [pd sorry_float_you_blow_up_now_dammit_if_we_had_only_used_trigger_conversion] | [pd list_saves_the_world_thanks_to_trigger_conversion_sunset_credits] :) [trigger] has two main functions: 1) sequence messages in right to left order. 2) have any/all/none of the outlets send a bang instead of the original message as a patching shortcut: Thus: [trigger anything] | [b] | can be shortened to: [trigger bang] | 2.5) Pd-l2ork and Max/MSP extend this patching shortcut so that: [trigger bang] | [1( may be shortened to: [trigger 1] | And finally: -1) [t a] as a cheap hack due to lack of segmented patching cords -Jonathan ___ | Mathieu Bouchard tél: +1.514.383.3801 Villeray, Montréal, QC ___ 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] Multiplying signal by complex number to create and see phase shift
Hello, you might want to take a look at the help file for [fft~] - Rick T ratull...@gmail.com a écrit : Greetings All I plan on adding a phase shift to a signal/a wave file I import which is easy enough mathematically example: if the signal is x=sin(2*pi*1*t) to do a phase shift I would just multiply x*e(-i*pi) which would phase shift the signal by 90 degrees. But how does one multiple signals by complex numbers in PD like -i? note: there will be a several different phase shifts so a simple hibert transform won't work in this instance thanks -- ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list -- Patrice Colet ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Multitrack recorder
writesf~ creates a subthread whose task is to write audio streams to disk. 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. (from writesf~ help) On Mon, Sep 12, 2011 at 4:12 AM, Pierre Massat pimas...@gmail.com wrote: I forgot to mention that i can't use sfplay~ since PdDroidParty doesn't support externals... 2011/9/11 Pierre Massat pimas...@gmail.com Hi, I m trying to write a multitrack recorder based on writesf~ and readsf~ . I m faced with a serious issue... There seems to be some latency either when writing to a file or reading from it (i can't tell). This means that i can't record a second track on top of another as an overdub and playback both. Assuming that Pd's diplayed latency in the audio settings is right (???), that is 100ms, i tried triggering the readsf~ after a 100 ms-long delay, to no avail. I thought it would be a piece of cake to program this, but well, apparently it's not...? Needless to say that i can't use table as i plan to use it for possibly long recordings (my goal is to use it on a phone with PdDroidParty). So here's the question : is there any latency when writing or reading to a file, and if yes, is it measurable and foreseeable? Thanks! Pierre ___ 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