Re: [Pd] Loading externals in Linux

2006-11-06 Thread IOhannes m zmoelnig
Stephen Sinclair wrote:
 Come to think of it,
 wouldn't it be useful if Pd just *always* checked for extensions in
 the user's home folder?
 ~/.pd-extra, for instance.

i don't know the benefits of such additional auto-searched folder.
i am working with different pd-versions on different platforms (and
architectures!) ((oops i did it again)), and your proposal adds more
trouble for me...(of course i wouldn't have to use it)

nevertheless you can already do with pd what you are suggesting: just
add ~/.pd-extra to your search-path in ~/.pdsettings (or ~/.pdrc);

each pd (regardless where it actually lives) will read pd-configuration
file in your hoem-directory and add your path.


mfg.adsr
IOhannes

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


Re: [PD] Re: multi-speaker panning.. problamtic maths

2006-11-06 Thread Frank Barknecht
Hallo,
alexandre r. decoupigny hat gesagt: // alexandre r. decoupigny wrote:

 first of all there was a light problem in frank's solution.. it did resolve
 triggering problem, but that also created a new issue: since the
 y value was stored in a [f] object and was triggered from an anything bang
 of the [t] object that depended on the input of the x value, everytime you
 would move only on the y axis while keeping x consant, no triggering took
 place and as a result nothing happened. i got around it by inserting a
 [metro]
 that only gets triggered when x is static.. see the attached patch : )

Sorry, late answer here: You don't need to use a metro here, in fact
especially with the GUI-bang objects inbetween doing so will eat your
CPU cycles quickly. What you sh/could do, if you want to move the
y-value alone, is just connect the y-value to the *left* inlet of the
[f] object after the [t b a] instead of to the right. Then you would
also get a new output if only y changes. However if the value is
coming from the joystick-object you should normally always get both x-
and y-values at the same time.

Ciao
-- 
 Frank Barknecht _ __footils.org_ __goto10.org__

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


Re: [PD] measuring time with sample accuracy

2006-11-06 Thread Marius Schebella
there is always the possibility to use a subpatch with [blocksize~ 1]. 
but I did not use this often, because, it is cpu intensive... better to 
find a solution in the signal-domain.
like with ~ from zexy in combination(*~) with a phasor~ or line~ you 
would get a signal vector, where you have only values on the bins, where 
the threshold is crossed.

marius.


Alain de Cheveigne' schrieb:
I would like to measure the time of  occurrence of waveform events (for 
example from adc~) with  sample resolution.   In other words, I would 
like to record at what sample index an event such as a threshold 
crossing  occurred.  The aim is to time events on various inputs 
relative to each other with sample accuracy.


I may be wrong, but I don't  think things like vline~, timer or realtime 
can give me this accuracy.  What I have in mind is something like 
threshold~, but that outputs the index at which a threshold-crossing 
event occurred.


Does such a thing exist?

Alain

___
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] running PD from a USB stick / drive

2006-11-06 Thread Demi Delirium
well, initially i had thought simply run pd, not the os, i'm a winxp
user most of the time, and i have various day-to-day apps, and
processing(.org) running from a usb stick at the moment...but i
have also been thinking about trying damnsmalllinux out on said usb
stick, and finding out whether that runs both from within osx and
winxp, in which case that's probably the most flexible use-anywhere set
up i could hope for.
i'm open to suggestions.and THANKS for the info thus far! :)On 06/11/06, Patco [EMAIL PROTECTED]
 wrote:ad a écrit : On Nov 3, 2006, at 10:13 AM, Georg Holzmann wrote:
 Hallo! can anyone tell me whether this would be possible? should be possible ... what a cool answer ...At the moment your computer is able to boot on USB drive, there are many
solutions.The question is not enough precise, anyway, do you want to run pd froman USBdrive,or do you want to run an OS from an USBdrive and then to run pd from this?For both question there is an answer but it really depends on which
hardware you use.Patco.___Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses
http://fr.answers.yahoo.com
___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd freezing on startup in ubuntu dapper

2006-11-06 Thread John Harrison




I booted up a LiveCD of Dynebolic v1.4.1 which has Pd on it. Just as
with my ubuntu machine, trying to run Pd froze the machine utterly,
completely. So my guess is it has something to do with the driver for
this particular sound card, the Alsa library, and Pd. I'm guessing Pd
must load in the libraries for alsa and/or do some sort of check of the
audio hardware initially, regardless of the flags set on the command
line, and this must be what is crashing it. I'm not sure what is unique
about Pd as opposed to all of the other audio apps I have tried on this
machine, but apparently there's something because no other audio apps
are crashing. I'm also not sure how it is that others are apparently
running this same M-audio Delta 1010LT card w/ Pd with no problems? Can
somebody confirm this? I see the card referenced in the official Pd
docs for installation in Linux, so I'm assuming this card apparently
worked with Pd somehow, at least at one time.

I thought of trying the same card w/ Pd in another machine, but I'm not
even sure where I would go w/ these results...

-John

John Harrison wrote:

  
  
Yes everything works with jack...except Pd. pd -jack still freezes the
system utterly, completely. What could possibly be causing this? I wish
I could compile w/out both ALSA and OSS so Pd basically had no chance
for connection to the audio hardware at allbut that breaks the
compile, as have already posted about to this list.
  
Does anybody know of a LiveCD with Pd on the CD? I'd like to try
booting this to see if the problem might be in my os config somewhere...
  
To anybody else using this card with Pd: any config for the card itself
(say, using envy24control) I need to know about? Should I try a
different slot on the computer? This is just crazy...
  
-John
  
Roman Haefeli wrote:
  
hi john

without knowing the deeper details of and reasons for your problem i
suggest the following:
-try to run jack with your delta 1010LT
-then try out, if any other application can use your soundcard over jack
-if yes, then try 'pd -jack', so that pd connects to jack and then maybe
you can use your soundcard without freezing.

from my experience, i solved many problems concerning audiosoftware and
soundcards by inserting 'the jack-layer' in between (on
linux//debian/ubuntu and osx). hopefully it helps in your situation as
well.

cheers
roman
 

On Fri, 2006-11-03 at 20:16 -0600, John Harrison wrote:
  

  If I yank the M-audio Delta 1010LT card out of the machine, Pd runs
fine. When I part the card back in, Pd freezes again. So the problem
appears to be this M-audio card. The thing is...I Googled and searched
this mailing list and it appears people use this card with Pd all the
time with no problems. I need Pd and I need this M-audio card. What's
my next step?

Weird that the card would crash Pd even with this command:

$ pd -nosound -noadc -nodac

Thanks,

-John

John Harrison wrote: 

  
Pd is still completely freezing my ubuntu Dapper machine. I have
tried recompiling with Pd 0.40.2 and still absolute and instant
freeze. So I tried the suggestion below. The debugger reports:

Starting program /usr/local/bin/pd
[Thread debugging using libthread_db enabled]
[New Thread -1211066688 (LWP 6400)]

Then the machine is completely frozen again, so I have to pull the
plug.

I also tried editing /etc/hosts as was suggested here:
http://lists.puredata.info/pipermail/pd-list/2005-07/029853.html

and that didn't help either...

I have used this on many ubuntu Dapper machines so I don't know
what's so special about this one. Could it be the 2 dual-core
Pentium Xeons? Could it be the M-audio Delta 1010LT card?

When I run

$ pd -verbose

I get no response at all. Just the instantly frozen machine.

And I have tried the various flags (-nrt -nomidi -nosound) and
others...

-John

Frank Barknecht wrote: 
  

  Hallo,
John Harrison hat gesagt: // John Harrison wrote:

  

  
I have now tried

pd -nrt -nosound -nomidi

and it was the same thing: complete computer freeze with even mouse and 
keyboard not responding, requiring me to pull the plug.

I've tried both as root and not.

  
  
  Can you try to start Pd under a debugger? That is: 
$ gdb /usr/bin/pd
(gdb) run

and if Pd crashes and your machine is still alive try to catch a
backtrace with:
(gdb) bt

Ciao
  




___
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




		
___ 
Telefonate ohne weitere Kosten vom PC zum PC: 

Re: [PD] Per sampleblock manipulation question

2006-11-06 Thread Mathieu Bouchard

On Sun, 5 Nov 2006, thewade wrote:

Quoting Mathieu Bouchard [EMAIL PROTECTED]:
I will poke around in the help files to see if I can find the 
incorrectly-named help for this object, to see what the related objects are.


It's just named rlshift~ instead. Else it should work fine (unless you 
have additional -path -helppath required, which may happen on some setups)



no, convolution is a bunch of sample-wise shifts and [*~] and [+~]
together (as many as there are values in the convolution kernel).


Yes, but conceptually convolution is converting time domain sounds into 
frequency domain, storing the values in a sample block, and multiplying 
the two blocks together (and normalizing of course).


Convolution can be defined in two completely equivalent ways: one as 
polynomial product in the time domain (using a z-series representation) 
and one as the complex multiplication of two frequency spectra using an 
infinite blocksize.


Almost all of the time, the time-domain representation is taught first. 
This might be especially important as the frequency-domain only becomes 
tangible once some kind of Fourier transform is in place, and the 
polynomial product is certainly easier to explain than the Fourier 
transform. (and that's even more true for realtime)


But if you want to apply convolutions with large kernels and/or large 
pieces of data, you really have to use [fft~] (for sound) or [#fft] (for 
spatial-frequencies of images).


So if one block has no sound at 300Hz and the other block does, the 
resulting block does NOT have sound at 300Hz, right?


Right.

So if your block size was four and you had one FFT block that was: 
0,1,0,1 And another that was: 0,0,0,1 The convolved real sound block 
(before going to ifft~) would be 0,0,0,1 Right?


Yes, supposing each of those values is a complex number. But that's 
because AND is a special case of multiplication, because:


0*0 = 0
0*1 = 0
1*0 = 0
1*1 = 1

so * over {0,1} is exactly AND.

 _ _ __ ___ _  _ _ ...
| Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju
| Freelance Digital Arts Engineer, Montréal QC Canada___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] Using csoundapi~

2006-11-06 Thread Mike McGonagle

Hi all,

I was checking out the csoundapi~ external, and was wondering if there
was any updates to the help files. Basically, I got a copy of the
external from the Csound5 distribution (there was no help file with
it, contrary to what is in the manual), and the help file that I did
find was from the 4.2xxx version. There seems to be a difference from
what that version expects. The 'csd' file linked in the pd-instance
doesn't seem to recognize that it is a stereo patch, and only creates
a single audio channel. I did notice that when I changed it to
[csoundapi~ 2 test.csd] that it created a stereo object.

Anyway, I have not had a chance to test weather or not the other
messages work with the csoundapi~ object, as I can't get the orchestra
file to load.

Anyone got any ideas?


Thanks,

Mike


--
Help the Environment, Plant a Bush back in Texas!

I place economy among the first and most important republican
virtues, and public debt as the greatest of the dangers to be feared.
To preserve our independence, we must not let our rulers load us with
perpetual debt.
-- Thomas Jefferson, third US president, architect and author (1743-1826)

Give Peace a Chance -- John Lennon (9 October 1940 – 8 December 1980)

Peace may sound simple—one beautiful word— but it requires everything
we have, every quality, every strength, every dream, every high ideal.
—Yehudi Menuhin (1916–1999), musician

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


R: [PD] Using csoundapi~

2006-11-06 Thread Davide Morelli

 Anyway, I have not had a chance to test weather or not the 
 other messages work with the csoundapi~ object, as I can't 
 get the orchestra file to load.
 
 Anyone got any ideas?


if you see error messages like could not compile the orchester file from
csoundapi~ then you most likely have to set the PATHs for csound to the
opcode directory. I don't have my laptop with me now so I can't be more
precise but you have to set the Csound Environment Variables..

ciao,
Davide.

 
 
 Thanks,
 
 Mike
 
 
 --
 Help the Environment, Plant a Bush back in Texas!
 
 I place economy among the first and most important 
 republican virtues, and public debt as the greatest of the 
 dangers to be feared.
 To preserve our independence, we must not let our rulers load 
 us with perpetual debt.
 -- Thomas Jefferson, third US president, architect and author 
 (1743-1826)
 
 Give Peace a Chance -- John Lennon (9 October 1940 - 8 
 December 1980)
 
 Peace may sound simple-one beautiful word- but it requires 
 everything we have, every quality, every strength, every 
 dream, every high ideal.
 -Yehudi Menuhin (1916-1999), musician
 
 ___
 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] Global and Local scope for DSP~

2006-11-06 Thread glerm soares
helloHow could I turn on and off DSP of a graph, local patch or object?I know [ ; pd dsp 1 ] message work for the whole pd process... but what if I want for exemple turn on/off a bonk~ object inside a graph on a child process just when I need it? Can't I save memory with this?
thanxglerm-- _gLeRM SoAreS...:baixem o album do matema 17mp3 num pacote--http://www.organismo.art.br/matema

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


Re: [PD] Global and Local scope for DSP~

2006-11-06 Thread Kyle Klipowicz
Sure, just include a [switch~] object in the desired patch or subpatch. Then control this with either a toggle or 0 and 1 messages. On is 1, off is 0.~KyleOn 11/6/06, 
glerm soares [EMAIL PROTECTED] wrote:
helloHow could I turn on and off DSP of a graph, local patch or object?I know [ ; pd dsp 1 ] message work for the whole pd process... but what if I want for exemple turn on/off a bonk~ object inside a graph on a child process just when I need it? Can't I save memory with this?
thanxglerm-- _gLeRM SoAreS...:baixem o album do matema 17mp3 num pacote--
http://www.organismo.art.br/matema


___PD-list@iem.at mailing listUNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list
-- http://theradioproject.comhttp://perhapsidid.blogspot.com(()()()(()))()()())(
(())(())()((())(___())(()))___(((000)))oOO
___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Global and Local scope for DSP~

2006-11-06 Thread Georg Holzmann

Hallo!


How could I turn on and off DSP of a graph, local patch or object?
I know  [ ; pd dsp 1 ]  message work for the whole pd process... but 
what if I want for exemple turn on/off a bonk~ object inside a graph on 
a child process just when I need it? Can't I save memory with this?


you will also save cpu time of course ...
[switch~] is the object you need !

LG
Georg

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


Re: Re: [PD] Per sampleblock manipulation question

2006-11-06 Thread martin.peach
I attach a version of lrshift~.c and the new help file. It now accepts floats 
to change the shift amount. Maybe you could check to see if it works well. I 
guess I could commit it to cvs if approved.
Martin


 
 From: Charles Henry [EMAIL PROTECTED]
 Date: 2006/11/06 Mon AM 11:24:26 EST
 To: pd-list@iem.at
 Subject: Re: [PD] Per sampleblock manipulation question
 
 lrshift~ needs to have a second inlet, or a float method to change the 
 argument
 (grumblegripemoan) :P
 
 I'd volunteer to add it, but what would the procedure be like for that?
 Chuck
 
 On 11/6/06, Mathieu Bouchard [EMAIL PROTECTED] wrote:
  On Sun, 5 Nov 2006, thewade wrote:
   Quoting Mathieu Bouchard [EMAIL PROTECTED]:
   I will poke around in the help files to see if I can find the
   incorrectly-named help for this object, to see what the related objects 
   are.
 
  It's just named rlshift~ instead. Else it should work fine (unless you
  have additional -path -helppath required, which may happen on some setups)
 
   no, convolution is a bunch of sample-wise shifts and [*~] and [+~]
   together (as many as there are values in the convolution kernel).
 
   Yes, but conceptually convolution is converting time domain sounds into
   frequency domain, storing the values in a sample block, and multiplying
   the two blocks together (and normalizing of course).
 
  Convolution can be defined in two completely equivalent ways: one as
  polynomial product in the time domain (using a z-series representation)
  and one as the complex multiplication of two frequency spectra using an
  infinite blocksize.
 
  Almost all of the time, the time-domain representation is taught first.
  This might be especially important as the frequency-domain only becomes
  tangible once some kind of Fourier transform is in place, and the
  polynomial product is certainly easier to explain than the Fourier
  transform. (and that's even more true for realtime)
 
  But if you want to apply convolutions with large kernels and/or large
  pieces of data, you really have to use [fft~] (for sound) or [#fft] (for
  spatial-frequencies of images).
 
   So if one block has no sound at 300Hz and the other block does, the
   resulting block does NOT have sound at 300Hz, right?
 
  Right.
 
   So if your block size was four and you had one FFT block that was:
   0,1,0,1 And another that was: 0,0,0,1 The convolved real sound block
   (before going to ifft~) would be 0,0,0,1 Right?
 
  Yes, supposing each of those values is a complex number. But that's
  because AND is a special case of multiplication, because:
 
  0*0 = 0
  0*1 = 0
  1*0 = 0
  1*1 = 1
 
  so * over {0,1} is exactly AND.
 
_ _ __ ___ _  _ _ ...
  | Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju
  | Freelance Digital Arts Engineer, Montréal QC Canada
 
  ___
  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
 
#include m_pd.h

/*  lrshift~ - */

static t_class *lrshift_tilde_class;

typedef struct _lrshift_tilde
{
t_object x_obj;
int x_n;
} t_lrshift_tilde;

static t_int *leftshift_perform(t_int *w)
{
t_float *in = (t_float *)(w[1]);
t_float *out= (t_float *)(w[2]);
int n = (int)(w[3]);
int shift = (int)(w[4]);
in += shift;
n -= shift;
while (n--)
*out++ = *in++;
while (shift--)
*out++ = 0;
return (w+5);
}

static t_int *rightshift_perform(t_int *w)
{
t_float *in = (t_float *)(w[1]);
t_float *out= (t_float *)(w[2]);
int n = (int)(w[3]);
int shift = (int)(w[4]);
n -= shift;
in -= shift;
while (n--)
*--out = *--in;
while (shift--)
*--out = 0;
return (w+5);
}

static t_int *lrshift_perform(t_int *w)
{
t_float *in = (t_float *)(w[1]);
t_float *out= (t_float *)(w[2]);
int n = (int)(w[3]);
t_lrshift_tilde *x = (t_lrshift_tilde *)w[4];
int shift = x-x_n;

if (shift  n)
shift = n;
if (shift  -n)
shift = -n;
if (shift  0)
{
shift = -shift;
out += n;
in += n;
n -= shift;
in -= shift;
while (n--)
*--out = *--in;
while (shift--)
*--out = 0;
}
else
{
in += shift;
n -= shift;
while (n--)
*out++ = *in++;
while (shift--)
*out++ = 0;
}
return (w+5);
}

static void lrshift_tilde_dsp(t_lrshift_tilde *x, t_signal **sp)
{
int n = sp[0]-s_n;
dsp_add(lrshift_perform, 4, sp[0]-s_vec, sp[1]-s_vec, n, 

[PD] japanese text strangeness

2006-11-06 Thread timon
Hi, I have been trying to get an extended character set correctly  
mapped into PD from external text files. T. Mayer pointed out that PD  
(at least on osx) use UTF-8 format. So saving all my text files as  
UTF-8 lets them load into PD with the characters correctly mapped. In  
this way I am also able to get Japanese characters correctly mapped  
into PD. So now I want to bring them into Gem - the textextruded  
object. I am using the Hiragino OTF that ships with OSX. The font  
loads fine, but the Japanese characters will not display - reference  
the correct characters. Just a buch of very wrongly placed latin  
symbols and accents. Im feeding them straight from a symbol object so  
I can see its the right characters. Is there a limitation to the  
[textextruded] object? Or could this be the font?


Anyone know a fix here?

Many thanks
Timon.



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


Re: [PD] Global and Local scope for DSP~

2006-11-06 Thread glerm soares
thanks a lot!salutglerm2006/11/6, Georg Holzmann [EMAIL PROTECTED]:
Hallo! How could I turn on and off DSP of a graph, local patch or object? I know[ ; pd dsp 1 ]message work for the whole pd process... but what if I want for exemple turn on/off a bonk~ object inside a graph on
 a child process just when I need it? Can't I save memory with this?you will also save cpu time of course ...[switch~] is the object you need !LGGeorg
-- _gLeRM SoAreS...:baixem o album do matema 17mp3 num pacote--http://www.organismo.art.br/matema
___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Global and Local scope for DSP~

2006-11-06 Thread mik

switch~


m

glerm soares schreef:

hello

How could I turn on and off DSP of a graph, local patch or object?
I know  [ ; pd dsp 1 ]  message work for the whole pd process... but 
what if I want for exemple turn on/off a bonk~ object inside a graph on 
a child process just when I need it? Can't I save memory with this?


thanx

glerm



--
_gLeRM SoAreS...:
baixem o album do matema 17mp3 num pacote--
http://www.organismo.art.br/matema




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


--

http://www.mprims.net

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


Re: Re: [PD] Per sampleblock manipulation question

2006-11-06 Thread Charles Henry

Thanks Martin.  I will try it out and see!
Chuck

On 11/6/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

I attach a version of lrshift~.c and the new help file. It now accepts floats 
to change the shift amount. Maybe you could check to see if it works well. I 
guess I could commit it to cvs if approved.
Martin


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


[Pd] Serial port out

2006-11-06 Thread Chuckk Hubbard

I'm going forward with this Moog-controlling plan.
I have Pd on my laptop, and have compiled [comport].  I'm not sure how
to use it, though.  As with so many things, most of the info I can
find online tells me way more than what I want.

What I want:
Is it possible to send constant values OR individual bits to the
serial port, as opposed to bytes separated by on/off bits?  How can I
set up the timing on this to send controllable PWM?
Will it be possible to send PWM from comport with -noaudio?

Thanks.

-Chuckk


--
Far and away the best prize that life has to offer is the chance to
work hard at work worth doing.
-Theodore Roosevelt

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


Re: [Pd] Serial port out

2006-11-06 Thread Martin Peach

Chuckk Hubbard wrote:

I'm going forward with this Moog-controlling plan.
I have Pd on my laptop, and have compiled [comport].  I'm not sure how
to use it, though.  As with so many things, most of the info I can
find online tells me way more than what I want.

What I want:
Is it possible to send constant values OR individual bits to the
serial port, as opposed to bytes separated by on/off bits?  How can I
set up the timing on this to send controllable PWM?
Will it be possible to send PWM from comport with -noaudio?
You can toggle the handshaking lines at high speed but you will run into 
the jitter caused by pd's audio block size. Or you could send data 
through the serial port with different ratios of on and off bits, but 
you will only get 8 different levels. I think you need to put a serial 
dac there. It's possible to clock serial data into a dac using just the 
handshaking lines -- one serves as a clock and the other data.


Martin

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


Re: [PD] running PD from a USB stick / drive

2006-11-06 Thread Roman Haefeli
On Mon, 2006-11-06 at 13:38 +, Demi Delirium wrote:
 well, initially i had thought simply run pd, not the os, i'm a winxp
 user most of the time, and i have various day-to-day apps, and
 processing(.org) running from a usb stick at the moment...

on windows it should be really easy to run pd from a usb-drive/stick,
since there are no other dependencies. just extract pd to the stick.
then i'd recommend to write all options into a .bat-file and start pd
from that file. using file-startup and file-path will write the
options to the registry, which isn't saved to the usb stick. also, i
would specify all paths relatively, so that it doesn't matter on which
'letter' (E:, F:, G:, ) the usb stick will be installed.

roman



___ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de


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


[PD] Starting a PD Patch on ubuntu-server on Boot/Startup Tutorial

2006-11-06 Thread mark edward grimm
Thanks for the suggestions on this list. Took me a
couple days of messing around. The following worked
the best for me. Hope this helps someone in need!

mark



I put the following script named pd_start in
/etc/init.d/

#  beginning of script
#

#! /bin/sh

# Check for missing binaries (stale symlinks should
not happen)
PD_BIN=/usr/bin/pd
test -x $PD_BIN || exit 5

case $1 in
  start)
echo -n Starting PD
## Start daemon with startproc(8). If this
fails
## the return value is set appropriately by
startproc.
/usr/bin/pd -nogui -noaudio \
-lib /usr/lib/pd/extra/zexy \
-lib /usr/lib/pd/extra/maxlib \
-path /usr/lib/pd/extra \
-path /home/mark \
/home/mark/netpd_server.pd 
;;
## mind the !!
  stop)
echo -n Shutting down NetPd Server
## Stop daemon with killproc(8) and it this
fails
## killproc sets the return value according to
LSB

kill 'cat /var/run/pd.pid'
;;

  restart)
## Stop the service and regardless of whether
it was
## running or not, start it again
$0 stop
$0 start
;;

*)
echo Usage: $0 {start|stop|restart}
exit 1
;;
esac

## end of script 
###


Then I changed the permissions on the file:

$ sudo chmod 755 pd_start

Then I ran the following command:

$ sudo update-rc.d -f pd_start start 99 2 3 4 5 .

Where:
- start is the argument given to the script (start,
stop).
- 99 is the start order of the script (1 = first one,
99= last one)
- 2 3 4 5 are the runlevels to start

It is important NOT to forget the . period at the
end!  More info in /etc/rcS.d/README.

After hitting enter I get this:

 Adding system startup for /etc/init.d/pd_start ...
   /etc/rc2.d/S99pd_start - ../init.d/pd_start
   /etc/rc3.d/S99pd_start - ../init.d/pd_start
   /etc/rc4.d/S99pd_start - ../init.d/pd_start
   /etc/rc5.d/S99pd_start - ../init.d/pd_start

Then I do this to stop my script at shutdown:

$ sudo update-rc.d -f pd_start reboot 90 0 6 .

It is important NOT to forget the . period at the
end! After hitting enter I get this:

usage: update-rc.d [-n] [-f] basename remove
   update-rc.d [-n] basename defaults [NN | sNN
kNN]
   update-rc.d [-n] basename start|stop NN
runlvl [runlvl] [...] .
-n: not really
-f: force

Then I restart the server to see if it works!

$ sudo shutdown -r now

AND IT DOES!!!

To know which runlevel you are running, simply type
$ runlevel

more info about runlevels here :
http://oldfield.wattle.id.au/luv/boot.html#init

This 'HowTo' was compiled using a suggestion from
'samyboy' at:

http://ubuntu.wordpress.com/2005/09/07/adding-a-startup-script-to-be-run-at-bootup/

and a thread from the 'pure-data' list at:

http://lists.puredata.info/pipermail/pd-list/2006-11/043742.html


     
  mark edward grimm | m.f.a | ed.m
  megrimm.net | socialmediagroup.org  .com   
  [EMAIL PROTECTED] | 585.509.8703
  __

  



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