Socket
Socket
Sign inDemoInstall

@ircam/comote-helpers

Package Overview
Dependencies
47
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @ircam/comote-helpers

Server component & utilities for the CoMo.te application


Version published
Weekly downloads
2
Maintainers
3
Created
Weekly downloads
 

Readme

Source

CoMo.te helpers

Javascript and Max/MSP utilities to create applications compatible with iPhone and Android CoMo.te application, cf. https://ismm-apps.ircam.fr/comote.

The CoMo.te application (iOS and Android) allows for streaming motion data (accelerometer, gyroscope) from the smartphone to desktop applications using either the OSC or Websockets protocols. The network's setup is facilitated by the use of a QR code generated by the targeted remote application receiving the motion sensor data.

CoMo.te is especially designed for the CoMo applications family that enables real-time interaction between gestures/movements and sounds. Nevertheless, the CoMo.te application can be used with any software that makes use of the OSC protocol.

Among the CoMo applications that make use of CoMo.te are CoMo-Vox to learn and train conducting gestures, and CoMo-Elements to interact collectively thought body movements with recorded sounds.

CoMo.te and the CoMo applications are software designed and developed by IRCAM in the Sound-Music-Movement-Interaction team (UMR STMS).

This repository provides utilities to help to generate the QRCode in the target application both for Max/MSP and Node.js.

Table of Contents

Max/MSP

Download the Max abstraction (i.e. CoMo.te.zip) from the lastest release in the releases page: https://github.com/ircam-ismm/comote-helpers/releases Unzip the package and copy the resulting directory in ~/Documents/Max 8/Packages

For now, the package only provide abstraction [comote.connect] that allows you to generate a QRCode that can be flashed within the CoMo.te application to configure the OSC stream.

You can find more informations in the Helper patch: ~/Document/Max 8/Packages/CoMo.te/extras/CoMo.te.maxpat

This version requires Max 7.1 or higher.

JS

Node.js

npm install --save @ircam/comote-helpers

API

Classes
Server

Launch WebSocket and/or OSC server according to given CoMoteConfig object

Functions
rawLink()

Return the link to be encoded in the QRCode accroding to given CoMoteConfig

terminal(config)

Create a qrcode to be logged in terminal according to given `CoMoteConfig``

dataURL(config)

Create a qrcode to be used as in Image source according to given `CoMoteConfig``

Typedefs
CoMoteConfig : Object
CoMoteTarget : Object

Return the link to be encoded in the QRCode accroding to given CoMoteConfig

Kind: global function

terminal(config)

Create a qrcode to be logged in terminal according to given `CoMoteConfig``

Kind: global function

ParamType
configCoMoteConfig

Example

console(await CoMoteQRCode.terminal(config));

dataURL(config)

Create a qrcode to be used as in Image source according to given `CoMoteConfig``

Kind: global function

ParamType
configCoMoteConfig

Example

const qrCode = await CoMoteQRCode.dataURL(config));

<img src="${qrCode}" />

CoMoteConfig : Object

Kind: global typedef
Properties

NameTypeDescription
idStringid of the client CoMo.te
intervalNumberperiod in ms of the sensors for the client CoMo.te
oscCoMoteTargetOSC configuration
wsCoMoteTargetWebSocket configuration

CoMoteTarget : Object

Kind: global typedef
Properties

NameTypeDescription
hostnameStringhostname or ip of the WebSocket or OSC server
portNumberlistening port of the of the WebSocket or OSC server
autostartBooleanenable streaming on CoMo.te application

Credits

CoMo.te is developed by Ircam and the Music and Sound Science and Technology Joint Research Unit (STMS), supported by Ircam, CNRS, the French Ministry of Culture and Sorbonne University.

Produced with the support of the French Ministry of Education, Youth and Sports (Edu-up system), the National Research Agency (ELEMENT project), and in partnership with Radio France.

License

BSD-3-Clause

FAQs

Last updated on 08 Mar 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc