/  Utilities

Smuck

smIO

SMucK-related tools, including utilities for converting SMucKish symbolic notation into ChucK data structures.

Smuck

inherits : Object

A collection of SMucK-related high-level functions.

constructors

Smuck()

Default constructor for Smuck.

static member functions

string mid2str(float note)

Convert a MIDI note number to a pitch name.

int str2mid(string note)

Convert a pitch name to a MIDI note number.

string version()

Retrieve smuck version as a string.


smIO

inherits : Object

Class for reading/writing ezScore objects to/from JSON files. Requires HashMap chugin.

constructors

smIO()

Default constructor for smIO.

static member functions

ezScore jsonToScore(string filepath)

Load an ezScore object from a JSON file, specifying the filepath. Requires HashMap chugin. Returns empty ezScore if file not found or malformed.

ezScore jsonToScore()

Load an ezScore object from a JSON file, opening a file dialog to select the filepath.

void scoreToJson(string filepath, ezScore score)

Save an ezScore object to a JSON file, specifying the filepath. Requires HashMap chugin.

void scoreToJson(ezScore score)

Save an ezScore object to a JSON file, opening a file dialog to select the filepath.