scoreplayer-external
A python module for drawing to the canvas mode of the Decibel ScorePlayer. This allows for OSC messages to be sent to canvas objects in a python-like manner. It requires the python-osc and zeroconf modules.
This is an early version and the documentation is currently incomplete. Until then, a paper explaining its use will be available in the proceedings of the 2018 Australian Computer Music Conference.
Basic Usage
First you need to create a scorePlayerExternal object and run the selectServer method.
from scoreplayer_external import scoreObject, scorePlayerExternal
import time
from threading import Event
finished = Event()
external = scorePlayerExternal()
external.selectServer()
canvas = external.connect(onConnect)
finished.wait()
external.shutdown()
This will check the network for any running iPad servers and prompt the user to connect to one. The drawing commands themselves should be placed into the connection handler method that is passed to the external.connect method.
Some sample drawing commands. Stay tuned for more documentation.
def onConnect():
canvas.clear()
scroll = canvas.addScroller('scroll', 1, 10, 10, 300, 300, 500, 20.0)
scroll.loadImage('modulation.png')
line = canvas.addLayer('line', 1, 20, 10, 5, 300)
line.setColour(0, 0, 0)
clef = scroll.addGlyph('clef', 1, 100, 100)
clef.setGlyphSize(72)
clef.setGlyph('fClef')
bunny = canvas.addLayer('bunny', 0, 200, 200, 300, 300)
bunny.loadImage('distortion.png', 1)
line2 = canvas.addLine('line2', 0, 400, 400, 500, 500, 2)
scroll.start()
scroll.fade(0, 5)
bunny.move(100, 400, 8)
time.sleep(5)
scroll.fade(1, 5)
time.sleep(2)
scroll.stop()
scroll.setScrollerPosition(0)
line2.setStartPoint(400, 500)
line2.setColour(255, 0, 0)
finished.set()
Metadata
Release files for scoreplayer-external 0.2.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| scoreplayer_external-0.2.11-py3-none-any.whl | Python 3 | none | any | Details for scoreplayer_external-0.2.11-py3-none-any.whl |
Release files / scoreplayer_external-0.2.11-py3-none-any.whl
| Download URL | scoreplayer_external-0.2.11-py3-none-any.whl |
|---|---|
| Size | 22.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8152b5fffcd574bdd2815751b6ddd10a82d54a1bd88309d6bda12ab626a6cf05
|
|
BLAKE2b-256 checksum How to use checksums |
a1421d9c9a8286e3f12a5fdce04da5fcbc8cafd6c72acd07d24482bc208a8e4f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.2
|
Security for scoreplayer-external 0.2.11
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.