MCPcopy Create free account
hub / github.com/collidingScopes/iron-interface / transitionToNamedPattern

Function transitionToNamedPattern

voice-control.js:28–34  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

26}
27
28function transitionToNamedPattern(name) {
29 const index = patternNames.findIndex(p => p.toLowerCase() === name.toLowerCase());
30 if (index !== -1 && index !== currentPattern && !isTransitioning) {
31 transitionToPattern(index);
32 highlightActivePattern(index);
33 }
34}
35
36recognition.onresult = function(event) {
37 for (let i = event.resultIndex; i < event.results.length; ++i) {

Callers 1

voice-control.jsFile · 0.85

Calls 2

transitionToPatternFunction · 0.85
highlightActivePatternFunction · 0.85

Tested by

no test coverage detected