Skip to main content

Python external for controlling the Decibel ScorePlayer cavas mode

Project description


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()
canvas = external.connect(onConnect)

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():
    scroll = canvas.addScroller('scroll', 1, 10, 10, 300, 300, 500, 20.0)
    line = canvas.addLayer('line', 1, 20, 10, 5, 300)
    line.setColour(0, 0, 0)
    clef = scroll.addGlyph('clef', 1, 100, 100)
    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.fade(0, 5)
    bunny.move(100, 400, 8)
    scroll.fade(1, 5)
    line2.setStartPoint(400, 500)
    line2.setColour(255, 0, 0)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for scoreplayer-external, version 0.2.9
Filename, size File type Python version Upload date Hashes
Filename, size scoreplayer_external-0.2.9-py3-none-any.whl (22.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size scoreplayer_external-0.2.9.tar.gz (7.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page