[PD] updating table is slow

2011-09-12 Thread Rick T
Greetings All

I'm trying to update a table every second so I can see phase and frequency
changes but it takes about 5 seconds to see the changes.  How can I speed
this up but still see a 1 second sample of the table?

Also is there a way to show two signals on one graphical table?  Like in the
hilbert~ example (I tried doing a tabwrite~ out-right and a tabwrite~
out-left but this didn't work

thanks
___
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?

2011-09-12 Thread Roman Haefeli
On Sat, 2011-09-10 at 22:33 -0400, Mathieu Bouchard wrote:
 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.

I wonder how one should go about this:

Let's assume an image consisting of the major parts of pixels that are
at most -/+3 values (from 256) apart from each other in every plane (R,
G, and B). So this pixels would be spread across 7x7x7 = 343 different
colors, but would look still very similar to each other. Now, the rest
(minor part) of the image consists of all the exact same color value,
which is much different from the colors in the major part.

Am I right in thinking, that the Mode would detect the minor part (with
all the exact same color values) as the most prevalent color, while the
human eye most likely would see a mix of the previously described color
variation as the most prevalent color? How would an algorithm work, that
would take into account that all the pixels from the major part are very
similar and thus would detect a mix of those as the most prevalent
color?

Roman
 


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


Re: [PD] Multitrack recorder

2011-09-12 Thread Pierre Massat
Ok, so there should be no latency linked to writesf~.

According to it's page in pdpedia, it seems like sfplay~ is the only
playback object that makes it possible to do multitrack recording and
overdubbing. I'm wondering why...

Thinking about it now, it looks like it should be a problem with the
upstream latency before adc~. And i guess the only way i can fix this is by
playing track (n-1) with a delay with respect to track n equal to this
latency (since time travel doesn't exist yet).

Pierre

2011/9/12 hardoff goes bananas hard@gmail.com

 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


Re: [PD] Multiplying signal by complex number to create and see phase shift

2011-09-12 Thread Mathieu Bouchard

On Sun, 11 Sep 2011, Rick T wrote:

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?


A complex signal is a pair of signals. One is labelled «real» and the 
other is labelled «imaginary».


A common way to think of it, is in 3 dimensions, with a time axis, a real 
signal axis, and an imaginary signal axis.


Multiplying by a real number means multiplying both signals by the same 
number.


Multiplying by i means the input real becomes the output imaginary, while 
the input imaginary is negated and becomes the real output.


Multiplying by i is multiplying by both -1 and i, and you can see that you 
end up with three [*~ -1], of which two cancel each other, so, you can do 
it with just one [*~ -1].


[*~ -1] can also be replaced with a [-~] because x*-1 = 0-x.

But the phase shift you are talking about is not the same thing.

Multiplying by i only does a phase shift in the frequency domain, because 
it turns sin into cos, cos into -sin, -sin into -cos and -cos into sin 
(it's the same sign business as what i wrote about above). The Fourier cos 
components are labelled «real» and the Fourier sin components are labelled 
«imaginary», as in Euler's identity :


  exp(a+i*b) = exp(a) * (cos(b)+i*sin(b))

The meaning of real vs imaginary, in the time domain, mostly just means 
you can process two signals at once. Multiplying a realimaginary signal 
by an imaginary gain is a form of stereo mixing thought of in a different 
way. Generally speaking, complex numbers are a way to unify math concepts 
so that some things become easier to think about in the long run.


 ___
| 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] Multiplying signal by complex number to create and see phase shift

2011-09-12 Thread Charles Henry
On Sun, Sep 11, 2011 at 7:33 PM, Rick T ratull...@gmail.com wrote:
 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

I guess you already know what this is about then--as Patrice said,
you'll have to use fft~ on windows of your signal to accomplish
different frequency-specific phase shifts.

The Hilbert transform accomplishes one type of complex signal
decomposition that applies to phase shifts by complex number multiple:
the complex signal
c(t)=x(t) + i * Hx(t)

can be written as magnitude(t) and phase(t)

c(t)=magnitude(t) * e^( i * phase(t))

Then, applying multiple of e^( i * (phase shift) ) just adds the phase
shift into this decomposition of the signal.  As you said, it applies
to not just one frequency, and it also doesn't just shift every phase
by the same amount.

Now, notice the hilbert~.pd abstraction---This is a pair of all-pass
filters that shifts the signal by approximately 90 degrees at each
frequency.  You'll have to open it up and analyze it yourself to see
if it really does what you want--but it's been shown to be a very
practical and reliable way to accomplish phase shifts.

Chuck

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


[PD] cat /boot/vmlinuz-2.6.35-30-generic /dev/dsp ?

2011-09-12 Thread tim vets
Hi all,
I would like to get the sound of my kernel into pd.
cat /boot/vmlinuz-2.6.35-30-generic  /dev/dsp
should be a command I can get the sound of my kernel into the speakers with.
However, while I remember having done similar before, right now,
on this machine there doesn't even seem to be a /dev/dsp present...
also, how would I get this into pd?
thanks,
Tim
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] cat /boot/vmlinuz-2.6.35-30-generic /dev/dsp ?

2011-09-12 Thread Hans-Christoph Steiner


Open it as a .wav or .snd.  Or just load it directly into an array  
using the [read( message.


.hc

On Sep 12, 2011, at 1:09 PM, tim vets wrote:


Hi all,
I would like to get the sound of my kernel into pd.
cat /boot/vmlinuz-2.6.35-30-generic  /dev/dsp
should be a command I can get the sound of my kernel into the  
speakers with.

However, while I remember having done similar before, right now,
on this machine there doesn't even seem to be a /dev/dsp present...
also, how would I get this into pd?
thanks,
Tim
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list








'You people have such restrictive dress for women,’ she said, hobbling  
away in three inch heels and panty hose to finish out another pink- 
collar temp pool day.  - “Hijab Scene #2, by Mohja Kahf




___
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

2011-09-12 Thread Mathieu Bouchard

On Mon, 12 Sep 2011, Charles Henry wrote:


The Hilbert transform accomplishes one type of complex signal
decomposition that applies to phase shifts by complex number multiple:
the complex signal
c(t)=x(t) + i * Hx(t)


and then [hilbert~] is not a hilbert transform, it makes two different 
transforms on the same input signal such that one output is almost the 
Hilbert transform of the other output, but i think I recall that the low 
frequencies' shift differs significantly from 90⁰. Anyway, [hilbert~] is 
meant as a thing that can be used to make a Hilbert-like effect while 
taking just a small fraction of the computing power.


 ___
| 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] cat /boot/vmlinuz-2.6.35-30-generic /dev/dsp ?

2011-09-12 Thread tim vets
Hi Hans, thanks,
i tried:
[; mytable read /boot/vmlinuz-2.6.35-30-generic(
but i just get:
'read 0 elements into table of size 1000'
any idea?
Tim
2011/9/12 Hans-Christoph Steiner h...@at.or.at


 Open it as a .wav or .snd.  Or just load it directly into an array using
 the [read( message.

 .hc


 On Sep 12, 2011, at 1:09 PM, tim vets wrote:

  Hi all,
 I would like to get the sound of my kernel into pd.
 cat /boot/vmlinuz-2.6.35-30-**generic  /dev/dsp
 should be a command I can get the sound of my kernel into the speakers
 with.
 However, while I remember having done similar before, right now,
 on this machine there doesn't even seem to be a /dev/dsp present...
 also, how would I get this into pd?
 thanks,
 Tim
 __**_
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management - http://lists.puredata.info/**
 listinfo/pd-list http://lists.puredata.info/listinfo/pd-list






 --**--**
 

 'You people have such restrictive dress for women,’ she said, hobbling away
 in three inch heels and panty hose to finish out another pink-collar temp
 pool day.  - “Hijab Scene #2, by Mohja Kahf



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


Re: [PD] cat /boot/vmlinuz-2.6.35-30-generic /dev/dsp ?

2011-09-12 Thread Mathieu Bouchard

On Mon, 12 Sep 2011, tim vets wrote:

I would like to get the sound of my kernel into pd. cat 
/boot/vmlinuz-2.6.35-30-generic  /dev/dsp should be a command I can get 
the sound of my kernel into the speakers with. However, while I remember 
having done similar before, right now, on this machine there doesn't 
even seem to be a /dev/dsp present... also, how would I get this into 
pd?


the name vmlinuz means something like « virtual-memory linux, zipped », by 
opposition to the original vmlinux files of early nineties. This means 
that the sound will be highly entropic, as an efficient form of 
compression tends to make all combination of bits equally likely. This 
makes compressed files become undistinguishable from white noise.


you get a lot more interesting textures by playing noncompressed files, 
even though their «sampling» scale does not match presumed samples of 
sound : samples of sound are assumed to be 8, 16, 24 or 32 bits each, 
uniformly. Pentium-compatible executables can have such multiples and 
other multiples of 8 bits up to about 120 bits in the same opcode, but 
it's happening in an irregular fashion... each file has a mix of elements 
of various sizes.


However, those executables are still a lot more regular than a gzip or 
zip2 file, which are made by reading pieces of 8 bits and rewriting them 
as a variable number of bits, 3, 4, 5, ..., 9, 10, 11, whatever is most 
efficient. (Well, that's only half of what that compression method does, 
but it should give you a good idea of how scrambled things are already !)


 ___
| 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] Output numbers consecutively, one at a time in PD

2011-09-12 Thread Sebastian Valenzuela
Hello,

I need an object that will output a sequence of numbers [that I would
program], one at a
time, every time i send it a bang. I need this to loop.

So if my set of numbers are [2, 5, 7] it would go...

bang - 2, bang - 5, bang - 7, bang - 2... etc.

Is there such an object?
If not, what could I use to make this operation?

Thank you for your help,
Sebastian

p.s. Sorry if this is a simple operation, i'm sort of new to the pd environment.

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


Re: [PD] Output numbers consecutively, one at a time in PD

2011-09-12 Thread Andy Farnell

Follow the examples under the [list] object help tree 
until you find an example called list sequencer.

On Mon, 12 Sep 2011 13:48:44 -0500
Sebastian Valenzuela svalenzuelamu...@gmail.com wrote:

 Hello,
 
 I need an object that will output a sequence of numbers [that I would
 program], one at a
 time, every time i send it a bang. I need this to loop.
 
 So if my set of numbers are [2, 5, 7] it would go...
 
 bang - 2, bang - 5, bang - 7, bang - 2... etc.
 
 Is there such an object?
 If not, what could I use to make this operation?
 
 Thank you for your help,
 Sebastian
 
 p.s. Sorry if this is a simple operation, i'm sort of new to the pd 
 environment.
 
 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management - 
 http://lists.puredata.info/listinfo/pd-list


-- 
Andy Farnell padawa...@obiwannabe.co.uk

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


[PD] xsample on ubuntu?

2011-09-12 Thread J. Simon van der Walt
Any suggestions for getting xsample to work on ubuntu? I found a .rpm
from CCRMA, used alien to convert it to a .deb. Looks like I have some
stuff installed, but am getting these errors:

/usr/lib/pd-extended/extra/xsample.pd_linux: libflext-pd.so.0.5:
cannot open shared object file: No such file or directory
xsample: can't load library

Any ideas?

tia,

-- 
J. Simon van der Walt - Composer
www.jsimonvanderwalt.com
+44 (0) 7905 270 198

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


[PD] Book Hunt (Ross Kirk)

2011-09-12 Thread Andy Farnell


Anyone near London UK got a copy of Ross Kirk  New Digital Musical 
Instruments: Control And Interaction Beyond the Keyboard, 2006?


Begin forwarded message:

Date: Mon, 12 Sep 2011 20:04:34 +0100
From: Andy Farnell padawa...@obiwannabe.co.uk
To: Duncan Brown brown...@gmail.com
Subject: Re: Major Project - Book Hunt

There is such a thing as an inter-library loan request. You fill
out a form at the BL, they ask York if they can loan it and they
post it down to London for a couple of weeks. It usually costs a
fair bit, maybe 20 or more. But better than asbestosis.

I might forward this to some folk in case anyone knows of
a copy near London.

best
Andy

On Mon, 12 Sep 2011 19:52:28 +0100
Duncan Brown brown...@gmail.com wrote:

 Hi Andy,
 Hope your doing well? 
 I'm trying to get a look at this book as part of my project (Novel Interfaces 
 for Musical Performance) but the British Library are unable to release it. 
 Apparently it's one of many books that has been exposed to asbestos!
 
 -New Digital Musical Instruments: Control And Interaction Beyond the Keyboard 
 (Computer Music and Digital Audio Series) Middleton, Wis. : A-R Editions, 
 c2006. 
 by Ross Kirk 
 
 http://copac.ac.uk/search?rn=1ti=new+digital+musical+instrumentssort-order=rank
 
 Wondering if you might know of anyone with a copy? Or any way I might be able 
 to get a look at one?
 I have followed the advice of the British Library and checked www.copac.ac.uk 
 which tells me that the Royal College of Music  York both have copies.
 The SAE library unfortunately does not have one.
-- 
Andy Farnell padawa...@obiwannabe.co.uk

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


Re: [PD] Output numbers consecutively, one at a time in PD

2011-09-12 Thread Jonathan Wilkes
- Original Message -

 From: Andy Farnell padawa...@obiwannabe.co.uk
 To: pd-list@iem.at
 Cc: 
 Sent: Monday, September 12, 2011 3:03 PM
 Subject: Re: [PD] Output numbers consecutively, one at a time in PD
 
 
 Follow the examples under the [list] object help tree 
 until you find an example called list sequencer.

Or you can use [list-drip] from the list-abs.  It's easier to write and more 
efficient for large lists:

[bang(
|
[list append 2 5 7]
|
[list-drip]
|
[print]

 
 On Mon, 12 Sep 2011 13:48:44 -0500
 Sebastian Valenzuela svalenzuelamu...@gmail.com wrote:
 
  Hello,
 
  I need an object that will output a sequence of numbers [that I would
  program], one at a
  time, every time i send it a bang. I need this to loop.
 
  So if my set of numbers are [2, 5, 7] it would go...
 
  bang - 2, bang - 5, bang - 7, 
 bang - 2... etc.
 
  Is there such an object?
  If not, what could I use to make this operation?
 
  Thank you for your help,
  Sebastian
 
  p.s. Sorry if this is a simple operation, i'm sort of new to the pd 
 environment.
 
  ___
  Pd-list@iem.at mailing list
  UNSUBSCRIBE and account-management - 
 http://lists.puredata.info/listinfo/pd-list
 
 
 -- 
 Andy Farnell padawa...@obiwannabe.co.uk
 
 ___
 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] Output numbers consecutively, one at a time in PD

2011-09-12 Thread Sebastian Valenzuela
Thank you for the responses, Andy and Jonathan. But I am looking for
something that will output THE FIRST number whenever I hit bang...
then the NEXT number when i hit bang a second time (and so on).  So
there is no steady, timed rate (as with the list sequencers) of number
output, and I don't want to output all my numbers out right away (as
with the list-drip object).

-Sebastian

On Mon, Sep 12, 2011 at 2:38 PM, Jonathan Wilkes jancs...@yahoo.com wrote:
 - Original Message -

 From: Andy Farnell padawa...@obiwannabe.co.uk
 To: pd-list@iem.at
 Cc:
 Sent: Monday, September 12, 2011 3:03 PM
 Subject: Re: [PD] Output numbers consecutively, one at a time in PD


 Follow the examples under the [list] object help tree
 until you find an example called list sequencer.

 Or you can use [list-drip] from the list-abs.  It's easier to write and more
 efficient for large lists:

 [bang(
 |
 [list append 2 5 7]
 |
 [list-drip]
 |
 [print]


 On Mon, 12 Sep 2011 13:48:44 -0500
 Sebastian Valenzuela svalenzuelamu...@gmail.com wrote:

  Hello,

  I need an object that will output a sequence of numbers [that I would
  program], one at a
  time, every time i send it a bang. I need this to loop.

  So if my set of numbers are [2, 5, 7] it would go...

  bang - 2, bang - 5, bang - 7,
 bang - 2... etc.

  Is there such an object?
  If not, what could I use to make this operation?

  Thank you for your help,
  Sebastian

  p.s. Sorry if this is a simple operation, i'm sort of new to the pd
 environment.

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


 --
 Andy Farnell padawa...@obiwannabe.co.uk

 ___
 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




-- 
Sebastian Ignacio Valenzuela Rojas
Composer - Guitarist
www.wix.com/ciseven/svalenzuela
www.youtube.com/svalenzuelamusic

___
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?

2011-09-12 Thread Mathieu Bouchard

On Mon, 12 Sep 2011, Roman Haefeli wrote:

Am I right in thinking, that the Mode would detect the minor part (with 
all the exact same color values) as the most prevalent color,

[...]
How would an algorithm work, that would take into account that all the 
pixels from the major part are very similar and thus would detect a mix 
of those as the most prevalent color?


It depends...

a strict Mode with smallest histogram bins (one per value) will find the 
minor part.


a strict Mode with big histogram bins (one for 16*16*16 values, for 
example) will find the major part only if their values don't overlap 
several bins, which is some kind of vote-splitting.


but if you do a Mode-like thing with smallest histogram bins AND a 
convolution by a window, you will get the major part in all circumstances, 
without «posterisation» artifacts.


however, if you don't want to make a 3-D histogram data structure taking 
64 megs and a lot of CPU for applying a 3-D blur on that, you have to get 
trickier than that... does anyone have any ideas how to find a «blurry 
Mode» without using much RAM  CPU ?


 ___
| 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] Output numbers consecutively, one at a time in PD

2011-09-12 Thread Mathieu Bouchard

On Mon, 12 Sep 2011, Sebastian Valenzuela wrote:


Thank you for the responses, Andy and Jonathan. But I am looking for
something that will output THE FIRST number whenever I hit bang...
then the NEXT number when i hit bang a second time (and so on).  So
there is no steady, timed rate (as with the list sequencers) of number
output, and I don't want to output all my numbers out right away (as
with the list-drip object).


Try storing the list in a [table] and using [tabread], if you only have 
numbers.


If you want symbols, you'll need a less efficient solution.

 ___
| 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] cat /boot/vmlinuz-2.6.35-30-generic /dev/dsp ?

2011-09-12 Thread Miller Puckette
table's read message only reads in ascii files.  To read binaries use
soundfiler which can be asked to ignore header information and read
in raw 2s-complement data.  Or if you really want to jump a few feet, try
reading it in as floating point.

/dev/dsp belonged to the OSS sound system which ALSA is supposed to be able
to emulate.  depending on your configuration, you might be able to do
sudo modprobe snd-pcm-oss and get it that just worked for me on
Fedora anyhow.

cheers
Miller

On Mon, Sep 12, 2011 at 07:59:35PM +0200, tim vets wrote:
 Hi Hans, thanks,
 i tried:
 [; mytable read /boot/vmlinuz-2.6.35-30-generic(
 but i just get:
 'read 0 elements into table of size 1000'
 any idea?
 Tim
 2011/9/12 Hans-Christoph Steiner h...@at.or.at
 
 
  Open it as a .wav or .snd.  Or just load it directly into an array using
  the [read( message.
 
  .hc
 
 
  On Sep 12, 2011, at 1:09 PM, tim vets wrote:
 
   Hi all,
  I would like to get the sound of my kernel into pd.
  cat /boot/vmlinuz-2.6.35-30-**generic  /dev/dsp
  should be a command I can get the sound of my kernel into the speakers
  with.
  However, while I remember having done similar before, right now,
  on this machine there doesn't even seem to be a /dev/dsp present...
  also, how would I get this into pd?
  thanks,
  Tim
  __**_
  Pd-list@iem.at mailing list
  UNSUBSCRIBE and account-management - http://lists.puredata.info/**
  listinfo/pd-list http://lists.puredata.info/listinfo/pd-list
 
 
 
 
 
 
  --**--**
  
 
  'You people have such restrictive dress for women,’ she said, hobbling away
  in three inch heels and panty hose to finish out another pink-collar temp
  pool day.  - “Hijab Scene #2, by Mohja Kahf
 
 
 

 ___
 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] cat /boot/vmlinuz-2.6.35-30-generic /dev/dsp ?

2011-09-12 Thread Hans-Christoph Steiner

Ah, right, I forgot the format of the array files, its a list of floats,
i.e. space separated values.  You can use mrpeach/binfile to read any
file byte-by-byte.  Then use those bytes as floats.

.hc

On Mon, 2011-09-12 at 19:59 +0200, tim vets wrote:
 Hi Hans, thanks,
 i tried:
 [; mytable read /boot/vmlinuz-2.6.35-30-generic(
 but i just get:
 'read 0 elements into table of size 1000'
 any idea?
 Tim
 2011/9/12 Hans-Christoph Steiner h...@at.or.at
 
 Open it as a .wav or .snd.  Or just load it directly into an
 array using the [read( message.
 
 .hc
 
 
 
 On Sep 12, 2011, at 1:09 PM, tim vets wrote:
 
 
 
 Hi all,
 I would like to get the sound of my kernel into pd.
 cat /boot/vmlinuz-2.6.35-30-generic  /dev/dsp
 should be a command I can get the sound of my kernel
 into the speakers with.
 However, while I remember having done similar before,
 right now,
 on this machine there doesn't even seem to be
 a /dev/dsp present...
 also, how would I get this into pd?
 thanks,
 Tim
 
 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list
 
 
 
 
 
 
 
 
 'You people have such restrictive dress for women,’ she said,
 hobbling away in three inch heels and panty hose to finish out
 another pink-collar temp pool day.  - “Hijab Scene #2, by
 Mohja Kahf
 
 
 



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


Re: [PD] Output numbers consecutively, one at a time in PD

2011-09-12 Thread Patrice Colet
hi,

- Sebastian Valenzuela svalenzuelamu...@gmail.com a écrit :

 Thank you for the responses, Andy and Jonathan. But I am looking for
 something that will output THE FIRST number whenever I hit bang...
 then the NEXT number when i hit bang a second time (and so on).  So
 there is no steady, timed rate (as with the list sequencers) of
 number
 output, and I don't want to output all my numbers out right away (as
 with the list-drip object).
 

then there is [footils/list-dripslow] for that


___
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

2011-09-12 Thread Mathieu Bouchard

On Sun, 11 Sep 2011, András Murányi wrote:

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


Sounds like it :)

 ___
| 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

2011-09-12 Thread Mathieu Bouchard

On Sun, 11 Sep 2011, Jonathan Wilkes wrote:


[trigger anything]
|
[b]
can be shortened to:
[trigger bang]


can be shortened to :

[b]


And finally:
-1) [t a] as a cheap hack due to lack of segmented patching cords


even with segmented cords, [t a] is useful as a hub. That's what I use it 
for 95 % of the time, and segmented cords will not change that.


 ___
| 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] [OT] cool book (maybe relevant to list discussion)

2011-09-12 Thread Mathieu Bouchard

On Sat, 10 Sep 2011, Andy Farnell wrote:

Of the languages I've encountered, maybe over 20 if allowing things like 
bash and assembly,


They are programming languages just like the others. There isn't a very 
universal line between languages that are for programming and those that 
are not, but usually, being Turing-complete is thought of as the 
tipping-point. This means that anything with a while-statement or a 
if...goto statement in it is a programming language, but there are also 
turing-complete languages that have neither (which means that they can 
emulate while-loops with something else).


From ML to C via Modula-3: an approach to teaching programming which 
seems like a torturous path to put students through.


I thought you had written «tortuous» but I just realised that «torturous» 
also exists.


Well, I agree, for introductory courses. Later in the curriculum, for a 
course about the diversity of programming languages, weird combinations 
are quite welcome, but Modula-3 is quite redundant nowadays, except when 
trying to teach what programming languages used to look like...


Anyway, Tate wants to urge this empirical pluralism, that learning 
languages is good for you whether you use them or not, for purely 
self-developmental reasons.


Yeah, and probably more so for programming languages than natural 
languages, because the former potentially differ a lot more from each 
other (unless you pick a bunch of similar ones...).


 ___
| 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] Transposing samples using MIDI numbers

2011-09-12 Thread Sebastian Valenzuela
Hi,

Is there a way to transpose the sound of a sample [stored in a table]
to match a pitch/midi note number?
In my project, when a sample is played back [using tabplay~] I would
like something to tune that sample to say, midi note 69 or A 440.
I would like to be able to send this number to the transposing
function via a number box.
I am SOO close to realizing an idea, I just need this one crucial part.

Thank you for your time,
Sebastian

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


Re: [PD] Transposing samples using MIDI numbers

2011-09-12 Thread Ingo
You need to use [mtof] to convert the midi note number to the frequency
first. [tabread4~] allows variable readout speed to play back transposed
samples. Check the docs for some examples of [tabread4~] and samplers
(3.audio.examples/B...).

Ingo

 Is there a way to transpose the sound of a sample [stored in a table]
 to match a pitch/midi note number?
 In my project, when a sample is played back [using tabplay~] I would
 like something to tune that sample to say, midi note 69 or A 440.
 I would like to be able to send this number to the transposing
 function via a number box.
 I am SOO close to realizing an idea, I just need this one crucial part.
 
 Thank you for your time,
 Sebastian


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