Skip to content

Instantly share code, notes, and snippets.

@olilarkin
Last active February 14, 2017 13:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olilarkin/0491715c5f4f44bf56db79db3097bdb8 to your computer and use it in GitHub Desktop.
Save olilarkin/0491715c5f4f44bf56db79db3097bdb8 to your computer and use it in GitHub Desktop.
atom.io process pallet configuration for faust on OSX
{
"patterns": {
"P1": {
"expression": "(path):(line)"
},
"P2": {
"expression": "(path)\\s+(line)",
"path": "(?:\\/[\\w\\.\\-]+)+"
}
},
"commands": [
{
"namespace": "faust",
"action": "Open Library Documentation",
"command": "open http://faust.grame.fr/libraries.html",
"arguments": [],
"cwd": null,
"inputDialogs": [],
"env": {},
"keystroke": null,
"stream": false,
"outputTarget": "panel",
"outputBufferSize": 80000,
"maxCompleted": 3,
"autoShowOutput": true,
"autoHideOutput": false,
"scrollLockEnabled": false,
"singular": false,
"promptToSave": true,
"saveOption": "none",
"patterns": [
"default"
],
"successOutput": "{stdout}",
"errorOutput": "{stdout}\n{stderr}",
"fatalOutput": "Failed to execute : {fullCommand}\n{stdout}\n{stderr}",
"successMessage": "Executed : {fullCommand}",
"errorMessage": "Executed : {fullCommand}\nReturned with code {exitStatus}\n{stderr}",
"fatalMessage": "Failed to execute : {fullCommand}\n{stdout}\n{stderr}"
},
{
"namespace": "faust",
"action": "Inspect C++",
"command": "faust {filePath}",
"arguments": [],
"cwd": "{fileDirAbsPath}",
"inputDialogs": [],
"env": {},
"keystroke": null,
"stream": true,
"outputTarget": "file",
"outputBufferSize": 80000,
"maxCompleted": 3,
"autoShowOutput": true,
"autoHideOutput": false,
"scrollLockEnabled": false,
"singular": true,
"promptToSave": true,
"saveOption": "none",
"patterns": [
"default"
],
"successOutput": "{stdout}",
"errorOutput": "{stdout}\n{stderr}",
"fatalOutput": "Failed to execute : {fullCommand}\n{stdout}\n{stderr}",
"successMessage": "Executed : {fullCommand}",
"errorMessage": "Executed : {fullCommand}\nReturned with code {exitStatus}\n{stderr}",
"fatalMessage": "Failed to execute : {fullCommand}\n{stdout}\n{stderr}"
},
{
"namespace": "faust",
"action": "faust2firefox",
"command": "faust2firefox {filePath}",
"arguments": [],
"cwd": "{fileDirAbsPath}",
"inputDialogs": [],
"env": {},
"keystroke": null,
"stream": true,
"outputTarget": "panel",
"outputBufferSize": 80000,
"maxCompleted": 1,
"autoShowOutput": false,
"autoHideOutput": false,
"scrollLockEnabled": false,
"singular": true,
"promptToSave": false,
"saveOption": "all",
"patterns": [
"default"
],
"successOutput": "{stdout}",
"errorOutput": "{stdout}\n{stderr}",
"fatalOutput": "Failed to execute : {fullCommand}\n{stdout}\n{stderr}",
"successMessage": "Executed : {fullCommand}",
"errorMessage": "Executed : {fullCommand}\nReturned with code {exitStatus}\n{stderr}",
"fatalMessage": "Failed to execute : {fullCommand}\n{stdout}\n{stderr}"
},
{
"namespace": "faust",
"action": "faust2caqt",
"command": "faust2caqt {filePath}; open {fileName}.app",
"arguments": [],
"cwd": "{fileDirAbsPath}",
"inputDialogs": [],
"env": {},
"keystroke": null,
"stream": true,
"outputTarget": "panel",
"outputBufferSize": 80000,
"maxCompleted": 3,
"autoShowOutput": true,
"autoHideOutput": false,
"scrollLockEnabled": false,
"singular": true,
"promptToSave": true,
"saveOption": "all",
"patterns": [
"default"
],
"successOutput": "{stdout}",
"errorOutput": "{stdout}\n{stderr}",
"fatalOutput": "Failed to execute : {fullCommand}\n{stdout}\n{stderr}",
"successMessage": "Executed : {fullCommand}",
"errorMessage": "Executed : {fullCommand}\nReturned with code {exitStatus}\n{stderr}",
"fatalMessage": "Failed to execute : {fullCommand}\n{stdout}\n{stderr}"
},
{
"namespace": "faust",
"action": "faust2max6",
"command": "faust2max6 {filePath}\nopen {fileName}.maxpat",
"arguments": [],
"cwd": "{fileDirAbsPath}",
"inputDialogs": [],
"env": {},
"keystroke": null,
"stream": true,
"outputTarget": "panel",
"outputBufferSize": 80000,
"maxCompleted": 3,
"autoShowOutput": true,
"autoHideOutput": false,
"scrollLockEnabled": false,
"singular": true,
"promptToSave": true,
"saveOption": "all",
"patterns": [
"default"
],
"successOutput": "{stdout}",
"errorOutput": "{stdout}\n{stderr}",
"fatalOutput": "Failed to execute : {fullCommand}\n{stdout}\n{stderr}",
"successMessage": "Executed : {fullCommand}",
"errorMessage": "Executed : {fullCommand}\nReturned with code {exitStatus}\n{stderr}",
"fatalMessage": "Failed to execute : {fullCommand}\n{stdout}\n{stderr}"
},
{
"namespace": "faust",
"action": "faust2gnuplot",
"command": "faust {filePath} -i -a plot.cpp -o {fileName}.cpp\ng++ -O3 -mfpmath=sse -msse -msse2 -msse3 -ffast-math -ftree-vectorize {fileName}.cpp -o {fileName}-print\nrm {fileName}.dat\n./{fileName}-print -n {NumSamples} > {fileName}.dat\ngnuplot -p -e 'set title \"{fileName}\"; plot \"{fileName}.dat\" with lines'\nrm {fileName}.cpp",
"arguments": [],
"cwd": "{fileDirAbsPath}",
"inputDialogs": [
{
"variableName": "NumSamples",
"message": "Enter number of samples to plot",
"initialInput": "32"
}
],
"env": {},
"keystroke": null,
"stream": true,
"outputTarget": "panel",
"outputBufferSize": 80000,
"maxCompleted": 3,
"autoShowOutput": true,
"autoHideOutput": false,
"scrollLockEnabled": false,
"singular": true,
"promptToSave": true,
"saveOption": "none",
"patterns": [
"default"
],
"successOutput": "{stdout}",
"errorOutput": "{stdout}\n{stderr}",
"fatalOutput": "Failed to execute : {fullCommand}\n{stdout}\n{stderr}",
"successMessage": "Executed : {fullCommand}",
"errorMessage": "Executed : {fullCommand}\nReturned with code {exitStatus}\n{stderr}",
"fatalMessage": "Failed to execute : {fullCommand}\n{stdout}\n{stderr}"
},
{
"namespace": "faust",
"action": "faust2supercollider",
"command": "faust2supercollider {filePath}; mv {fileName}.sc* /Users/oli/Library/Application\\ Support/SuperCollider/Extensions/MyUGens",
"arguments": [],
"cwd": "{fileDirAbsPath}",
"inputDialogs": [],
"env": {},
"keystroke": null,
"stream": true,
"outputTarget": "panel",
"outputBufferSize": 80000,
"maxCompleted": 3,
"autoShowOutput": true,
"autoHideOutput": false,
"scrollLockEnabled": false,
"singular": true,
"promptToSave": true,
"saveOption": "none",
"patterns": [
"default"
],
"successOutput": "{stdout}",
"errorOutput": "{stdout}\n{stderr}",
"fatalOutput": "Failed to execute : {fullCommand}\n{stdout}\n{stderr}",
"successMessage": "Executed : {fullCommand}",
"errorMessage": "Executed : {fullCommand}\nReturned with code {exitStatus}\n{stderr}",
"fatalMessage": "Failed to execute : {fullCommand}\n{stdout}\n{stderr}"
},
{
"namespace": "faust",
"action": "faust2octave",
"command": "faust {filePath} -i -a matlabplot.cpp -o {fileName}.cpp\ng++ -O3 -mfpmath=sse -msse -msse2 -msse3 -ffast-math -ftree-vectorize {fileName}.cpp -o {fileName}-print\nrm {fileName}.m\necho {NumSamples}\n./{fileName}-print -n {NumSamples} > {fileName}.m\nosascript -e 'tell application \"Terminal\" to do script \"cd {fileDirAbsPath}; octave --persist {fileName}.m\"'\nrm {fileName}.cpp\nosascript -e 'tell application \"Terminal\" to activate'",
"arguments": [],
"cwd": "{fileDirAbsPath}",
"inputDialogs": [
{
"variableName": "NumSamples",
"message": "Enter number of samples to plot",
"initialInput": "32"
}
],
"env": {},
"keystroke": null,
"stream": true,
"outputTarget": "panel",
"outputBufferSize": 80000,
"maxCompleted": 3,
"autoShowOutput": true,
"autoHideOutput": false,
"scrollLockEnabled": false,
"singular": true,
"promptToSave": true,
"saveOption": "none",
"patterns": [
"default"
],
"successOutput": "{stdout}",
"errorOutput": "{stdout}\n{stderr}",
"fatalOutput": "Failed to execute : {fullCommand}\n{stdout}\n{stderr}",
"successMessage": "Executed : {fullCommand}",
"errorMessage": "Executed : {fullCommand}\nReturned with code {exitStatus}\n{stderr}",
"fatalMessage": "Failed to execute : {fullCommand}\n{stdout}\n{stderr}"
},
{
"namespace": "faust",
"action": "faust2matlab",
"command": "faust {filePath} -i -a matlabplot.cpp -o {fileName}.cpp\ng++ -O3 -mfpmath=sse -msse -msse2 -msse3 -ffast-math -ftree-vectorize {fileName}.cpp -o {fileName}-print\nrm {fileName}.m\necho {NumSamples}\n./{fileName}-print -n {NumSamples} > {fileName}.m\nrm {fileName}.cpp\nosascript -e 'tell application \"Terminal\" to do script \"cd {fileDirAbsPath}; /Applications/MATLAB_R2016a.app/bin/matlab;\"'\nosascript -e 'tell application \"Terminal\" to activate'",
"arguments": [],
"cwd": "{fileDirAbsPath}",
"inputDialogs": [
{
"variableName": "NumSamples",
"message": "Enter number of samples to plot",
"initialInput": "32"
}
],
"env": {},
"keystroke": null,
"stream": true,
"outputTarget": "panel",
"outputBufferSize": 80000,
"maxCompleted": 3,
"autoShowOutput": true,
"autoHideOutput": false,
"scrollLockEnabled": false,
"singular": false,
"promptToSave": true,
"saveOption": "none",
"patterns": [
"default"
],
"successOutput": "{stdout}",
"errorOutput": "{stdout}\n{stderr}",
"fatalOutput": "Failed to execute : {fullCommand}\n{stdout}\n{stderr}",
"successMessage": "Executed : {fullCommand}",
"errorMessage": "Executed : {fullCommand}\nReturned with code {exitStatus}\n{stderr}",
"fatalMessage": "Failed to execute : {fullCommand}\n{stdout}\n{stderr}"
},
{
"namespace": "faust",
"action": "faust2faustgen",
"command": "faust2gen {fileNameExt}\nopen {fileName}.maxpat",
"arguments": [],
"cwd": "{fileDirAbsPath}",
"inputDialogs": [],
"env": {},
"keystroke": null,
"stream": true,
"outputTarget": "panel",
"outputBufferSize": 80000,
"maxCompleted": 3,
"autoShowOutput": true,
"autoHideOutput": false,
"scrollLockEnabled": false,
"singular": true,
"promptToSave": true,
"saveOption": "none",
"patterns": [
"default"
],
"successOutput": "{stdout}",
"errorOutput": "{stdout}\n{stderr}",
"fatalOutput": "Failed to execute : {fullCommand}\n{stdout}\n{stderr}",
"successMessage": "Executed : {fullCommand}",
"errorMessage": "Executed : {fullCommand}\nReturned with code {exitStatus}\n{stderr}",
"fatalMessage": "Failed to execute : {fullCommand}\n{stdout}\n{stderr}"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment