[PD] symbol2list float error

Julian Villegas julovi at yahoo.com
Wed Jun 2 13:47:25 CEST 2010


Hi everyone,

I'm trying to read data from a GPS receiver connected to a serial port in a MacBook (Mac OS 10.6.3) running Pd-extended (v. 0.41.4). The  GPS receiver sends floats with three decimal places, but I'm losing the last decimal place in the conversion process. I found that the truncation is being done at a [symbol2list] object inside a [convert.ascii2pd LF] abstraction (v 3.1), so if I print before and after this is what I get:

before: symbol 3731.428
after: 3731.43

before: symbol 13956.320
after: 13956.3

it seems to me that [symbol2list] is doing some rounding, how can I avoid it? the rest of the patch works like a charm but that last decimal place is crucial for this project. Could you guys help me?


 Julian Villegas, Ph.D.
http://julovi.net


Me pregunto de un modo pensativo
Que significa ser Colombiano?
No se le respondi. Es un acto de fe
JLB.



----- Original Message ----
> From: "pd-list-request at iem.at" <pd-list-request at iem.at>
> To: pd-list at iem.at
> Sent: Wed, June 2, 2010 7:00:01 PM
> Subject: Pd-list Digest, Vol 63, Issue 4
> 
> Send Pd-list mailing list submissions to
    
> ymailto="mailto:pd-list at iem.at" 
> href="mailto:pd-list at iem.at">pd-list at iem.at

To subscribe or 
> unsubscribe via the World Wide Web, visit
    
> href="http://lists.puredata.info/listinfo/pd-list" target=_blank 
> >http://lists.puredata.info/listinfo/pd-list
or, via email, send a 
> message with subject or body 'help' to
    
> ymailto="mailto:pd-list-request at iem.at" 
> href="mailto:pd-list-request at iem.at">pd-list-request at iem.at

You can 
> reach the person managing the list at
    
> ymailto="mailto:pd-list-owner at iem.at" 
> href="mailto:pd-list-owner at iem.at">pd-list-owner at 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: 
> Pd Shirts (Ben Baker-Smith)
   2. pdj - problems installing (Kim 
> Cascone)
   3. pd spect help (Pagano, Patrick)
   4. Re: pdj - 
> problems installing (Michal Seta)
   5. Re: pmpd tip (Lazzaro Nicol? 
> Ciccolella)


----------------------------------------------------------------------

Message: 
> 1
Date: Tue, 1 Jun 2010 14:15:05 -0500
From: Ben Baker-Smith <
> ymailto="mailto:bbakersmith at gmail.com" 
> href="mailto:bbakersmith at gmail.com">bbakersmith at gmail.com>
Subject: 
> Re: [PD] Pd Shirts
To: 
> href="mailto:pdshirt at googlemail.com">pdshirt at googlemail.com, Hans-Christoph 
> Steiner <
> href="mailto:hans at at.or.at">hans at at.or.at>,    
> pd
    list <
> href="mailto:pd-list at iem.at">pd-list at iem.at>
Message-ID:
    
> <
> ymailto="mailto:AANLkTimvOxbqtsuH0N6jI7rWZmY-EnD4yU9pyhTrE_jU at mail.gmail.com" 
> href="mailto:AANLkTimvOxbqtsuH0N6jI7rWZmY-EnD4yU9pyhTrE_jU at mail.gmail.com">AANLkTimvOxbqtsuH0N6jI7rWZmY-EnD4yU9pyhTrE_jU at mail.gmail.com>
Content-Type: 
> text/plain; charset=ISO-8859-1

Great work getting these printed! I'm very 
> excited to get mine.

>I think since you are doing the work of making 
> and selling the shirts,
>I think you should decide where the money 
> goes.

I agree.

Ben Baker-Smith
--

> href="http://bitsynthesis.com" target=_blank 
> >http://bitsynthesis.com



------------------------------

Message: 
> 2
Date: Tue, 01 Jun 2010 12:13:17 -0700
From: Kim Cascone <
> ymailto="mailto:kim at anechoicmedia.com" 
> href="mailto:kim at anechoicmedia.com">kim at anechoicmedia.com>
Subject: 
> [PD] pdj - problems installing
To: pd-list <
> ymailto="mailto:pd-list at iem.at" 
> href="mailto:pd-list at iem.at">pd-list at iem.at>
Message-ID: <
> ymailto="mailto:4C055BCD.9000008 at anechoicmedia.com" 
> href="mailto:4C055BCD.9000008 at anechoicmedia.com">4C055BCD.9000008 at anechoicmedia.com>
Content-Type: 
> text/plain; charset=ISO-8859-1; format=flowed

I successfully compiled the 
> pdj lib
placed the whole dir in the /usr/lib/pd/extra dir
set a path to it 
> in pd-extended
tried to open a help file for the 'help class' and got
a 
> red outline around the [pdj help class] external
and this error in the 
> console:

pdj help_class
... couldn't create
pdj: unable to use the 
> JVM specified at pdj.JAVA_HOME
pdj: using JVM from the 
> LD_LIBRARY_PATH
error: pdj: libjava.so: cannot open shared object file: No 
> such file or 
directory
pdj help_class @attr1 10
... couldn't 
> create
tried text-help.pd and failed
tried 
> /usr/lib/pd/doc/5.reference/text-help.pd and succeeded


I'm reading 
> through the 'pdj.properties' file but not sure of what to modify

any help 
> is appreciated!
??

:)

===================

my Linux audio 
> config:
Dell Studio 15 Core2 Duo 2.0GHz 3G-RAM
Ubuntu 9.04
kernel 
> 2.6.28.18-generic



------------------------------

Message: 
> 3
Date: Tue, 1 Jun 2010 15:55:01 -0400
From: "Pagano, Patrick" <
> ymailto="mailto:pat at digitalworlds.ufl.edu" 
> href="mailto:pat at digitalworlds.ufl.edu">pat at digitalworlds.ufl.edu>
Subject: 
> [PD] pd spect help
To: "
> href="mailto:pd-list at iem.at">pd-list at iem.at" <
> ymailto="mailto:pd-list at iem.at" 
> href="mailto:pd-list at iem.at">pd-list at iem.at>
Message-ID:
    
> <
> ymailto="mailto:4102DA2A6DF4394B83D6F9EFC2AD12F73B06772B58 at UFEXCH-MBXCL01.ad.ufl.edu" 
> href="mailto:4102DA2A6DF4394B83D6F9EFC2AD12F73B06772B58 at UFEXCH-MBXCL01.ad.ufl.edu">4102DA2A6DF4394B83D6F9EFC2AD12F73B06772B58 at UFEXCH-MBXCL01.ad.ufl.edu>
Content-Type: 
> text/plain; charset="us-ascii"

Hi this is a FWD: 

Can anyone look 
> at this and see the errors?


I'm making progress in my guitar  
> tablature writer program that I'm working for in Arturo's class.  As such I 
> have come across an obstacle I have not figured out yet.  I have attached 
> the patch to this email.   Basically using the graph window that is 
> produced by the patch I plan on differentiating between different guitar note 
> positions using the timbre of sounds.   What I need is to obtain the values 
> that construct the graph spectrum so then I can compare the difference between 
> notes; it seems that the information is packed, but I have not figured out a way 
> to access it.  


-------------- next part --------------
A 
> non-text attachment was scrubbed...
Name: Spect.pd
Type: 
> application/octet-stream
Size: 3409 bytes
Desc: Spect.pd
URL: <
> href="http://lists.puredata.info/pipermail/pd-list/attachments/20100601/688d1079/attachment-0001.obj" 
> target=_blank 
> >http://lists.puredata.info/pipermail/pd-list/attachments/20100601/688d1079/attachment-0001.obj>

------------------------------

Message: 
> 4
Date: Wed, 2 Jun 2010 01:27:08 -0400
From: Michal Seta <
> ymailto="mailto:mis at artengine.ca" 
> href="mailto:mis at artengine.ca">mis at artengine.ca>
Subject: Re: [PD] pdj 
> - problems installing
To: Kim Cascone <
> ymailto="mailto:kim at anechoicmedia.com" 
> href="mailto:kim at anechoicmedia.com">kim at anechoicmedia.com>
Cc: pd-list 
> <
> href="mailto:pd-list at iem.at">pd-list at iem.at>
Message-ID:
    
> <
> ymailto="mailto:AANLkTimbe11OWGoYu9twwSaEBN_HuXjCtGDMoQ2DyrHJ at mail.gmail.com" 
> href="mailto:AANLkTimbe11OWGoYu9twwSaEBN_HuXjCtGDMoQ2DyrHJ at mail.gmail.com">AANLkTimbe11OWGoYu9twwSaEBN_HuXjCtGDMoQ2DyrHJ at mail.gmail.com>
Content-Type: 
> text/plain; charset=UTF-8

Hmmm... I have not used pdj recently, but on my 
> system the pd path had
to be set to the "dist" directory of the pdj 
> package.  This is where
pdj.pd_linux is located, too.  I am stuck 
> on version 0.8.6, however,
YYMV.  Keep in mind that pd's search path is 
> not recursive.  However,
on my system, the help class is instantiated by 
> [pdj help_class] (note
the underscore).

in pdj.properties, the only 
> thing you will want to set is
pdj.classes-dir to the place where you intend 
> to store your java
source code, especially if you keep the pdj directory (and 
> therefore
its classes directory) in some place not accessible by a normal 
> user
(as is your case right now).

On the other hand, why not simply 
> set pd path to the pdj/dist
directory rather than copying it to 
> /usr/lib/pd/extra?

Hope some of this helps.

./MiS

On Tue, 
> Jun 1, 2010 at 3:13 PM, Kim Cascone <
> ymailto="mailto:kim at anechoicmedia.com" 
> href="mailto:kim at anechoicmedia.com">kim at anechoicmedia.com> wrote:
> 
> I successfully compiled the pdj lib
> placed the whole dir in the 
> /usr/lib/pd/extra dir
> set a path to it in pd-extended
> tried to 
> open a help file for the 'help class' and got
> a red outline around the 
> [pdj help class] external
> and this error in the console:
>
> 
> pdj help_class
> ... couldn't create
> pdj: unable to use the JVM 
> specified at pdj.JAVA_HOME
> pdj: using JVM from the 
> LD_LIBRARY_PATH
> error: pdj: libjava.so: cannot open shared object file: 
> No such file or
> directory
> pdj help_class @attr1 10
> ... 
> couldn't create
> tried text-help.pd and failed
> tried 
> /usr/lib/pd/doc/5.reference/text-help.pd and succeeded
>
>
> 
> I'm reading through the 'pdj.properties' file but not sure of what to 
> modify
>
> any help is appreciated!
> ??
>
> 
> :)
>
> ===================
>
> my Linux audio 
> config:
> Dell Studio 15 Core2 Duo 2.0GHz 3G-RAM
> Ubuntu 
> 9.04
> kernel 2.6.28.18-generic
>
> 
> _______________________________________________
> 
> ymailto="mailto:Pd-list at iem.at" href="mailto:Pd-list at iem.at">Pd-list at iem.at 
> mailing list
> UNSUBSCRIBE and account-management ->
> 
> href="http://lists.puredata.info/listinfo/pd-list" target=_blank 
> >http://lists.puredata.info/listinfo/pd-list
>



-- 
> 
./MiS
514-344-0726

> >http://www.creazone.ca



------------------------------

Message: 
> 5
Date: Wed, 02 Jun 2010 11:10:38 +0200
From: Lazzaro Nicol? 
> Ciccolella  <
> href="mailto:ciccolix at tiscalinet.it">ciccolix at tiscalinet.it>
Subject: 
> Re: [PD] pmpd tip
To: cyrille henry <
> href="mailto:ch at chnry.net">ch at chnry.net>
Cc: 
> ymailto="mailto:pd-list at iem.at" 
> href="mailto:pd-list at iem.at">pd-list at iem.at
Message-ID: <
> ymailto="mailto:4C06200E.2070403 at tiscalinet.it" 
> href="mailto:4C06200E.2070403 at tiscalinet.it">4C06200E.2070403 at tiscalinet.it>
Content-Type: 
> text/plain; charset="iso-8859-1"; Format="flowed"

Il 31/05/10 23.41, 
> cyrille henry ha scritto:
> hello,
>
> you can make an 
> iHalfMoon abstraction ;-)
> if you know the position of the curve, you 
> just have to compute the 
> distance and the direction of the nearest 
> point of the moon/wall.
> the force need to be send is proportional to the 
> distance, and in the 
> same direction...
>
> but yes, you can 
> also use many iSeg2D. it should work.
>
> cheers
> 
> cyrille
>

Hi Cyrille,
Visualizza caratteri romani
Thanks for 
> all answers,
thanks for this wonderful library that makes available to 
> everyone.
For my project I realized the importance of objects that begin with 
> "t" 
(test items) that initially I was having ignored 
> :)
best
__
Lazzaro

>
>
>
>
>
> 
> Le 31/05/2010 15:37, Lazzaro Nicol? Ciccolella a ?crit :
>> I, I'm on 
> first attempt to use pmpd.
>> I want to swing a ball on a curve (which 
> in my project should become a
>> half-moon).
>> In the 
> examples (obviously) I dont found something that help me directly
>> to 
> my goals.
>>
>> The best would have the object [icurve2D] 
> :)
>>
>> You think I should to simulate a curve creating a 
> great number of
>> [iLine2D] or is there a more interesting 
> approach?
>>
>> Thanks for any help
>>
>> 
> half-moon:
>> 
> >http://www.eyax.com/esempio.jpg
>>
>> __
>> 
> Lazzaro
>>
>> 
> _______________________________________________
>> 
> ymailto="mailto:Pd-list at iem.at" href="mailto:Pd-list at iem.at">Pd-list at iem.at 
> mailing list
>> UNSUBSCRIBE and account-management ->
>> 
> href="http://lists.puredata.info/listinfo/pd-list" target=_blank 
> >http://lists.puredata.info/listinfo/pd-list
>>
>

-------------- 
> next part --------------
An HTML attachment was scrubbed...
URL: <
> href="http://lists.puredata.info/pipermail/pd-list/attachments/20100602/8bb8ca42/attachment-0001.htm" 
> target=_blank 
> >http://lists.puredata.info/pipermail/pd-list/attachments/20100602/8bb8ca42/attachment-0001.htm>
-------------- 
> next part --------------
A non-text attachment was scrubbed...
Name: 
> cleardot.gif
Type: image/gif
Size: 43 bytes
Desc: not available
URL: 
> <
> href="http://lists.puredata.info/pipermail/pd-list/attachments/20100602/8bb8ca42/attachment-0001.gif" 
> target=_blank 
> >http://lists.puredata.info/pipermail/pd-list/attachments/20100602/8bb8ca42/attachment-0001.gif>

------------------------------

_______________________________________________
Pd-list 
> mailing list

> href="mailto:Pd-list at iem.at">Pd-list at iem.at
to manage your subscription 
> (including un-subscription) see

> href="http://lists.puredata.info/listinfo/pd-list" target=_blank 
> >http://lists.puredata.info/listinfo/pd-list


End of Pd-list 
> Digest, Vol 63, Issue 4
**************************************


      




More information about the Pd-list mailing list