MCPcopy Create free account
hub / github.com/808StaN/OpenStudio / onSettingChange

Function onSettingChange

src/components/SampleSettingsDialog.jsx:131–139  ·  view source on GitHub ↗
(changes)

Source from the content-addressed store, hash-verified

129
130 const fadeOutStartPct = Math.max(0, settings.lengthPct - fadeOutWidthPct);
131 const onSettingChange = function (changes) {
132 // Centralized settings update keeps reducer payloads consistent.
133 dispatch(
134 setChannelSampleSettings({
135 channelId: channel.id,
136 changes,
137 }),
138 );
139 };
140
141 const getOptionLabel = function (options, value) {
142 const safeValue = String(value || "");

Callers 4

TimeStretchTabSectionFunction · 0.85
EnvelopeTabSectionFunction · 0.85
PluginSettingsSectionFunction · 0.85
SampleTabSectionFunction · 0.85

Calls 1

setChannelSampleSettingsFunction · 0.90

Tested by

no test coverage detected