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@iem.at" pd-list-request@iem.at To: pd-list@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@iem.at" href="mailto:pd-list@iem.at">pd-list@iem.at
To subscribe or
unsubscribe via the World Wide Web, visit
href="http://lists.puredata.info/listinfo/pd-list" target=_blank
or, via email, send a
message with subject or body 'help' to
ymailto="mailto:pd-list-request@iem.at" href="mailto:pd-list-request@iem.at">pd-list-request@iem.at
You can
reach the person managing the list at
ymailto="mailto:pd-list-owner@iem.at" href="mailto:pd-list-owner@iem.at">pd-list-owner@iem.at
When
replying, please edit your Subject line so it is more specific
than "Re:
Contents of Pd-list digest..."
Today's Topics:
Pd Shirts (Ben Baker-Smith)
Cascone)
problems installing (Michal Seta)
Ciccolella)
Message:
1
Date: Tue, 1 Jun 2010 14:15:05 -0500 From: Ben Baker-Smith <
ymailto="mailto:bbakersmith@gmail.com" href="mailto:bbakersmith@gmail.com">bbakersmith@gmail.com>
Subject:
Re: [PD] Pd Shirts
To:
href="mailto:pdshirt@googlemail.com">pdshirt@googlemail.com, Hans-Christoph Steiner < href="mailto:hans@at.or.at">hans@at.or.at>,
pd
list <
href="mailto:pd-list@iem.at">pd-list@iem.at>
Message-ID:
< ymailto="mailto:AANLkTimvOxbqtsuH0N6jI7rWZmY-EnD4yU9pyhTrE_jU@mail.gmail.com" href="mailto:AANLkTimvOxbqtsuH0N6jI7rWZmY-EnD4yU9pyhTrE_jU@mail.gmail.com">AANLkTimvOxbqtsuH0N6jI7rWZmY-EnD4yU9pyhTrE_jU@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.
href="http://bitsynthesis.com" target=_blank
Message:
2
Date: Tue, 01 Jun 2010 12:13:17 -0700 From: Kim Cascone <
ymailto="mailto:kim@anechoicmedia.com" href="mailto:kim@anechoicmedia.com">kim@anechoicmedia.com>
Subject:
[PD] pdj - problems installing
To: pd-list <
ymailto="mailto:pd-list@iem.at" href="mailto:pd-list@iem.at">pd-list@iem.at>
Message-ID: <
ymailto="mailto:4C055BCD.9000008@anechoicmedia.com" href="mailto:4C055BCD.9000008@anechoicmedia.com">4C055BCD.9000008@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@digitalworlds.ufl.edu" href="mailto:pat@digitalworlds.ufl.edu">pat@digitalworlds.ufl.edu>
Subject:
[PD] pd spect help
To: "
href="mailto:pd-list@iem.at">pd-list@iem.at" < ymailto="mailto:pd-list@iem.at" href="mailto:pd-list@iem.at">pd-list@iem.at>
Message-ID:
< ymailto="mailto:4102DA2A6DF4394B83D6F9EFC2AD12F73B06772B58@UFEXCH-MBXCL01.ad.ufl.edu" href="mailto:4102DA2A6DF4394B83D6F9EFC2AD12F73B06772B58@UFEXCH-MBXCL01.ad.ufl.edu">4102DA2A6DF4394B83D6F9EFC2AD12F73B06772B58@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.
hi,
please read http://puredata.info/community/lists/Netiquette#Threads on how to start new threads.
On 2010-06-02 13:47, Julian Villegas wrote:
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?
[symbol2list] internally converts cstrings to doubles, which have higher precision than Pd usually works with. it then converts these doubles to Pd's native numbers (single floats).
so i doubt, that there is a rounding problem on this side.
another thing to notice is, that Pd does some rounding when it _displays_ numbers. so you might only thing that there is a (rounding) problem, even though there is none. try putting a [wrap] object after the symbol2float conversion to only see the part after the decimal point.
fgmadr IOhannes
Thank you guys,
you were right, I put a [wrap] after the latitude and longitude atoms (number boxes) and they show 6 decimal places.
I was wondering if it's possible to adjust the number of decimal places displayed by an atom, that could have saved me a lot of time.
@Thomas, should I re-implement my patch with [tof/from_ascii_code]?
@IOhannes (and the rest of the list), I'm sorry about my new thread manners, I kept note of your suggestion for next time.
Thank you again, it was driving me nuts!
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.
On 2010-06-02 15:23, Julian Villegas wrote:
Thank you guys,
you were right, I put a [wrap] after the latitude and longitude atoms (number boxes) and they show 6 decimal places.
I was wondering if it's possible to adjust the number of decimal places displayed by an atom, that could have saved me a lot of time.
right-click, change the value of the "width" field (use 0 for dynamic width)
fgmasdr IOhannes