Skip to content

Commit

Permalink
Merge branch 'gh-190'
Browse files Browse the repository at this point in the history
* gh-190:
  gh-190: Updates built files.
  GH-190: Updated `flock.band` to use `flock.noteTarget` as the target grade.
  GH-190: Updated `flock.band` to use an invoker.
  • Loading branch information
colinbdclark committed Dec 11, 2016
2 parents b8d9550 + 3bc6f71 commit 99ed819
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 72 deletions.
18 changes: 3 additions & 15 deletions dist/flocking-all.js
Original file line number Diff line number Diff line change
Expand Up @@ -22771,7 +22771,7 @@ var fluid = fluid || require("infusion"),
// TODO: Unit tests.
fluid.defaults("flock.band", {
gradeNames: ["fluid.component"],

synthGrade: "flock.noteTarget",
invokers: {
play: {
func: "{that}.events.onPlay.fire"
Expand All @@ -22784,10 +22784,9 @@ var fluid = fluid || require("infusion"),
set: {
func: "{that}.events.onSet.fire"
},

getSynths: {
funcName: "flock.band.getSynths",
args: ["{that}"]
funcName: "fluid.queryIoCSelector",
args: ["{that}", "{that}.options.synthGrade"]
}
},

Expand Down Expand Up @@ -22831,17 +22830,6 @@ var fluid = fluid || require("infusion"),
}
}
});

flock.band.getSynths = function (that) {
var synths = [];
fluid.each(that.options.components, function (componentDef, name) {
if (fluid.hasGrade(that[name].options, "flock.synth")) {
synths.push(that[name]);
}
});

return synths;
};
}());
;/*
* Flocking Audio Buffers
Expand Down
8 changes: 4 additions & 4 deletions dist/flocking-all.min.js

Large diffs are not rendered by default.

18 changes: 3 additions & 15 deletions dist/flocking-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -3965,7 +3965,7 @@ var fluid = fluid || require("infusion"),
// TODO: Unit tests.
fluid.defaults("flock.band", {
gradeNames: ["fluid.component"],

synthGrade: "flock.noteTarget",
invokers: {
play: {
func: "{that}.events.onPlay.fire"
Expand All @@ -3978,10 +3978,9 @@ var fluid = fluid || require("infusion"),
set: {
func: "{that}.events.onSet.fire"
},

getSynths: {
funcName: "flock.band.getSynths",
args: ["{that}"]
funcName: "fluid.queryIoCSelector",
args: ["{that}", "{that}.options.synthGrade"]
}
},

Expand Down Expand Up @@ -4025,17 +4024,6 @@ var fluid = fluid || require("infusion"),
}
}
});

flock.band.getSynths = function (that) {
var synths = [];
fluid.each(that.options.components, function (componentDef, name) {
if (fluid.hasGrade(that[name].options, "flock.synth")) {
synths.push(that[name]);
}
});

return synths;
};
}());
;/*
* Flocking Audio Buffers
Expand Down
6 changes: 3 additions & 3 deletions dist/flocking-base.min.js

Large diffs are not rendered by default.

18 changes: 3 additions & 15 deletions dist/flocking-no-jquery.js
Original file line number Diff line number Diff line change
Expand Up @@ -12593,7 +12593,7 @@ var fluid = fluid || require("infusion"),
// TODO: Unit tests.
fluid.defaults("flock.band", {
gradeNames: ["fluid.component"],

synthGrade: "flock.noteTarget",
invokers: {
play: {
func: "{that}.events.onPlay.fire"
Expand All @@ -12606,10 +12606,9 @@ var fluid = fluid || require("infusion"),
set: {
func: "{that}.events.onSet.fire"
},

getSynths: {
funcName: "flock.band.getSynths",
args: ["{that}"]
funcName: "fluid.queryIoCSelector",
args: ["{that}", "{that}.options.synthGrade"]
}
},

Expand Down Expand Up @@ -12653,17 +12652,6 @@ var fluid = fluid || require("infusion"),
}
}
});

flock.band.getSynths = function (that) {
var synths = [];
fluid.each(that.options.components, function (componentDef, name) {
if (fluid.hasGrade(that[name].options, "flock.synth")) {
synths.push(that[name]);
}
});

return synths;
};
}());
;/*
* Flocking Audio Buffers
Expand Down
10 changes: 5 additions & 5 deletions dist/flocking-no-jquery.min.js

Large diffs are not rendered by default.

18 changes: 3 additions & 15 deletions src/synths/band.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ var fluid = fluid || require("infusion"),
// TODO: Unit tests.
fluid.defaults("flock.band", {
gradeNames: ["fluid.component"],

synthGrade: "flock.noteTarget",
invokers: {
play: {
func: "{that}.events.onPlay.fire"
Expand All @@ -39,10 +39,9 @@ var fluid = fluid || require("infusion"),
set: {
func: "{that}.events.onSet.fire"
},

getSynths: {
funcName: "flock.band.getSynths",
args: ["{that}"]
funcName: "fluid.queryIoCSelector",
args: ["{that}", "{that}.options.synthGrade"]
}
},

Expand Down Expand Up @@ -86,15 +85,4 @@ var fluid = fluid || require("infusion"),
}
}
});

flock.band.getSynths = function (that) {
var synths = [];
fluid.each(that.options.components, function (componentDef, name) {
if (fluid.hasGrade(that[name].options, "flock.synth")) {
synths.push(that[name]);
}
});

return synths;
};
}());

0 comments on commit 99ed819

Please sign in to comment.