Re: [PD] trying to track down a bug: Pd-extended 0.43-1 beta on Oneric 32 bit

2012-04-21 Thread IOhannes m zmoelnig
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 2012-04-16 20:44, John Harrison wrote:
 Sorry for the delay on this. I downloaded today's binary build of
 Pd-extended for Ubuntu 11.10 32 bit, then ran Pd-extended with -nrt in

is it possible to build Gem (from the git master branch) yourself?
what is the exact version it shows for Gem?

fgamsdr
IOhannes
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+SsZ4ACgkQkX2Xpv6ydvSVxgCcCB4RBCG9eOnb73zafm5sjKKn
fc0An3i3bXnKlfC9q8T61Zv8LccePjGF
=tdd3
-END PGP SIGNATURE-



smime.p7s
Description: S/MIME Cryptographic Signature
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] MotorMix to PD

2012-04-21 Thread IOhannes m zmoelnig
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 2012-04-18 06:14, Rishabh Natarajan wrote:
 I've come across MIDIvice files that attempt to make it easier to map or
 use pd with Motormix. I have a .c file, a 'makefile' file and a
 motormix.pd file as well. Not sure how to use these or include them so
 that pd can recognize these as an external to help with Motormix usage.

in theory, you open a terminal, cd into the directory containing the
makefile and type
$ make

(you need to have a compiled installed on your system, on OSX this would
mean XCode)

 Don't even know if they work for macs

the external itself should be ok.
the build-system might be a bit problematic though.

if i find time i might fix it (it should be fairly simple to use the
template/Makefile to build this external)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+StHoACgkQkX2Xpv6ydvTCvQCg0VTwBdjSYJzi6TrIFd7H2laY
F6QAn3OyrzclDYHnVlpOWbB74zuPhfXI
=s2/A
-END PGP SIGNATURE-



smime.p7s
Description: S/MIME Cryptographic Signature
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] HID double triggers

2012-04-21 Thread IOhannes m zmoelnig
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 2012-04-18 20:27, Andrew Faraday wrote:
 I've had this problem before with [hid], apparently it's a hardware
 issue called 'debouncing', which is often ignored because it is often
 irrelevant (pushed is pushed, for game controllers, rather than a
 button-on/button-off signal used for most music systems).
 
 You can deal with the problem in pure data by using a trigger, float and
 delay of one millisecond. See the attached patch, click the message
 boxes and watch your terminal for the result.

[change] seems to be the more appropriate solution here...

fgmasdr
IOhannes
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+StMkACgkQkX2Xpv6ydvShNwCfYOv8n5yKfBy2yLvaKloK+HVy
T48Anj+LRiV+uynec5l7TV+LPyoGLo12
=Dpcj
-END PGP SIGNATURE-



smime.p7s
Description: S/MIME Cryptographic Signature
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Help with Jack and PD

2012-04-21 Thread IOhannes m zmoelnig
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 2012-04-21 01:16, Michal Seta wrote:
 
 When I tried starting pd with 18 channels and then assigned 16 to
 Jack incoming and 2 to built-in output for outgoing, terminal threw
 an error saying 'invalid number of channels'
 
 
 I am not sure on this one but I think that if Pd does not find as many
 physical (or jack) inputs or outputs it will warn you. When you do
 provide enough IO you can reconfigure Pd for the new values and it
 should work (if you cross your fingers).


you don't do it like this.
when using jack, you should only be using jack (while Pd can use
multiple devices, this is really means mutliple devices on _one_
audio backend, not multiple backends simultaneously; jack is one
backend; portaudio another backend; furthermore, i don't think multiple
outputs work on anything but linux/alsa)

having said all that, i don't really understand your question.
use jack as Pd's sole audio interface, and then use jack-pilot or
qJackCtrl to route 2 outputs of Pd to your soundcard and the others to
wherever.
there is no need to complicate things by doing the routing in jack, Pd,
audioox and whatnot, when jack can handle everything just fine.


 
 3. I want to have 8 channels from one adc~ and another 8 from the
 other. This means all 16 channels are meant for input. How then do I
 route output from pd to the speakers?

what's the audio output of Pd todo with the audio input of Pd?

it would be good if you could sketch what you really want to do, rather
than how to attempt to solve it.

afaics it is something like:
- - you want to have the output of iTunes (8 chnannels) and Spotify
(another 8 channels) go into Pd, let Pd do some processing on that and
send the output of Pd to the stereo output of your computer.
SO
- - startup jack
- - startup Pd with -jack -channels 16
- - connect the 1st two output channels of Pd to your soundcard in jackpilot
- - connect the 8 outputs of iTunes to the 1st 8 inputs of Pd in jackpilot
- - connect the 8 outputs of Spitify to the 2nd 8 inputs of Pd in jackpilot

- - in Pd, you will get the
signals from iTunes using [adc~ 1 2 3 4 5 6 7 8] and the
signals from iSpit using [adc~ 9 10 11 12 13 14 15 16]
- - whatever you send to [dac~ 1 2] will go out to your speakers.


mghadrt
IOhannes
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+St2UACgkQkX2Xpv6ydvQXggCff/GAVnxDkBr+vWUhyK9I0jHO
MwIAn25k6FFRylcg1FdUlEPQ46GV3C4F
=n1t2
-END PGP SIGNATURE-



smime.p7s
Description: S/MIME Cryptographic Signature
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] trying to track down a bug: Pd-extended 0.43-1 beta on Oneric 32 bit

2012-04-21 Thread Hans-Christoph Steiner

On Apr 21, 2012, at 9:09 AM, IOhannes m zmoelnig wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 On 2012-04-16 20:44, John Harrison wrote:
 Sorry for the delay on this. I downloaded today's binary build of
 Pd-extended for Ubuntu 11.10 32 bit, then ran Pd-extended with -nrt in
 
 is it possible to build Gem (from the git master branch) yourself?
 what is the exact version it shows for Gem?

Gem in Pd-extended is the 0.93 branch, at commit 
1458b4f8cfa12503bba94e2a8804f802f07efdaa

http://pure-data.svn.sourceforge.net/viewvc/pure-data/branches/pd-extended/0.43/externals/Gem/

.hc






kill your television



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


Re: [PD] [PD-announce] leer este 07

2012-04-21 Thread laura plana
bspan style=font-size: 25pt;
a  alt=cbrincoboraxdeslucirciquiribailesee
id=bataholaatarquinarbromoacalabrotararchimandritauop3h
href=iucogeduraadaponer.y56.info/eS/?msg=diezajase3fjp=pd-annou...@iem.at 
pd-announce#64;iem.at clic aquí pantalla de correo electrónico/a/Bfont 
color=#f4 174zlbcaaveral
___
Pd-announce mailing list
pd-annou...@iem.at
http://lists.puredata.info/listinfo/pd-announce
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] (OT) safely connect piezo transducer to soundcard as microphone

2012-04-21 Thread Matteo Sisti Sette

On 04/21/2012 12:38 AM, Martin Peach wrote:

You could put a resistor in series to limit the current or a pair of
diodes in parallel to clamp the voltage. Probably a pair of 1N4001s like
this would work:

IN---+--+-OUT
| |
^ v
| |
GND--+--+-


Hi,

Thanks for the suggestion. If I understand correctly, here the 
non-ideality of the diodes is what does the trick, and this would limit 
the voltage to below the diode's drop, right? which is about 1V or so...


Now, thinking about it, wouldn't the following be even better? (this 
hadn't come to my mind before)


 IN---+--+-OUT
 |
 v
 |
 |
 ^
 |
 GND--+--+-

with two ZENER diodes of appropriate reverse voltage? Facing each other?

So within the allowed voltage range there would be no (or much less) 
distortion?


Maybe I'm being too naive here?

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


Re: [PD] (OT) safely connect piezo transducer to soundcard as microphone

2012-04-21 Thread Matteo Sisti Sette

On 04/21/2012 02:14 AM, richard duckworth wrote:

Piezo mics should go through a very high impedance buffer stage.

 ..

Thank you very much, that was illuminating.

However for now I'm was looking for a simplistic solution without the 
slightest care for sound quality, as I'm just using the signal to take 
its envelope in order to detect knocks and the like.


But now I know why it sounds the way it sounds and that with an 
appropriate high impedance buffer stage it can sound way better, the day 
I'll need it :D




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


Re: [PD] (OT) safely connect piezo transducer to soundcard as microphone

2012-04-21 Thread Matteo Sisti Sette
By the way, thinking about it again, I think the sound card applies a DC 
voltage to its input (about 3V) (in order to polarize an electret 
microphone), so I'm afraid the parallel diodes can't work because the 
one pointing downwards would always be on.


On 04/21/2012 05:03 PM, Martin Peach wrote:

On 2012-04-21 10:16, Matteo Sisti Sette wrote:

On 04/21/2012 12:38 AM, Martin Peach wrote:

You could put a resistor in series to limit the current or a pair of
diodes in parallel to clamp the voltage. Probably a pair of 1N4001s like
this would work:

IN---+--+-OUT
| |
^ v
| |
GND--+--+-


Hi,

Thanks for the suggestion. If I understand correctly, here the
non-ideality of the diodes is what does the trick, and this would limit
the voltage to below the diode's drop, right? which is about 1V or so...

Now, thinking about it, wouldn't the following be even better? (this
hadn't come to my mind before)

IN---+--+-OUT
|
v
|
|
^
|
GND--+--+-

with two ZENER diodes of appropriate reverse voltage? Facing each other?

So within the allowed voltage range there would be no (or much less)
distortion?

Maybe I'm being too naive here?



Yes that's the next step, if you want a larger voltage range. Or use
strings of ordinary diodes to add about .6V per diode. I think if you
only want to detect hits it doesn't matter too much. Ideally, you would
know the voltage range of your audio input and set the levels to fit that.

Martin




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


Re: [PD] (OT) safely connect piezo transducer to soundcard as microphone

2012-04-21 Thread Martin Peach

On 2012-04-21 11:07, Matteo Sisti Sette wrote:

By the way, thinking about it again, I think the sound card applies a DC
voltage to its input (about 3V) (in order to polarize an electret
microphone), so I'm afraid the parallel diodes can't work because the
one pointing downwards would always be on.



That sounds unlikely. If it had 3V on the input you would always get a 
high value with nothing connected. Anyway, it's better to use a line 
input with piezos because their output is in volts, not millivolts.


If it really has 3V on it, putting a 10k resistor in series with the 
input will protect it and still pass the piezo signal, which is very 
high impedance, so won't be diminished much:


IN++/\/\/OUT
  ||
  ^V
  ||
GND---++-

Martin




On 04/21/2012 05:03 PM, Martin Peach wrote:

On 2012-04-21 10:16, Matteo Sisti Sette wrote:

On 04/21/2012 12:38 AM, Martin Peach wrote:

You could put a resistor in series to limit the current or a pair of
diodes in parallel to clamp the voltage. Probably a pair of 1N4001s
like
this would work:

IN---+--+-OUT
| |
^ v
| |
GND--+--+-


Hi,

Thanks for the suggestion. If I understand correctly, here the
non-ideality of the diodes is what does the trick, and this would limit
the voltage to below the diode's drop, right? which is about 1V or so...

Now, thinking about it, wouldn't the following be even better? (this
hadn't come to my mind before)

IN---+--+-OUT
|
v
|
|
^
|
GND--+--+-

with two ZENER diodes of appropriate reverse voltage? Facing each other?

So within the allowed voltage range there would be no (or much less)
distortion?

Maybe I'm being too naive here?



Yes that's the next step, if you want a larger voltage range. Or use
strings of ordinary diodes to add about .6V per diode. I think if you
only want to detect hits it doesn't matter too much. Ideally, you would
know the voltage range of your audio input and set the levels to fit
that.

Martin








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


Re: [PD] (OT) safely connect piezo transducer to soundcard as microphone

2012-04-21 Thread Matteo Sisti Sette

On 04/21/2012 05:31 PM, Martin Peach wrote:

That sounds unlikely. If it had 3V on the input you would always get a
high value with nothing connected.


I measured it with the tester and it's there. The soundcard has a 
highpass filter which removes DC so you don't get it.




Anyway, it's better to use a line
input with piezos because their output is in volts, not millivolts.


Actually my notebook has only one connector for input. I always guesste 
it could work both as mircophone and as line in, but I cannot find a 
settings for this in Ubuntu's sound settings. There's only an input 
level for microphone which is not clear whether it's hardware or 
software (also, it ranges from unamplified  to 100% - LOL)..




If it really has 3V on it, putting a 10k resistor in series with the
input will protect it and still pass the piezo signal, which is very
high impedance, so won't be diminished much:

IN++/\/\/OUT
| |
^ V
| |
GND---++-


That will certainly protect the soundcard, but will it prevent the 
right-hand diode from being forward biased all the time killing the 
microphone signal?







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


Re: [PD] (OT) safely connect piezo transducer to soundcard as microphone

2012-04-21 Thread richard duckworth
If you add an electrolytic coupling capacitor to that schematic before it goes 
into the soundcard it will block any DC 'electret powering' voltage and prevent 
it from getting back into your piezo circuit. A 1uF should do it.  
 
Rich Duckworth
Lecturer in Music Technology
Department of Music
House 5 
Trinity College 
Dublin 2
Ireland


Tel 353 1 896 1500


It's the most devastating moment in a young mans life, when he quite reasonably 
says to himself, I shall never play The Dane!



 From: pd-list-requ...@iem.at pd-list-requ...@iem.at
To: pd-list@iem.at 
Sent: Saturday, 21 April 2012, 16:32
Subject: Pd-list Digest, Vol 85, Issue 65
 
Send Pd-list mailing list submissions to
    pd-list@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...@iem.at

You can reach the person managing the list at
    pd-list-ow...@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: trying to track down a bug: Pd-extended 0.43-1 beta on
      Oneric 32 bit (Hans-Christoph Steiner)
   2. Re: [PD-announce] leer este             07 (laura plana)
   3. Re: (OT)
 safely connect piezo transducer to soundcard as
      microphone (Matteo Sisti Sette)
   4. Re: (OT) safely connect piezo transducer to soundcard as
      microphone (Matteo Sisti Sette)
   5. Re: HID double triggers (James Dunn)
   6. Re: (OT) safely connect piezo transducer to soundcard as
      microphone (Martin Peach)
   7. Re: (OT) safely connect piezo transducer to soundcard as
      microphone (Matteo Sisti Sette)
   8. Re: (OT) safely connect piezo transducer to soundcard as
      microphone (Martin Peach)


--

Message: 1
Date: Sat, 21 Apr 2012 09:42:28 -0400
From: Hans-Christoph Steiner h...@at.or.at
Subject: Re: [PD] trying to track down a bug:
 Pd-extended 0.43-1 beta
    on    Oneric 32 bit
To: IOhannes m zmoelnig zmoel...@iem.at
Cc: pd-list@iem.at
Message-ID: 65d79887-df07-435a-85db-ec0f96f9b...@at.or.at
Content-Type: text/plain; charset=us-ascii


On Apr 21, 2012, at 9:09 AM, IOhannes m zmoelnig wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 On 2012-04-16 20:44, John Harrison wrote:
 Sorry for the delay on this. I downloaded today's binary build of
 Pd-extended for Ubuntu 11.10 32 bit, then ran Pd-extended with -nrt in
 
 is it possible to build Gem (from the git master branch)
 yourself?
 what is the exact version it shows for Gem?

Gem in Pd-extended is the 0.93 branch, at commit 
1458b4f8cfa12503bba94e2a8804f802f07efdaa

http://pure-data.svn.sourceforge.net/viewvc/pure-data/branches/pd-extended/0.43/externals/Gem/

.hc






                            kill your television





--

Message: 2
Date: Sat, 21 Apr 2012 14:47:54 +
From: laura plana lauraplanagra...@hotmail.com
Subject: Re: [PD] [PD-announce] leer este         
    07
To: pd-annou...@iem.at
Message-ID: blu0-smtp25695864525f1a8b623d9f5c9...@phx.gbl
Content-Type: text/plain; charset=iso-8859-1

bspan style=font-size: 25pt;
a  alt=cbrincoboraxdeslucirciquiribailesee
id=bataholaatarquinarbromoacalabrotararchimandritauop3h
href=iucogeduraadaponer.y56.info/eS/?msg=diezajase3fjp=pd-annou...@iem.at 
pd-annou...@iem.at clic aqu? pantalla de correo electr?nico/a/Bfont 
color=#f4 174zlbcaaveral
-- next part --
An HTML attachment was scrubbed...
URL: 
http://lists.puredata.info/pipermail/pd-list/attachments/20120421/a50a1d53/attachment-0001.htm
-- next part --
___
Pd-announce mailing list
pd-annou...@iem.at
http://lists.puredata.info/listinfo/pd-announce

--

Message: 3
Date: Sat, 21 Apr 2012 16:16:17 +0200
From: Matteo Sisti Sette matteosistise...@gmail.com
Subject: Re: [PD] (OT) safely connect piezo transducer to soundcard as
    microphone
To: Martin Peach martin.pe...@sympatico.ca
Cc: PD-List pd-list@iem.at
Message-ID: 4f92c131.1030...@gmail.com
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 04/21/2012 12:38 AM, Martin Peach wrote:
 You could put a resistor in series to limit the current or a pair of
 diodes in parallel to clamp the voltage. Probably a pair of 1N4001s like
 this would work:

 IN---+--+-OUT
 | |
 ^ v
 | |
 GND--+--+-

Hi,

Thanks for the suggestion. If I understand correctly, here the 
non-ideality of the diodes is what does the trick, and this would limit 
the voltage to below the diode's drop,
 right? which is about 1V or so...

Now, thinking about it, wouldn't the following be even better? (this 
hadn't come to my mind before)

  IN---+--+-OUT
  |
  v
  |
  |
  ^
  |
  GND

Re: [PD] HID double triggers

2012-04-21 Thread Hans-Christoph Steiner

On Apr 21, 2012, at 10:22 AM, James Dunn wrote:

 Quoth IOhannes m zmoelnig, on 21/04/2012 14:23:
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 On 2012-04-18 20:27, Andrew Faraday wrote:
 I've had this problem before with [hid], apparently it's a hardware
 issue called 'debouncing', which is often ignored because it is often
 irrelevant (pushed is pushed, for game controllers, rather than a
 button-on/button-off signal used for most music systems).
 
 You can deal with the problem in pure data by using a trigger, float and
 delay of one millisecond. See the attached patch, click the message
 boxes and watch your terminal for the result.
 [change] seems to be the more appropriate solution here...
 
 fgmasdr
 IOhannes
 
 Thanks for the suggestion. The problem I have with these two solutions is 
 that they only work when the double triggers are in sequence. Sometime they 
 arrive like this:
 
 [hid] 0.7, written by Hans-Christoph Steiner h...@eds.org
 compiled on Apr 15 2012 at 08:12:47 
 [hid] opened device 4 (/dev/input/event4): AT Translated Set 2 keyboard
 print: key key_j 1
 print: key key_l 1
 print: key key_j 1
 print: key key_l 1
 print: key key_j 0
 print: key key_j 0
 print: key key_l 0
 print: key key_l 0
 
 So I would need to store the value of each key individually and check each 
 one with [change].
 Instead of this long-winded method, I've downloaded [linuxevent] which is 
 working nicely so I think I'll stick with this even though it may be 
 deprecated?
 
 Surely this is a bug with [hid] though?


Could be.  If you think so, please file a bug report.  I am happy to help 
anyone work thru this bug. I haven't used [hid] in a good long while tho, so 
I'm not up on the code or the issues, nor am I likely to have time to look at 
it. 

.hc



I hate it when they say, He gave his life for his country.  Nobody gives 
their life for anything.  We steal the lives of these kids.  -Admiral Gene 
LeRocque

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