[PD] higher resolution screen capture

2012-07-19 Thread Hans Roels

Hi,

I need pictures of  300 dpi of a Pd patch to publish them in an 
article. I generated postscript files with 'print' in the menu but the 
copy editor wants a better quality. I also enlarged the fonts of the 
patch and then generated a postscript file but it still isn't good 
enough. I used screen capture software on windows and linux but with the 
same -not good enough- result.
Has anyone any tips to solve this issue? Maybe someone that has 
experience with printing Pd patches in books or articles... (for example 
I notice that in Miller his book the diagonal lines connecting the 
objects are really diagonal, not in steps...).


I need a quick answer and solution for the editor before tomorrow/friday 
evening! Thanks for any advice...


best,
Hans r

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


Re: [PD] Handling numbers read from a file

2010-03-03 Thread Hans Roels
There's a simple solution to know the size of an array in Pd vanilla 
(it has been posted on this list before). If your array is called 
example, send a bang to

[expr size(example)]

Hansr

At 16:03 2/03/2010, Matteo Sisti Sette wrote:

 As all my data are numbers, [tabread] should work fine. Although in
 this
 case, I do not know how to know the number of values in advance to
 resize the table prior to loading the data.

If you store the numbers one per line in the text file, then you 
have two options:


A) Load the file, then bang [textfile] in an [until] loop (until the 
end is reached) and resize the table at each bang by incrementing 
its size by one as you add one more number. Quite inefficient since 
I guess it may have to reallocate memory at each resize


B) Load the file, then do one first scan of [textfile] (banging it 
in an [until] loop) just to count the numbers, then resize the table 
to the number of counted elements, then start all over again to 
store the numbers into the table


If, on the other hand, you store all the number in one list in the 
text file, then you can load it, bang [textfile] only once, and use 
a [list length] to know the number of elements and resize the table 
accordingly, and then prepend a 0 to the list and send the whole 
list to the table to store the elements.


I think the latter solution should be a little (or significantly?) 
more efficient.


--
Matteo Sisti Sette
matteosistise...@gmail.com
http://www.matteosistisette.com

___
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] crazy bug: all user actions executed twice

2009-12-10 Thread Hans Roels
I've had the same problem quite a lot of times. Normally I just close 
Pd, restart and everything is working fine again.

I didn't manage to isolate the problem yet...

(working on Windows XP, Pd vanilla version 0.42.4, not using GEM)

Hans r



At 16:40 10/12/2009, you wrote:

Hi,

I write just to see if anybody has already seen this happaning and 
can give me some clue as how to avoid it.


I am not even sure the problem is with GEM, but I have worked on 
much more huge patches in PD without gem and never seen anything similar.


I am on Windows Vista with the latest PD Vanilla and the latest GEM.

I have not been able to isolate the problem; if anybody with some 
possibility to debug it is willing to try the patch and find out 
something I can send it to him/her.


So, the problem is, in some occasions, very frequently (usually 
after opening the main patch, closing it, and opening it again), 
every user action (e.g.: clicking on a bang or toggle, hitting some 
key INCLUDING ctrl+1 to create an object or introducing input into 
an object or message box, or even a save as) gets executed two or 
even more times. As you can imagine that fucks everything up.


If I just open the patch and run it it works fine, but for even the 
smallest change that implies modifying some abstraction, I have to 
close PD, open it again, modify the abstraction I have to modify, 
save, close PD and open it again, since if I just save or even if I 
close all patches and open the main one again, everything is fucked 
up. It is impossible to work this way.


Usually restarting the computer makes the bug disappear but then it 
is a matter of minutes before it starts showing again.


I know that, if this is the first time you hear of it, you will 
hardly be hable to help, but my hope is that someone has observed 
this already and have been able to link it to a particular object or condition.


By the way, I have checked that when this happens, NO duplicate 
pd.exe nor whish84 process exists (provided that task manager is reliable).


Thanks in advance
m.

--
Matteo Sisti Sette
matteosistise...@gmail.com
http://www.matteosistisette.com

___
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] clap clap bonk bonk

2009-10-12 Thread Hans Roels

Hello,

I'm doing a hands clapping experiment and 'd like to use bonk~ to 
detect the beats. I need bonk~ to be a precise as possible to detect 
basic ryhtms (quarters, eights, semi-quavers, triolas).
The patch that I've made is working but I want to avoid any mistakes, 
I have set the number of frames to analyse, changed the minimum 
velocity and omitted durations faster than 100 ms.  Has anyone any 
other suggestions for improving this patch?


I'd like to be able to adjust the settings of bonk~ to the (spectral) 
features of the sound of clapping in your hands but the documentation 
in bonk-help about the learning mode is a bit incomplete I think. For 
example if I use the debounce message bonk~ stops outputting any 
values... The article from ICMC about fiddle and bonk is very 
interesting in general but very short about the specific operation 
mode of bonk.


The patch in attach writes/records the durations to an array, if you 
click on 'play' after recording these values are played using a 
simple sine with an amplitude envelope.


thanks,
Hans r  #N canvas 380 15 697 552 12;
#X obj 335 264 bonk~;
#X obj 80 83 metro 500;
#X obj 79 115 t b b;
#X obj 76 40 tgl 15 0 clapsplay claprplay empty 0 -6 0 8 -262144 -1
-1 0 1;
#X obj 144 142 f 0;
#X obj 198 140 + 1;
#X obj 197 78 select 1;
#X obj 77 58 t f f;
#N canvas 0 0 454 304 (subpatch) 0;
#X array rit 100 float 0;
#X coords 0 1000 1 0 200 140 1;
#X restore 85 555 graph;
#X obj 199 240 tabread rit;
#X obj 199 276 moses 1;
#X text 104 518 ritme met ms in tabel;
#X text 79 20 play;
#X obj 61 245 dac~;
#X obj 154 35 tgl 15 0 clapsrec claprrec rec/reset 17 7 0 10 -262144
-1 -1 0 1;
#X obj 437 221 r clapsrec;
#X obj 578 413 s rit;
#X msg 578 388 const 0;
#X obj 199 363 s claprplay;
#X obj 433 611 f 0;
#X obj 471 614 + 1;
#X obj 431 313 select 0;
#X obj 533 467 f -1;
#X obj 390 579 t f b;
#X msg 466 353 1;
#X obj 400 669 tabwrite rit;
#X obj 379 401 spigot;
#X obj 383 224 adc~;
#X obj 532 599 timer;
#X obj 373 489 timer;
#X obj 373 459 t b b;
#X obj 378 430 unpack;
#X msg 425 354 0;
#X obj 522 309 select 1;
#X obj 437 278 t b f f f;
#X obj 371 519 moses 100;
#X obj 200 108 f 0;
#X msg 199 332 0;
#X obj 199 301 b;
#N canvas 102 67 1104 500 about-bonk 0;
#X msg 538 289 bang;
#X msg 540 348 print;
#X msg 537 132 mask 4 0.7;
#X text 632 114 Describes how energy in each frequency band masks later
energy in the band. Here the masking is total for 4 analysis periods
and then drops by 0.7 each period.;
#X text 582 280 Poll the current spectrum via raw outlet \, You can
set a very high threshold if you don't want attacks mixed in.;
#X msg 537 325 debug 0;
#X text 615 325 turn debugging on or off.;
#X text 614 196 Minimum velocity to output (quieter notes are ignored.)
;
#X text 634 29 Set low and high thresholds. Signal growth must exceed
the high one and then fall to the low one to make an attack. The unit
is the sum of the proportional growth in the 11 filter bands. Proportional
growth is essentially the logarithmic time derivative.;
#X msg 537 378 print 1;
#X text 605 380 print out filterbank settings;
#X text 9 32 The Bonk object takes an audio signal input and looks
for attacks defined as sharp changes in the spectral envelope of
the incoming sound. Optionally \, and less reliably \, you can have
Bonk check the attack against a collection of stored templates to try
to guess which of two or more instruments was hit. Bonk is described
theoretically in the 1998 ICMC proceedings \, reprinted on crca.ucsd.edu/~msp
.;
#N canvas 660 173 579 589 templates 0;
#X msg 76 197 learn 0;
#X msg 76 227 forget;
#X msg 76 257 write templates.txt;
#X msg 76 287 read templates.txt;
#X msg 76 107 debounce 0;
#X msg 76 137 learn 10;
#X obj 62 431 outlet;
#X text 155 133 Forget all templates and start learning new ones. The
argument gives the number of times you will hit each instrument (10
recommended.) Turn on the output volume above for audible feedback
as you train Bonk. Learn 0 exits learn mode.;
#X text 155 217 Forget the last template. In Learn mode \, use forget
to erase and record over a template.;
#X text 220 253 Write templates to a file in text-editable format.
;
#X text 221 283 Read templates from a file.;
#X text 157 104 Minimum time (msec) between attacks in learn mode;
#X connect 0 0 6 0;
#X connect 1 0 6 0;
#X connect 2 0 6 0;
#X connect 3 0 6 0;
#X connect 4 0 6 0;
#X connect 5 0 6 0;
#X restore 554 415 pd templates;
#X msg 537 62 thresh 2.5 5;
#X msg 537 167 attack-frames 1;
#X text 659 168 number of frames over which to measure growth;
#X text 649 415 more messages for managing templates;
#X msg 537 195 minvel 7;
#X msg 542 220 spew 0;
#X text 604 224 Turn spew mode on/off;
#X msg 537 249 useloudness 0;
#X text 643 257 experimental: use alternative loudness units;
#X text 606 350 Print out settings and templates.;
#X text 5 284 In this patch \, after starting DSP \, you can print
out the raw or cooked output using the two spigots or listen to a
synthesizer output 

[PD] higher math

2009-09-08 Thread Hans Roels

Hello,

I noticed some strange behaviour of some higher math objects in Pd 
vanilla (0.42-4):
'log~' has a right inlet and according to the help file a 'optional 
creation argument initializes right inlet (the base of the 
logarithm)' but this doesn't work. If I create a 'log~ 10' object it 
still computes the logarithm base e; after I send a number 10 to its 
right inlet, it does. The same for 'pow~', the initialisation 
argument doesn't work.
the 'exp~' help file talks about a right inlet but there is no right 
inlet (I guess this is a wrong help file...).
The non-audio object 'log' doesn't have a right inlet, so changing 
the base is impossible?


hans r


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


[PD] changeable receive

2009-07-29 Thread Hans Roels

hello,

From what I read and tried, it is impossible to change the argument 
of 'receive' (like the right inlet of send) in Pd-vanilla.

Is there a trick to solve this in vanilla?

I want to be able to insert the names of various receives in symbol 
boxes. The only way to do this is by using a slider or number box and 
sending a [receive $1(  to this object. This works but
1. I can only receive numbers from this 'receive' and not lists, 
symbols,... like a normal receive
2. in this way all these GUI are using CPU. Does it help to reduce 
the CPU consumption if I reduce the size of this GUI to the minimum?


I hope somebody has found a hack for this problem?

Hans r


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


Re: [PD] signal / message

2009-05-11 Thread Hans Roels

env~ outputs RMS values, have a look in Puckettes book:
http://crca.ucsd.edu/~msp/techniques/latest/book-html/node54.html
http://crca.ucsd.edu/~msp/techniques/latest/book-html/node8.html

Hans r
At 08:14 11/05/2009, Ingo Scherzinger wrote:

On Sun, 2009-05-10 at 17:29 +0200, Wolfgang J?ger wrote:
 Hello,

 What's the best way to convert a signal into a message?
 There are possibilities like snapshot~ or vsnapshot~, but they are not
 accurate. The error they produce when you convert into a message and
 reconvert to a signal (with sig~, line~ or vline~) is clearly audible-


Does anybody know if [env~] takes the average of all samples in it's window?

Ingo
___
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] abstraction help argument

2009-04-27 Thread Hans Roels

Hello,

If you open the help file of an abstraction and no help file is 
present, the abstraction itself is opened but without the arguments! 
Is there a good reason for this or is this a bug?
It seems more logical to me that the open function would be an 
identical substitute for the help function if there is no help 
file.  The present situation is quite confusing: I remember trying to 
debug an abstraction and realising (after a lot of time) that I 
wasn't working in the opened abstraction (with arguments) but in the 
opened abstraction as a help file (without arguments).


tested this behavior in pd vanilla and pd extended 0.40.3

Hans r


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


[PD] abunch release

2009-04-01 Thread Hans Roels

Hello,

Here is my release of Abunch, a collection of 50 abstractions for Pd 
vanilla. I started developing these patches for the different courses 
that I teach (for performers, for composers, for students, for 
teenagers,...). It is conceived as an easy introduction to computer 
music. After a while I started adding more advanced features because 
I also started using it myself, not just for teaching but for 
performing and composing.


I guess most people on this list are Pd-users, so the explanation 
about Abunch is rather simple:

-all controle data are normalized within the range of 0 - 127
-give an unique number to every abunch abstraction as an argument. So 
if you want to create two phasers: [phaser 1] and [phaser 2]
-you can save presets by creating the object 'presets' and giving it 
one symbol as an argument, like [presets phaserpresets]


Every abunch object has a help file. You need to have a Pd version 
0.40 or higher.


The fastest way to get to know Abunch is to have a look at the 
example files. There are about 30 of them, they are in the abunch 
folder and start with 'ex'  (like 'ex1a-play.pd').


You can download Abunch (and find more information) on this site:
http://home.versateladsl.be/hanstine/hans/abunch-eng.htm

Voor de Nederlandstaligen: je kan ook een Nederlandstalige versie 
downloaden (met help files en uitleg in het Nederlands):

http://home.versateladsl.be/hanstine/hans/abunch-ned.htm

Abunch was realized with the support of the University College of 
Ghent (Faculty of Music and Drama)(Belgium).


Hans R


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


Re: [PD] Call for GSoC mentors! March 9th deadline!

2009-03-13 Thread Hans Roels
In fact I'm working on a very similar project (called 'abunch') since 
a year, I hope to release it in one of the following weeks. 
Everything is in pd vanilla. I tried to make it as user friendly as 
possible, I've been testing and using it a lot in my lessons. It 
contains a lot of the units that you mentioned...


Hans R

At 16:53 12/03/2009, Kyle Klipowicz wrote:

How about this project:

Beginners Building Blocks.

Right now, If I want to even make a simple sine oscillator synth 
with an ADSR envelope on it, it's not very easy to do out of the 
box. What if there were some entry-level abstractions in a very 
OBVIOUS location that people could instantly piece together some 
classic Unit Generators. Important for these would be the ability to 
copy/paste items from a main page of abstractions. Also, they should 
have a simple GUI interface, and possibly be set up automatically to use SSAD.


I'm thinking stuff like:

-basic envelope generators
-basic oscillators (bandlimited ones would be nice): sine, square, 
triangle, sawtooth

-basic i/o that is more intuitive to newbies
-basic sample players (one shot, looping, pitch shifting, 
multi-sample a la fluidsynth)
-basic MIDI controller mapping tools (so people could just twist a 
knob to assign a parameter)

-basic step, piano roll, c sequencers
-basic pitch/rhythm analysis (wrappers for sigmund~, fiddle~, and bonk~)
-basic modular counters
-an extensive collection of examples using these objects, 
documenting parameters, as well as ways to connect and/or modify and 
save new versions of objects using SSAD

-video stuff would also be great, something akin to a freshened up PixelTango.

Anyway, I just thought these things would be really nice to have in 
an accessible place in Pd-extended. Because right now whenever I 
just want to make something very simple, i end up having to click a 
mouse about 200 times which is annoying and makes me worried about RTS!


Pd and Pd-extended are so difficult to navigate for newbies. There 
need to be more pick up and go audio tools. I'm thinking of how 
Reaktor and Max/MSP are so easy to dive into. Pd is a lot like a 
cold cold ocean whereas the other two are nice warm swimming pools. 
Pd is deeper and more exciting by far, but you can get swept away in 
an undertow never to return!


This project could be accomplished by merging elements from NetPd, 
Pdmtl, and various slick patches made by the resident list geniuses. 
(Another thing about NetPd if Roman and Eni are listening: can you 
make a tar.gz or zip download of ALL current NetPd patches? I hate 
having to download 30+ items one at a time. RTS fears again!)


So there's my way more than 2 cents. Take what you will from it.

~Kyle


On Sun, Mar 8, 2009 at 2:53 PM, Hans-Christoph Steiner 
mailto:h...@eds.orgh...@eds.org wrote:

On Mar 7, 2009, at 9:51 AM, Roman Haefeli wrote:
 On Sat, 2009-03-07 at 11:26 +0100, Enrique Erne wrote:
 Hans-Christoph Steiner wrote:
 The Google Summer of Code 
((http://code.google.com/soc/http://code.google.com/soc/) application

 is due very soon, March 9th, and we need mentors!  At this point,
 you
 just need to put down your name.  Then once the projects are in,
 we'll
 choose projects and who will mentor them.

 Every pd developer who wants to support the project but is not
 student
 anymore is invited to join as mentor, since the number of sponsored
 projects by google depends on the number of mentors and students.

 Andy, Claude, Frank, Marius, Mathieu, Roman where are you guys?

 add your names, hurry! :)

 yo, i am happy to add my name, but i guess it only makes sense for
 me to
 take a mentorship of a project, that is about patching and not c
 coding.
 from what i have seen, there is only one project - undead - which
 seems
 to be about patching. derek holzer is already proposed as a mentor.
 does
 it make sense to propose more then one mentor for a project?
You could also create a new project based on something like creating
libraries out of all that useful code in netpd.  Basically, think of
something that you would like implemented in Pd that you could mentor.
.hc



 roman



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



If nature has made any one thing less susceptible than all others of
exclusive property, it is the action of the thinking power called an
idea, which an individual may exclusively possess as long as he keeps
it to himself; but the moment it is divulged, it forces itself into
the possession of everyone, and the receiver cannot dispossess himself
of it.- Thomas Jefferson


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





--
-

Re: [PD] strange wave

2009-03-03 Thread Hans Roels
I think/hope that I managed to isolate the problem with writesf~ and 
readsf~. There are two patches in attach that print out every step 
that you take so one can't forget to click 'open' for example, it 
also measures the time between the 'open' and 'start' command. Copy 
these 2 patches in the same folder.


Try this test a few times:

1. start Pd
2. open main.pd
3. create abstraction 'rec' in main.pd
(test writesf~)
4. open a file (comment 1 in 'rec')
5. start recording (comment 2 in 'rec')
6. stop the recording (comment 3 in 'rec')
7. send 'print' to writesf~ (comment 4 in 'rec')
(test readsf~)
8. open a file (comment 5 in 'rec')
9. play a file (comment 6 in 'rec')
10. answer question (comment 7 in 'rec')
11. send 'print' to readsf~ (comment 8 in 'rec')
12.close Pd  don't save any changes

I tried this 10 times on Windows XP (Pd 0-42-4) and 10 times in Mac 
Os X 10.3.9 (Pd 0-40-2) and readsf~ and writesf~ never worked and Pd 
only created a wav file with the right name but without sample data. 
Be sure to do exactly the required steps and nothing more. If for 
example you open 'test audio and midi' in de Media menu (or you 
delete and restore an audio cable within the abstraction 'rec') 
before step 12, the opened file will start playing, even if it was 30 
seconds ago that you opened and tried to play the sound file.  If you 
try recording (step 4 - 7) everything will work now n this case.


This is what Pd prints (print commands in abstraction 'rec') when 
readsf and writesf don't work:


print: open C:/Program Files/pd042-4/bin/aa.wav
print: start
time_beween_open_and_start: 2774.78
print: stop
time_beween_start_and_stop: 3297.23
state 0
fifo head 0
fifo tail 0
fifo size 262144
fd -1
eof 0
print: open C:/Documents and Settings/Bureaublad/pianob7.wav
print: 1
time_beween_open_and_start: 3668.75
readsf_sound?: no
state 2
fifo head 70496
fifo tail 0
fifo size 262144
fd -1
eof 1

This what Pd prints when writesf and readsf do work after 'test audio 
and midi' was opened after step 11

print: open /elektromuziek/extra.wav
print: start
time_beween_open_and_start: 1364.17
print: stop
time_beween_start_and_stop: 1834.38
state 0
fifo head 161792
fifo tail 161792
fifo size 262144
fd -1
eof 0
print: open /elektromuziek/PIANOB7.WAV
print: 1
time_beween_open_and_start: 1428.03
readsf_sound?: yes
state 0
fifo head 70496
fifo tail 70400
fifo size 262144
fd -1
eof 1

I hope someone can solve this problem...

Hans r

At 19:32 2/03/2009, IOhannes m zmoelnig wrote:

Hans Roels wrote:

Hello,


hi.

how does this relate to Arduino/SRF05 to which thread it references?


Sometimes when I record audio in Pd, a wave file is created that Pd

[...]
problem yet but I'm trying... (I think it has something to do with 
using 'writesf' in an abstraction).
I 'm working on Windows XP and this problem occured in Pd 0.40.3 
and in 0.42-4.



your problem is most likely related to not properly closing the 
soundfile. you MUST send a [stop( message to [writesf~] in order to 
finalize the wav (that is: replace the dummy length in the header 
with the proper one, which is only known at closing time)


fgmasdr
IOhannes


#N canvas 719 338 458 308 12;
#X msg 31 232 \; pd dsp 1;
#X obj 32 198 loadbang;
#X connect 1 0 0 0;
#N canvas 498 19 630 639 12;
#X msg 409 45 print;
#X msg 176 58 start;
#X msg 283 67 stop;
#X obj 130 136 osc~ 440;
#X msg 51 88 open \$1.wav;
#X obj 52 31 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 53 60 savepanel;
#X text 53 7 1;
#X text 171 11 2;
#X obj 41 438 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 40 467 openpanel;
#X msg 140 436 1;
#X obj 98 581 dac~;
#X obj 132 165 *~ 0.1;
#X msg 40 495 open \$1;
#X obj 176 33 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 281 43 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X text 281 12 3;
#X obj 143 216 writesf~ 1;
#X obj 458 170 print;
#X obj 102 547 readsf~ 1;
#X obj 112 315 timer;
#X obj 112 339 print time_beween_open_and_start;
#X obj 343 269 print time_beween_start_and_stop;
#X obj 78 290 bang;
#X obj 175 290 bang;
#X obj 386 235 timer;
#X obj 368 206 bang;
#X obj 417 207 bang;
#X text 424 19 4;
#X msg 206 461 yes;
#X msg 300 464 no;
#X obj 250 530 print readsf_sound?;
#X msg 443 448 print;
#X text 250 464 or;
#X obj 34 606 print;
#X text 205 435 did you hear sound?;
#X text 42 404 5;
#X text 144 405 6;
#X text 260 408 7;
#X text 441 411 8;
#X obj 182 615 timer;
#X obj 182 639 print time_beween_open_and_start;
#X obj 148 590 bang;
#X obj 245 590 bang;
#X connect 0 0 18 0;
#X connect 1 0 18 0;
#X connect 1 0 19 0;
#X connect 1 0 25 0;
#X connect 1 0 27 0;
#X connect 2 0 18 0;
#X connect 2 0 19 0;
#X connect 2 0 28 0;
#X connect 3 0 13 0;
#X connect 4 0 18 0;
#X connect 4 0 19 0;
#X connect 4 0 24 0;
#X connect 5 0 6 0;
#X connect 6 0 4 0;
#X connect 9 0 10 0;
#X connect 10 0 14 0;
#X connect 11 0 20 0;
#X connect 11 0 35 0;
#X connect 11 0 44 0;
#X connect 13 0 18 0;
#X connect 14 0 20 0;
#X

Re: [PD] strange wave

2009-03-03 Thread Hans Roels
thanks a lot for this information, I added the  [loadbang]-[; pd dsp 
0; pd dsp 1(  to my recording abstraction and after testing it a few 
times, this seems more reliable.
Hans r

At 12:40 3/03/2009, IOhannes m zmoelnig wrote:
Hans Roels wrote:
I think/hope that I managed to isolate the problem with writesf~ 
and readsf~. There are two patches in attach that print out every 
step that you take so one can't forget to click 'open' for example, 
it also measures the time between the 'open' and 'start' command. 
Copy these 2 patches in the same folder.

the answer is simple: there is a (known) bug in Pd that does not 
re-start the dsp-graph in some situations when live-patching.
i think there is at least 1 bug-report in the sf bug-tracker.

so what happens here is: after you have started the dsp you create 
[rec] but for whatever reasons, the dsp-graph is not updated and 
thus your [writesf~] is not working at all.

you can test this by:
adding [env~] plust floatatom to [osc~] in your [rec] patch. save it.
then re-start Pd, open main.pd, create [rec], open it up and 
lo-and-behold, the numberbox might still show 0 (and is not updated by [env~])

workaround: manually restart the dsp after you have dynamically 
created an object: [loadbang]-[; pd dsp 0; pd dsp 1(


fgnmasdr
IOhannes




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


Re: [PD] strange wave

2009-03-02 Thread Hans Roels
At 19:32 2/03/2009, you wrote:
Hans Roels wrote:
Hello,

hi.

how does this relate to Arduino/SRF05 to which thread it references?

Sometimes when I record audio in Pd, a wave file is created that Pd
[...]
problem yet but I'm trying... (I think it has something to do with 
using 'writesf' in an abstraction).
I 'm working on Windows XP and this problem occured in Pd 0.40.3 
and in 0.42-4.


your problem is most likely related to not properly closing the 
soundfile. you MUST send a [stop( message to [writesf~] in order to 
finalize the wav (that is: replace the dummy length in the header 
with the proper one, which is only known at closing time)

I did send a stop message to writesf~, I recorded a sound 10 times 
with exactly the same abstraction and 4 files had this problem... 
(the other 6 files were OK).

fgmasdr
IOhannes



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


[PD] no download

2009-02-16 Thread Hans Roels
Hello,

There seems to be a problem if you want to download the most recent 
version of Pd vanilla on http://puredata.info/downloads
The windows installer file doesn't seem to exist on the server. I 
tried it last week and also today without succes. Using other mirror 
sites also didn't work. I remember someone else told me a few weeks 
ago there was a problem, so I guess it must have been impossible to 
download this windows version for a few weeks now.

Hans r


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


Re: [PD] no download

2009-02-16 Thread Hans Roels
OK, the zip file isn't a problem, I just wanted to say that the link 
wasn't working and now that's solved...thanks!
Hans r

At 20:33 16/02/2009, IOhannes m zmoelnig wrote:
Hans Roels wrote:
Hello,
There seems to be a problem if you want to download the most recent 
version of Pd vanilla on http://puredata.info/downloads
The windows installer file doesn't seem to exist on the server. I 
tried it last week and also today without succes.

well, the official download-site of Pd-vanilla links from 
http://puredata.info/downloads to http://crca.ucsd.edu/~msp/ 
(miller's homepage). all other downloads of Pd-vanilla are merely 
distributions on mirrors.
as can be seen on miller's site, there is no w32-installer (for 
whatever reasons). you have to go and get the zip-file.

this is really not a big deal, as the installer is basically a 
self-extracting zip. if you know how to unzip such archive, then you 
are there...


Using other mirror sites also didn't work. I remember someone else 
told me a few weeks ago there was a problem, so I guess it must 
have been impossible to download this windows version for a few weeks now.

i changed the link now to point to the .zip file

fgmasdr
IOhannes




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


Re: [PD] left mouse click abuse

2009-01-02 Thread Hans Roels
hello,

I have a small request about pd-vanilla. Is it possible to replace 
the normal popup window (when a file/window is closed) :

Discard changes to this window??
Yes No

by

Save changed file?
Yes No

I use Pd a lot for teaching and lots of people get confused by this 
question, even people that have been using Pd for a long time... It's 
very unintuitive I think.

Hans r


At 18:23 2/01/2009, you wrote:
Hallo,
Miller Puckette hat gesagt: // Miller Puckette wrote:

  A partial answer - in 0.42 (available in a test version), control-1, etc,
  which create new objects, will automatically connect from the currently
  selected object if there is one.  (It does nothing with multiple selections
  though...)

Ha, that's cute, though it needs some getting used to, but I guess that
will come quickly.

I just tried it with creating a [f ], then press Ctl-1 and type mod 16,
press  C-1 again and type + 1, neat.

Ciao
--
Frank

___
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] reproduce envelope

2008-10-31 Thread Hans Roels
thanks for the clear explanation!
When I triggered a bang manually in the blocksize 1 subpatch, the 
line~ was absolutely identical. Then I tried to get rid of the 
scheduled messages in the bang from metro (by sending it to other 
objects and transforming it back to a bang) but this didn't work, I 
didn't find a hack.
Although vline is the most accurate 'in the perfect world', line and 
blocksize 1 can be more precise in the current Pd-version...

Hans r

At 18:41 30/10/2008, you wrote:
On Thu, 2008-10-30 at 17:32 +0100, Hans Roels wrote:
  Hello,
 
  Is is possible in Pd to produce exactly the same envelope again and
  again? If I send the same message to vline and use this to cut an
  envelope out of noise or a sine wave, it always changes a bit (if you
  listen carefully). (The phase is always reset, that's not the
  problem.) I recorded the sounds, had a look at the soundfiles in an
  edit program and noticed that all the envelopes were slightly
  different.

this is actually a feature of [vline~]. [vline~] understands scheduled
messages, which means, that messages triggered by [metro] or [delay] are
executed by [vline~] at the exact time of the [metro]/[delay] initiated
message. in other words: [vline~] starts ramps between audio blocks,
even between samples. the phase setting for [osc~] is only executed on
block boundaries. this is why you're getting inconsistent results with
[vline~] and [osc~]

  Then I used line~ in a subpatch with blocksize 1 and did
  the same thing. This sounds better and if I looked at the recorded
  sound files they were more identical (although the release changes a
  bit, there seems to be a very small inaccuracy in the delay...


[line~] on the other hand is starting the ramp always on block
boundaries, that is why the phase reset and the ramp start at the same
time, which is giving you consistent results. different decays might be
the effect of rounding errors, since - in case you're not using  a
multiple of the block size as ramp length - the resulting ramp length is
sometimes rounded up and sometimes rounded off. (this is a only theory,
that needs to be confirmed by someone who knows to read the c code of
[line~]).

   but
  you can't hear this with the sine sound. The noise sound is always a
  bit different, I guess because it are randomly generated frequencies?).

there is no phase reset for [noise~], so the results will always be
different.

  Anyway I thought that vline~ was more precise than line~ but this
  doesn't seem to be true...?

it is true, but many other objectclasses aren't. to mention only a few:

- right inlet of [osc~]  and [phasor~]
- [tabwrite~]
- [tabplay~]
- [writesf~]
- [readsf~]
probably more.

all those objectclasses execute incoming message only on
blockboundaries, which means, you get inconsistent results, when using
them together with the indeed more accurate [vline~].

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] reproduce envelope

2008-10-30 Thread Hans Roels

Hello,

Is is possible in Pd to produce exactly the same envelope again and 
again? If I send the same message to vline and use this to cut an 
envelope out of noise or a sine wave, it always changes a bit (if you 
listen carefully). (The phase is always reset, that's not the 
problem.) I recorded the sounds, had a look at the soundfiles in an 
edit program and noticed that all the envelopes were slightly 
different. Then I used line~ in a subpatch with blocksize 1 and did 
the same thing. This sounds better and if I looked at the recorded 
sound files they were more identical (although the release changes a 
bit, there seems to be a very small inaccuracy in the delay... but 
you can't hear this with the sine sound. The noise sound is always a 
bit different, I guess because it are randomly generated frequencies?).
Anyway I thought that vline~ was more precise than line~ but this 
doesn't seem to be true...?

Have a look at the file in attach.

Hans R #N canvas 42 23 722 623 12;
#X obj 106 154 vline~;
#X obj 68 185 *~;
#X obj 59 259 dac~;
#X obj 145 81 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X msg 106 130 0.5 20 \, 0 50 20;
#X obj 146 15 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 145 43 metro 500;
#N canvas 0 0 450 300 (subpatch) 0;
#X array view 1000 float 2;
#X coords 0 1 1000 -1 200 140 1;
#X restore 297 25 graph;
#X obj 121 447 vline~;
#X obj 81 521 *~;
#X obj 62 580 dac~;
#X obj 154 367 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X msg 122 425 0.5 20 \, 0 50 20;
#X obj 158 313 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 158 338 metro 500;
#X obj 115 578 tabwrite~ view;
#X obj 37 438 osc~ 440;
#X msg 81 409 0;
#X obj 31 114 noise~;
#X obj 100 260 tabwrite~ view;
#X obj 258 216 loadbang;
#X msg 256 243 \; view resize 1000 \;;
#X msg 408 243 \; view resize 5000 \;;
#X obj 421 436 dac~;
#N canvas 738 321 564 342 blocksize1-osc 0;
#X obj 15 7 block~ 1;
#X obj 58 222 *~;
#X obj 134 20 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 133 48 metro 500;
#X obj 59 258 outlet~;
#X obj 96 191 line~;
#X obj 152 77 t b b;
#X msg 169 125 0.5 20;
#X obj 112 111 del 20;
#X msg 89 145 0 50;
#X obj 152 262 tabwrite~ view2;
#N canvas 0 0 450 300 (subpatch) 0;
#X array view2 1000 float 2;
#X coords 0 1 1000 -1 200 140 1;
#X restore 280 30 graph;
#X obj 21 151 osc~ 440;
#X msg 71 110 0;
#X text 170 207 the attack is more exact now \, the release (the delay
object...?) still changes a bit though...;
#X connect 1 0 4 0;
#X connect 2 0 3 0;
#X connect 3 0 6 0;
#X connect 5 0 1 1;
#X connect 5 0 10 0;
#X connect 6 0 8 0;
#X connect 6 1 7 0;
#X connect 6 1 10 0;
#X connect 6 1 13 0;
#X connect 7 0 5 0;
#X connect 8 0 9 0;
#X connect 9 0 5 0;
#X connect 12 0 1 0;
#X connect 13 0 12 1;
#X restore 330 348 pd blocksize1-osc;
#N canvas 687 533 628 346 blocksize1-noise 0;
#X obj 15 7 block~ 1;
#X obj 58 222 *~;
#X obj 134 20 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 133 48 metro 500;
#X obj 59 258 outlet~;
#X obj 96 191 line~;
#X obj 152 77 t b b;
#X msg 169 125 0.5 20;
#X obj 112 111 del 20;
#X msg 89 145 0 50;
#N canvas 0 0 450 300 (subpatch) 0;
#X array view3 1000 float 2;
#X coords 0 1 1000 -1 200 140 1;
#X restore 280 30 graph;
#X msg 71 110 0;
#X obj 21 151 noise~;
#X obj 152 262 tabwrite~ view3;
#X text 153 183 the attack is more exact now \, the release (the delay
object...?) still changes a bit though...;
#X connect 1 0 4 0;
#X connect 2 0 3 0;
#X connect 3 0 6 0;
#X connect 5 0 1 1;
#X connect 5 0 13 0;
#X connect 6 0 8 0;
#X connect 6 1 7 0;
#X connect 6 1 11 0;
#X connect 6 1 13 0;
#X connect 7 0 5 0;
#X connect 8 0 9 0;
#X connect 9 0 5 0;
#X connect 12 0 1 0;
#X restore 478 351 pd blocksize1-noise;
#X text 332 323 better solution in here:;
#N canvas 369 718 474 156 record-file 0;
#X obj 66 51 bng 15 250 50 0 1-refsrec 1-refrrec rec 0 -6 0 8 -258699
-1 -1;
#X obj 107 52 bng 15 250 50 0 1-refsstop 1-refrstop stop -5 -6 0 8
-262144 -1 -1;
#X msg 136 313 start;
#X msg 294 358 stop;
#X obj 48 424 inlet~;
#X obj 28 226 savepanel;
#X msg 45 289 open \$1.wav;
#X obj 407 203 inlet;
#X obj 406 259 select 0 1;
#X text 411 171 1 = record \, 0 = stop recording;
#X obj 140 189 r 1-refsrec;
#X obj 303 328 r 1-refsstop;
#X obj 517 299 s 1-refrrec;
#X obj 405 299 s 1-refrstop;
#X symbolatom 26 77 45 0 0 0 - #1-refrsym -;
#X obj 25 345 s 1-refrsym;
#X text 388 79 .wav;
#X obj 26 51 bng 15 250 50 0 1-refsopen 1-refropen open -5 -6 0 8 -262144
-1 -1;
#X obj 23 194 r 1-refsopen;
#X obj 275 432 inlet~;
#X obj 46 520 writesf~ 1;
#X obj 245 534 writesf~ 2;
#X obj 129 431 spigot;
#X obj 218 431 spigot;
#X obj 197 375 == 0;
#X obj 170 50 tgl 15 0 1-refsstereo 1-refrstereo stereo_rec_on 17 7
0 9 -262144 -1 -1 0 1;
#X obj 220 282 r 1-refsstereo;
#X obj 426 373 loadbang;
#X msg 426 399 0;
#X obj 424 468 s 1-refrstereo;
#X obj 45 258 symbol;
#X obj 211 314 t b f;
#X obj 406 230  0;
#X obj 137 459 print m;
#X obj 208 465 print s;
#X text 

Re: [PD] expr modulo negative

2008-10-14 Thread Hans Roels
ok, so there is no expr function identical to the 'mod' object?

Hans r

At 13:09 14/10/2008, Frank Barknecht wrote:
Hallo,
Hans Roels hat gesagt: // Hans Roels wrote:

  Hello,
 
  If you want to calculate the modulo of a negative number, you get a
  different result if you use the 'mod' object or 'expr' with %.
 
  -1  4
  ||
  mod
  |
  3
 
  -1 4
  |   |
  expr $f1 % $f2
  |
  -1
 
  I guess this is a bug in expr ?

Not really: Pd also has a builting [% ] object, which behaves like the
% in expr.

Ciao
--
  Frank Barknecht _ __footils.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


[PD] expr modulo negative

2008-10-14 Thread Hans Roels
Hello,

If you want to calculate the modulo of a negative number, you get a 
different result if you use the 'mod' object or 'expr' with %.

-1  4
||
mod
|
3

-1 4
|   |
expr $f1 % $f2
|
-1

I guess this is a bug in expr ?

Hans r


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


[PD] split symbol

2008-10-13 Thread Hans Roels
Hello,

Is it possible to split a symbol in Pd vanilla? F.e. I want to get 
the number 1 out of the send name 'pitch-1'  I found some references 
about externals in this mailing list but not a solution in plain Pd. 
Is it impossible or has somebody found a trick?

thanks, Hans r


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


[PD] split symbol

2008-10-13 Thread Hans Roels
Hello,

Is it possible to split a symbol in Pd vanilla? F.e. I want to get 
the number 1 out of the send name 'pitch-1'  I found some references 
about externals in this mailing list but not a solution in plain Pd. 
Is it impossible or has somebody found a trick?

thanks, Hans r


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


Re: [PD] print all abstractions and externals

2008-07-09 Thread Hans Roels
that 's an interesting idea but I don't know if 
this is possible with pd-vanilla, I didn't try it yet.
I made this patch to be able to save all files 
that I need for one patch. As Luigi also noticed, 
it would be good if this patch searched for 
abstractions within abstractions, I might try 
this one of the following weeks (time... 
holidays:).  I guess I'll have to save the main 
output in a new [textfile] object that will be 
printed after the searching is finished because a 
lot of error messages will be printed in the main 
screen once I try to open abstractions within 
abstrations (some of them will be externals which can't be opened...)
I use vanilla because it's very good for teaching 
purposes, the structure is never hidden (as in an 
external where you have to be able to read the 
source file). I also got tired of wasting my time 
with looking for the right externals for windows 
and apple for my students, now I'm sure that 
everyone can use the files that I make.

hans r

Date: Wed, 09 Jul 2008 09:50:51 +0100
To: João Pais [EMAIL PROTECTED]
From: Hans Roels [EMAIL PROTECTED]
Subject: Re: [PD] print all abstractions and externals

At 23:06 6/07/2008, you wrote:
Hi,

I would like to reply with a couple of suggestions:

Have you thought about another technique? instead of making several
[select]s with lots of variables (which will have to be checked now and
then, as we don't know fow now which version of vanilla was your reference
version), you could take on a more environment-dependent approach: pd
scans the extra folder (including subfolders) for installed
externals/abstractions and writes the names of the installed objects in a
list (or [textfile] (or [msgfile]) ) - they're easy to find if you look
for the endings .pd (abstractions), or .dll / .pd_linux / .darwin [actual
non-windows extensions are wrong, I think].
That would create a personal database for each pd installation for each
user (assuming that users add something to their extra folder or a user
has several versions of pd installed). Then the patch-environment
comparation process you already programmed would take place. Meaning, you
could test quite easily if a patch you want to open has any elements your
system doesn't have.

One option to look automatically for objects in abstractions could be:
pre-scan the patch folder (+ subfolders, if any?), and see if they come up
in the results. if so, just open those files automatically afterwards.


For what use did you thought the patch might be useful? I think it's quite
useful if I want to make a standalone patch, which has to be packaged
with the program with it - and for that vanilla+ is better as extended.
But from my opinion, I don't know nowadays how many people are working
with vanilla instead of with extended (except some hardcore users). I
guess new users use extended, since both are now in parallel versions.


As it was replied, [5] isn't wrong. for example, if [5] is triggered by
another object (and not a message), it's more efficient to have
[object]-[object] than [object]-[message(, as data types don't have to
be converted. (as I read some years ago in this list)
But if you (rightfully) don't want floats to go in your list, you can
filter them out, a [route float] with no connection from the first outlet
does it. (I just tried it)


João Pais

PS: for GUI design, I always say GOP is your friend - specially now,
when you can even hide the creation name/arguments


I've made a patch that might be useful for others. In the attached
patch you can open a pd-file and the main window prints all the
abstractions or externals that you need to make the patch work. It
doesn't detect abstractions within abstractions though and it also
prints objects like [5] or [$1], I didn't find a solution for this
(small) problem yet. (I'd think it is bad pratice to use [5] in sted
of [5(  or am I wrong?)
I wanted to make a patch that copied all the necessary abstractions
and the file itself to a new folder but I ended up with this simpler
solution...

hans r



--
Friedenstr. 58
10249 Berlin
Deutschland
Tel +49 30 42020091
Mob +49 162 6843570
[EMAIL PROTECTED]
skype: jmmmpjmmmp
http://www.puredata.org/Members/jmmmp
IBM Thinkpad R51, XP, Ubuntu GG
Pd-Ext-0.39-2-t5, Pd Van 0.40-t2


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


Re: [PD] smallest number from a stream of numbers

2008-07-09 Thread Hans Roels
I don't think you need lists for this, just 2 
objects [min] [trigger] and an initial value. in 
attach is an example with a random stream of numbers.

hans r

At 21:47 8/07/2008, you wrote:

Frank Barknecht wrote:
 Hallo,
 cyrille henry hat gesagt: // cyrille henry wrote:

 Ben Carney a écrit :
 Hello there list!

 pretty simple question I think, but I'm a bit stumped.

 I have a stream of numbers coming in from a flex sensor and I would love
 to be able to grab the lowest number from x amount of numbers, every 30
 numbers or so.

 I looked through the [list minmax] example, but could not figure out how
 to make it do it live.

  |
 [mapping/last_n 30]
  |
 [list minmax]
  |

 Or

  [list-lastx 30]
  |
  [list-minmax]


Or how about

/\
[moses]  \
| \
[trigger a a]

with a handmade counter that resets moses every n'th time.

eni

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list
#N canvas 449 139 607 439 12;
#X msg 363 208 -1;
#X obj 373 292 max;
#X obj 200 163 loadbang;
#X obj 414 319 t f f;
#X floatatom 314 374 5 0 0 0 - - -;
#X obj 203 120 bng 15 250 50 0 empty empty reset 17 7 0 10 -262144
-1 -1;
#X text 385 226 very small initial value;
#X obj 74 296 t f f;
#X floatatom 184 369 5 0 0 0 - - -;
#X msg 102 213 10;
#X obj 46 264 min;
#X text 95 234 very high initial value;
#X text 184 396 minimum;
#X text 314 398 maximum;
#X obj 209 53 random 1000;
#X obj 205 6 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 1
;
#X obj 207 27 metro 100;
#X text 234 4 on/off stream of random numbers;
#X connect 0 0 1 1;
#X connect 1 0 3 0;
#X connect 2 0 0 0;
#X connect 2 0 9 0;
#X connect 3 0 4 0;
#X connect 3 1 1 1;
#X connect 5 0 0 0;
#X connect 5 0 9 0;
#X connect 7 0 8 0;
#X connect 7 1 10 1;
#X connect 9 0 10 1;
#X connect 10 0 7 0;
#X connect 14 0 10 0;
#X connect 14 0 1 0;
#X connect 15 0 16 0;
#X connect 16 0 14 0;
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] print all abstractions and externals

2008-07-01 Thread Hans Roels

hello,

I've made a patch that might be useful for others. In the attached 
patch you can open a pd-file and the main window prints all the 
abstractions or externals that you need to make the patch work. It 
doesn't detect abstractions within abstractions though and it also 
prints objects like [5] or [$1], I didn't find a solution for this 
(small) problem yet. (I'd think it is bad pratice to use [5] in sted 
of [5(  or am I wrong?)
I wanted to make a patch that copied all the necessary abstractions 
and the file itself to a new folder but I ended up with this simpler 
solution...


hans r#N canvas 599 172 599 101 12;
#X obj 118 144 openpanel;
#X obj 116 240 textfile;
#X msg 116 208 read \$1 \, rewind \, bang;
#X obj 116 269 route #X;
#X obj 179 297 t b;
#X obj 179 324 s \$0-next;
#X obj 33 144 r \$0-next;
#X obj 33 173 del 4;
#X obj 194 376 t b;
#X obj 194 403 s \$0-next;
#X obj 118 425 list split 2;
#X obj 101 505 s \$0-next;
#X obj 47 28 bng 15 250 50 0 \$0-start empty empty 17 7 0 10 -262144
-1 -1;
#X obj 119 348 route obj;
#X obj 553 1555 print;
#X obj 248 488 list split 1;
#X obj 173 776 select bang float symbol int send receive select route
pack unpack trigger spigot moses until print makefilename change swap
value delay metro line timer cputime realtime pipe;
#X text 30 762 glue and time objects;
#X obj 179 919 select notein ctlin pgmin bendin touchin polytouchin
midiin sysexin noteout ctlout pgmout bendout touchout polytouchout
midiout makenote stripnote;
#X text 61 864 math objects;
#X obj 180 987 select tabread tabread4 tabwrite soundfiler;
#X text 64 946 midi objects;
#X text 53 993 tables objects;
#X obj 173 1017 select loadbang serial netsend netreceive qlist textfile
openpanel savepanel bag poly key keyup keyname declare;
#X text 81 1034 misc;
#X text 49 1081 audio math;
#X obj 172 1142 select dac~ adc~ sig~ line~ vline~ threshold~ snapshot~
vsnapshot~ bang~ samplerate~ send~ receive~ throw~ catch~ block~ switch~
readsf~ writesf~;
#X text 58 1156 audio glue;
#X text 66 1469 GUI;
#X text 35 1599 extra folder in vanilla;
#X text 49 1421 abbrevations;
#X obj 46 65 tgl 15 0 \$0-extra \$0-rextra empty 17 7 0 10 -262144
-1 -1 1 1;
#X text 70 64 include standard extra folder in pd-vanilla;
#X text 47 1219 audio osc;
#X obj 176 1208 select phasor~ cos~ osc~ tabwrite~ tabplay~ tabread~
tabread4~ tabosc4~ tabsend~ tabreceive~;
#X obj 173 1257 select vcf~ noise~ env~ hip~ lop~ bp~ biquad~ samphold~
print~ rpole~ rzero~ rzero_rev~ cpole~ czero~ czero_rev~;
#X obj 167 1314 select delwrite~ delread~ vd~ pd table inlet outlet
inlet~ outlet~;
#X text 41 1320 audio delay;
#X text 42 1333 subwindows;
#X text 41 1273 audio filters;
#X text 38 1370 data templates;
#X text 37 1387 accesing data;
#X text 53 1405 obsolete;
#X obj 187 1467 select bng tgl nbx vsl hsl vradio hradio vu cnv;
#X msg 557 1530 \$1;
#X obj 286 321 print;
#X obj 324 233 print;
#X obj 135 171 t s s;
#X msg 322 206 ---start-searching-\$1;
#X msg 287 295 ---end-searching--;
#X obj 227 1579 select expr expr~ fexpr~ rev3~ rev2~ rev1~ hilbert~
complex-mod~ sigmund~ pique lrshift~ loop~ fiddle~ choice bonk~;
#X obj 638 1437 r \$0-extra;
#X obj 489 1504 spigot;
#X obj 555 1505 spigot;
#X obj 642 1671 print;
#X msg 646 1645 \$1;
#X obj 633 1466 == 0;
#X obj 408 380 loadbang;
#X msg 408 407 1;
#X obj 410 434 s \$0-rextra;
#X text 74 26 open pd-file;
#X obj 125 115 r \$0-start;
#X obj 165 1071 select +~ -~ *~ /~ max~ min~ clip~ q8_rsqrt~ q8_sqrt~
wrap~ fft~ ifft~ rfft~ rifft~ framp~ mtof~ ftom~ rmstodb~ dbtorms~
rmstopow~ powtorms~ sqrt~ rsqrt~;
#X obj 172 848 select + - * / pow == !=   = = | || %
mtof powtodb rmstodb ftom dbtopow dbtorms mod div sin cos tan atan
atan2 sqrt log exp abs random max min clip;
#X symbolatom 25 463 10 0 0 0 - - -;
#X obj 29 398 print one;
#X text 18 446 controle test;
#X obj 248 523 select list;
#X msg 247 550 1;
#X msg 293 553 0;
#X obj 248 624 spigot;
#X obj 203 590 == 0;
#X obj 159 620 spigot;
#X obj 200 454 t b a a;
#X obj 171 654 list split 1;
#X obj 301 649 list split 2;
#X obj 333 675 list split 1;
#X obj 689 763 print;
#X obj 380 706 select split append prepend trim length;
#X msg 693 737 list \$1;
#X text 265 146 !!objects like [\$1 \$2] or [2];
#X text 363 508 filter out the list objects (2 words!);
#X obj 176 1367 select struct drawcurve filledcurve drawpolygon filledpolygon
plot drawnumber pointer get set element getsize setsize sublist namecanvas
template;
#X obj 181 1424 select b f i s r t sel del v r~ s~;
#X connect 0 0 47 0;
#X connect 1 0 3 0;
#X connect 1 1 49 0;
#X connect 2 0 1 0;
#X connect 3 0 13 0;
#X connect 3 1 4 0;
#X connect 4 0 5 0;
#X connect 6 0 7 0;
#X connect 7 0 1 0;
#X connect 8 0 9 0;
#X connect 10 1 73 0;
#X connect 13 0 10 0;
#X connect 13 1 8 0;
#X connect 15 0 67 0;
#X connect 16 26 63 0;
#X connect 18 17 20 0;
#X connect 20 4 23 0;
#X connect 23 14 62 0;
#X connect 26 18 34 0;
#X connect 34 10 35 0;
#X connect 35 15 36 0;
#X connect 36 9 82 0;
#X connect 43 9 52 

Re: [PD] Size of a table

2008-06-11 Thread Hans Roels

Apart from [soundfiler] I use this trick to get the size of any array 
(audio or data) in pd vanilla:
(array1 = the name of an example array)

bang
|
[expr size(array1)]
|
print

or replace the expr with [expr size($s2)] and connect a message 
[symbol array1( to the second inlet of this expr object

hans r

At 09:38 11/06/2008, you wrote:
On Wed, Jun 11, 2008 at 10:03:28AM +0200, IOhannes m zmoelnig wrote:
  raul diaz wrote:
  I have a dumb question. What's the best way to get the size of a table?
  Sometimes I load a lot of samples on tables with soundfiler and I would
  like to take the size of each sample as a variable in order to use it
  with phasor + tabread4~.
  Is there any object which gets the size of a table?
 
  well i have a dumb answer: why not use the length output of [soundfiler]?
 
  i think that in this case the philosophy of Pd his, that there are 2
  ways to change the length of a table: do it interactively (e.g. create a
  [table bla 1024] or do it programmatically (e.g. via [; bla resize 216()
  in the first case the author of the software is responsible for using
  (e.g. hardcoding) the right table-size throughout there patch, in the
  latter case you could just listen to these programmatical changes).
  tables suddenly changing there size are beyond Pd :-)

There is one situation I have encountered where it would be useful to
have a built in [arraysize]. In some of the s-abstractions such as
[s-samplepiece~] you have to pass in the table name that you'd like the
abstraction to use. This means that at some point the user loads some
audio data into the named table (for example using [s-loader~]) and they
then know the sample table size. When they create the [s-samplepiece~]
playback abstraction they must manually enter the array size as one of
the arguments to the abstraction, along with the table name.
Inefficient.

Best,

Chris.

---
http://mccormick.cx

___
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] spaces in search path of batch file

2008-04-11 Thread Hans Roels
hello,

If I fill in a name with spaces like  C:/Program Files/pd/patch/own 
in the search path in the File  Path menu of PD, this works well. If 
I use the same name in a batch file (-path  C:/Program 
Files/pd/patch/own) this doesn't work and after trying this, I can 
only see C:/Program in File  Path menu of PD. I guess the spaces are 
the problem. It seems that the old 'spaces' bug in the menu search 
path has been solved but not in batch files? Is this still a bug or 
am I making a mistake somewhere?
I don't want to use the relative path name, I know how that works.
I tested this in PD vanilla 0.40.2 and 0.41.2 (windows xp)

Hans r


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


[PD] bat path

2008-04-07 Thread Hans Roels
hello,

I have a question about starting pd from a batch file on windows 
(xp). For example I have a folder called 'abunch' with a file 
'slice'. I add this folder in the .bat file:
-path ../patch/own/les/abunch

When I start pd from this batch file and open a new file, and try to 
load the object 'slice', pd can't find this.

If I add this same ../patch/own/les/abunch in the pd main window 
under File  path, press save settings and restart PD, I can load 
this 'slice' object in a new file without problems.

What's the difference? What I see in the PD main window under path is 
two times exactly the same!!!

(I'm using 0.40.2)

Hans r


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


Re: [PD] conflict between PD and tascam us-122

2008-03-17 Thread Hans Roels
You can change the blocksize in the menu File  startup  startup 
flags(in windows; in Mac it's under preferences if I remember well). 
Type something like
-audiobuf 20 -blocksize 256  Then press 'save settings' and close and 
restart PD.
20 is the latency or audio buffer and 256 is the blocksize.  Try out 
64, 128 or 256 as blocksize and try out different values for the 
audio buffer (depending on your audiocard and computer)

best hans r

At 14:06 17/03/2008, you wrote:
Hi,
first of all thanks.
i know how to change the latency in PD and Tascam. but i can't find
the blocksize.
where is it?
i found this http://crca.ucsd.edu/~msp/Pd_documentation/x3.htm
but i can't find how to change it
sorry about this.

best
s


On 17 Mar 2008, at 09:52, Hans Roels wrote:

Hello,
I had a problem with the Tascam us-122L and I solved it by changing
the blocksize and the latency. I wrote this in the startup settings:
-audiobuf 20 -blocksize 256

I am using several of these cards in a school and they work more or
less (with apple os 10.3.9) but I have to start the computer
without the audio card attached ! (and even then the midi in
sometimes suddenly stops). PD and Audacity work well but using the
tascam as the standard audio card (for example to play a cd on
these computers) never works...

Hans r

At 20:51 16/03/2008, Stefano Tedesco wrote:
Hi,
I'm having problem between PD and the audio interface Tascam us-122.
There is some kind of conflict. It works fine without the audio
interface but when I plug the interface, the sounds comes out like
some kind of buffering...don't know what...just on and off, instead
without it it works fine. I've tried to set the latency as I've been
told but nothing...still have problems.

Anyone had the same problem and how did he fix it? or suggestions?

Thank you very much
Stefano

___
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] mac tascam glitches

2007-12-25 Thread Hans Roels
Hello,

Does anyone have some experience with the tascam US-122L soundcard 
and PD. I'm trying it on a mac computer (OS X 10.3.9) with PD-vanilla 
(40.2) and I always hear glitches. The soundcard works fine with 
Audacity on that same computer. Changing the latency doesn't help. I 
can hear the glitches (without turning the audio on!) from the moment 
PD is launched and I chose the tascam audio-card in the audio 
settings.  It also didn't help to start PD with the -noadc flag, the 
'crackles' were still there.
I am not used to working on apple-computers,  I hope someone has a 
solution for this problem...

Hans r


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


Re: [PD] open recent

2007-12-04 Thread Hans Roels
I also think this would be a simple but very handy tool, (also in 
pd-vanilla...), at this moment I always have to 'navigate' a lot to 
open files...

hans r

At 20:11 3/12/2007, you wrote:

Donno, I haven't looked into it.  It's possible, of course.

.hc

On Dec 3, 2007, at 12:24 PM, marius schebella wrote:

  hi (hans),
  I wonder how difficult it would be to add an open recent menu to the
  menubar?
  marius.
 
  ___
  PD-list@iem.at mailing list
  UNSUBSCRIBE and account-management - http://lists.puredata.info/
  listinfo/pd-list






Mistrust authority - promote decentralization.  - the hacker ethic



___
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] minimize mac

2007-11-02 Thread Hans Roels
hello,
I am used to a windows computer but I have to work on Mac (OS X 
10.3.9) with PD-vanilla (40.2) installed. Often I can't scroll to the 
bottom of a big pd-patch, what is the trick to see every part of a 
patch in Mac? can you minimize or maximize the windows in PD on Mac? 
I tried command + M and these kind of tricks but nothing works, PD 
also doensn't have a - or + button in the title bar to 
minimize/maximize the window.
I guess there must be a special Mac-trick to solve this... it's very 
annoying now!

hans r

  


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


Re: [PD] minimize mac

2007-11-02 Thread Hans Roels
At 14:16 2/11/2007, you wrote:
hi,
one possibility is, to open the patch with a texteditor
and edit the first line
the 5 numbers are offset x/y, size x/y, fontsize.
#N canvas 20 20 800 600 10;
marius.

Great, this works! but wouldn't this be possible with 'dynamic 
patching'? In that case I wouldn't have to open an other program and 
I can change it from within PD.

This works from within any patch (to create a new patch dynamically):
[;
pd filename newpatch.pd C:/;
#N canvas 20 10 800 500 10;
#X pop 1(
|
[send pd-newpatch.pd]

...and this new patch has the right window size.

But if you want to change the size of the windows of the patch (f.e. 
'thispatch.pd') you are in, this doesn't work:
[;
#N canvas 20 100 500 300 10(
|
[send pd-thispatch.pd]

Anybody knows the right message? (I also tried 'relocate' - I found 
this in the CVS)


hard off wrote:
  i feel your pain mate,
 
  i have a mac, and sometimes i get other people's patches, and the
  bottom corner of the patch goes below the bottom of the screen and it
  is impossible to resize.
 
  the workaround i use is to copy the entire patch into a new window and
  'save as'
 
  if there is a real solution, then i have never heard about it, but i
  have my doubts that it can be fixed with the current way pd is
  implemented.
 
  ___
  PD-list@iem.at mailing list
  UNSUBSCRIBE and account-management - 
 http://lists.puredata.info/listinfo/pd-list
 


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


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


[PD] repertory for amateurs

2007-10-22 Thread Hans Roels
Hello,

I am teaching electronic music to a group of teenagers (minimum age 
15 years)in a music school in Belgium and I mainly use PD for this. 
We play improvisations and I write some pieces but i am also looking 
for compositions that I can use.
So these are my two questions:
- Has anybody made some pieces with electronics that I could use? or 
do you know pieces like this? I guess there are some composers in 
this list. If there are parts for acoustic instruments, these can't 
be too difficult (most of these teenagers have been playing an 
instrument since they were 9 years old). No Ferneyhough pieces please :)
- If anyone would like to make a piece for any combination of 
instruments and/or electronics (no more than 4 computer performers 
simultaneously), please do so! Again: if you also want to involve an 
acoustic instrument, take care that it is playable for an amateur. 
Let me know if you are interested and I 'll give you some more details.

I would like to make a kind of PD repertory project but with 
live-electronic pieces for amateurs and/or children. The only pieces 
that I can use at the moment are pieces of Alvin Lucier, Somei Satoh, 
Daniel Goode,...

hans r


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


Re: [PD] pyext~

2007-10-16 Thread Hans Roels
Hello Thomas,

I'd like to ask a related question: is it possible to use the SndObj 
library via pyext~ (via the python module for SndObj)? I never tried 
it because signal processing with pyext is too inefficient, am i right?

... and thanks a lot for all the work on pyext, it's really a very 
handy tool, I use it a lot!

Hans r

At 16:02 14/10/2007, you wrote:
Hallo Thomas !

  Signal support for py/pyext is really experimental and i don't recommend
  it at all, since it's also inefficient cpu-wise.

I am just curious: what is so slow ?
(I did not look into the source ...)

I use also python for offline computation (not with pd yet) and it is
quite fast - so is the interface to pd the problem ?

LG
Georg

___
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] translations for pdpedia templates Nederlands

2007-10-15 Thread Hans Roels
Hi Tim,

Ik ben langzaamaan alle help-patchen van Pd-vanilla in het nederlands 
aan het vertalen (voor mijn leerlingen), je kan die patch hier vinden:

http://home.versateladsl.be/hanstine/hans/help-intro-nl.pd

Ik pas dat bestand dan wel aan zodat we dezelfde vertaling/termen 
gebruiken, ik wil wel helpen met de vertalingen op pd-pedia.

groeten, hans

At 16:52 10/10/2007, you wrote:
Hi Kristof,

  (tried to send this an hour ago, but seems like it didn't get through.
  sorry if you receive it twice)
 
I have this too with pd-list, sometimes it takes more than an hour for
my mail to appear.
 
   $arguments = argumenten;
 
  maybe parameters is better here. if i hear argumenten in Dutch i
  rather think of arguments like in a discussion

I'm not sure about that, because not all 'parameters' can be given as
creation arguments.
For example: afaik an [phasor~] can get its frequency from an argument,
but the phase is a parameter that can only be set from its right inlet.
To me, 'parameters' also includes things that can only be set via inlets
while 'argumenten' is more specificaly the stuff you can put in an
object box to the right of the object name.
The 'discussie' metaphor is not so wrong: you say 'this object should
exist' and as arguments you can say more specifically how and why...just
like when you have an 'argument' over something.
But that's just my idea...
My vote is to let the entry $arguments = argumenten;  as is below,
feel free to adapt.

   $messages = berichten;   // could be 'boodschappen' too, but that
   sounds a bit wierd to me, as that also means 'arrands'.
 
  i think berichten definitely sounds better
 
   $dependencies = vereisten; // translated freely as
   'requirements' here, maybe there's a better word but it doesnt
   spring to mind now
 
  if i read vereisten in Dutch i wouldn't think of dependencies the
  way it's used in computer programming. maybe the literal translation
  afhankelijkheden? sounds a bit ugly but i think it's more clear
 
   $releaseDate = uitgebrachtOp;// or 'gepubliceerdOp' ? or
   'vrijgegevenOp? or
 
  datum van uitgave ? - i think it's better to stick to a noun..

# wikipedia terms
$stub = Beginnetje;
$template = Sjabloon;
$category = Categorie;
$infobox = Infobox;

# pdpedia terms
$objectclass = Objectklasse;

# page headers
$inlets = Ingangen;
$outlets = Uitgangen;
$arguments = Argumenten;
$messages = Berichten;

# infobox
$name = Naam;
$description = Beschrijving;
$abbreviation = Afkorting;
$library = Bibliotheek;
$author = Auteur;
$developer = Ontwikkelaar;
$releaseVersion = Versie;
$releaseDate = Datum van uitgave;//  too bad 'uitgavedatum' 
isn't in the dictionary...or is mine incomplete ?
$dependencies = Afhankelijkheden;
$license = Licentie;
$website = Website;
$programmingLanguage = Programmeertaal;
$platform = Platform;
$operatingSystem = Besturingssysteem;
$language = Taal;
$dataType = Data type;
$distributions = Distributies;

Tim

___
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] dutch pd tutorials

2007-08-19 Thread Hans Roels
Hello,

I've got some questions for the Dutch-speaking pd-users in Belgium 
and the Netherlands :

Heeft er iemand documentatie over PD in het nederlands vertaald? vb 
de documentatie-patches, manual, tutorials, materiaal van workshops 
of andere dingen... Vanaf september ga ik in mijn lessen aan de 
muziekschool (vooral voor tieners, maar een deel volwassenen) PD 
gebruiken en daarom wil ik eerst kijken wat er al is, voor ik zelf 
dingen begin te vertalen.

Hans r.



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