play_note
Play a MIDI note using Sonic Pi, specifying the note number, synth type, sustain duration, and cutoff frequency to create custom sound sequences programmatically.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
cutoff | No | Filter cutoff frequency | |
note | Yes | MIDI note number (0-127) | |
sustain | No | Note duration in seconds | |
synth | No | Synth to use (e.g. :saw, :beep, :prophet) |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"cutoff": {
"description": "Filter cutoff frequency",
"type": "number"
},
"note": {
"description": "MIDI note number (0-127)",
"maximum": 127,
"minimum": 0,
"type": "number"
},
"sustain": {
"description": "Note duration in seconds",
"type": "number"
},
"synth": {
"description": "Synth to use (e.g. :saw, :beep, :prophet)",
"type": "string"
}
},
"required": [
"note"
],
"type": "object"
}