Re: [PD] convert an audio signal to floats at single audio sample precision

2022-10-15 Thread tim vets
[pix_sig2pix~] any good?

On Sat, Oct 15, 2022 at 6:08 PM Derek Holzer  wrote:

> Dear list,
>
> I am trying to convert an audio signal into a series of floats. I
> would like to do this for every sample in the audio signal, however
> the closest I can get using a variety of techniques is in blocks of 64
> samples. I have tried snapshot with a metro set at 1 sample intervals.
> I have also tried using tabsend to write the audio to a table and then
> read it back at a rate of one sample at a time, using the timer object
> set to an interval of 1 sample and a block~ object to rest it at the
> end of every DSP block. I cannot get to single sample accuracy either
> way. How else could I try?
>
> Why do I need this? Well I am using Gem's pix_data to get a new
> brightness value from its frame buffer for every sample in the audio
> signal, however pix_data only responds to messages. So alternately, I
> would be very interested if someone wanted to modify pix_data to
> respond to audio signals.
>
> Thank you for your kind attention,
> Derek
>
>
>
> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
> https://lists.puredata.info/listinfo/pd-list
>
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


[PD] Fwd: soundfiler read with offset?

2020-08-14 Thread tim vets
-- Forwarded message -
Van: tim vets 
Date: za 15 aug. 2020 om 01:56
Subject: Re: [PD] soundfiler read with offset?
To: Christof Ressi 


Thanks for your suggestion,
I haven't tried it out yet, but it looks like a good solution...
Tim

Op do 13 aug. 2020 om 03:38 schreef Christof Ressi :

> Right now this is not possible, but it would be a nice feature. Please
> make a feature request on GitHub!
>
> In the meantime there's a simple (but inefficient) workaround: read the
> soundfile into a different array and then copy it over with [array get] /
> [array set].
>
> Christof
> On 13.08.2020 02:09, tim vets wrote:
>
> Is there a possibility with [soundfiler] to load a sound file into a table
> at an offset?
> Say I want to load one sound into the first half of a table
> and a different one into the second half...?
> Thank you!
> Tim
>
> ___pd-l...@lists.iem.at mailing 
> list
> UNSUBSCRIBE and account-management -> 
> https://lists.puredata.info/listinfo/pd-list
>
> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
> https://lists.puredata.info/listinfo/pd-list
>
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


[PD] soundfiler read with offset?

2020-08-12 Thread tim vets
Is there a possibility with [soundfiler] to load a sound file into a table
at an offset?
Say I want to load one sound into the first half of a table
and a different one into the second half...?
Thank you!
Tim
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] clone vs. dynamic patching

2020-01-18 Thread tim vets
Op za 18 jan. 2020 om 18:03 schreef Christof Ressi :

> I always use [clone] when I need several instances of an abstraction.
> Dynamic patching is a hack and shouldn't be used anymore for this purpose.
>
> Is there a way to make other kinds of structures inside [clone] though?
Two abstractions a and b for example, with the output of a connected to b
and b connected to [clone]s outlet,
rather than having parallel copies of one abstraction...?

> one feature badly missing is the possibility ta allocate dynamic "voice"
> > (or "instance") numbers (i.e. how many instances of an abstraction are
> > created).
>
> That would be useful and it's actually on my to-do-list :-). But usually I
> just allocate the max. number of instances I need and simply "disable"
> instances I don't need. I think this is generally the better approach for
> cloned DSP objects (using [switch~], because dynamically changing the
> number of voices wouldn't be realtime safe anyway...
>
> Christof
>
> > Gesendet: Samstag, 18. Januar 2020 um 16:46 Uhr
> > Von: "oliver" 
> > An: Pd-List 
> > Betreff: Re: [PD] clone vs. dynamic patching
> >
> > João Pais wrote:
> > > Hello list,
> > >
> > > I didn't try clone yet, I always worked with dynamic patching for
> > > similar issues. For those who are knowledgeable, I would like to ask:
> is
> > > there any advantage of clone against dynamic patching when using the
> > > same circuit, or is it the same?
> > > This pertains to patches working on both control and signal
> input/output.
> > >
> >
> > if you are familiar with MAX:
> >
> > [clone] is nearly the same as [poly~]
> >
> > one feature badly missing is the possibility ta allocate dynamic "voice"
> > (or "instance") numbers (i.e. how many instances of an abstraction are
> > created). i hope miller has plans to implement this in the future.
> >
> > right now, all you can do is a combination of using [clone] and dynamic
> > patching if you want to change the number of instances on the fly
> > (destroy the old clone object and re-create it with new arguments with
> > PD messages).
> >
> > i used [clone] on several occasions and find it extremely useful, as you
> > can directly edit the original source and see the results (as opposed to
> > MAX).
> >
> > i would say the best use case is a situation, where you need let's say
> > 10 or more copies of a patch (i.e. for parameter organisation,
> > oscillator banks etc...). basically it's the same as creating multiple
> > abstractions where you do the message routing internally with a creation
> > argument
> >
> > [abs 1]
> > [abs 2]
> > [abs 3]
> > [abs 4] etc...
> >
> > so, no - there's no direct ADVANTAGE over dynamic patching but in
> > general i think it's the better and clearer concept
> >
> > best
> >
> > oliver
> >
> >
> >
> > ___
> > Pd-list@lists.iem.at mailing list
> > UNSUBSCRIBE and account-management ->
> https://lists.puredata.info/listinfo/pd-list
> >
>
>
>
> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
> https://lists.puredata.info/listinfo/pd-list
>
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] What's the easiest way to cut various symbols to a fixed length?

2019-11-12 Thread tim vets
how about [list fromsymbol], [list split] and [list tosymbol]?

On Tue, Nov 12, 2019, 18:15 Winfried Ritsch  wrote:

> my solutions, they are in the acre library and needs zexy.
>
> mfg winfried
>
> Am Dienstag, 12. November 2019, 17:56:57 CET schrieb Ingo:
> > What's the easiest way to cut various symbols to a fixed length?
> >
> > With or without externals.
> >
> >
> >
> > I need to cut names to fit a LCD display.
> >
> >
> >
> > Thank you
> >
> > Ingo
>
>
> --
> Ritsch, Winfried, Ao.Univ.Prof. Dipl.-Ing.
> Institut 17 Elektronische Musik und Akustik
> Inffeldgasse 10/III,8010 Graz, Austria
> E-Mail: rit...@iem.at  - http://iem.at/~ritsch - mobil
> ++436642439369___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
> https://lists.puredata.info/listinfo/pd-list
>
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


[PD] pylibpd: buffer size?

2019-10-18 Thread tim vets
Hello,
Thanks for developing libpd, it's looking awesome.
My patch is running fine, (ubuntu 18.10 / pylibpd, pyaudio)
but I can't seem to get rid of crackles.
Can someone point me to documentation or even better
an example of how to set a larger buffer, or any other way to improve
performance?
Latency is not a priority...
thank you!
Tim
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


[PD] is GEM alive?

2019-08-16 Thread tim vets
It's been a while since I used Gem,
but in the past weeks I tried running it a few times without success.
(Pd0.49 as well as the latest and greatest 0.5)
Trying to compile from source I'm stuck at:

In file included from TextBaseFTGL.cpp:24:0:
TextBase.h:39:12: fatal error: FTFont.h: No such file or directory
 #  include "FTFont.h"
^~
compilation terminated.

I couldn't find the information I need to overcome this so far...

I also noticed that [gemwin] has been replaced with an abstraction saying
"meant as a modular replacement for the internal [gemwin]
TODO: quite everything"

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


Re: [PD] Ganged Toggle?

2018-04-28 Thread tim vets
If I understood you correctly, this is how I would do it.

[r gang]
|
[set $1(
|
[tgl]
|
[s gang]

You can then copy as many of these as you like, and [r gang] will receive 0
or 1 once each time you click either of the toggles.
gr,
Tim


2018-04-28 6:57 GMT+02:00 William Huston :

> I'm trying to make a Ganged Toggle.
> (but this also could apply to other graphical elements
> like hsl or vsl etc)
>
> I want to have #1 little orange [tgl] inside the
> graph-on-parent control window,
> and have a similar #2 little orange [tgl] inside the patch.
>
> I want to be able to click on either one. This
> should trigger a state change in the other.
>
> I want them to function as one logical element,
> with two different gui locations.
>
> Right now, let's say I set both [tgl]'s
> to both send and receive on $0-FOO.
>
> This seems to work, as both GUI elements
> track as I would expect.
>
> However, if we name the master as being the one that I click,
> then I see that *the slave tgl does not transmit on its outlet.*
>
> *This seems like a bug to me. *
>
> If this is expected behavior, or a necessary limitation, or
> a bad practice
>
> then how else can I accomplish a "Ganged Toggle"
> (e.g. could be hsl, etc.) with minimal logic?
>
> Thanks
> BH
>
>
>
> --
> William Huston:  williamahus...@gmail.com
> Binghamton NY
>
> *Public Service Mapping / Videography / Research*
> Blog  -- Facebook
>  -- Twitter
> -- Youtube
> 
> Document collections: VirtualPipelines
>  -- BHDCSDimockArchive
> 
> Please support my work: TinyURL.com/DonateToBillHuston
>
>
>
> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> https://lists.puredata.info/
> listinfo/pd-list
>
>
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


[PD] Fwd: Re: simulating mouse clicks from PureData

2018-03-17 Thread tim vets
[shell] and xdotool on Linux

On Mar 16, 2018 4:04 PM, "Max"  wrote:

> long time ago I've used popen and cliclick [1] on OS X to do this.
> Don't know of similar tools fo other OSes, they might exist.
>
> [1] https://www.bluem.net/en/projects/cliclick/
>
>
> On 16.03.2018 15:11, Csaba Láng wrote:
>
>> Dear list,
>>
>> is it possible to send out mouse clicks from PD to a webpage for example?
>> Means telling the system the x and y positions of the mouse and a click
>> on this position?
>>
>> Best,
>>
>> Popesz
>>
>>
>> ___
>> Pd-list@lists.iem.at mailing list
>> UNSUBSCRIBE and account-management -> https://lists.puredata.info/li
>> stinfo/pd-list
>>
>>
>
> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> https://lists.puredata.info/li
> stinfo/pd-list
>
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] write tempo change with [midifile]?

2018-02-10 Thread tim vets
I seem to be getting closer
[255 81 3 $1 $2 $3( seems to do the trick, (the 3 was necessary to
designate the 3 following bytes...)
still not sure why [255 81 3 7 161 32( does not result in 120bpm but
"120qpm" and 80bpm...
gr,
Tim


2018-02-10 19:18 GMT+01:00 tim vets <timv...@gmail.com>:

> Hello,
> I've been looking into writing out midi using mrpeach's [midifile].
> Now I'm trying to write a tempo change message into the midi file.
> So far I figured out that the message format should be "FF 51 tt tt tt".
> (e.g. as described here http://www.deluge.co/?q=midi-tempo-bpm )
> I'm not sure though, how to translate that into a message that [midifile]
> can accept to correctly write the tempo change into the file.
> I tried a few variations, like [255 81 50( (for 120bpm)
> or by first changing the 50 into three hexadecimal bytes, and then
> turn those into 3 floats
> [255 81 7 51 0(
> but all I get is extremely low tempi when I import that midifile into a
> DAW (I seem to get the most informative results with Rosegarden)
> Any ideas?
> thanks!
> Tim
>
>
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


[PD] write tempo change with [midifile]?

2018-02-10 Thread tim vets
Hello,
I've been looking into writing out midi using mrpeach's [midifile].
Now I'm trying to write a tempo change message into the midi file.
So far I figured out that the message format should be "FF 51 tt tt tt".
(e.g. as described here http://www.deluge.co/?q=midi-tempo-bpm )
I'm not sure though, how to translate that into a message that [midifile]
can accept to correctly write the tempo change into the file.
I tried a few variations, like [255 81 50( (for 120bpm)
or by first changing the 50 into three hexadecimal bytes, and then turn
those into 3 floats
[255 81 7 51 0(
but all I get is extremely low tempi when I import that midifile into a DAW
(I seem to get the most informative results with Rosegarden)
Any ideas?
thanks!
Tim
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] max value of last n samples

2018-02-02 Thread tim vets
is this any good?
[ fexpr~ if($x1[0]>$y1[-1], $x1[0], $y1[-1]) ]
not sure how to reset it though...
gr,
Tim


2018-02-02 15:58 GMT+01:00 martin brinkmann :

> On 02/02/18 14:52, Roman Haefeli wrote:
> > Can this be done in vanilla? I'd like to output the maximum value of
> > the last N input samples in the signal domain. Ideally N would be
> > adjustable.
>
> i have used cascaded samphold~ objects in a similar situation.
> though n is not exactly adjustable this way...
>
> for bigger n (> blocksize) the bang~/tabread-solution is probably better.
>
>
> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> https://lists.puredata.info/
> listinfo/pd-list
>
>
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] declare vs. namespaces - current best practice

2018-01-04 Thread tim vets
On Jan 3, 2018 10:24 PM, "Derek Kwan"  wrote:

"Christof Ressi"  writes:

>> and usually involves sort of prefixing or suffixing for every
>> abstraction/external.
>
> I've also done this in the past.
> namespacing by prepending the folder name has one advantage, though:
> it provides you the possibility to choose between the long (safe) and
> short (unsafe) name. short names are convenient in rapid prototyping
> while long names are preferable if things ought to be robust.
>
> but after all, it's a matter of taste I guess.
>

Interesting. I suppose this makes me think about more robust and defined
examples of namespacing. Taking python for instance where you can import
modules with shorter names with something like "import numpy as np" so
you can just type "np.array" instead of "numpy.array" each time or you
have the option to dump everything into the  global namespace which is
similar to the situation we have currently of just importing the path or
compiled library wholesale through "from numpy import *".

I'd imagine that implementing a system like this in Pd would be very^999 far
from trivial to implement, cause more confusion to the general end-user
than it's worth it just because users like me don't want to type
[cyclone/*] out every time (and there is already enough confusion about
not being able to instantiate anything in Gem/zexy/cyclone/etc.  even though
they've already installed them onto their computers), and probably break
everything which would be a huge no-no. but it is
interesting to think about =P.

Derek


maybe I'm stretching the topic here, but, how about tab-completion?


--
Derek Kwan
www.derekxkwan.com

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


Re: [PD] Vocal synthesis controlled by Pd

2017-12-16 Thread tim vets
Maybe flite?
https://github.com/pd-l2ork/pd/tree/master/externals/moocow/flite
I think there was another one too, but I can't remember what it was called
at the moment.
Also it probably won't sound very realistic (at least it didn't when I
tried it a while ago).
gr,
Tim

2017-12-16 14:26 GMT+01:00 João Pais :

> Hello list,
>
> I'm looking around, does anyone have a suggestion for a vocal synthesis
> software that can be controlled by Pd? (either by direct or less-direct
> means such as through a console)
> The purpose would be to produce a realistic output of some texts typed in
> Pd, hopefully in different pronunciations and languages.
>
> Ideally a solution that would work in any OS would be good, but preferably
> for unix or osX.
>
> Best,
>
> jmmmp
>
> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> https://lists.puredata.info/li
> stinfo/pd-list
>
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Print a big patch

2016-03-25 Thread tim vets
I think patch2svg-plugin.tcl may help you with that
( https://github.com/iem-projects/patch2svg-plugin )

2016-03-25 2:44 GMT+01:00 Jack :

> Salut Olivier,
>
> I guess you work with linux.
> I think is doable with 'xvfb' (with which you can create a virtual
> screen of any size) and the imagemagick 'import' tool (with which you
> can take a snapshot of your virtual screen).
> ++
>
> Jack
>
>
>
> Le 24/03/2016 23:57, Olivier Baudu a écrit :
> > Hi list,
> >
> > I try to find a way to edit graphically and print a big patch (which is
> > in a single window)
> > I know it's possible to save it in post-script file and open it in
> > vector graphic editor but this way only save the part visible on the
> > screen (a part of this part to be exact).
> >
> > Is there a way to get the whole patch in one file to be graphically edit
> ?
> >
> > Thank you.
> >
> > °1ivier
> >
> >
> >
> > ___
> > Pd-list@lists.iem.at mailing list
> > UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
> >
>
>
>
> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
>
>
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] pd for c.h.i.p.

2016-01-19 Thread tim vets
it seems there is:
https://chip.hackster.io/11802/c-h-i-p-midi-arpeggiating-synth-e311ab?ref=similar_id=15019=0

2016-01-19 19:04 GMT+01:00 Alexandre Torres Porres :

> hi, I'm getting my c.h.i.p. in the mail today, anybody else is checking
> this new board?
>
>
> https://www.kickstarter.com/projects/1598272670/chip-the-worlds-first-9-computer
>
> My greatest interest is, of course, installing Pd in it, I wonder if
> anyone else is compiling Pd for it and if there are plans to offer a
> compiled version for its system
>
> thanks
>
> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
>
>
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Move a file from within Pd?

2015-04-27 Thread tim vets
[shell] or [popen] ?
On 28 Apr 2015 00:47, Jamie Bullock ja...@jamiebullock.com wrote:

 Can anyone suggest a way to move a file in the user's filesystem from
 within Pd without loading it into memory?

 My use case is that I am using [writesf~] to record audio to disk, and I
 want to allow users to “save” the audio file to somewhere else. Clearly the
 audio could be very large, so I want to avoid using soundfiler to read into
 memory and then write back out again. This is from an application that uses
 Pd as a backend so expecting the user to manually move the file is not an
 option.

 Any solutions (including use of externals) welcome.

 Thanks.

 Jamie



 --
 http://jamiebullock.com
 @jamiebullock http://twitter.com/jamiebullock

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


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


Re: [PD] converting audio pulses to bang

2015-04-20 Thread tim vets
2015-04-20 23:18 GMT+02:00 Charles Z Henry czhe...@gmail.com:

 On Mon, Apr 20, 2015 at 4:00 PM, tim vets timv...@gmail.com wrote:
 
  2015-04-18 16:00 GMT+02:00 Eric Lyon audiodid...@gmail.com:
 
  If you prefer to keep timing in the signal domain, I have several
 objects
  that work together to do this.
 
  http://disis.music.vt.edu/eric/LyonSoftware/Pd/LyonPotpourri/
 
 
  Hi Eric,
  This looks very nice.
  Some objects won't load on my system though
  /usr/lib/pd-extended/extra/lyonpp/adsr~.pd_linux: liblyonpotpourri.so:
  cannot open shared object file: No such file or directory

 Here, you should find the directory containing liblyonpotpourri.so and


uhm, where would that be?
(find ./ -iname 'lib*' returns only:
./lyonpotpourri-externals/osx/liblyonpotpourri.dylib')
gr,
Tim

add it to your LD_LIBRARY_PATH variable before starting Pd (or add
 this command in your ~/.bash_profile or ~/.bashrc script):

 export LD_LIBRARY_PATH=path:$LD_LIBRARY_PATH

  also arrayfilt~-help.pd throws:
  An operation on the array 'arrayfilt1' in the patch 'array-fft-block'
  failed since it uses garray_getfloatarray while running 64-bit!
  any idea?
  thanks,
  Tim
 
 
 
  You can read about how they work over here:
 
 
 http://disis.music.vt.edu/eric/LyonPapers/SampleAccurate-Lyon-ICMC2006.pdf
 
  HTH,
 
  Eric
 
 
  On Sat, Apr 18, 2015 at 6:00 AM, pd-list-requ...@lists.iem.at wrote:
 
  Send Pd-list mailing list submissions to
  pd-list@lists.iem.at
 
  To subscribe or unsubscribe via the World Wide Web, visit
  http://lists.puredata.info/listinfo/pd-list
  or, via email, send a message with subject or body 'help' to
  pd-list-requ...@lists.iem.at
 
  You can reach the person managing the list at
  pd-list-ow...@lists.iem.at
 
  When replying, please edit your Subject line so it is more specific
  than Re: Contents of Pd-list digest...
 
  Today's Topics:
 
 1. Re: converting audio pulses to bang (Alexandros Drymonitis)
 
 
  -- Forwarded message --
  From: Alexandros Drymonitis adr...@gmail.com
  To: Alexandre Torres Porres por...@gmail.com
  Cc: pd-list@lists.iem.at pd-list@lists.iem.at
  Date: Sat, 18 Apr 2015 09:30:52 +0300
  Subject: Re: [PD] converting audio pulses to bang
  Cant't you get bangs on attacks with [bonk~]? Or [threshold~]?
 
 
 
   On 18 Απρ 2015, at 07:55, Alexandre Torres Porres por...@gmail.com
   wrote:
  
   Hi folks, I've been recently using CV from modular synths to control
   Pd, and they do send audio pulses for controls (bangs in Pd).
  
   I know Supercollider usually trigger processes with pulse audios in a
   similar manner, by the way, but I digress. That is to say that Pd
 mostly
   deals with control bang messages.
  
   So, getting to the point. I've been using the usual audio to control
   conversion, but at every sample to be really accurate and right on
 the spot.
   So I'm using [vsnapshot~] with very fast metro bang to get values
 all the
   time.
  
   I just think that this method is a bit clumsy or complicated. Maybe
 it
   could be achieved more simply. Maybe there could be an external that
 could
   bang at the exact same time as the output of an object like
 [impulse~], or
   an on/off message (1, 0) according to the output of a [train~]
 object. You
   know what I mean?
  
   cheers
   ___
   Pd-list@lists.iem.at mailing list
   UNSUBSCRIBE and account-management -
   http://lists.puredata.info/listinfo/pd-list
 
 
 
  ___
  Pd-list mailing list
  Pd-list@lists.iem.at
  to manage your subscription (including un-subscription) see
  http://lists.puredata.info/listinfo/pd-list
 
 
 
  ___
  Pd-list@lists.iem.at mailing list
  UNSUBSCRIBE and account-management -
  http://lists.puredata.info/listinfo/pd-list
 
 
 
  ___
  Pd-list@lists.iem.at mailing list
  UNSUBSCRIBE and account-management -
  http://lists.puredata.info/listinfo/pd-list
 

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


Re: [PD] converting audio pulses to bang

2015-04-18 Thread tim vets
or [edge~] ?

2015-04-18 8:30 GMT+02:00 Alexandros Drymonitis adr...@gmail.com:

 Cant't you get bangs on attacks with [bonk~]? Or [threshold~]?



  On 18 Απρ 2015, at 07:55, Alexandre Torres Porres por...@gmail.com
 wrote:
 
  Hi folks, I've been recently using CV from modular synths to control Pd,
 and they do send audio pulses for controls (bangs in Pd).
 
  I know Supercollider usually trigger processes with pulse audios in a
 similar manner, by the way, but I digress. That is to say that Pd mostly
 deals with control bang messages.
 
  So, getting to the point. I've been using the usual audio to control
 conversion, but at every sample to be really accurate and right on the
 spot. So I'm using [vsnapshot~] with very fast metro bang to get values all
 the time.
 
  I just think that this method is a bit clumsy or complicated. Maybe it
 could be achieved more simply. Maybe there could be an external that could
 bang at the exact same time as the output of an object like [impulse~], or
 an on/off message (1, 0) according to the output of a [train~] object. You
 know what I mean?
 
  cheers
  ___
  Pd-list@lists.iem.at mailing list
  UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list

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

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


Re: [PD] pd in a eurorack modular system

2015-04-17 Thread tim vets
2015-04-15 0:57 GMT+02:00 Tilo Kremer p...@dadacafe.org:

 Hello,

  On Mon, Apr 13, 2015 at 8:01 PM, Peter P.
  peterpar...@fastmail.com wrote: * Pagano, Patrick
  p...@digitalworlds.ufl.edu [2015-04-13 19:53]:
  Hi
 
 
  I am building my first modualr system with a little grant
  money i got for research. For the first 1000$ i got a
  beginner Pittsburgh Modular system and one envelope module.
  FOr the second 1000$ to complete the grant i am considering

 you might be interested in the axoloti project:
 http://axoloti.be/

 while the board is not exactly in euro form factor it should be
 possible to include it into a modular setup (i am going to try
 exactly that as soon as i get a board)

 The board design allows the midi part to be cut off in order to fit
vertical mounting in Eurorack.
Mounting holes and solder holes are also provided to connect and mount the
midi part after separation.
For Eurorack connectivity, voltage levels for control voltage in- and
output must still be shifted from 0..3.3V to 10V externally and thus will
require some DIY work.
from
https://www.indiegogo.com/projects/axoloti-a-digital-audio-platform-for-makers#comments
gr,
Tim



 hth,

 tee

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

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


Re: [PD] Converting colours to sound

2015-04-07 Thread tim vets
Hi Claude,
Interesting stuff!
I triend to run your patch, but I get ./recog~: can't load library
(and pd seems to go into a watchdog: signaling pd... loop as soon as I
create the Gem window, don't know if that's related).
I can't find 'recog~' anywhere on my system.
hint welcome.
thanks,
Tim


2015-04-07 17:58 GMT+02:00 Claude Heiland-Allen cla...@mathr.co.uk:

 Hi Antonio,

 On 05/04/15 15:51, Antonio Roberts wrote:

 I've been studying the work of Neil Harbisson for awhile and I'm
 looking to try and replicate in part the functionality of his eyeborg
 using Pure Data. I have already built a simple patch to convert pixels
 to sound but now I want to expand on it. Here's my initial research:
 http://www.hellocatfood.com/sonification-studiespixel-waves/


 I predict the development of an image to audio sequencer in the near
 future.

 I made a painting program in gridflow years ago, had some very basic
 sonification - gridflow also had a how to play a car example converting a
 photo by scanlines into audio with FFT.

 https://archive.org/details/ClaudiusMaximus_-_Emulsion
 https://archive.org/details/ClaudiusMaximus_-_DohPaintII_Session_3
 https://archive.org/details/ClaudiusMaximus_-_DohPaintII_Session_2

  Colours don't directly relate to sound and so Harbisson and others
 must use a scale to assign colours to sounds. Some initial research
 brought these up:

 http://blogs.plos.org/neuroanthropology/files/2014/
 03/Harbisson-The-Sound-of-Colors-TED.jpg
 http://www.bbc.co.uk/news/magazine-16681630
 http://www.lunarplanner.com/Harmonics/planetary-harmonics.html
 http://www.flutopedia.com/sound_color.htm


 The last one, in the section Converting RGB Colors to Color Frequencies,
 makes a good point - monochromatic wavelength to RGB works fine, but RGB to
 wavelength is in general impossible, as colours are spectral power
 distributions over continuous wavelengths.  Once it's flattened to RGB, too
 much information is lost to be able to recreate the original spectrum (aka
 metamerism, where 2 different spectrum give same colour sensation).

 Recently I copy/pasted some colour-related stuff from Wikipedia into a
 booklet (second link is layed out for printing, first one is better for
 screen reading, both have the same content):

 http://mathr.co.uk/misc/2015-04-04_colour.pdf
 http://mathr.co.uk/misc/2015-04-04_colour_booklet.pdf

 The approaches you linked seem to convert wavelengths to colour in a
 straightforward way, but for converting from colour to sound I think a
 different approach would be better (and indeed needed) - something more
 akin to the Munsell perceptual colour system:

 https://en.wikipedia.org/wiki/Munsell_color_system

 a grossly simplified version would be HSV, which I used in the attached -
 a bank of vcf~ fed by noise~, mapping hue to scale note, value to loudness
 and pitch, and saturation to filter Q - so that white would give high
 noise, grey gives a lower pitch noise, black gives silence, fully-saturated
 dark green gives a low note, bright green gives a high pitch at the same
 scale note.  the filters glitch when the hue jumps from 0 red (orange side)
 to 1 red (purple side), could be fixed with some cleverness probably.




 Can anyone think of a way to translate this into pd? In the end I
 would like to be able to display a block of colour on screen and have
 that generate a specific note.

 Any help is appreciated.

 Antonio



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


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


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


Re: [PD] Parse/split symbol by delimiters like - or _ ?

2015-03-01 Thread tim vets
maybe using s2l ?
something (roughly) like:

[symbol drums_1.wav(
|[symbol _(
||
[s2l]
[unpack s s]
|
|[symbol .(
||
[s2l]
[unpack s s]
[f ]
|
[1\
gr,
Tim


2015-03-01 20:03 GMT+01:00 JF via Pd-list pd-list@lists.iem.at:

 Is it possible to split a formatted symbol such as...
 drums_1.wav
 ...to extract the float '1' and use that to assign a meaningful attribute?

 For example a float could represent a loop playback switch.
 if I have 'drums_0.wav' I would like to extract the float, find that it
 is '0' and then I would know that this WAV file is say, not to be looped.
 Or if I had 'drums_1.wav' I would be able to parse the filename, find the
 '1'
 which I now know to loop the WAV file.

 Thanks in advance! John

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


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


Re: [PD] Parse/split symbol by delimiters like - or _ ?

2015-03-01 Thread tim vets
sorry, in that example, the last [unpack s s] should probably be [unpack f
s]

2015-03-01 20:17 GMT+01:00 tim vets timv...@gmail.com:

 maybe using s2l ?
 something (roughly) like:

 [symbol drums_1.wav(
 |[symbol _(
 ||
 [s2l]
 [unpack s s]
 |
 |[symbol .(
 ||
 [s2l]
 [unpack s s]
 [f ]
 |
 [1\
 gr,
 Tim


 2015-03-01 20:03 GMT+01:00 JF via Pd-list pd-list@lists.iem.at:

 Is it possible to split a formatted symbol such as...
 drums_1.wav
 ...to extract the float '1' and use that to assign a meaningful attribute?

 For example a float could represent a loop playback switch.
 if I have 'drums_0.wav' I would like to extract the float, find that it
 is '0' and then I would know that this WAV file is say, not to be looped.
 Or if I had 'drums_1.wav' I would be able to parse the filename, find the
 '1'
 which I now know to loop the WAV file.

 Thanks in advance! John

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



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


Re: [PD] message box - text editing?

2014-09-28 Thread tim vets
2014-09-28 9:24 GMT+02:00 Richie Cyngler glitch...@gmail.com:

 Thanks IOhannes,

 Oops I forgot the open in the message box. Nice solution however we
 would still have to either have multiple hand written message boxes or
 manually edit a message box. Your patch would probably help accidentally
 overwriting files though.


 how about:

[0\
|
[makefilename take_%03d.wav]
|
[open $1, start(
|
[writesf~]

or, instead of just the numberbox, I like to use [time], [date], [l2s] and
[makefilename take_%s.wav]
that way you can be quite sure you'll have a unique filename each time.




 On Sun, Sep 28, 2014 at 5:12 PM, zmoel...@iem.at wrote:


 Quoting Miller Puckette m...@ucsd.edu:

  I can't remember when that disappeared - years ago.


 i think it was lost during the gui-rewrite.
 (the argument being, that this feature was mainly useful for Copy-Paste
 which - snce the rewrite - works within msg-boxes)

 fgmsdr
 IOhannes



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




 --

 www.glitchpop.com

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


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


Re: [PD] acid

2014-08-12 Thread tim vets
Hi (Present-)Chris,

I'd like to try out your patch,
$ git clone https://github.com/chr15m/pd-acid-core
$ cd pd-acid-core # otherwise fatal: Not a git repository (or any of the
parent directories): .git
$ git submodule init
$ git submodule update

Cloning into 'blockhead'...
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Clone of 'g...@github.com:chr15m/blockhead.git' into submodule path
'blockhead' failed

hints?
thanks!
Tim


2014-08-12 15:34 GMT+02:00 Chris McCormick ch...@mccormick.cx:

 Hi Past-me,

 Sorry it took me 12 and a bit years to get back to you on this, but you
 might find this useful in your quest to produce an acidy type sound:

 https://github.com/chr15m/pd-acid-core

 You can get it with git:

 $ git clone https://github.com/chr15m/pd-acid-core
 $ git submodule init
 $ git submodule update

 Then open `acid-core-help.pd` to see how to use it. Have fun!

 Best regards,

 Future-me.

 PS Mid-2014 you are out for an afternoon walk with the family on a
 hillside in Umbria. You decide to explore a small dirt road while they wait
 behind on the main road. When you are done exploring you turn around to
 head back to the main road. Duck.

 PPS I just realised Torvalds hasn't yet written git. I'll send you the tar
 file.

 PPSS Buy quite a lot of bitcoins.

 On Mon, Jun 17, 2002 at 02:07:31PM +0800, Chris McCormick wrote:
  Hi,
  Another question in a very general vein. I asked this on the Csound list
 a
  while back (when i was using csound) with good results.
  I'm trying to produce an acidy type sound (eg 303) and having trouble as
 my
  current saw-tooth-through-a-vcf just sounds pretty wimpy. Any ideas on
 how
  to fatten it up a bit? I'm not looking for a perfect reproduction of the
  303 sound, just a nice acid sound. Hints? Tips?
  Is there some place where people post interesting Pd patches they've
  created for others to download at try out? Should there be?
 
  Regards,
 
  Chris.
  __
  Chris McCormick - Systems Developer - PerthWeb Pty Ltd
  Internet Solutions for your business!
  Level 9/105 St George's Tc - Perth - Western Australia
  Ph: (08) 9226 1366 Fax: (08) 9226 1375
  Visit Perth online! : www.perthweb.com.au
  PGP Key = http://www.perthweb.com.au/~chris/public.txt
 
 ---
 http://mccormick.cx

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

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


Re: [PD] compile pd-0.45-5 on Linux with autogen.sh

2014-06-25 Thread tim vets via Pd-list
2014-06-24 19:15 GMT+02:00 Max via Pd-list pd-list@lists.iem.at:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 06/24/2014 07:01 PM, Miller Puckette wrote:
  HI all -
 
  I'm not sure, but the output your'e getting might mean that the
  thing succeeded.

 Indeed, following ./configure and make there is a binary in the
 directory src (sic!) but with two issues: 1. It failed to detect Jack,
 and 2. when I run this i get the following

 disabling real-time priority due to missing pd-watchdog
 (/home/pd-0.45-5/src/bin/pd-watchdog)
 Error in startup script: couldn't read file
 /home/pd-0.45-5/src/tcl//pd-gui.tcl: no such file or directory

  (Anyhow, to build Pd you also have the option to do something far
  simpler: cd to pd/src and make -f makefile.gnu)

 okay, I'm not lucky there either:

 make -f makefile.gnu
 cc -DPD -DHAVE_LIBDL -DHAVE_UNISTD_H -DHAVE_ALLOCA_H
 - -DPDGUIDIR=\tcl/\ -D_LARGEFILE64_SOURCE
 - -DINSTALL_PREFIX=\/usr/local\ -Wall -W -Wstrict-prototypes
 - -Wno-unused -Wno-unused-parameter -Wno-parentheses -Wno-switch
 - -DUSEAPI_ALSA -DUSEAPI_OSS -O3 -ffast-math -funroll-loops
 - -fomit-frame-pointer -fno-strict-aliasing   -c -o
 ../obj/s_audio_alsa.o s_audio_alsa.c
 s_audio_alsa.c:11:28: fatal error: alsa/asoundlib.h: No such file or
 directory
  #include alsa/asoundlib.h
 ^
 compilation terminated.
 make: *** [s_audio_alsa.o] Error 1


sudo apt-get install libasound2-dev
worked for me.
gr,
Tim



 Cheers
 Max

 
  cheers Miller
 
  On Tue, Jun 24, 2014 at 03:50:09PM +0200, Max via Pd-list wrote: Hi
  list,
 
  trying to use the autogen.sh on Linux Mint 17, I get this:
 
 
  ./autogen.sh autoreconf: Entering directory `.'
 ()

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1
 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

 iEYEARECAAYFAlOpshYACgkQ3EB7kzgMM6IRfACeNIMlfNoWZmoeg9cYJZc3wTyo
 hDwAn1qw3AvSECQetHfkBJWPSoSpXfHT
 =zK6y
 -END PGP SIGNATURE-

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

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