Re: [PD] opinions on the issue of concurrent implementations (was: getting sample rate of file loaded into an array)

2012-10-05 Thread Roman Haefeli
On Thu, 2012-10-04 at 13:16 -0700, Jonathan Wilkes wrote:
[...]
  Also, I wanted to know which is mature enough so that it's
  worth to write bug reports to its author. This consumes quite some time
  and I think everyone who discovers that there are many solutions for her
  problem needs to invest some time to find out which works best.
  Personally, I think this is lost time, because not only it needs twice
  as much time to implement the same thing twice, every user needs to
  figure out the small differences.
  Well aware, that this (my) opinion is likely not applicable to others, I
  tend to think that patches are too much treated like holy cows whose
  breaking should be avoided by any means. If it turns out, that my
  patches use an inferior of concurrent implementations, I'd be happy to
  switch them to the new class, especially if it helps to keep the future
  clean.
  
 Advocate for the superior external, write crystal clear documentation
 for it, and write crystal clear documentation for the inferior one to explain
 why to use the other one.  Then get the authors to accept your doc changes
 (or doc creation as the case may be).  That's the only way to ensure that
 your lost time doesn't become other users' lost time.

You are right. I agree with you that this is probably the best (most
pragmatic / most realistic) way to have an influence as a non-ext-dev on
the issue.
 
 I'll give you an example later when I update the arraysize help patch.

I'll happily check it, when it is ready.

Thanks for your thoughts.
Roman



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


[PD] mrpeach/binfile under Ubuntu 12.04

2012-10-05 Thread Nicolas Montgermont

Hello all,

I want to use [mrpeach/binfile] under Ubuntu 12.04 but I don't know how 
to manage.
I can't find it in any pd-... packet under synaptic, and the makefile in 
the svn/.../externals/mrpeach directory is nearly empty and not working 
here.

Is there some easy solution?

Thanks,
n

ps : here is the makefile:
--
TARGET := $(shell pwd | sed 's|.*/\(.*\)$$|\1|')
EXTERNALS_ROOT := $(shell pwd | sed 's|^\(/.*externals\).*|\1|')

default:
make -C $(EXTERNALS_ROOT) $(TARGET)

install:
make -C $(EXTERNALS_ROOT) $(TARGET)_install

clean:
make -C $(EXTERNALS_ROOT) $(TARGET)_clean

test_locations:
make -C $(EXTERNALS_ROOT) test_locations

etags:
etags *.[ch] ~/cvs/pure-data/pd/src/*.[ch] /usr/include/*.h 
/usr/include/sys/*.h



--
http://nim.on.free.fr

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


[PD] nearest neighbour matching?

2012-10-05 Thread Claude Heiland-Allen

Hi list,

I have a -batch patch that randomly samples the parameter space of 
control signals to (some black box)* and uses [sigmund~] to detect 
pitched-ness vs unpitchedness, keeping the pitch info and then a notch 
filter to detect distortion:


http://mathr.co.uk/softrockiii/2012-10-05_probe-puredata.png

So I end up with gnuplots that look something like this:

http://mathr.co.uk/softrockiii/2012-10-05_pitching-distortion.png

Now I want to find the best match for a given pitch and distortion and 
get back the corresponding parameters that approximately reconstruct the 
desired sound.


What's the best way to go about this?

I might end up just hand-rolling some Lua for this kind of matching if 
no one has any better ideas.


* currently mutually modulating FM oscillators like
http://archive.org/details/ClaudiusMaximus_-_Soft_Rock_EP
concept to be resurrected and reworked/combined with concepts from
NoIn EP http://gosub10.org/GOSUB10-002.html


Claude
--
http://mathr.co.uk

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


Re: [PD] mrpeach/binfile under Ubuntu 12.04

2012-10-05 Thread Antoine Villeret
hello,

i just manage to build it by hands in two steps :

$ gcc -fPIC -DPD -O2 -funroll-loops -fomit-frame-pointer  -ffast-math
-Wall -W -Wno-unused -Wno-parentheses -Wno-switch -g -DLINUX
-I/home/antoine/pd/pd/src -o binfile.pd_linux binfile.o

$ gcc -Wl,--export-dynamic -shared -o binfile.pd_linux binfile.o

i'm not sure all flags are needed / useful but this seems to work here
under ubuntu 12.04
keep me aware if it works for you

++
a
-- 
do it yourself
http://antoine.villeret.free.fr
http://drii.ensad.fr
--
Google lit ce mail...
si vous refusez cela, utilisez l'adresse antoine.villeret [at] free.fr pour
me contacter



2012/10/5 Nicolas Montgermont nicolas_montgerm...@yahoo.fr

 Hello all,

 I want to use [mrpeach/binfile] under Ubuntu 12.04 but I don't know how to
 manage.
 I can't find it in any pd-... packet under synaptic, and the makefile in
 the svn/.../externals/mrpeach directory is nearly empty and not working
 here.
 Is there some easy solution?

 Thanks,
 n

 ps : here is the makefile:
 --
 TARGET := $(shell pwd | sed 's|.*/\(.*\)$$|\1|')
 EXTERNALS_ROOT := $(shell pwd | sed 's|^\(/.*externals\).*|\1|')

 default:
 make -C $(EXTERNALS_ROOT) $(TARGET)

 install:
 make -C $(EXTERNALS_ROOT) $(TARGET)_install

 clean:
 make -C $(EXTERNALS_ROOT) $(TARGET)_clean

 test_locations:
 make -C $(EXTERNALS_ROOT) test_locations

 etags:
 etags *.[ch] ~/cvs/pure-data/pd/src/*.[ch] /usr/include/*.h
 /usr/include/sys/*.h


 --
 http://nim.on.free.fr

 __**_
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management - http://lists.puredata.info/**
 listinfo/pd-list 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] nearest neighbour matching?

2012-10-05 Thread Jamie Bullock

Hi Claude,

On 5 Oct 2012, at 09:47, Claude Heiland-Allen cla...@mathr.co.uk wrote:

 Hi list,
 
 I have a -batch patch that randomly samples the parameter space of control 
 signals to (some black box)* and uses [sigmund~] to detect pitched-ness vs 
 unpitchedness, keeping the pitch info and then a notch filter to detect 
 distortion:
 
 http://mathr.co.uk/softrockiii/2012-10-05_probe-puredata.png
 
 So I end up with gnuplots that look something like this:
 
 http://mathr.co.uk/softrockiii/2012-10-05_pitching-distortion.png
 
 Now I want to find the best match for a given pitch and distortion and get 
 back the corresponding parameters that approximately reconstruct the desired 
 sound.
 
 What's the best way to go about this?
 
 I might end up just hand-rolling some Lua for this kind of matching if no one 
 has any better ideas.

You may be interested in the [knn] external, which implements the k's nearest 
neighbour algorithm.

It can be found in svn in postlude/knn.

The classic paper on its use can be found here: 
http://www.music.mcgill.ca/~ich/research/icmc00/icmc00.timbre.pdf

best,

Jamie

--
http://jamiebullock.com



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


Re: [PD] list deinterleave question

2012-10-05 Thread peiman khosravi
Wow that's great. Thanks you very much indeed. Now I'm going to figure out
how it works.

All the Best,
Peiman


On 5 October 2012 00:06, i go bananas hard@gmail.com wrote:

 there is a useful library called [list-abs], which has lots of those sort
 of things, but in this case, i couldn't find exactly what you're after.
 Here's a patch that does what you want though:

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


Re: [PD] array size (was Re: arraysize)

2012-10-05 Thread Ed Kelly


 will do exactly that. Having a patch that works like this but I don't
 know why is a bad thing. I'd be sure to find the tiny DC component a 
 nuisance at some point.

Did you?


Well...thanks for asking.
I feel mildly stupid for suggesting that, but this has caused me to test my 
hypothesis and the result is enclosed.
When Miller says tiny, I'm sure he means very tiny indeed.
I've made a test patch to demonstrate - highpass filtering on a modulation 
signal to an [osc~] object. If there was a significant DC offset then the 
carrier frequency of the [osc~] would be offset slightly as the modulation 
index is increased. I can confirm that this is not the case...so I really don't 
think anyone will notice if it is fixed.

It's quite a nice modulation effect actually! I may use it.

Thank you for your time,
Ed

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


Re: [PD] nearest neighbour matching?

2012-10-05 Thread Ed Kelly
 Hi Claude,

 
 On 5 Oct 2012, at 09:47, Claude Heiland-Allen cla...@mathr.co.uk wrote:
 
  Hi list,
 
  I have a -batch patch that randomly samples the parameter space of control 
 signals to (some black box)* and uses [sigmund~] to detect pitched-ness vs 
 unpitchedness, keeping the pitch info and then a notch filter to detect 
 distortion:
 
  http://mathr.co.uk/softrockiii/2012-10-05_probe-puredata.png
 
  So I end up with gnuplots that look something like this:
 
  http://mathr.co.uk/softrockiii/2012-10-05_pitching-distortion.png
 
  Now I want to find the best match for a given pitch and distortion and get 
 back the corresponding parameters that approximately reconstruct the desired 
 sound.
 
  What's the best way to go about this?
 
  I might end up just hand-rolling some Lua for this kind of matching if no 
 one has any better ideas.
 
 You may be interested in the [knn] external, which implements the k's 
 nearest neighbour algorithm.
 
 It can be found in svn in postlude/knn.
 
 The classic paper on its use can be found here: 
 http://www.music.mcgill.ca/~ich/research/icmc00/icmc00.timbre.pdf
 
 best,
 
 Jamie
 
 --
 http://jamiebullock.com
 


There may be a way to use the simile algorithm (from ekext) that gives the 
matched-ness of two numbers based on an arbitrary window size, but it still 
might involve rolling your own. I have a feeling KNN is very efficient...
Ed


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


[PD] hip~ nyquist gain bug test patch [Was: arraysize]

2012-10-05 Thread Claude Heiland-Allen

On 03/10/12 15:22, Claude Heiland-Allen wrote:

On 02/10/12 16:15, Miller Puckette wrote:

1. there's a bug in hip~ - its DC gain is slightly (and possibly
considerably)
greater than 1.


Did you mean nyquist-frequency rather than DC here?


See attached test patch that waits 10 seconds for settling to steady 
state (extreme overkill no doubt), at 48k sample rate the nyquist gain 
for hip~ goes up dramatically as you increase the cutoff...



IIRC DC gain for hip~ should be 0 or very close to it


verified.


and nyquist-frequency gain 1.


here is the bug, these get much louder than the -1 1 -1 1 input

hip10:
-1.0007 1.0007  -1.0007 1.0007  -1.0007 1.0007  -1.0007 1.0007
hip100:
-1.0066 1.0066  -1.0066 1.0066  -1.0066 1.0066  -1.0066 1.0066
hip1000:
-1.07   1.07-1.07   1.07-1.07   1.07-1.07   1.07
hip1:
-2  2   -2  2   -2  2   -2  2


Claude
--
http://mathr.co.uk
#N canvas 16 47 662 391 10;
#X obj 52 65 loadbang;
#X obj 54 152 delay 1;
#X obj 95 224 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 302 236 hip~ 1000;
#X msg 70 88 \; pd dsp 1;
#X obj 137 78 tabplay~ \$0-fizz;
#X obj 139 56 bang~;
#X obj 228 199 table \$0-fizz 64;
#X obj 165 194 s \$0-fizz;
#X msg 164 126 0 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1
-1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1
1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1
-1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1;
#X obj 302 257 print~ hip1000;
#X obj 397 236 hip~ 100;
#X obj 399 257 print~ hip100;
#X obj 495 239 hip~ 10;
#X obj 497 260 print~ hip10;
#X obj 149 237 hip~ 1;
#X obj 149 258 print~ hip1;
#X connect 0 0 4 0;
#X connect 0 0 1 0;
#X connect 0 0 9 0;
#X connect 1 0 10 0;
#X connect 1 0 12 0;
#X connect 1 0 14 0;
#X connect 1 0 16 0;
#X connect 2 0 10 0;
#X connect 2 0 12 0;
#X connect 2 0 14 0;
#X connect 2 0 16 0;
#X connect 3 0 10 0;
#X connect 5 0 3 0;
#X connect 5 0 11 0;
#X connect 5 0 13 0;
#X connect 5 0 15 0;
#X connect 6 0 5 0;
#X connect 9 0 8 0;
#X connect 11 0 12 0;
#X connect 13 0 14 0;
#X connect 15 0 16 0;
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] list deinterleave question

2012-10-05 Thread i go bananas
basically what i did, was drip the list one element at a time, using
[list-drip].  Then, i prepend each element with alternative 0's and 1's,
generated by [f ]x[==].  By using [route], those elements are then sent
alternatively left and right to an accumulator made with [list prepend].
finally, each resulting list is banged to send the full result.

i'm n sure if there might be a simpler way, but that was the simplest i
came up with.
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] nearest neighbour matching?

2012-10-05 Thread Jamie Bullock

On 5 Oct 2012, at 10:20, Ed Kelly morph_2...@yahoo.co.uk wrote:

 
 
 There may be a way to use the simile algorithm (from ekext) that gives the 
 matched-ness of two numbers based on an arbitrary window size, but it still 
 might involve rolling your own. I have a feeling KNN is very efficient...
 Ed
 

It's efficient, but there may still be room for optimisation in the 
implementation if that is a priority. It's also conceptually very simple, which 
is one reason I like it.

best,

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


Re: [PD] list deinterleave question

2012-10-05 Thread peiman khosravi
Thanks for the explanation. That's really clever.

Best,
Peiman

PS this kind of user-community support is exactly why I decided to leave
max behind. Try asking a question on the max forum these days!

On 5 October 2012 10:42, i go bananas hard@gmail.com wrote:

 basically what i did, was drip the list one element at a time, using
 [list-drip].  Then, i prepend each element with alternative 0's and 1's,
 generated by [f ]x[==].  By using [route], those elements are then sent
 alternatively left and right to an accumulator made with [list prepend].
 finally, each resulting list is banged to send the full result.

 i'm n sure if there might be a simpler way, but that was the simplest i
 came up with.



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


Re: [PD] mrpeach/binfile under Ubuntu 12.04

2012-10-05 Thread Nicolas Montgermont

Thanks Antoine but that didn't make it.
finally I copied the externals/template makefile inside the binfile 
folder, replaced a few strings and that make it.

can't understand why the mrpeach/makefile is broken though.
best,
n

Le 05/10/12 10:49, Antoine Villeret a écrit :

hello,

i just manage to build it by hands in two steps :

$ gcc -fPIC -DPD -O2 -funroll-loops -fomit-frame-pointer  -ffast-math 
-Wall -W -Wno-unused -Wno-parentheses -Wno-switch -g -DLINUX 
-I/home/antoine/pd/pd/src -o binfile.pd_linux binfile.o


$ gcc -Wl,--export-dynamic -shared -o binfile.pd_linux binfile.o

i'm not sure all flags are needed / useful but this seems to work here 
under ubuntu 12.04

keep me aware if it works for you

++
a



--
http://nim.on.free.fr

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


[PD] Recording audio to mp3 using LAME or ffmpeg ?

2012-10-05 Thread Pierre Massat
Dear List,

How would you go about recording the audio output of a Pd patch directly to
mp3 (or any other compressed format actually), without using the object
from the Unauthorized library ?
Would it be feasible to use the [shell] object with a script using ffmpeg
or LAME ? I don't really know whether there would be serious timing uses,
who to use those for recording a stream instead of a file, how to send Pd's
audio out...

I could always record to wav and run a script afterwards to compress and
delete the original file, but i'd rather have something more direct.

Cheers,

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


Re: [PD] Can't create Gem window

2012-10-05 Thread Ed Kelly
 do glxgears work?



yes.

 
 if so, what is your pixel-depth?
 Gem wants to create a 24bit buffer, so if you are running your X in
 8bit/palette mode it will bail out.


xorg.conf says 24, using proprietary ATI driver for the HD7700

DefaultDepth     24

 

 this is what Gem requests:
 {
 GLX_RED_SIZE=4,
 GLX_GREEN_SIZE=4,
 GLX_BLUE_SIZE=4,
 
 GLX_DEPTH_SIZE=16,
 
 GLX_STENCIL_SIZE=8,
 
 GLX_ACCUM_RED_SIZE=8,
 GLX_ACCUM_GREEN_SIZE=8,
 GLX_ACCUM_BLUE_SIZE=8,
 
 GLX_DOUBLEBUFFER
 }


verbose output of glxinfo indicates 
doubleBuffer =1
rgba are all =8
depth =24
stencil =8
accum are all =16
doubleBuffer =1

system spec:
Intel Core i5
Radeon HD7700 graphics card.
Ubuntu 10.04

I am wondering if the ati proprietary driver might be to blame, but I am not 
sure how to check this...
Ed

looks good:
Visual ID: 6b  depth=0  class=DirectColor

    bufferSize=32 level=0 renderType=rgba doubleBuffer=1 stereo=0
    rgba: redSize=8 greenSize=8 blueSize=8 alphaSize=8
    auxBuffers=0 depthSize=24 stencilSize=8
    accum: redSize=16 greenSize=16 blueSize=16 alphaSize=16
    multiSample=0  multiSampleBuffers=0
    visualCaveat=None
    Opaque.

 
 check the output of glxinfo, whether your config supports such a setting.
 
 fgmasdr
 IOhannes
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.12 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
 
 iEYEARECAAYFAlBpZRkACgkQkX2Xpv6ydvR5VgCgng37YHFrRQoZJk+CMDFz1OGZ
 fp4AoNrTWuQGqvAg8OgJ2XimzEa9KamQ
 =gGaA
 -END PGP SIGNATURE-
 
 
 ___
 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] Recording audio to mp3 using LAME or ffmpeg ?

2012-10-05 Thread Claude Heiland-Allen

On 05/10/12 11:55, Pierre Massat wrote:

Dear List,

How would you go about recording the audio output of a Pd patch directly to
mp3 (or any other compressed format actually), without using the object
from the Unauthorized library ?
Would it be feasible to use the [shell] object with a script using ffmpeg
or LAME ? I don't really know whether there would be serious timing uses,
who to use those for recording a stream instead of a file, how to send Pd's
audio out...


use jack and ecasound?

gstreamer objects for pd?

hacky way might work:
writesf~ in raw (headerless mode)
mkfifo foo.raw (read mkfifo manual)
lame foo.raw (if it accepts raw input)
careful with deadlocks/SIGPIPE


I could always record to wav and run a script afterwards to compress and
delete the original file, but i'd rather have something more direct.


i tend to record in 32bit wav (-bytes 4) to avoid any clipping, then 
remove dc/normalize/convert later.  i tend to hoard things, though...



Claude



Cheers,

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] Can't create Gem window

2012-10-05 Thread Claude Heiland-Allen

Hey,

On 05/10/12 12:09, Ed Kelly wrote:

Intel Core i5
Radeon HD7700 graphics card.
Ubuntu 10.04


64bit OS?  This is probably irrelevant as Wheezy is newer than Lucid, but...

In Debian Wheezy I have no end of trouble with proprietary NVIDIA driver 
due to multiarch transition, in the end my workaround is to remember to 
sudo rm mesa software rasterizer (super slow) 
/usr/lib/x86_64-linux-gnu/libGL.so and symlink it to the proprietary one 
installed in /usr/lib/libGL.so - painful


claude@cappuccino:~$ ls -l /usr/lib/x86_64-linux-gnu/libGL.so
lrwxrwxrwx 1 root root 11 Oct  1 16:35 
/usr/lib/x86_64-linux-gnu/libGL.so - ../libGL.so



I am wondering if the ati proprietary driver might be to blame, but I am not 
sure how to check this...


Dunno - is there some dual graphics laptop card thing that needs optirun 
or what have you to get good performance?



check the output of glxinfo, whether your config supports such a setting.


$ LIBGL_DEBUG=verbose glxinfo | head
name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: NVIDIA Corporation
server glx version string: 1.4
server glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_SGIX_fbconfig,
GLX_SGIX_pbuffer, GLX_SGI_video_sync, GLX_SGI_swap_control,
GLX_EXT_swap_control, GLX_EXT_swap_control_tear,
GLX_EXT_texture_from_pixmap, GLX_ARB_create_context,
---
you definitely don't want to see swrast stuff in the debug output (if 
there is any)



Claude
--
http://mathr.co.uk

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


Re: [PD] Recording audio to mp3 using LAME or ffmpeg ?

2012-10-05 Thread Charles Goyard
Hi Pierre,

Pierre Massat wrote:
 How would you go about recording the audio output of a Pd patch directly to
 mp3 (or any other compressed format actually), without using the object
 from the Unauthorized library ?

ffmpeg can read from the audio driver, there's an example in the manual
page.

++
-- 
Charles

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


[PD] Audio Preferences device list usability

2012-10-05 Thread Jamie Bullock

Hi,

Does anyone know where the device names that populate the Audio Settings 
preferences panel come from?

For example on my Mac, I'm getting things like:

(0)Built-in Microph

What does (0) mean? Not the zero'th device, because for Output devices, both 
outputs are prefixed with (0).

Why is Microphone truncated to Microph?

Are these names coming from Portaudio? Or is Pd additionally mangling the names?

best,

Jamie




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


Re: [PD] mrpeach/binfile under Ubuntu 12.04

2012-10-05 Thread Martin Peach

On 2012-10-05 05:52, Nicolas Montgermont wrote:

Thanks Antoine but that didn't make it.
finally I copied the externals/template makefile inside the binfile
folder, replaced a few strings and that make it.
can't understand why the mrpeach/makefile is broken though.
best,
n


I think the idea is to use the Makefile in ../externals:
make mrpeach
or
make mrpeach_install

Then that makefile calls the one in mrpeach

Martin




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


Re: [PD] nearest neighbour matching?

2012-10-05 Thread umberto torrez
hi Claude, why you just dont calculate the distance between your values for
calculating similarity? is that possible?



cheers


U.


2012/10/5 Jamie Bullock ja...@jamiebullock.com


 On 5 Oct 2012, at 10:20, Ed Kelly morph_2...@yahoo.co.uk wrote:

 
 
  There may be a way to use the simile algorithm (from ekext) that gives
 the matched-ness of two numbers based on an arbitrary window size, but it
 still might involve rolling your own. I have a feeling KNN is very
 efficient...
  Ed
 

 It's efficient, but there may still be room for optimisation in the
 implementation if that is a priority. It's also conceptually very simple,
 which is one reason I like it.

 best,

 Jamie
 ___
 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] Raspberry Pi (Raspbian Wheezy) / Pd-extended 0.43.3 / Arduino

2012-10-05 Thread Hans-Christoph Steiner

The actual Pduino 0.5 release instead of the beta version also fixes this:

https://puredata.info/downloads/pduino

.hc


On 10/04/2012 09:07 PM, Epic Jefferson wrote:
 Actually, i answered my own question.
 
 updated [arduino] object, compatible with pd-extended 0.43.3
 https://github.com/reduzent/pduino
 
 On Thu, Oct 4, 2012 at 8:40 PM, Epic Jefferson
 jeffreyconcepc...@gmail.comwrote:
 
 I was trying to use the [arduino] object but it seems that
 pd-extended 0.43.3 doesn't include a [flatspace/comport]
 object that is included in Hans' [arduino] version_0.5beta8.

 is there an object that could be used to replace the [flatspace] use
 in the [arduino]? is seems to be the only object printing an error to the
 console.

 OR

 is there a newer version of the arduino object that is compatible with
 pd-extended 0.43.3?

 either would solve the issue. i suppose i could try to use pd-extended
 0.42.5
 but it would still need to be solved for 0.43

 --
 www.epicjefferson.com
 www.avmachinists.org Puerto Rico based Art Collective/ Non-Profit Org

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


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


Re: [PD] Pd-extended on the Raspberry Pi

2012-10-05 Thread Hans-Christoph Steiner
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256


I think tedbot created a rpi page on puredata.info/downloads

.hc

On 10/04/2012 08:24 PM, Epic Jefferson wrote:
 it worked!
 
 i'll be adding the updated process to the wiki over the weekend,
 just need to get organized.
 
 is there a place i can upload the package so that others can use it
 for their installs? perhaps somewhere in puredata.info?
 
 On Thu, Oct 4, 2012 at 1:00 PM, Epic Jefferson 
 jeffreyconcepc...@gmail.comwrote:
 
 Hans,
 
 before seeing your last reply i searched around online and found
 this
 
 $ apt-get install dpkg-dev build-essential devscripts
 
 i did it and now i'm in the process of compiling. if it works i'd
 be glad to add my process to the wiki.
 
 
 On Thu, Oct 4, 2012 at 10:55 AM, Hans-Christoph Steiner
 h...@at.or.atwrote:
 
 On 10/04/2012 10:47 AM, Hans-Christoph Steiner wrote:
 
 On 10/04/2012 02:52 AM, IOhannes m zmoelnig wrote:
 On 2012-10-04 04:37, Epic Jefferson wrote:
 Other than being crazy small, i encountered a problem
 with your instructions.
 
 when i entered: debuild -uc -us -bash: debuild:
 command not found
 
 # aptitude install devscripts
 
 You can do this to be safe:
 
 sudo apt-get install dpkg-dev devscripts debhelper cdbs
 
 .hc
 
 
 I also started a wiki on this topic, please add/edit as needed:
 
 http://puredata.info/docs/developer/BuildingYourOwnDebianPackage
 
 .hc
 
 ___ Pd-list@iem.at
 mailing list UNSUBSCRIBE and account-management - 
 http://lists.puredata.info/listinfo/pd-list
 
 
 
 
 -- www.epicjefferson.com www.avmachinists.org Puerto Rico based
 Art Collective/ Non-Profit Org
 
 
 
 

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iQIcBAEBCAAGBQJQbwByAAoJEJ8P5Yc3S76BEJ8P/3EO2haD+CpVnkbrN+ep6Y8Z
DJk1iTDP405fWOF6zoaBGqh1lbzgmnaLqX68la14lmlQjoiov2yXmVkWy7bi0lVl
erX/kySkjfyyq/jzDsDgM5Rjl29P/zkg/LS4Cc5lMOy9bf3ojkcDQm5yg5k/Rcla
HdcDooic45WBPuy6IMM26vNxAPcnD3fGlVr5gYgkfVKgrjNtlHKEGDP2Kno+04sb
OVfv/gYmuiAak5R6MnJsmvKG57qBEgyrvwBCXQD7ptpd+FUsSCdclzocJqwiVnE7
IbGST1187qJt8rrwZlTqUKyAdvxJzdF1YbmKZzi/tz2e4Bn+MvjHAPtdk17gI3yW
Sr9nzWFpSsCvCp7ZyBp4KvDYwbQ98Hc/2AvRhytRqbprWPJU7fJwddumTGp945UG
yxBkfVjjcUcOTo5fnOxh9UhjJ2NxrsT/X1n3iUeTetsoWUwidu9+7I2GZblh48Ba
mPw9A1rOmdOxgKgAsgTxCcbnF3zhTxgRwUfXTVZZ/LcxtQpzosut54p9lE4BTong
f/3ggTcB8IeDcBimiMebTw0IEiMdkqbRanXjK9dyr1G+EcccCqbtocvavsv2L3qG
Wx/tTLglJvvMKMsCTPpQVyvZz10j7HqjSHYqMCk0Hyq28VX+fLMRZdlSov7hsKm4
4VuOpa4m5pOv+9lY+Dbx
=E8C5
-END PGP SIGNATURE-

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


Re: [PD] Recording audio to mp3 using LAME or ffmpeg ?

2012-10-05 Thread Hans-Christoph Steiner

I think there is mp3write~ in 'unauthorized' lib but I've never used it.
 There is the pdogg lib, which has oggwrite~.

.hc

On 10/05/2012 06:55 AM, Pierre Massat wrote:
 Dear List,
 
 How would you go about recording the audio output of a Pd patch directly to
 mp3 (or any other compressed format actually), without using the object
 from the Unauthorized library ?
 Would it be feasible to use the [shell] object with a script using ffmpeg
 or LAME ? I don't really know whether there would be serious timing uses,
 who to use those for recording a stream instead of a file, how to send Pd's
 audio out...
 
 I could always record to wav and run a script afterwards to compress and
 delete the original file, but i'd rather have something more direct.
 
 Cheers,
 
 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] fftease 64-bit?

2012-10-05 Thread Hans-Christoph Steiner
On 10/04/2012 06:08 PM, plutek wrote:
 From: Hans-Christoph Steiner h...@at.or.at
 Subject: Re: [PD] fftease 64-bit?
 Date: Thu, 04 Oct 2012 17:50:05 -0400
 
 On 10/04/2012 05:38 PM, plutek wrote:
 From: plutek plu...@infinity.net
 Date: Thu, 04 Oct 2012 16:51:35 -0400 (EDT)

 update, in case anyone else is interested in 64-bit fftease: eric lyon has 
 been so kind as to send me a source tarball. he's said it's fine to share 
 it... is there some way to get it up on the fftease project download page 
 at puredata.info, or shall i just upload it to my own account there?

 greetings, again!

 so, i'm trying to compile this fftease source code, and running into some 
 problems... any one out there willing to take a look at the source, and my 
 errors, and help me out?

 thanks much... cheers!
 .pltk.

 The source code is already carefully hidden on the fftease Pd download page:

 https://puredata.info/downloads/fftease/

 I changed the description to hopefully be more helpful.  I made a
 Makefile for those builds.  I need to dig up that Makefile and put it
 somewhere useful...

 .hc
 
 thanks, hans-christoph... yes, i see the source package now!
 a Makefile would be fantastic!


Here you go:

 svn co
https://pure-data.svn.sourceforge.net/svnroot/pure-data/trunk/externals/fftease
 cd fftease
 make

If you move the whole 'fftease' folder into ~/pd-externals, you'll have
a full libdir you can load using [import fftease].  While I was at it, I
added it to my PPA, so there will be Ubuntu packages soon:

https://launchpad.net/~eighthave/+archive/libdirs

.hc

.hc


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


Re: [PD] fftease 64-bit?

2012-10-05 Thread plutek
From: Hans-Christoph Steiner h...@at.or.at
Date: Fri, 05 Oct 2012 14:26:50 -0400

 Here you go:
 
  svn co
 https://pure-data.svn.sourceforge.net/svnroot/pure-data/trunk/externals/fftease
  cd fftease
  make
 
 If you move the whole 'fftease' folder into ~/pd-externals, you'll have
 a full libdir you can load using [import fftease].  While I was at it, I
 added it to my PPA, so there will be Ubuntu packages soon:
 
 https://launchpad.net/~eighthave/+archive/libdirs
 
 .hc

that's great, hans-christoph! 
thanks so much... cheers!
.pltk.

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


[PD] Convert numerical value to bang

2012-10-05 Thread Rick T
Greetings All

Is their a way to convert numerical values to a bang?
Example: a number 1-10 will be converted to a bang

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


Re: [PD] fftease 64-bit?

2012-10-05 Thread plutek
From: Hans-Christoph Steiner h...@at.or.at
Date: Fri, 05 Oct 2012 14:26:50 -0400

 Here you go:
 
  svn co
 https://pure-data.svn.sourceforge.net/svnroot/pure-data/trunk/externals/fftease
  cd fftease
  make
 
 If you move the whole 'fftease' folder into ~/pd-externals, you'll have
 a full libdir you can load using [import fftease].

compiled and running... thanks again!
.pltk.

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


Re: [PD] Convert numerical value to bang

2012-10-05 Thread Scott R. Looney
[= 10]
|
[sel 1]
|
[O] (the bang object) or [t b] (trigger bang)

should work.

scott





On Fri, Oct 5, 2012 at 1:27 PM, Rick T ratull...@gmail.com wrote:

 Greetings All

 Is their a way to convert numerical values to a bang?
 Example: a number 1-10 will be converted to a bang

 Thanks
 Rick

 ___
 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] counting how many times an audio file is looped

2012-10-05 Thread Rick T
Greetings All

I'm trying to count how may times an audio file is looped then cause it to
stop after say 6 loops.

1) I plan on using the select object to compare the sample size (22050)
to where the playing wav file is located
2) create a bang into cup object from the select object, this will
count the number of loops.
3) Use another select object to stop when it reaches 6

The problem I'm having is trying to compare the sample size to where the
playing wav file is currently located.
I can get the sample size using the wavinfo object but how do I get the
current location of the playing wav file.
(I tried using the metro 50 object with the snapshot~ object) but the
numbers don't seem be matching up

Is there another way I should be doing this

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


Re: [PD] counting how many times an audio file is looped

2012-10-05 Thread Charles Henry
On Fri, Oct 5, 2012 at 4:25 PM, Rick T ratull...@gmail.com wrote:
 Greetings All

 I'm trying to count how may times an audio file is looped then cause it to
 stop after say 6 loops.

 1) I plan on using the select object to compare the sample size (22050) to
 where the playing wav file is located
 2) create a bang into cup object from the select object, this will count
 the number of loops.
 3) Use another select object to stop when it reaches 6

 The problem I'm having is trying to compare the sample size to where the
 playing wav file is currently located.
 I can get the sample size using the wavinfo object but how do I get the
 current location of the playing wav file.
 (I tried using the metro 50 object with the snapshot~ object) but the
 numbers don't seem be matching up

 Is there another way I should be doing this

 Thanks

Hi Rick

I think you should use [vline~] to feed [tabread4~].  As long as you
get the number of samples up front with wavinfo, like you mentioned,
you can just schedule those 6 loops to play with vline~ (no need to
count and stop the loop), and you always know what sample is playing,
because it's the value of the vline~ output.

You may also want another vline~ to fade-in and fade-out.

Chuck

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


Re: [PD] Pd-extended 0.43 and Openbox

2012-10-05 Thread Hans-Christoph Steiner
On 10/04/2012 08:11 AM, Nicola Pandini wrote:
 Il 04/10/2012 02:08, Simon Wise ha scritto:
 On 04/10/12 04:07, Hans-Christoph Steiner wrote:

 Sounds like this should actually be:

 set x [ expr max($x % $screenwidth - $::windowframex, 0)]
 set y [ expr max($y % $screenheight - $::windowframey, 0)]

 That would ensure that x and y are always= 0. Does changing that in
 pdtk_canvas.tcl solve your issue?

 The tricky part here is that this would then break how Pd strictly sets
 the position of existing patches based on the values on the first line
 of the patch file.

 wouldn't that make it difficult to put the window outside the screen
 deliberately ... for example to hide the window decorations off-screen?

 I have needed to use this a few times (when making the window properly
 fullscreen was not possible or appropriate), and it is sometimes a lot
 easier than trying to work out how to tell a particular window manager
 not to put decorations on a particular window.

 Simon

 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list
 
 Hi Simon, with this:
 
 if {$geometry == +0+0} {
 set x 0
 set y 0
 } else {
 set x [ expr $x % $screenwidth - $::windowframex]
 set y [ expr $y % $screenheight - $::windowframey]
 }
 
 You'll keep the standard behaviour of Pd for all the saved patches, only
 the new ones are forced to be placed to coords 0,0.
 

Before this kind of change is included in Pd-extended or Pd, it'll need
to be tested a lot on all platforms.  That's why I never really tackled
the issue of all the different WMs.  I think a workable approach would
be to isolate the bits that need to be changed for the different VMs and
stick that into its own Tcl proc (function) while keeping the current logic.

Then it'll be easy to customize this logic without having to come up
with the One True Way that will require lots and lots of testing and
tweaking.  If the above is really all that needs to change, then that
can be put into its own proc.

.hc


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


Re: [PD] counting how many times an audio file is looped

2012-10-05 Thread Rick T
Yes I am using tabread4~

I looked up vline~ in the help but it seems to be missing some info on the
second and third inlets.  Is there some more information about this
object.  I'm using PD .42.5 extended on ubuntu 10.04 64bit

I tried doing this but I get an error error: can't connect signal outlet
to control inlet
phasor~
|
*~
|
vline~  (error: can't connect signal outlet to control inlet)
|
tabread4~

Thanks




On Fri, Oct 5, 2012 at 11:42 AM, Charles Henry czhe...@gmail.com wrote:

 On Fri, Oct 5, 2012 at 4:25 PM, Rick T ratull...@gmail.com wrote:
  Greetings All
 
  I'm trying to count how may times an audio file is looped then cause it
 to
  stop after say 6 loops.
 
  1) I plan on using the select object to compare the sample size
 (22050) to
  where the playing wav file is located
  2) create a bang into cup object from the select object, this will
 count
  the number of loops.
  3) Use another select object to stop when it reaches 6
 
  The problem I'm having is trying to compare the sample size to where the
  playing wav file is currently located.
  I can get the sample size using the wavinfo object but how do I get the
  current location of the playing wav file.
  (I tried using the metro 50 object with the snapshot~ object) but the
  numbers don't seem be matching up
 
  Is there another way I should be doing this
 
  Thanks

 Hi Rick

 I think you should use [vline~] to feed [tabread4~].  As long as you
 get the number of samples up front with wavinfo, like you mentioned,
 you can just schedule those 6 loops to play with vline~ (no need to
 count and stop the loop), and you always know what sample is playing,
 because it's the value of the vline~ output.

 You may also want another vline~ to fade-in and fade-out.

 Chuck

 ___
 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] Convert numerical value to bang

2012-10-05 Thread Rick T
Thanks

On Fri, Oct 5, 2012 at 12:03 PM, Jack j...@rybn.org wrote:

  Le 05/10/2012 22:27, Rick T a écrit :

 Greetings All

 Is their a way to convert numerical values to a bang?
 Example: a number 1-10 will be converted to a bang

 Thanks
 Rick


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


 Here two possibilities. One with two [moses] and the other with [=] and
 [=].
 ++

 Jack



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


Re: [PD] counting how many times an audio file is looped

2012-10-05 Thread Charles Henry
On Fri, Oct 5, 2012 at 5:24 PM, Rick T ratull...@gmail.com wrote:
 Yes I am using tabread4~

 I looked up vline~ in the help but it seems to be missing some info on the
 second and third inlets.  Is there some more information about this object.
 I'm using PD .42.5 extended on ubuntu 10.04 64bit

To be honest, I'm not very good at using vline~ myself (the offset
value always confuses me).  I'm still at work for a little while
longer, so no pd here.

Basically, what it will look like is you feed [vline~] a series of
messages that stands for each reset to 0 and ramp.  Comma-separated
messages inside a single message will be treated like separate
messages.

So, it may make a pretty long message, but the idea I was getting at
here is like the difference between coding a while() loop and a for()
loop.  You can avoid the tricky logic and figure out all the timing up
front, then just let it run.

Chuck


 I tried doing this but I get an error error: can't connect signal outlet to
 control inlet
 phasor~
 |
 *~
 |
 vline~  (error: can't connect signal outlet to control inlet)
 |
 tabread4~

 Thanks




 On Fri, Oct 5, 2012 at 11:42 AM, Charles Henry czhe...@gmail.com wrote:

 On Fri, Oct 5, 2012 at 4:25 PM, Rick T ratull...@gmail.com wrote:
  Greetings All
 
  I'm trying to count how may times an audio file is looped then cause it
  to
  stop after say 6 loops.
 
  1) I plan on using the select object to compare the sample size
  (22050) to
  where the playing wav file is located
  2) create a bang into cup object from the select object, this will
  count
  the number of loops.
  3) Use another select object to stop when it reaches 6
 
  The problem I'm having is trying to compare the sample size to where the
  playing wav file is currently located.
  I can get the sample size using the wavinfo object but how do I get
  the
  current location of the playing wav file.
  (I tried using the metro 50 object with the snapshot~ object) but
  the
  numbers don't seem be matching up
 
  Is there another way I should be doing this
 
  Thanks

 Hi Rick

 I think you should use [vline~] to feed [tabread4~].  As long as you
 get the number of samples up front with wavinfo, like you mentioned,
 you can just schedule those 6 loops to play with vline~ (no need to
 count and stop the loop), and you always know what sample is playing,
 because it's the value of the vline~ output.

 You may also want another vline~ to fade-in and fade-out.

 Chuck

 ___
 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] Translating Puckette Lectures into Spanish

2012-10-05 Thread J Oliver
Hard to say if I should write this one in spanish or english, but...

I am working with New Blankets and escuelab.org in Peru, on translating and 
subtitling Miller's 171 lectures [1] into spanish.

After quite some time working on lecture one, which is almost done, I realize 
that it would really be much faster and effective if this were a community 
effort. There are transcripts of these lectures, so a big part of the work is 
done.

So... those of you interested in joining this effort please reply to this 
message and we'll make a plan.

un abrazo,

J

[1] http://pd-la.info/pd-media/miller-puckette-mus171-videos/___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] [text3d] video subtitling in Pd

2012-10-05 Thread J Oliver
Dear all, 

I was working on a subtitling patch for videos, however, I encountered two 
problems to which I hope there is a solution, as solving them would make it 
work.

Hard to say if this is a Pd problem or text3d problem or both. 

PROBLEM 1: commas cannot be written in [text3d]
Since [text3d] is fed messages, if I write a message like:
yes I am sure, however
The message will be come two messages and the comma of course won't be 
displayed.

PROBLEM 2: spanish accents like á é í ó ú have some troubles in [text3d].
If I write avión, the accent will be there without a problem and it will 
display: avión.
But if I write avió, the ó will not be there entirely and it will only 
display: avi.
So what seems to be happening is that the accented vowel needs to be inside a 
word, but if it is by itself or at the end of a word it will not be displayed 
at all.

anyone has any idea of some workarounds? (or if i'm missing something evident?)

best,

J



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


Re: [PD] counting how many times an audio file is looped

2012-10-05 Thread Rick T
So are you say these wont help me with my original question?
 of trying to count how may times an audio file is looped then cause it to
stop after say 6 loops.

On Fri, Oct 5, 2012 at 1:01 PM, Simon Iten itensi...@gmail.com wrote:

 You only need vline or phasor, not both. The handling is a bit different
 though. Vline works via messages and creates arbitrary ramps. E.g. From 0
 to 44100 in 1000 ms. Phasor just ramps from 0 to 1 in a time you supply as
 a frequency. You then multiply it's output and feed the tabread
  On Oct 6, 2012 12:26 AM, Rick T ratull...@gmail.com wrote:

 Yes I am using tabread4~

 I looked up vline~ in the help but it seems to be missing some info on
 the second and third inlets.  Is there some more information about this
 object.  I'm using PD .42.5 extended on ubuntu 10.04 64bit

 I tried doing this but I get an error error: can't connect signal outlet
 to control inlet
 phasor~
 |
 *~
 |
 vline~  (error: can't connect signal outlet to control inlet)
 |
 tabread4~

 Thanks




 On Fri, Oct 5, 2012 at 11:42 AM, Charles Henry czhe...@gmail.com wrote:

 On Fri, Oct 5, 2012 at 4:25 PM, Rick T ratull...@gmail.com wrote:
  Greetings All
 
  I'm trying to count how may times an audio file is looped then cause
 it to
  stop after say 6 loops.
 
  1) I plan on using the select object to compare the sample size
 (22050) to
  where the playing wav file is located
  2) create a bang into cup object from the select object, this will
 count
  the number of loops.
  3) Use another select object to stop when it reaches 6
 
  The problem I'm having is trying to compare the sample size to where
 the
  playing wav file is currently located.
  I can get the sample size using the wavinfo object but how do I get
 the
  current location of the playing wav file.
  (I tried using the metro 50 object with the snapshot~ object) but
 the
  numbers don't seem be matching up
 
  Is there another way I should be doing this
 
  Thanks

 Hi Rick

 I think you should use [vline~] to feed [tabread4~].  As long as you
 get the number of samples up front with wavinfo, like you mentioned,
 you can just schedule those 6 loops to play with vline~ (no need to
 count and stop the loop), and you always know what sample is playing,
 because it's the value of the vline~ output.

 You may also want another vline~ to fade-in and fade-out.

 Chuck

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



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


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


Re: [PD] [text3d] video subtitling in Pd

2012-10-05 Thread IOhannes m zmölnig
On 10/06/2012 01:54 AM, J Oliver wrote:
 Dear all, 
 
 I was working on a subtitling patch for videos, however, I encountered
 two problems to which I hope there is a solution, as solving them would
 make it work.
 
 Hard to say if this is a Pd problem or text3d problem or both. 
 
 PROBLEM 1: commas cannot be written in [text3d]

[text3d] can render commas very well.
the problem is, that Pd's message box treats commas as as separator
between messages, so [yes I am sure, however( becomes two messages yes
i'm sure and however.
the solution for this is not to use Pd's message box for any text that
contains commans, semicolons, curly braces and other reserved symbols.

for this, the [text*] family supports the string message, where you
can specify each character as a numeric value (uniode-points, or if ou
prefer: ascii)


[string 121 101 115 32 105 39 109 32 115 117 114 101 44 32 104 111 119
101 118 101 114(


 
 PROBLEM 2: spanish accents like á é í ó ú have some troubles in [text3d].
 If I write avión, the accent will be there without a problem and it
 will display: avión.
 But if I write avió, the ó will not be there entirely and it will
 only display: avi.


that's a bit weirder and might well be a bug in Gem.
please send a patch that exhibits this problem.

in the meantime, since the string really takes uncicode points,  it will
help you here as well:

[string 97 118 105 243(


btw, there is a subtitle-generator called [srtfile] (written by
hans-christof, maira and meself) that will read standard srt-file and
create a string at the right time, usable by Gem's [text3d] object. get
it at [1].

fgmasdr
IOhannes


[1]
https://pure-data.svn.sourceforge.net/svnroot/pure-data/trunk/externals/srt


 So what seems to be happening is that the accented vowel needs to be
 inside a word, but if it is by itself or at the end of a word it will
 not be displayed at all.
 
 anyone has any idea of some workarounds? (or if i'm missing something
 evident?)
 
 best,
 
 J
 
 
 
 
 
 ___
 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] counting how many times an audio file is looped

2012-10-05 Thread IOhannes m zmölnig
On 10/05/2012 11:25 PM, Rick T wrote:
 
 Is there another way I should be doing this
 

count the bangs that [tabplay~] will output via it's 2nd inlet.

alternatively, trust Pd's timing.
if you tell [line~] to create a ramp from here to there in 1077ms, then
it will take exactly 1077ms, and you don't need to measure the value of
the ramp inbetween. (esp if you downsample the signal and thus loose
considerable time precision).

[1423(
|
[t f f]
| +---+
| |
[0, 1 $1( |
| |
[line~]   [delay]
| |
...   (will bang when line has reached '1')


but suggest to use [tabplay]s 2nd outlet.


fgmadsr
IOannes

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


Re: [PD] Question on getting the amount of values in a table and setting table to zero

2012-10-05 Thread IOhannes m zmölnig
On 10/04/2012 05:47 PM, Rick T wrote:
 Greetings All
 
 1) I'm trying to find a way to get the total amount of values in a
 table.  I found arraysize but that doesn't seem to give me the correct
 output
 
 Example:
 If I create a table with ; arrayx 0 .1 .3 .5 .3 .1

you are not creating a table with this.
what you do is to set the first 5 elements of an existing table,
whatever it's length is.

in order to count the elements you just set you could use [list length].

[0 .1 .3 .5 .3 .1(
|
[list length]
|
[6\
|
[- 1]
|
[5\ -- tadaa!


if you want to resize a table, use the resize message.
 [resize 19(
 |
 [s arrayx]

 
 2) I'm also trying to set all values in array to zero with out having to
 zero each index.
 


use the const message.

[const 0(
|
[s arrayx]

fgmasdr
IOhannes

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


Re: [PD] opinions on the issue of concurrent implementations (was: getting sample rate of file loaded into an array)

2012-10-05 Thread IOhannes m zmölnig
On 10/04/2012 05:04 PM, Patrice Colet wrote:
 
  We should use C language only when we need it, in the example of [waveinfo] 
 vs [soundfile_info], both aren't the good way for me,
 we just need the [binfile] external for reading the header, and all the other 
 stuff can be done into a pd patch.
 

we don't need [binfile]!

Pd is proven to be turing complete, so it should be easy enough to write
an operating system entirely in Pd (that is: a patch) that will allow
you to read/write soundfiles in any desired format.

mgdasr
IOhannes

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