Skip to content

Commit

Permalink
Merge pull request #3 from phillipivan/main
Browse files Browse the repository at this point in the history
add record preset
  • Loading branch information
phillipivan authored Apr 30, 2024
2 parents 7dde42b + 76d0480 commit a8cf984
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 1 deletion.
3 changes: 3 additions & 0 deletions companion/HELP.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ This turns the record function of the controlled device on/off.

## Version History

### Version 1.2.1
- Add record preset

### Version 1.2.0
- Add transport & status presets
- Update companion-module-tools to 1.5.0
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tascam-da-6400",
"version": "1.2.0",
"version": "1.2.1",
"main": "src/main.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
Expand Down
51 changes: 51 additions & 0 deletions src/presets.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ const icons = {
'iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAMAAACahl6sAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAnlQTFRFAAAA////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////7olAIAAAANN0Uk5TAA5bns/g2bp6KgE0g73czJxRC17f//iSCRmv+tMKhPsgNtvyahrNInj3dj/WFRGX/mADc6Ur0e8oDE3dsAQz0NICf/1KResxEqujB4fU8QW8Sy853uMIDZtO6BQXrZP89D3kgMDzGPVAfmkeD5jixm5TaCOqWOos1VDwtwaU+TwWrl0pmWLuJ7k7HcJH5qhtJc4fxHfBtmWI6cqxa+yKVZCmEOGks0y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ePp4nH6pJoAAAAASUVORK5CYII=',
searchforward:
'iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAMAAACahl6sAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAmpQTFRFAAAA////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////xH3ReQAAAM50Uk5TAB11tNnn1rBsGQdKlsvj4caPQQYEZOX/YCiu/fymHhWlrBhP7u1VwSNY/vt2BQj2XwJAtnD4ewka0i68FpuC3jH5jAP0Y3y9XsjiMpwnLPHvdOY0V4oK931zJeyYD0npznro8FZ5Cy/AFPNTAdGNVLeODOA2wxfyZzqQd8+aQ9Mtf0KdDYMgp/rdslBGl6obohAkE+RqSCow33GSoaORKUT1cr/qmRImXag7tTPYq07Nnj67TTi5R+upKxHaRYHMxNxak2a+hmGtpLNixYs8jntmAAAFi0lEQVR4nO2c+V9UVRiHBwwwckYx5KvMKAqoMVMiwZBWKpNgRWZmGNLmMtqqAdGmaYplWpJttGlUqGWb7bZa2L7/T02ydGfmLufcc87lzP28z+/v+bwPl3vunXPf9w0ECIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCJ3Iy59wTkFh0cRzXcYXnzcpGJo8pWTq+VLT4qV0WhmGCU0vdbPAjPLwcHxk5izZyXFQMXskjRThOZX8C1RVj8Vj7jz5CTJSPB9GCi/gXaAmaoyPXXiRiiydWVCEdGoX1nEtcHFtxgL1FYpStacBmcQbL+GIX7Q4a4HgpcqytWbW3Kw8gMsuZ19giUl8NedFlcFSkzyAZU2s8ZUJ0wWuWK4wZzPyCkzzQHML4xNhhXk8ruTeM8S4yiIPhJcUs8TXXW21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3bN/bxTr268cMeDRdx6J7e8a1DvMMB3envPLEIOPWzfy/Yzz7EMqRADmds0viB4SE2L2odH1vq4YQBs6kmI5xh+f6yKmkZn8xXnr2BHy3/nD8tYImvs7ykJ5sUp55O3hrzNAZ/ZpyLYlWK/Yt34x6GMd92FjMM4BimctAsPvGr15NqzGcHHeMYsmU6O+g372cHmUxzSvTy7DYm05yGPBmOkMnW3zPSaK9xDjJyKnO+VpeHu66R4vq0NIIneBfobDbGN3eM08SzQKDiD8MMuvJF/AtUGe6z6jb5CTJT2jI6FbBnobupgEUjf4rYwHhOBUxR3PDn6YLC8r9cb5rbJw31h/7+R0YxBkEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQRC7yL4sYF17LsMDFAAAAAElFTkSuQmCC',
record:
'iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAMAAACahl6sAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAb9QTFRFAAAA////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////AlH9xQAAAJV0Uk5TABlGc6DCztnk7//BEkqFve4PKGKd1/7TmV4jJIYMYcNgAlfVVjfQHKIWB3318R3MUAWWlBC+vAvSx9vaHuLhJRsUCcaurJAyKda0snhw8utBNQPYygHNy0iwFfowgMD49whAiL/z8CAYaMjoOO1suPShJlg0b2PgM6OXBLGzp6SajYT2LxN2qz9du2n9+7plXOyoeUlQ3GpuAAAF/UlEQVR4nO2ceWxVRRSH79TyYvRVYwkmpiWhJRZaFaipMUYTi0Sr2KItlEBTlqIi4B6UUIuKQdlcEndc2ATRRISwusSNRI0mbjGCgkZJtNWIqQaMiZS+ax/Na0p4vs7vnLnD8fV8f/SfnnPvfHn33pk7M/eYIEswJ7oBrlARaaiINFREGioiDR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5ZEgqEOuZEikqBp4sLMJq5HRNrY+4vUmwdZ1MZFbkWllLtc/jkRjIqXn+1qdDoLacAMSDq7q3vY8Fs8A3DEAinjZ49QNuK0GFBl8pa8lkpm7sO1U6F6UO54FE6ic9isWj4rUfkj94BAj3vgolgBvPPN0u9/wGJgAi0zaimaQgJamk+B7GsOdaAoBZP6kG3yX6VxgPYzM7EfQDMK+35zof5KaDg/7foPaN/EckDkPwyn9eW989nytENyFzArg3LyckET7oudq+oePfVNJepjQRCrGPEHKs+HUI6RKNsSv3uZvj+yrtzZoT2YP/f07xMh20yET8MdA/+i4GR2f2nD7YmomXaTFgG8MFsxdTy5cw/ievWlTBz05LQ2d9HVjToWBC8OvGdnHc04Oo34Fq+ZD2UiXM493buQUrOFV4WjJfYiV35t5u1kbK7gFXu5fxjxAivn38vLZJXeKm5ZwD9FF82ruSIFfO+iBQ/xx1y15C7iHcFDN6cHl3MfwgHkt7FY4KRS2eAPnwihuuNtBGxxVPJu+iJoazw/3umiCqxp0S1dlRQ26LopOCglVAcNQWlXAgKDiUMN1CdBlZqF17MIVTl8yXdcyjd+3d3jfffQiY+5xvDwRQZncWcPbBzZn+P8Sk1jgfpElosLFVdXr9qWt91sypXVpJGeMsAJz5YSDh3oXm13zP6zAfAJQEWmoiDRURBoqIg0VkYaKSENFpKEi0lARaaiINFREGioiDRWRhopIQ0WkoSLSUBFpqIg0VEQaKiKNrBH5F0CWMdjTMZ1/AAAAAElFTkSuQmCC',
}

module.exports = async function (self) {
Expand Down Expand Up @@ -344,6 +346,55 @@ module.exports = async function (self) {
},
],
}
presets[`record`] = {
type: 'button',
category: 'Transport',
name: `Record`,
style: {
text: ``,
size: '14',
png64: icons.record,
pngalignment: 'center:center',
color: combineRgb(255, 255, 255),
bgcolor: combineRgb(0, 0, 0),
show_topbar: false,
},
steps: [
{
down: [
{
actionId: 'record',
options: {
mode: respParam.recordModeSelect.record,
},
},
],
up: [],
},
],
feedbacks: [
{
feedbackId: 'mechaStatus',
options: {
status: respParam.mechaStatusReturn.record,
},
style: {
color: combineRgb(0, 0, 0),
bgcolor: combineRgb(255, 0, 0),
},
},
{
feedbackId: 'mechaStatus',
options: {
status: respParam.mechaStatusReturn.recordReady,
},
style: {
color: combineRgb(0, 0, 0),
bgcolor: combineRgb(255, 128, 0),
},
},
],
}
presets[`track_skip_back`] = {
type: 'button',
category: 'Transport',
Expand Down

0 comments on commit a8cf984

Please sign in to comment.