Re: [PD] i need a bit of help to understand overlapped blocks

2008-07-02 Thread Uğur Güney
# If the block size is N samples (and there is no overlapping) then the
patches (subpatches) calculate the audio stream after every Nth sample. At
every tick the inlet~s take N samples in and the outlet~s give N samples
out.
# Overlapping is like you have M identical audio streams which are N/M
samples out of phase. For N=1024 and M=4 the frame size is 1024 and the
hop size is 256. You have four frames. First one is between samples n0 and
n0+1024. Second one [n0+256, n0+256+1024], third one [n0+512,n0+512+1024]
etc.

1x1234
2xx1234xxx
3xxx1234xx
41234x
oO where O = 41 + 32 + 23 + 14

# Every frame has four parts consists of 256 samples. The output is the sum
of these parts. n denotes the streams and numbers are parts of the frames.
# If you do nothing inside a patch (just connect the inlet~ to outlet~) 4th
part of the first frame is the same as the third part of the second frame
and they are equal to second part of the third frame and so on. (41 = 32 =
23...) Because they correspond to the same parts of the incoming input. (I
forget whether there is an automatic normalization in PD after summing M
frames)
# So why we are doing this? Why do we need overlapping? An example where it
is useful is DFT (FFT). You get a better resolution in your spectrum if your
frame size is big. But with a long frame your time resolution decreases
(when you take the FFT at every frame.) You get spectral data at every N'th
sample. This is due to the uncertainty relation.
# If you want to make a spectral analysis (take FFT), manipulate the
spectrum (play with the table which stores the spectrum), and resynthesis
the input (calculate the iFFT) then it is better if you use overlapping
blocks. Sorry for my bad usage of English!
# You can look at a working example/application in the audio examples
folder: I03.resynthesis.pd and read the related chapter in Puckette's book.
and afaik overlapping is only related to audio signals not to the control
signals.
-ugur-

On Wed, Jul 2, 2008 at 3:56 PM, hard off [EMAIL PROTECTED] wrote:
 recently i have discovered the joys of using overlapped blocks in sound
 patches.  however, i'm having a little bit of difficulty understanding
 exactly WHAT gets overlapped, and what doesn't get overlapped.

 it seems to me that control messages and do not get overlapped, and i
can't
 really tell what happens to external audio signals connected to the
 overlapped patch.

 is there some documentation somewhere on this topic?  or would a kind
person
 like to tell me basically what functions block overlap has?

 cheers.  matt

 ___
 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] Phase Distortion Patch

2008-06-29 Thread Uğur Güney
# Hi, while I was looking some examples for my chip design class I
came across with this site:
http://www.fpga.synth.net/pmwiki/pmwiki.php?n=FPGASynth.PhaseDistortionOscillator
where it talks about the idea of Phase Distortion Oscillator:
http://en.wikipedia.org/wiki/Phase_distortion_synthesis
# I made a very simple implementation of it with Pure Data. (Actually
PD is very fast for realizing the ideas!) And want to share it.
# I am attaching the patch: PhaseDistortion.pd There are two tables
with the same length. First table includes the phase values of the sin
function, ie. if the n.th point in the first table has the value x_n
then n.th point in the second has the value of sin(2*pi*x_n). My patch
is not versatile. It has only one parameter for manipulating the first
table. You can change it with the slider and see its effects. (There
is some aliasing, because I did not used any interpolation for reading
from the table)
# Have a nice day!
-ugur-
#N canvas 206 4 580 616 10;
#N canvas 0 0 450 300 (subpatch) 0;
#X array phdist 2048 float 0;
#X coords 0 1 2047 -1 200 150 1;
#X restore 332 365 graph;
#X obj 82 18 until;
#X msg 82 -5 2048;
#X obj 82 61 f;
#X msg 112 39 0;
#X obj 118 60 + 1;
#X obj 82 -26 t b b;
#X obj 61 -27 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#N canvas 0 0 450 300 (subpatch) 0;
#X array phase 2048 float 0;
#X coords 0 1 2047 0 150 150 1;
#X restore 90 364 graph;
#X obj 82 84 t f f;
#X obj 80 151 tabwrite phase;
#X obj 425 19 until;
#X msg 425 -4 2048;
#X obj 427 63 f;
#X msg 455 40 0;
#X obj 461 61 + 1;
#X obj 425 -25 t b b;
#X obj 404 -26 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X obj 425 85 t f f;
#X obj 425 114 tabread phase;
#X obj 425 150 expr sin(2*3.141592*$f1);
#X obj 424 193 tabwrite phdist;
#X obj 78 330 dac~;
#X obj 84 221 phasor~ 110;
#X obj 84 246 *~ 2047;
#X obj 136 291 hsl 50 15 0 1 0 0 empty empty empty -2 -8 0 10 -260097
-1 -1 1470 1;
#X obj 80 107 / 2048;
#X floatatom 229 53 5 0 0 0 - - -;
#X obj 229 73 t b b f;
#X obj 78 128 expr if($f1.5 \, $f1*$f2*2 \, $f2+($f1-.5)*(1-$f2)*2)
;
#X obj 194 -11 hsl 128 15 0.25 0.75 0 0 empty empty empty -2 -8 0 10
-260097 -1 -1 5700 1;
#X obj 132 331 line~;
#X obj 133 310 pack f 50;
#X obj 83 304 *~;
#X obj 230 32 line;
#X obj 229 12 pack f 100;
#X obj 16 0 loadbang;
#X msg 47 22 0.6;
#X msg 17 22 0.3;
#X msg 8 130 \; pd dsp \$1;
#X obj 8 95 tgl 30 0 empty empty empty 17 7 0 10 -260097 -1 -1 1 1
;
#X obj 86 198 nbx 5 14 -1e+037 1e+037 0 0 empty empty empty 0 -8 0
10 -260097 -1 -1 321 256;
#X obj 83 267 tabread~ phdist;
#X text 75 514 chosen x values of sin function;
#X connect 1 0 3 0;
#X connect 2 0 1 0;
#X connect 3 0 5 0;
#X connect 3 0 9 0;
#X connect 4 0 3 1;
#X connect 5 0 3 1;
#X connect 6 0 2 0;
#X connect 6 1 4 0;
#X connect 7 0 6 0;
#X connect 9 0 26 0;
#X connect 9 1 10 1;
#X connect 11 0 13 0;
#X connect 12 0 11 0;
#X connect 13 0 15 0;
#X connect 13 0 18 0;
#X connect 14 0 13 1;
#X connect 15 0 13 1;
#X connect 16 0 12 0;
#X connect 16 1 14 0;
#X connect 17 0 16 0;
#X connect 18 0 19 0;
#X connect 18 1 21 1;
#X connect 19 0 20 0;
#X connect 20 0 21 0;
#X connect 23 0 24 0;
#X connect 24 0 42 0;
#X connect 25 0 32 0;
#X connect 26 0 29 0;
#X connect 27 0 28 0;
#X connect 28 0 17 0;
#X connect 28 1 7 0;
#X connect 28 2 29 1;
#X connect 29 0 10 0;
#X connect 30 0 35 0;
#X connect 31 0 33 1;
#X connect 32 0 31 0;
#X connect 33 0 22 0;
#X connect 33 0 22 1;
#X connect 34 0 27 0;
#X connect 35 0 34 0;
#X connect 36 0 38 0;
#X connect 36 0 37 0;
#X connect 37 0 30 0;
#X connect 38 0 25 0;
#X connect 40 0 39 0;
#X connect 41 0 23 0;
#X connect 42 0 33 0;
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Phase Distortion Patch

2008-06-29 Thread Uğur Güney
# Your technique of using expr~ and creating the waveform on the fly
(rather than trying to calculate it in a table and getting clicks and
glitches) is great! Now the parameters are real-time tweakeable, as
Atte requested!
# The problem using a partial function is the discontinuity in its
slope. So, i changed the function used in the expr~ with a gaussian
function. The width and height of it are adjustable. You can try.
-ugur-

On Sun, Jun 29, 2008 at 2:59 PM, hard off [EMAIL PROTECTED] wrote:
 Ugur, here is your original patch with the expr converted into expr~

 also, you can get some really cool resonant filter sort of sounds by really
 distorting the phase (like 10 times).  i added a slider for that too.





#N canvas 206 73 727 617 10;
#N canvas 0 22 450 300 (subpatch) 0;
#X array phase 441 float 0;
#X coords 0 1 440 0 150 150 1;
#X restore 57 425 graph;
#X obj 83 392 dac~;
#X obj 127 302 hsl 50 15 0 1 0 1 empty empty empty -2 -8 0 10 -260097
-1 -1 3700 1;
#X obj 123 342 line~;
#X obj 124 321 pack f 50;
#X obj 88 366 *~;
#X msg 473 326 \; pd dsp \$1;
#X obj 473 291 tgl 30 0 empty empty empty 17 7 0 10 -260097 -1 -1 1
1;
#X obj 86 45 nbx 5 14 -1e+037 1e+037 0 1 empty empty empty 0 -8 0 10
-260097 -1 -1 100 256;
#X obj 367 -6 hsl 128 15 0 2 0 1 empty empty empty -2 -8 0 10 -260097
-1 -1 3600 1;
#X obj 388 70 line~;
#X msg 387 45 \$1 50;
#X obj 183 256 tabwrite~ phdist;
#X msg 149 46 0;
#X obj 87 236 -~ 0.25;
#X obj 86 71 phasor~ 100;
#N canvas 0 22 450 300 (subpatch) 0;
#X array phdist 441 float 0;
#X coords 0 1 440 -1 200 150 1;
#X restore 268 422 graph;
#X obj 186 174 tabwrite~ phase;
#X obj 138 -22 r graph;
#X obj 186 146 r graph;
#X obj 185 230 r graph;
#X obj 265 368 bng 30 250 50 0 graph --- graph -4 -10 0 14 -260097
-1 -1;
#X obj 389 14 hsl 128 15 20 100 0 1 empty empty empty -2 -8 0 10 -260097
-1 -1 300 1;
#X msg 86 3 100;
#X obj 138 0 t b b;
#X obj 88 261 cos~;
#X obj 289 277 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1
1;
#X obj 319 46 line~;
#X msg 320 20 \$1 50;
#X text 505 -7 scaled 0 - 2;
#X obj 289 302 metro 1000;
#X obj 86 136 +~;
#X obj 112 107 expr~ $v2*exp(-$v3*pow($v1-.5 \, 2));
#X text 526 13 scaled 20 - 100;
#X connect 2 0 4 0;
#X connect 3 0 5 1;
#X connect 4 0 3 0;
#X connect 5 0 1 0;
#X connect 5 0 1 1;
#X connect 7 0 6 0;
#X connect 8 0 15 0;
#X connect 9 0 28 0;
#X connect 10 0 32 2;
#X connect 11 0 10 0;
#X connect 13 0 15 1;
#X connect 14 0 25 0;
#X connect 15 0 31 0;
#X connect 15 0 32 0;
#X connect 18 0 24 0;
#X connect 19 0 17 0;
#X connect 20 0 12 0;
#X connect 22 0 11 0;
#X connect 23 0 8 0;
#X connect 24 0 23 0;
#X connect 24 1 13 0;
#X connect 25 0 5 0;
#X connect 25 0 12 0;
#X connect 26 0 30 0;
#X connect 27 0 32 1;
#X connect 28 0 27 0;
#X connect 30 0 21 0;
#X connect 31 0 14 0;
#X connect 31 0 17 0;
#X connect 32 0 31 1;
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd and Jack(dmp) on XP

2008-05-16 Thread Uğur Güney
# Hi,
# Thanks for the info. I downloaded Jackdmp and Qjackctl. They work fine!
# But I couldn't figure out how to connect PD to jack server. When I
run pd nothing changes in the Connections panel. I'm using Pd
version 0.40.3-extended-20080505 Do I have to do something to run
jackdmp as an ASIO driver?
-ugur-

On Fri, May 16, 2008 at 1:40 AM, Steffen Leve Poulsen
[EMAIL PROTECTED] wrote:
 Hi, pdrs

 FYI

 Just tested Pd version 0.40-2, jackdmp 0.7 and Qjackctl.
 Seems there now is a stable free ASIO audio server on XP.

 I used Pd to monitor demoversions of Reaktor, bAbelton Live, NordModular
 G2 and Reason with little or no flaws.

 You can get jackdmp herehttp://www.grame.fr/~letz/jackdmp.html

 mvh/Steffen Leve Poulsen

 ___
 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] Pd and Jack(dmp) on XP

2008-05-16 Thread Uğur Güney
# Thanks! I did all you said on my desktop with XP and now I'm able to
connect Csound and PD using using Jack.
# At morning I was on my Laptop with Vista. And regsvr32.exe
JackRouter.dll command did not worked. So JackRouter option did not
appeared as an ASIO device. (I should pay attention to the titles of
the topics)
# Have a nice day!
-ugur-

 You need a soundcard with ASIO-drivers or asio4all.

 Put the content of the Qjackctl folder where you have jackdmp.exe

 Then do (as stated in the readme) regsvr32.exe JackRouter.dll
 --regsvr32.exe is in c:/windows/system32. This enables your ASIO apps as
 jack clients. Now do jackdmp -d portaudio -d -l to get the name of your
 soundcard.
 Restart jackdmp -R -S -d portaudio -d name_of_your_ASIO-driver
 Start Qjackctl start Pd. In ASIO-options in Pd you now have JackRouter.
 Select and set to 4 in 4 out. In Qjackctl Pd should show up in the
 connections menu.
 Set JackRouter options in JackRoute.ini.

 mvh/sLp

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


Re: [PD] request for ideas for a simple noisy unpitched synth

2008-03-25 Thread Uğur Güney
# Hi Nicholas,
# I've attached a patch I made just now. It has a slider of which
value is recorded periodicaly. At every period the difference between
the previous value and the final value is calculated. This calculation
gives something related to the velocity of the slider. And multiplied
this value with the output of a filtered noise. (try to change the
period) So the velocity is dependent to the speed.
# And the position of the slider directly controls the frequency value
of a bandpass filter. This makes the timbre position dependent.
# It is very primitive but I think these are want you wanted. Hope this helps!
-ugur guney-

On Tue, Mar 25, 2008 at 5:02 PM, nicholas ward [EMAIL PROTECTED] wrote:
 Hi,
  Apologies if this arrives twice. Im having email troubles today. I
  just wanted to ask if perhaps anyone might have a patch or a few
  starting ideas. I need a synth that will be controlled from just one
  slider. It must generate varying non pitched noisy sound in response
  to the position and velocity of the slider. I guess velocity might
  control the amplitude and position some part of the timbre. My
  initial thoughts were on something like a virtual rake in some gravel
  or brushing. Anything will do really as long as it is quite dynamic
  but without a sense of pitch. Im just getting started on it now but
  thought I'd ask in case anyone has a noisy patch they might like to
  fire my way or some approaches.
  Thanks
  Nicky


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



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


Re: [PD] Box Muller Gaussian noise

2008-03-16 Thread Uğur Güney
# Hi, sorry for jumping into the conversation. I am doing my
statistical physics homework and can not read whole mails just skim
read them and saw terms like uniform distribution and gaussian
distribution. I thought it could be worth to mention the central
limit theorem which says that the cumulative effect of every kind of
distribution will become a gaussian distribution:

http://en.wikipedia.org/wiki/Illustration_of_the_central_limit_theorem
http://en.wikipedia.org/wiki/Central_limit_theorem
-ugur guney-



On Sun, Mar 16, 2008 at 11:13 PM, Andy Farnell
[EMAIL PROTECTED] wrote:

  Wow, that's a gorgeous demonstraton Martin!

  Everything becomes clear as time - infinity :)

  And somehow our little Earthling brains are able to
  spot this signature distribution as we listen to rainfall.

  Now I'm getting how uniform fall leads to
  a Gaussian bell around the mean for an area over time.

  Thanks.


  Chuck, I'm sorry I couldn't follow all of your derivation
  of Box Muller, but thanks for the analysis. I think we agree
  it's a neat trick for an efficient source of WGN.

  thanks all,

  Andy


  On Sun, 16 Mar 2008 16:54:29 -0400


 Martin Peach [EMAIL PROTECTED] wrote:

   Here's a histogram generator (binner) that shows the distribution of
   [gaussianoise]. Using it I can quickly see that [gaussianoise2] is too
   peaked around zero and that [gaussianoise3] chops the tails off when the
   scale is low.
   If you have uniformly distributed raindrops falling, any given area will
   receive a number of raindrops that clusters about the mean in a normal
   distribution, just as if you first bin the number of occurrences of each
   value of white noise, then bin the resulting counts, the histogram of
   the counts will look like a bell curve centered at the mean count.
  
   Martin
  
   Andy Farnell wrote:
   
GEM is broken here, but thanks for the info Marius.
I'm reading through the docs for R at the moment.
It makes lovely plots, but haven't figured how to get
my data in to it yet...
   
JFYI the application is rainfall. Many papers I read describe
rainfall as Gaussian.
   
I know from physical analysis that raindrops are uniform in size
and velocity for any local sample, so I've realised this distribution
is about how they fall within an area and pondering how a
distribution can be Gaussian in 2D.
   
Thing is, I can't figure out any good reason why rain should
by anything other than uniformly distributed ! :(
   
When I use Martins second patch with a thresholding function
to trigger droplet sounds, it does sound a lot more like
real rainfall than a uniformly triggered model.
   
I'm in one of those grey areas where I half understand what I'm
doing, which is a dangerous place to be.
   
Anybody know of cool papers I might have missed on the
distribution of rain drops and the effect on their sound?
   
Thanks,
   
Andy
   
   
   
   
On Sun, 16 Mar 2008 15:43:34 -0400
marius schebella [EMAIL PROTECTED] wrote:
   
from the first equation that andy posted, I produced a gem
representation. the box muller noise seems wrong, because it does not
use the whole range but is shifted to the negative side.
note, this is not a distribution of frequencies, but of noise values..
marius.
   
Martin Peach wrote:
Oh no that's wrong isn't it :(
The log is necessary to keep the distribution normal, and the range is
going to get wider the closer to zero the radius is allowed to get.
The attached patch has a scale adjustment...
Still I wonder what kind of distribution gaussianoise2 gives, it's not
just white.
   
Martin
   
   
Martin Peach wrote:
Charles Henry wrote:
On Sun, Mar 16, 2008 at 11:16 AM, Martin Peach
[EMAIL PROTECTED] wrote:
 (gaussianoise has occasional values that exceed [-1 ... 1], which I
 suppose is normal...white noise is always on [-1...1])
That's true.  With the Box-Muller method, there is the log(~U1) term,
but you can always just add a small value to U1, which will truncate
your distribution.  The size of the small value can be calculated to
fit with any given threshold.
   
I think it's really because the Box-Muller method selects random
numbers  in pairs which map to points in a unit square on the plane,
but then selects only those points which are inside the unit circle,
something that the pd patch doesn't do (how to resample points in a
dsp vector until they are in range?). The attached patch shows the
straightforward way of doing it by simply selecting a random radius
and angle and returning the resulting y coordinate as the random
number. The results are always on [-1,1].
I don't think sin~ will be any slower than log~.
   
Martin
   
   

 
   

Re: [PD] Midifile Object

2008-02-14 Thread Uğur Güney
# Hi,
# I'll be very happy too if this feature can be done. Once I made a
demonstration about tuning systems, where I used a midi file as the
input. I packed the midi file with the patch but it did not work on
any computer other than mine because [midifile] could not find the
file.
# Thanks in advance!
-uğur-

On Thu, Feb 14, 2008 at 8:26 PM, saint [EMAIL PROTECTED] wrote:
 hi martin/all,

  sorry for buggin you about this again, but unfortunately i can't use your 
 (or any) midi external
  for my purpose if i can't get this to work.

  the problem i'm having with midifile is this: i can't get midifile to read a 
 .mid file that's in the
  same folder as the pd patch by referring to it by it's short name only
  i.e. without the full path c:/progra~1/etc/etc (which does work btw, thanks)

  is there anyway to get this...

  [read test.mid(
  |
  [midifile]

  ...to work?!

  (where the midi file and pd patch are in the same folder of course)
___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Granular Synthesis Study

2007-12-16 Thread Uğur Güney
On Dec 16, 2007 1:02 AM, [EMAIL PROTECTED] wrote:

 is it just about getting rand. varieble amplitude sinusoid ?

 i have made a nice object called 0sc~ - which is like an unstable
 oscillator (amplitude wise, and frequency wise if Q is small)
 it is just a cascade of vcf~ with noise~ (and pink~) put trough that


# Granularity comes from the fact that the overall sound is the sum of short
sound segments (which are 5 to 30 msec long). To avoid glitches due to
discontinuity these segments are calculated by enveloping a sinusoidal with
a gaussian.
# In my patch I prepared some sound segments with definite duration and
frequency and triggered them with regular time intervals.

mine isn't making sound similar to yours ..i'm not sure does it fall in
 the granular concept ?

# In this view, I think your object works in continuous signal domain.
-ugur-
___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] How to use CVS (was: Granular Synthesis Study)

2007-12-16 Thread Uğur Güney
# Hi,
# I looked at http://pure-data.cvs.sourceforge.net/pure-data/ There are lots
of externals and abstractions there. (Most of which I saw/remember in
Pd-Extended package)
# I found [nqpoly4] here:
http://pure-data.cvs.sourceforge.net/pure-data/abstractions/nqpoly/nqpoly4/by
browsing the folders. But couldn't find [polypoly~]. Is there an
easier
way to download a whole folder, instead of opening a patch's own page and
clicking download. And how can I search through this CVS archive? Do I need
a special software for this kind of jobs?
-ugur-


  # In my PD distro (0.39.2-extended-test7) [polypoly~], [nqpoly4]  does
 not
  exist. So I can't use them.

 They are just abstractions, you could get them from CVS and then use
 them. Both really help with creating and managing many copies of an
 abstraction.


  Frank Barknecht _ __footils.org__

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


Re: [PD] wave guide patch

2007-12-03 Thread Uğur Güney
# Thanks!
# Here, the ingenuity is in the table/array object. I think table is such a
powerful tool of Pd, which I miss in different environments (Octave, Csound
etc). You can read, write and visualize at the same time, you can even draw
a shape with your mouse! This flexibility makes it possible to use it in
many different contexts. Many thanks to the developer of this object!
-ugur-

On Dec 3, 2007 2:26 PM, hard off [EMAIL PROTECTED] wrote:

 actually i really love this one.  great idea and well put together.

 you set up a really good system with the 3 arrays, so the visual
 representation is very effective.

 it's one of the problems with pd that the visual element is not so
 easy to access.  always good to see a nice relation between sound and
 vision.

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


Re: [PD] tabread4~~

2007-11-23 Thread Uğur Güney
On Nov 23, 2007 7:15 AM, Mathieu Bouchard [EMAIL PROTECTED] wrote:

 On Sat, 17 Nov 2007, Uur Güney wrote:
  An example of sound producing mechanism is
  plucked and vibrating string (or vibrating membrane) It is a continuum
  and so has infinite dimensions.

 It's not because it's a continuum, that it has infinite dimensions. Real
 numbers form a continuum, but have only 1 dimension.



 The set of all possible continuous functions over a given finite interval,
 forms a continuum that has infinitely (countably) many dimensions. This
 continuum also happens to include some simple (Fourier-compatible)
 discontinuities as well. (Including all possible discontinuities is
 another story.) Physical sounds can be understood to have no
 discontinuities, as several factors tend to low-pass the sound enough to
 remove discontinuities.


# Ok. I got it. Thanks for clarification.
# Once I asked to my Non-linear Dynamics teacher. Isn't the shape of a
string a 1D function of its length? Why we are calling it as continuum? And
she said that: A simple harmonic oscillator makes a 1D motion (in time). It
goes back and forth. You can approximate a string as N connected harmonic
oscillator lying along a line. if N goes to infinity we'll have a SHO at
every point in space, which makes a 1D motion in time. And this is a field,
and hence it is a continuum.
# This is in accordance with your definition, an ideal string can have any
shape, so its possible shapes form the set of all possible continous
functions over its length.
___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] unit impulse without [dirac~]

2007-11-16 Thread Uğur Güney
# What is preserved is the area under the function, it is equal to one (its
just 1, with no physical dimensions like energy. So, if x axis has the
dimensions of L(ength), y-axis has the dimension of 1/L). When you let the
bottom side's length of a triangle shaped function to go to zero, for
preserving its area, its height goes to infinity. Dirac Delta Function is
defined as this limiting case, other limiting case where the height goes to
zero and so length goes to infinity is unrelated to Dirac Delta Function.
(actually it is not a function, but a distribution. :-) Its behavoir is very
pathologic for a function. Distributions are more general.)
# The idea behind all of this cumbersome things become useful when you
multiply a function with Dirac Delta and take the integral:

integral{f(t)*delta(t-a)*dt} = f(a)

# So, Delta function takes a sample (a snapshot) from the function at time
a.
# It can be used as a mathematical approximations of some real signals
(there can't be any physical quantity of which amplitude is infinity) or a
tool for solving problems.
-uğur-


On Nov 17, 2007 11:01 AM, Andy Farnell [EMAIL PROTECTED] wrote:

 Is it correct to say that the Dirac impulse preserves
 energy, as it tends towards zero time length the amplitude goes to
 infinity and if we
 squashed its amplitude to zero it would be infinitely long? In which case
 Dirac impulses
 are theoretical and not practical digital signals?

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


Re: [PD] tabread4~~

2007-11-16 Thread Uğur Güney
On Nov 17, 2007 3:16 AM, Charles Henry [EMAIL PROTECTED] wrote:

 We structure events in
 music as a function of time.
 f: R (time) - (set of possible sound events)
 The topology in this case is clear.  It's a line, and music is a
 function mapping 1-D into the space of all possible sounds.

 we can only have the paths as functions of
 time.  So, no matter how complicated the song structure gets, you can
 flatten it into a single function.  Any thoughts?


# Here is my conceptualization of sound as a 1-D function.
# Musical data is one-dimensional if it is recorded on a medium or is
transmitted through some fluids. It is an array of number in digital media,
changing voltage through cables and changing excess pressure of air when
transmitting through air. All of these are simple functions of time.
# But the musical data of composition (in the mind of the composer), or the
sound producing mechanisms are not one dimensional. The composer builds its
ideas not on one dimensional space but she has structures which may have
certain hiyerarchies or orderings. For example, if there is harmony, there
are more than one voice. Two voice works are two dimensional vector
functions of one variable (time) (if we are at the abstraction layer of
notes) An example of sound producing mechanism is plucked and vibrating
string (or vibrating membrane) It is a continuum and so has infinite
dimensions.
# What we hear is the projection of all these data (different instruments,
song structure etc.) onto 1 dimension. (This parts can be called bases of
the space of all possible sounds as mathematical metaphor in linear
algebra.) This projection is done by mixing different tracks or listening to
an ensemble, so by simply taking the superposition of different audio
signals. And our perception system has full of analysers which guess/try to
understand/estimate/visualize etc. the original data from this reduced 1
dimensional data, namely sound.
# If find it very interesing that we receive a one dimensional sound signal
and perceive which instruments are there, who is talking, where the foot
steps coming from, water in the pod is boiling etc... We extract the
projected/compressed information as much as we can.
-uğur güney-
___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] about sexy-ism

2007-10-26 Thread Uğur Güney
On 10/26/07, vade [EMAIL PROTECTED] wrote:

 Its a joke. Get over it. Comedians do it at venues of over a 1000 all the
 time. Ever hear of George Carlin, Bill Hicks, Eddy Murphy (back when he was
 funny..), etc etc.


# Of course we can understand that mail was a joke. But there are many kind
of jokes, good ones, bad ones etc.. And joking by its own does not justifies
the content.

Whether or not the PD list is the place for this, well, frankly, I'll agree
 it isnt, but that was my point about 3.5^10 emails ago - this thread is
 mind boggingly off topic -  but that did not stop discussion over such
 amazingly interesting topics as the etymology of sexism,  constructive
 comments about street jargon, academia and fun statistics over who applied
 and got accepted to what.

 Jesus fucking christ, its a joke about CONSENSUAL SEX USING PD OBJECTS AS
 A METAPHOR. OH NO. OH DEAR GOD OH MENSTRUATION. OH YUCK BOO HOO.


# Thanks for the clarification. Capital letters revealed the true irony
obscured by the complicated metaphor.

No one notices Hard off also making fun of himself there. Ah, so typically
 one sided.

 Look.
 We are all humans.
 Some of us have vaginas, others penises. (hell some even have both)
 Some of us use PD and/or other Dataflow languages.
 Can we PLEASE GET OVER IT ALREADY?

 That email was more a comment on the lunacy of the aforementioned thread
 as well as some of you over intellectualizing every goddamn last minutiae of
 the topic - rather than an actual genuine heartfelt AFFRONT TO ALL OF
 WOMANKIND.

 Perhaps if you took of your lab coat, removed the various PHDs from behind
 your desk, and any other assorted academic paraphernalia that may be laying
 about* - including the self righteousness - you might see that last email as
 an attempt to cut through the bullshit of this topic. Im sorry I have to
 spell it out for you.


# Underestimating the academia and intellectual work is being proud of the
ignorance. I think, calling the previous emails about such amazingly
interesting topics in this thread lunacy and your justification of the
joke is worse than the joke itself.
# Being sensitive and thinking hard about whether the relative smallness of
the female population is due to some inherent issues that we are not aware
of and taking responsability is not something one can make mockery. This
subject is not off topic but a part of computer music and pd community. And
mocking about what people take serious will not be met with joy.
-uğur-

*I am well aware that you and others may literally have said items behind
 your potentially non existing desk, however, I hope you can all grok the
 metaphor - somehow I feel ill be disappointed yet again...

 The bottom line is, if PD is going to be used by Artists, prepare to be
 offended.

 On Oct 26, 2007, at 2:20 PM, Alexandre Castonguay wrote:

 I think the post and this attitude has no place on this list. The use of
 objects is smart but it doesn't excuse the moronic and offensive nature of
 the post.  What makes you think that your freedom of speech should come at
 the expense of women feeling violated and insulted?  I wonder if you would
 state something like that before a crowd of 1000.  I feel disgusted.

 Alexandre


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


Re: [PD] bouncing

2007-10-13 Thread Uğur Güney
# I read the first mail and find an algorithm for the special case of
moving point particles in  a 2D pentagon boundary. The answer is given as
using pyode script but I am excited about my solution and want to share it
with you :-)
# The easy part of using a rectangular boundary (of which sides are parallel
to the axes) is that, one should only check if x position of a particle is
greater than x_max (coordinate of the right side of the rectangle), if
xx_min, yy_min and yy_max. And if it exceeds the boundary in the next
step of the simulation according to ODE (or any kind of calculation) of the
simulation, then reverse the velocity in that direction (and mirror the
coordinate using the boundary line as the axis of symmetry).
# So, We can try to use this simple idea in pentagon case.
# We can divide the pentagon in five triangles: Put a point in the center
and draw lines to vertexes.
http://www.math.union.edu/~dpvc/courses/1999-00/MTH012-02-WI00/notes/DividedPentagon.jpghttp://www.math.union.edu/%7Edpvc/courses/1999-00/MTH012-02-WI00/notes/DividedPentagon.jpg
# Call the bottom triangle 0th triangle, turn in counter clockwise direction
and call other triangles as 1st, 2nd...
# The algorithm is as following:
# First determine in which triangle the particle is. One can get this using
an atan2(x,y) like function. atan2 returns the angle between the position of
the particle and the x-axis. We can beforehand calculate the angles between
the sides of triangles and the x-axis. And using this information we can
find in which triangle the particle is. (or maybe y/x is just enough for
determination)
# If it is in the zeroth triangle, all we have to do is to look for the y
position. If it is less than minus of the height of the bottom triangle then
it exceeds the boundary. Apply the reflection like in a rectangular
boundary.
# One can not do this in other triangles (1st, 2nd...). Because their
boundaries are not parallel to axes but they have slopes. So, if we rotate
the coordinate system, until the bottom side of the triangle becomes
parallel to y-axis, e.g. rotate 72 degrees clock wise for 1st triangle, 2*72
degrees for the 2nd..., (360/5=72) we can apply this reflection law. (this
is the trick)
# After applying the reflection one must rotate the coordinate system
counter clock wise.
# Here is the formula of rotating a coordinate system (taken from Arfken,
Mathematical Methods for Physicists). (x,y) is the coordinate in the old
system and (x', y') is the coordinate in the new (rotated) system, a is the
angle of rotation.

x' = x*cos(a) + y*sin(a)
y' = -x*sin(a) + y*cos(a)

# But one don't have to make trigonometric calculations for every rotation,
because a is constant. It is 72 or integer multiples of 72 and one can
calculate sines and cosines beforehand e.g. sin(72) = 0.9511, cos(72)=0.3090,
for CCW rotations, and sin(-72)=-0.9511, cos(-72)=0.3090 for CW rotations.
# Here is the pseudo code:

take_the_simulation_one_step_further()
for_each_particle:
n = the_number_of_triangle_which_includes_the_particle(x,y)
(x',y',vx',vy')=rotate_the_velocity_and_coordinate_of_the_particle(-n*72,x,y,vx,vy)
(x',ynew',vx',vynew')=reflect_the_particle_(if_necessary)_as_if_it_reflects_from_the_bottom_of_a_rectangle(x',y',vx',vy')

(x,y,vx,vy)=rotate_the_velocity_and_coordinate_of_the_particle(n*72,x',ynew',vx',vynew')

# I didn't try this of course, but seems plausible. Thanks for reading :-)
-uğur-


On 10/13/07, marius schebella [EMAIL PROTECTED] wrote:

 hi,
 I need to bounce objects against a border that is not running parallel
 to x or y, but in a gradient angle. actually I need to bounce the
 objects within a pentagon. iSeg2D allows object to cross the border when
 they bounce, there is no x/y-max for gradients.
 I am also looking into frank's pyode script. Is there something in it,
 that can do that?
 marius.

 ___
 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] [PD-announce] call for pdpedia language site admins

2007-10-02 Thread Uğur Güney
# Thanks,
# What I did wrong was to create
http://wiki.puredata.info/tr/MedyaViki:common.css
not
http://wiki.puredata.info/tr/MedyaViki:Common.css
# So, we should pay attention to Capital letters!
-uğur-

On 10/2/07, marius schebella [EMAIL PROTECTED] wrote:
 go to http://wiki.puredata.info/en/MediaWiki:Common.css
 and copy the text to
 http://wiki.puredata.info/tr/MediaWiki:Common.css
 the box style should the show up.
 marius.
___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] translations for pdpedia templates

2007-10-02 Thread Uğur Güney
On 10/2/07, Hans-Christoph Steiner [EMAIL PROTECTED] wrote:
 I just edited the script to handle the translations.  Here are the
 variables that need to be translated.  Please give them to me
 _exactly_ how they should appear, with caps, spaces, accents, etc.
 They'll go straight into the templates.  For things like how case is
 used, I think we should follow wikipedia's standards.

# These are for Turkish  / Türkçe translations
-uğur-

# wikipedia terms
$stub = Taslak;
$template = Şablon;
$category = Kategori;
$infobox = Bilgi Kutusu;

# pdpedia terms
$objectclass = Nesne Sınıfı;

# page headers
$inlets = Girişler;
$outlets = Çıkışlar;
$arguments = Argümanlar;
$messages = Mesajlar;

# infobox
$name = İsim;
$description = Açıklama;
$abbreviation = Kısaltma;
$library = Kütüphane;
$author = Yazar;
$developer = Geliştirici;
$releaseVersion = Versiyon;
$releaseDate = Yayım Tarihi;
$dependencies = Bağımlılıklar;
$license = Lisans;
$website = Web Sitesi;
$programmingLanguage = Programlama Dili;
$platform = Platform;
$operatingSystem = İşletim Sistemi;
$language = Lisan;
$dataType = Veri Tipi;
$distributions = Dağıtımlar;
___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] [PD-announce] call for pdpedia language site admins

2007-10-01 Thread Uğur Güney
 Who wants to lead their own language?
 kim istemek -e doğru götürmek onların kendi dil?
 (umm, yes, these might be silly since they are machine translations :D )

# This is an awful terrible translation. :-) So the turkish
translation can not be leaved to AI's. One should take the
responsibility! And I am volunteering for this work.
-ugur guney-


On 10/1/07, Hans-Christoph Steiner [EMAIL PROTECTED] wrote:
 Now we are ready to start setting up sites in whatever language
 people want.  Here's the key:  in order to setup a given language, we
 need at least one volunteer to be the maintainer of that language
 section.  You will then be given bureaucrat and sysop status so
 that you can admin that site.

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


Re: [PD] [PD-announce] call for pdpedia language site admins

2007-10-01 Thread Uğur Güney
# Hi, Marius and all,

http://wiki.puredata.info/tr/MedyaViki:common.css

# I created that page. But still the infobox does not show up at

http://wiki.puredata.info/tr/%C5%9Eablon

# What should I do? Is the problem related to the name of the file
common.css Did I created/uploaded a file by creating that page?
Thanks...
-uğur-

On 10/2/07, Hans-Christoph Steiner [EMAIL PROTECTED] wrote:
 As for Infoboxes not showing, you need to add some CSS, you can copy
 and paste this one into a page of the same name.  Otherwise, post to
 the Pd list, Marius and others know that part better than me.

 http://wiki.puredata.info/en/MediaWiki:common.css

  # I tried to create a template entry Şablon in the main page
  (Ana Sayfa). I copied the source of [abs~] to Şablon and
  translated the labels. But I encountered my first obstacle. The
  Infobox Objectclass did not display at all.
  # How can I solve this problem?
  # Thanks!
  -uğur-
___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] [PD-announce] call for pdpedia language site admins

2007-10-01 Thread Uğur Güney
http://wiki.puredata.info/tr/index.php?title=%C5%9Eablon:Infobox_Objectclass
# I created the object but this time borders are not visible. :-(
# Sorry for bothering too much, I'm new to MediaWiki.
-uğur-

http://wiki.puredata.info/tr/%C5%9Eablon

On 10/2/07, marius schebella [EMAIL PROTECTED] wrote:
 you also need to create the template for the objectclass.
 you can have a look at:
 http://pdpedia.at.or.at/en/Template:Infobox_objectclass
 be careful with capital letters.
 marius.

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