[PD] Getting 32 bit floating point number from 4 sequential bytes

Arda Eden ardaeden at gmail.com
Tue Apr 9 23:02:16 CEST 2019


Thanks Roman,
I didn't know that this was possible with [oscformat] and [oscparse].
Thanks all the friends here, I finally succeed writing my own external. Not
a perfect one, but solved my problem for now.

Roman Haefeli <reduzent at gmail.com>, 7 Nis 2019 Paz, 18:54 tarihinde şunu
yazdı:

> Hi Arda
>
> On Fri, 2019-04-05 at 16:00 +0300, Arda Eden wrote:
> >
> > I am reading the udp data with [netreceive] succesfully and able to
> > reach any value I need.  Now trying to find a way to combine these
> > (big endian) sequential 4 bytes in order to get the resulting 32 bit
> > floating point number. A little advice would speed me up.
>
>
> Don't know if you need to do it in your own external. If you do the
> message parsing in Pd (as opposed to a dedicated external), check
> attached patch. It converts between floats and 4-byte-lists. Probably
> not efficient, when converting tons of numbers, but easy if you're
> looking for a quick'n'dirty solution.
>
> Roman
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
> https://lists.puredata.info/listinfo/pd-list
>


-- 
Arda EDEN
Yıldız Teknik Üniversitesi
Sanat ve Tasarım Fakültesi
Müzik ve Sahne Sanatları Bölümü
Duysal (Ses) Sanatları Tasarımı Programı
İstanbul/Türkiye

Yildiz Technical University
Faculty of Art and Design
Department of Music and Performing Arts
Audio Design Program
Istanbul/Turkey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20190410/624ed8c2/attachment.html>


More information about the Pd-list mailing list