Re: [PD] Reading/writing a HID device current best practice?

2022-09-07 Thread Alexandre Torres Porres
i wouldnt know how to do it, I already failed at it

Em qua., 7 de set. de 2022 às 05:20, Albert Rafetseder <
albert.rafetse...@univie.ac.at> escreveu:

> Thanks Alexandre! Who am I to disagree? ;-)
>
> OK, I'll admit, I started yesterday to port [hid] to pd-lib-builder
> because I've been wanting to learn that anyway. Phil indicated to me
> that he has found a solution other than [hid], so there is no rush.
>
> Nevertheless, I'm totally fine if you go ahead, progress is made, and
> [hid] becomes available to Apple Silicon users faster.
>
> Best regards,
>Albert.
>
> Am 07.09.2022 02:34, schrieb Alexandre Torres Porres:
> > it would be great to update this project to use pd-lib-builder as it'd
> > make
> > it quite easy to build for apple silicon. I could do that
> >
> > Em ter., 6 de set. de 2022 às 12:32, Albert Rafetseder <
> > albert.rafetse...@univie.ac.at> escreveu:
> >
> >> Hi Phil,
> >>
> >> Peter beat me to pointing out Deken (thanks!), but I can add:
> >>
> >> I put that version on Deken, minimally updated from Hans's original to
> >> build on the Mac laptop I was using then. I put the sources here:
> >> https://gitlab.com/albert/pd-hid
> >>
> >> I don't own a macOS/Apple Silicon machine, but I'm happy to
> >> collaborate
> >> and contribute the little that I know about [hid] and building Pd
> >> libraries. If you like, we can talk more, e.g. here:
> >> https://gitlab.com/albert/pd-hid/-/issues/4
> >>
> >> Best regards,
> >>Albert.
> >>
> >> Am 04.09.2022 19:59, schrieb Philip Stone via Pd-list:
> >> > Ah, I had checked Deken, but missed this, since I’m on a Silicon Mac.
> >> > I will look into it to see if maybe I can compile a version.
> >> >
> >> > Thanks, Peter!
> >> >
> >> >
> >> > Phil
> >> >
> >> > Date: Sun, 4 Sep 2022 10:27:37 +0200
> >> > From: "Peter P."
> >> > peterpar...@fastmail.com
> >> >
> >> >
> >> > Hi Phil,
> >> >
> >> > A search on Deken
> >> >
> >>
> http://deken.puredata.info/search.html?libraries=hid&objects=&descriptions=
> >> > brings up some results which might depend on the OS you are using.
> >> >
> >> > * Philip Stone via Pd-list  [2022-09-04 00:14]:
> >> >> Hello all,
> >> >>
> >> >> I?m wondering what the current best course of action is for
> >> >> interfacing with a HID device in Pd. The older libraries from Hans
> >> >> don?t seem to be maintained; may I ask if anyone has any current
> >> >> experience with Pd and HID?
> >> >>
> >> >>
> >> >> Thanks,
> >> >>
> >> >> Phil Stone
> >> >> Davis, CA
> >>
> >>
> >>
> >> ___
> >> Pd-list@lists.iem.at mailing list
> >> UNSUBSCRIBE and account-management ->
> >> https://lists.puredata.info/listinfo/pd-list
> >>
>
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Reading/writing a HID device current best practice?

2022-09-07 Thread Albert Rafetseder

Thanks Alexandre! Who am I to disagree? ;-)

OK, I'll admit, I started yesterday to port [hid] to pd-lib-builder 
because I've been wanting to learn that anyway. Phil indicated to me 
that he has found a solution other than [hid], so there is no rush.


Nevertheless, I'm totally fine if you go ahead, progress is made, and 
[hid] becomes available to Apple Silicon users faster.


Best regards,
  Albert.

Am 07.09.2022 02:34, schrieb Alexandre Torres Porres:
it would be great to update this project to use pd-lib-builder as it'd 
make

it quite easy to build for apple silicon. I could do that

Em ter., 6 de set. de 2022 às 12:32, Albert Rafetseder <
albert.rafetse...@univie.ac.at> escreveu:


Hi Phil,

Peter beat me to pointing out Deken (thanks!), but I can add:

I put that version on Deken, minimally updated from Hans's original to
build on the Mac laptop I was using then. I put the sources here:
https://gitlab.com/albert/pd-hid

I don't own a macOS/Apple Silicon machine, but I'm happy to 
collaborate

and contribute the little that I know about [hid] and building Pd
libraries. If you like, we can talk more, e.g. here:
https://gitlab.com/albert/pd-hid/-/issues/4

Best regards,
   Albert.

Am 04.09.2022 19:59, schrieb Philip Stone via Pd-list:
> Ah, I had checked Deken, but missed this, since I’m on a Silicon Mac.
> I will look into it to see if maybe I can compile a version.
>
> Thanks, Peter!
>
>
> Phil
>
> Date: Sun, 4 Sep 2022 10:27:37 +0200
> From: "Peter P."
> peterpar...@fastmail.com
>
>
> Hi Phil,
>
> A search on Deken
>
http://deken.puredata.info/search.html?libraries=hid&objects=&descriptions=
> brings up some results which might depend on the OS you are using.
>
> * Philip Stone via Pd-list  [2022-09-04 00:14]:
>> Hello all,
>>
>> I?m wondering what the current best course of action is for
>> interfacing with a HID device in Pd. The older libraries from Hans
>> don?t seem to be maintained; may I ask if anyone has any current
>> experience with Pd and HID?
>>
>>
>> Thanks,
>>
>> Phil Stone
>> Davis, CA



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





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


Re: [PD] Reading/writing a HID device current best practice?

2022-09-06 Thread Alexandre Torres Porres
it would be great to update this project to use pd-lib-builder as it'd make
it quite easy to build for apple silicon. I could do that

Em ter., 6 de set. de 2022 às 12:32, Albert Rafetseder <
albert.rafetse...@univie.ac.at> escreveu:

> Hi Phil,
>
> Peter beat me to pointing out Deken (thanks!), but I can add:
>
> I put that version on Deken, minimally updated from Hans's original to
> build on the Mac laptop I was using then. I put the sources here:
> https://gitlab.com/albert/pd-hid
>
> I don't own a macOS/Apple Silicon machine, but I'm happy to collaborate
> and contribute the little that I know about [hid] and building Pd
> libraries. If you like, we can talk more, e.g. here:
> https://gitlab.com/albert/pd-hid/-/issues/4
>
> Best regards,
>Albert.
>
> Am 04.09.2022 19:59, schrieb Philip Stone via Pd-list:
> > Ah, I had checked Deken, but missed this, since I’m on a Silicon Mac.
> > I will look into it to see if maybe I can compile a version.
> >
> > Thanks, Peter!
> >
> >
> > Phil
> >
> > Date: Sun, 4 Sep 2022 10:27:37 +0200
> > From: "Peter P."
> > peterpar...@fastmail.com
> >
> >
> > Hi Phil,
> >
> > A search on Deken
> >
> http://deken.puredata.info/search.html?libraries=hid&objects=&descriptions=
> > brings up some results which might depend on the OS you are using.
> >
> > * Philip Stone via Pd-list  [2022-09-04 00:14]:
> >> Hello all,
> >>
> >> I?m wondering what the current best course of action is for
> >> interfacing with a HID device in Pd. The older libraries from Hans
> >> don?t seem to be maintained; may I ask if anyone has any current
> >> experience with Pd and HID?
> >>
> >>
> >> Thanks,
> >>
> >> Phil Stone
> >> Davis, CA
>
>
>
> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
> https://lists.puredata.info/listinfo/pd-list
>
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Reading/writing a HID device current best practice?

2022-09-06 Thread Dan Wilcox
This is also my preferred approach, but maybe not for those who want to do 
*everything* in Pd and/or need to write to devices.

joyosc

https://github.com/danomatika/joyosc <https://github.com/danomatika/joyosc>

> joystick & game controller hid device event to Open Sound Control daemon and 
> associated tools

Cross-platform using SDL2.

> On Sep 6, 2022, at 7:07 PM, pd-list-requ...@lists.iem.at wrote:
> 
> Message: 4
> Date: Tue, 6 Sep 2022 10:07:09 -0700
> From: Daniel Iglesia  <mailto:daniel.igle...@gmail.com>>
> To: Alexandre Torres Porres mailto:por...@gmail.com>>
> Cc: "Peter P." mailto:peterpar...@fastmail.com>>, 
> Pd-List
>       mailto:pd-list@lists.iem.at>>
> Subject: Re: [PD] Reading/writing a HID device current best practice?
> Message-ID:
><mailto:canz10w0dhw1udp0hacr7s-ffazabr+5wl5wo1lbqolswvdy...@mail.gmail.com>>
> Content-Type: text/plain; charset="utf-8"
> 
> I know this isn't the desired answer, but my strategy (a few years ago, on
> Raspberry Pi, haven't tried HID since then) was to launch a python script
> to listen for HID messages, then route them via UDP into a local port on
> which Pd would listen and consume the messages. I don't recall if I had to
> do some message unpacking in the python script or if I could just route the
> raw data and unpack everything in Pd.


Dan Wilcox
@danomatika <http://twitter.com/danomatika>
danomatika.com <http://danomatika.com/>
robotcowboy.com <http://robotcowboy.com/>



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


Re: [PD] Reading/writing a HID device current best practice?

2022-09-06 Thread Peter P.
* Daniel Iglesia  [2022-09-06 19:08]:
> I know this isn't the desired answer, but my strategy (a few years ago, on
> Raspberry Pi, haven't tried HID since then) was to launch a python script
> to listen for HID messages, then route them via UDP into a local port on
> which Pd would listen and consume the messages. 
Well [hid] works really well on Linux anyway. We are just lacking a
binary on Deken for Silikon Mäcs (and possible an entirely new external
for Windows, or was there once [hidin]?



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


Re: [PD] Reading/writing a HID device current best practice?

2022-09-06 Thread Daniel Iglesia
I know this isn't the desired answer, but my strategy (a few years ago, on
Raspberry Pi, haven't tried HID since then) was to launch a python script
to listen for HID messages, then route them via UDP into a local port on
which Pd would listen and consume the messages. I don't recall if I had to
do some message unpacking in the python script or if I could just route the
raw data and unpack everything in Pd.

On Tue, Sep 6, 2022 at 9:46 AM Alexandre Torres Porres 
wrote:

> hmm, well, tried building hid and it's not that easy, not sure I can go
> that route :)
>
> Em ter., 6 de set. de 2022 às 13:30, Alexandre Torres Porres <
> por...@gmail.com> escreveu:
>
>> I can take the request to work on a new/modern 'hid' object into ELSE
>> (not necessarily a copy/clone of this) so we have something like that
>> available for all platforms and modern systems. Please open a request at
>> https://github.com/porres/pd-else
>>
>> Em dom., 4 de set. de 2022 às 05:29, Peter P. 
>> escreveu:
>>
>>> Hi Phil,
>>>
>>> A search on Deken
>>>
>>> http://deken.puredata.info/search.html?libraries=hid&objects=&descriptions=
>>> brings up some results which might depend on the OS you are using.
>>>
>>> * Philip Stone via Pd-list  [2022-09-04 00:14]:
>>> > Hello all,
>>> >
>>> > I’m wondering what the current best course of action is for
>>> interfacing with a HID device in Pd. The older libraries from Hans don’t
>>> seem to be maintained; may I ask if anyone has any current experience with
>>> Pd and HID?
>>> >
>>> >
>>> > Thanks,
>>> >
>>> > Phil Stone
>>> > Davis, CA
>>>
>>> > ___
>>> > Pd-list@lists.iem.at mailing list
>>> > UNSUBSCRIBE and account-management ->
>>> https://lists.puredata.info/listinfo/pd-list
>>>
>>>
>>>
>>>
>>> ___
>>> Pd-list@lists.iem.at mailing list
>>> UNSUBSCRIBE and account-management ->
>>> https://lists.puredata.info/listinfo/pd-list
>>>
>> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
> https://lists.puredata.info/listinfo/pd-list
>
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Reading/writing a HID device current best practice?

2022-09-06 Thread Alexandre Torres Porres
hmm, well, tried building hid and it's not that easy, not sure I can go
that route :)

Em ter., 6 de set. de 2022 às 13:30, Alexandre Torres Porres <
por...@gmail.com> escreveu:

> I can take the request to work on a new/modern 'hid' object into ELSE (not
> necessarily a copy/clone of this) so we have something like that available
> for all platforms and modern systems. Please open a request at
> https://github.com/porres/pd-else
>
> Em dom., 4 de set. de 2022 às 05:29, Peter P. 
> escreveu:
>
>> Hi Phil,
>>
>> A search on Deken
>>
>> http://deken.puredata.info/search.html?libraries=hid&objects=&descriptions=
>> brings up some results which might depend on the OS you are using.
>>
>> * Philip Stone via Pd-list  [2022-09-04 00:14]:
>> > Hello all,
>> >
>> > I’m wondering what the current best course of action is for interfacing
>> with a HID device in Pd. The older libraries from Hans don’t seem to be
>> maintained; may I ask if anyone has any current experience with Pd and HID?
>> >
>> >
>> > Thanks,
>> >
>> > Phil Stone
>> > Davis, CA
>>
>> > ___
>> > Pd-list@lists.iem.at mailing list
>> > UNSUBSCRIBE and account-management ->
>> https://lists.puredata.info/listinfo/pd-list
>>
>>
>>
>>
>> ___
>> Pd-list@lists.iem.at mailing list
>> UNSUBSCRIBE and account-management ->
>> https://lists.puredata.info/listinfo/pd-list
>>
>
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Reading/writing a HID device current best practice?

2022-09-06 Thread Alexandre Torres Porres
I can take the request to work on a new/modern 'hid' object into ELSE (not
necessarily a copy/clone of this) so we have something like that available
for all platforms and modern systems. Please open a request at
https://github.com/porres/pd-else

Em dom., 4 de set. de 2022 às 05:29, Peter P. 
escreveu:

> Hi Phil,
>
> A search on Deken
> http://deken.puredata.info/search.html?libraries=hid&objects=&descriptions=
> brings up some results which might depend on the OS you are using.
>
> * Philip Stone via Pd-list  [2022-09-04 00:14]:
> > Hello all,
> >
> > I’m wondering what the current best course of action is for interfacing
> with a HID device in Pd. The older libraries from Hans don’t seem to be
> maintained; may I ask if anyone has any current experience with Pd and HID?
> >
> >
> > Thanks,
> >
> > Phil Stone
> > Davis, CA
>
> > ___
> > Pd-list@lists.iem.at mailing list
> > UNSUBSCRIBE and account-management ->
> https://lists.puredata.info/listinfo/pd-list
>
>
>
>
> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
> https://lists.puredata.info/listinfo/pd-list
>
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Reading/writing a HID device current best practice?

2022-09-06 Thread Albert Rafetseder

Hi Phil,

Peter beat me to pointing out Deken (thanks!), but I can add:

I put that version on Deken, minimally updated from Hans's original to 
build on the Mac laptop I was using then. I put the sources here: 
https://gitlab.com/albert/pd-hid


I don't own a macOS/Apple Silicon machine, but I'm happy to collaborate 
and contribute the little that I know about [hid] and building Pd 
libraries. If you like, we can talk more, e.g. here: 
https://gitlab.com/albert/pd-hid/-/issues/4


Best regards,
  Albert.

Am 04.09.2022 19:59, schrieb Philip Stone via Pd-list:

Ah, I had checked Deken, but missed this, since I’m on a Silicon Mac.
I will look into it to see if maybe I can compile a version.

Thanks, Peter!


Phil

Date: Sun, 4 Sep 2022 10:27:37 +0200
From: "Peter P." 
peterpar...@fastmail.com



Hi Phil,

A search on Deken
http://deken.puredata.info/search.html?libraries=hid&objects=&descriptions=
brings up some results which might depend on the OS you are using.

* Philip Stone via Pd-list  [2022-09-04 00:14]:

Hello all,

I?m wondering what the current best course of action is for 
interfacing with a HID device in Pd. The older libraries from Hans 
don?t seem to be maintained; may I ask if anyone has any current 
experience with Pd and HID?



Thanks,

Phil Stone
Davis, CA




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


Re: [PD] Reading/writing a HID device current best practice?

2022-09-04 Thread Philip Stone via Pd-list
Ah, I had checked Deken, but missed this, since I’m on a Silicon Mac. I will 
look into it to see if maybe I can compile a version.

Thanks, Peter!


Phil

Date: Sun, 4 Sep 2022 10:27:37 +0200
From: "Peter P." peterpar...@fastmail.com


Hi Phil,

A search on Deken
http://deken.puredata.info/search.html?libraries=hid&objects=&descriptions=
brings up some results which might depend on the OS you are using.

* Philip Stone via Pd-list  [2022-09-04 00:14]:
> Hello all,
>
> I?m wondering what the current best course of action is for interfacing with 
> a HID device in Pd. The older libraries from Hans don?t seem to be 
> maintained; may I ask if anyone has any current experience with Pd and HID?
>
>
> Thanks,
>
> Phil Stone
> Davis, CA

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






--

Subject: Digest Footer

___
Pd-list mailing list
Pd-list@lists.iem.at
to manage your subscription (including un-subscription) see
https://lists.puredata.info/listinfo/pd-list


--

End of Pd-list Digest, Vol 210, Issue 4
***
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Reading/writing a HID device current best practice?

2022-09-04 Thread Peter P.
Hi Phil,

A search on Deken
http://deken.puredata.info/search.html?libraries=hid&objects=&descriptions=
brings up some results which might depend on the OS you are using.

* Philip Stone via Pd-list  [2022-09-04 00:14]:
> Hello all,
> 
> I’m wondering what the current best course of action is for interfacing with 
> a HID device in Pd. The older libraries from Hans don’t seem to be 
> maintained; may I ask if anyone has any current experience with Pd and HID?
> 
> 
> Thanks,
> 
> Phil Stone
> Davis, CA

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




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