[PD] libPD4unity and reading sample arrays

IOhannes m zmoelnig zmoelnig at iem.at
Tue Mar 7 09:49:30 CET 2017


On 2017-03-07 08:45, Scott R. Looney wrote:
> the issue seems to be involving audio data arrays and [soundfiler]. mainly
> it looks like adding a read command creates some kind of error, and i think
> it's PD based. might be a bug, but not sure yet.
> 
> the error happens in the attached patch in Unity using libpd4Unity with any
> local sound file. maybe the naming is off? regardless here's what prints:
> 
> error: array: couldn't find template pd-_float_array
> error: #A: no such object
> error: sample: no such table

this looks like a problem with using an array directly on the patch (as
opposed to using [table]), probably in conjunction with stored samples
in the patch (as opposed to reading them with [soundfiler]).

i suggest to replace the array with a [table sample] object (since this
doesn't allow to to store values in-patch, it should solve both issues),
in combination with [soundfiler] to read the actual data (which you seem
to do anyhow)

fgamsdr
IOhannes

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20170307/60810e2f/attachment.sig>


More information about the Pd-list mailing list