2020-04-13 03:05:30 -04:00
|
|
|
/*
|
|
|
|
* Copyright © 2020 Luciano Iam <lucianito@gmail.com>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*/
|
|
|
|
|
2020-04-14 03:53:25 -04:00
|
|
|
// Example empty callback
|
|
|
|
|
2020-04-13 03:05:30 -04:00
|
|
|
export class ArdourCallback {
|
|
|
|
|
2020-04-14 16:58:44 -04:00
|
|
|
// Connection status
|
|
|
|
onConnected () {}
|
|
|
|
onDisconnected () {}
|
|
|
|
|
|
|
|
// All messages and errors
|
|
|
|
onMessage (msg) {}
|
|
|
|
onError (error) {}
|
|
|
|
|
|
|
|
// Globals
|
2020-04-13 03:05:30 -04:00
|
|
|
onTempo (bpm) {}
|
2020-04-18 09:19:14 -04:00
|
|
|
onPositionTime (seconds) {}
|
|
|
|
onTransportRoll (value) {}
|
|
|
|
onRecordState (value) {}
|
2020-04-14 16:58:44 -04:00
|
|
|
|
|
|
|
// Strips
|
2020-04-21 10:20:16 -04:00
|
|
|
onStripDescription (stripId, name, isVca) {}
|
2020-04-14 16:58:44 -04:00
|
|
|
onStripMeter (stripId, db) {}
|
2020-04-13 03:05:30 -04:00
|
|
|
onStripGain (stripId, db) {}
|
|
|
|
onStripPan (stripId, value) {}
|
|
|
|
onStripMute (stripId, value) {}
|
2020-04-14 16:58:44 -04:00
|
|
|
|
|
|
|
// Strip plugins
|
2020-04-18 06:44:00 -04:00
|
|
|
onStripPluginDescription (stripId, pluginId, name) {}
|
2020-04-13 03:05:30 -04:00
|
|
|
onStripPluginEnable (stripId, pluginId, value) {}
|
|
|
|
|
2020-04-14 16:58:44 -04:00
|
|
|
// Strip plugin parameters
|
|
|
|
// valueType
|
|
|
|
// 'b' : boolean
|
|
|
|
// 'i' : integer
|
|
|
|
// 'd' : double
|
2020-04-18 06:44:00 -04:00
|
|
|
onStripPluginParamDescription (stripId, pluginId, paramId, name, valueType, min, max, isLog) {}
|
2020-04-14 16:58:44 -04:00
|
|
|
onStripPluginParamValue (stripId, pluginId, paramId, value) {}
|
2020-04-13 03:05:30 -04:00
|
|
|
|
2020-04-14 16:58:44 -04:00
|
|
|
}
|