@tsln/live-object
0.4.1
Patch Changes
- Updated dependencies [1a70628]
- @tsln/max-types@0.2.0
0.4.0
Minor Changes
200548d: A
LiveObjectmakes fewerLiveAPIobjects and asks Live for less. Measurements in Live showed that aLiveAPIobject takes most of a millisecond to make, slows every later call to the Live API a little, and is not given back until the script is reloaded.apiis made the first time it is needed, so making aLiveObjectasks nothing of Live, and the objects in a list of children cost nothing until they are used. ALiveObjectmade from an id answersidwith that id, without checking that Live has such an object;existsdoes check.- The
LiveObjects made from the same id share oneLiveAPIobject, as do the ones made fromlive_set,live_appandthis_device, soLiveObject.song()ortrack.devicescalled again and again make no more of them. TheLiveObjects stay separate objects, with their own observers. class_nameasks Live once for an object that exists. The accessors (track.name) used to ask on every access.observe()on an object that hasn't been used yet observes with the object's ownLiveAPIobject, soobservers[name]can beapiitself. An object that has been used, and any further member, gets aLiveAPIobject for the member, as before.
Since
apican be shared, it should no longer be pointed at another Live object (by itsid,pathorgoto), nor have itspropertyset.
0.3.0
Minor Changes
- 0e22e28: Observations can now be stopped:
observe()returns aLiveObject.Observerwith anunobserve()method, andunobserve(name)does the same by member name.observe()used to returntrue; it now returns the observer, ornullwhen the object doesn't exist, in which case it no longer creates an observer. Observing a member that is already observed replaces the previous callback instead of leaving it running.
0.2.0
Minor Changes
- dbb8630:
tracknow finds return tracks and the master track as well: an object underlive_set return_tracks Norlive_set master_trackreturns that track, where before onlylive_set tracks Nwas matched.
0.1.0
Minor Changes
- 496c61a: Initial release:
LiveObject, a typed wrapper around LiveAPI, moved from the max-msp repository.
Patch Changes
- Updated dependencies [496c61a]
- Updated dependencies [5cfd20c]
- Updated dependencies [fc3a9ae]
- @tsln/lom-types@0.1.0
- @tsln/max-types@0.1.0