Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
258 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#pragma once | ||
|
||
#include "swirly/scene/Scene.js" | ||
#include "swirly/util/Dict.js" | ||
|
||
Scene.channel = function(name, args) { | ||
return Dict.union(args || {}, { | ||
mute: Scene.setter('vl70', 'mute'), | ||
level: Scene.setter('vl70', 'level'), | ||
// send: {}, // TODO | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#pragma once | ||
|
||
#include "swirly/util/ForEach.js" | ||
|
||
var Scene = {}; | ||
|
||
Scene.makeEach = function(show, args, makerTable) { | ||
return applyEach(args, function(arg, name) { | ||
return makerTable[name](show, arg); | ||
}); | ||
}; | ||
|
||
Scene.muter = function(track, muted) { | ||
muted = muted ? 1 : 0; | ||
return function() { | ||
track.set('mute', muted); | ||
}; | ||
}; | ||
|
||
Scene.setter = function(trackName, propName) { | ||
return function(show, value) { | ||
var track = show.tracks[trackName]; | ||
return function() { | ||
track.set(propName, value); | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#pragma once | ||
|
||
#include "swirly/scene/VL.js" | ||
#include "swirly/scene/Scene.js" | ||
|
||
// Show.partMaker = { | ||
// vl: function(args) { | ||
// return Util | ||
// var program = args.program && Program(args.program), | ||
// mute = args.pro | ||
|
||
// return function(show) [ | ||
// program && program(show); | ||
|
||
// }; | ||
// }, | ||
// }; | ||
|
||
Show.Scene = function(show, args) { | ||
/** | ||
VL70: program change, level, effect send. | ||
mic: enable, level, effects send. | ||
WX-7: send to instrument. | ||
tempo: | ||
lights: | ||
processors: | ||
displays: | ||
*/ | ||
return makeSequence(args, Show.partMaker); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#pragma once | ||
|
||
#include "swirly/scene/Channel.js" | ||
#include "swirly/show/VLProgram.js" | ||
|
||
Scene.VL = {}; | ||
|
||
Scene.VL.maker = Scene.channel('vl70', { | ||
program: function(show, name) { | ||
var program = VL.getProgram(name), | ||
bank = program[0], | ||
pc = program[1], | ||
object = show.objects.maxclass.unpack; | ||
|
||
return function() { | ||
object.message(bank, pc); | ||
}; | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.