add_pitchbends_by_index
Add pitchbends to a MIDI file by specifying a track index and defining pitchbend values with precise timing or ticks for enhanced musical expression.
Instructions
Add pitchbends to midi file by track index
Input Schema
Name | Required | Description | Default |
---|---|---|---|
filePath | Yes | Absoulate File Path to midi file | |
pitchbends | Yes | ||
trackIndex | Yes | Track index number |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"filePath": {
"description": "Absoulate File Path to midi file",
"type": "string"
},
"pitchbends": {
"items": {
"allOf": [
{
"properties": {
"value": {
"type": "number"
}
},
"required": [
"value"
],
"type": "object"
},
{
"anyOf": [
{
"additionalProperties": false,
"properties": {
"time": {
"type": "number"
}
},
"required": [
"time"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"ticks": {
"type": "number"
}
},
"required": [
"ticks"
],
"type": "object"
}
]
}
]
},
"type": "array"
},
"trackIndex": {
"description": "Track index number",
"type": "number"
}
},
"required": [
"filePath",
"trackIndex",
"pitchbends"
],
"type": "object"
}