Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                svg(style="display: none")
  defs
    path(id="icon-drop" d="M12,20A6,6 0 0,1 6,14C6,10 12,3.25 12,3.25C12,3.25 18,10 18,14A6,6 0 0,1 12,20Z")
    path(id="icon-loop" style="transform-origin: 50% 50%; transform: rotate(90deg) scaleX(-1)" d="M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z")
    path(id="icon-triangle" d="M1,21H23L12,2")
    path(id="icon-square" d="M3,3V21H21V3")
#app
  .pedal-description
    select.pedal-setting-select(id="pedal-setting-select" v-model="selectedId" @change="setSelectedSetting($event)")
      option(v-for="setting in settings" :value="setting.id" :key="setting.id" :selected="setting.id == selected.id") {{setting.name}}
    h1.pedal-settings-name {{selected.name}}
    h2.pedal-active-channels
      span Active Channels
      span(v-if="selected.activeChannels.includes('loop')") <svg viewBox="0 0 24 24"><use xlink:href="#icon-loop" /></svg>
      span(v-if="selected.activeChannels.includes('space')") <svg viewBox="0 0 24 24"><use xlink:href="#icon-drop" /></svg>
  header.pedal-header
    h2.pedal-header__title.u-text-border Expression / Ramp Parameters
    .pedal-header__icons
      .set
        span <svg viewBox="0 0 24 24"><use xlink:href="#icon-square" /></svg>
        span T
      .set
        span <svg viewBox="0 0 24 24"><use xlink:href="#icon-triangle" /></svg>
        span B
    section.dip-switches
      h3.fieldset-label.u-text-border on <span>off</span>
      fieldset.checkbox-group.ds-exp-ramp
        .input-wrapper
          input(type="checkbox" v-model="selected.dipSwitches.expRamp" value="time" id="ds-exp-ramp__time")
          input(type="checkbox" v-model="selected.dipSwitches.expRamp" value="length" id="ds-exp-ramp__length")
          input(type="checkbox" v-model="selected.dipSwitches.expRamp" value="modify-space" id="ds-exp-ramp__modify-space")
          input(type="checkbox" v-model="selected.dipSwitches.expRamp" value="clock" id="ds-exp-ramp__clock")
          input(type="checkbox" v-model="selected.dipSwitches.expRamp" value="modify-loop" id="ds-exp-ramp__modify-loop")
          input(type="checkbox" v-model="selected.dipSwitches.expRamp" value="bounce" id="ds-exp-ramp__bounce")
          input(type="checkbox" v-model="selected.dipSwitches.expRamp" value="motb-space" id="ds-exp-ramp__motb-space")
          input(type="checkbox" v-model="selected.dipSwitches.expRamp" value="motb-loop" id="ds-exp-ramp__motb-loop")

        .label-wrapper
          label(for="ds-exp-ramp__time") Time
          label(for="ds-exp-ramp__length") Length
          label(for="ds-exp-ramp__modify-space")
            | Modify
            | <svg viewBox="0 0 24 24"><use xlink:href="#icon-drop" /></svg>
          label(for="ds-exp-ramp__clock") Clock
          label(for="ds-exp-ramp__modify-loop")
            | Modifiy
            | <svg viewBox="0 0 24 24"><use xlink:href="#icon-loop" /></svg>
          label.label--alt(for="ds-exp-ramp__bounce") Bounce
          label.label--alt(for="ds-exp-ramp__motb-space")
            | MoTB
            | <svg viewBox="0 0 24 24"><use xlink:href="#icon-drop" /></svg>
          label.label--alt(for="ds-exp-ramp__motb-loop")
            | MoTB
            | <svg viewBox="0 0 24 24"><use xlink:href="#icon-loop" /></svg>

      fieldset.checkbox-group.ds-rise-fall
        .input-wrapper
          input(type="checkbox" v-model="selected.dipSwitches.riseFall" value="time" id="ds-rise-fall__time")
          input(type="checkbox" v-model="selected.dipSwitches.riseFall" value="length" id="ds-rise-fall__length")
          input(type="checkbox" v-model="selected.dipSwitches.riseFall" value="modify-space" id="ds-rise-fall__modify-space")
          input(type="checkbox" v-model="selected.dipSwitches.riseFall" value="clock" id="ds-rise-fall__clock")
          input(type="checkbox" v-model="selected.dipSwitches.riseFall" value="modify-loop" id="ds-rise-fall__modify-loop")
          input(type="checkbox" v-model="selected.dipSwitches.riseFall" value="shape" id="ds-rise-fall__shape")
          input(type="checkbox" v-model="selected.dipSwitches.riseFall" value="trails" id="ds-rise-fall__trails")
          input(type="checkbox" v-model="selected.dipSwitches.riseFall" value="sweep" id="ds-rise-fall__sweep")
        .label-wrapper        
          label(for="ds-rise-fall__time") Time
          label(for="ds-rise-fall__length") Length
          label(for="ds-rise-fall__modify-space")
            | Modify
            | <svg viewBox="0 0 24 24"><use xlink:href="#icon-drop" /></svg>
          label(for="ds-rise-fall__clock") Clock
          label(for="ds-rise-fall__modify-loop")
            | Modifiy
            | <svg viewBox="0 0 24 24"><use xlink:href="#icon-loop" /></svg>
          label.label--alt(for="ds-rise-fall__shape") Shape
          label.label--alt(for="ds-rise-fall__trails") Trails
          label.label--alt(for="ds-rise-fall__sweep") Sweep
      h3.fieldset-label.u-text-border rise <span>fall</span>

  main.pedal-main
    .pedal-main__side-input
    .pedal-main__side-input
    .pedal-main__design
    .pedal-main__design.pedal-main__design--reverse

    button.knob
      .knob-element(:style="{ '--knob-value': selected.knobs.time }")
      .knob-outline
      .knob-label Time
    button.knob
      .knob-element(:style="{ '--knob-value': selected.knobs.mix }")
      .knob-label Mix<br />(Ramp)
    button.knob
      .knob-element(:style="{ '--knob-value': selected.knobs.length }")
      .knob-outline.knob-outline--reverse
      .knob-label Length
    button.knob
      .knob-element(:style="{ '--knob-value': selected.knobs.modifySpace }")
      .knob-outline
      .knob-label Modify
    button.knob
      .knob-element(:style="{ '--knob-value': selected.knobs.clock }")
      .knob-outline.knob-outline--middle
      .knob__clock-ticks
        span
        span
        span
        span
        span
        span
        span
        span
        span
        span
      .knob__clock-values
        span 2k
        span 3k
        span 4k
        span 6k
        span 8k
        span 12k
        span 16k
        span 24k
        span 32k
        span 48k
        span 64k
      .knob-label Clock
    button.knob
      .knob-element(:style="{ '--knob-value': selected.knobs.modifyLoop }")
      .knob-outline.knob-outline--reverse
      .knob-label Modify

    button.switch(:data-switch-value="selected.switches.midi" @click="toggleSwitchValue")
      h3.switch-title Midi
      fieldset.switch-options
        label Slip
        label Delay
        label Reverb
      .switch-element
        .bolt
        .switch-options__line
    button.switch(:data-switch-value="selected.switches.channel" @click="toggleSwitchValue")
      .switch-element
        .bolt
        .switch-options__line
      .channel-labels
        span In
        span <svg viewBox="0 0 24 24"><use xlink:href="#icon-loop" /></svg> + In
        span <svg viewBox="0 0 24 24"><use xlink:href="#icon-loop" /></svg>
        span <svg viewBox="0 0 24 24"><use xlink:href="#icon-drop" /></svg>
    button.switch(:data-switch-value="selected.switches.exp" @click="toggleSwitchValue")
      h3.switch-title EXP/CV
      fieldset.switch-options
        label Stretch
        label Tape
        label Env
      .switch-element
        .bolt
        .switch-options__line
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Quicksand:500&display=swap');



:root {
  --font-family-primary: 'Quicksand', sans-serif;
  --font-family-secondary: 'Helvetica', sans-serif;
  --font-weight-primary: 500;
  --border-size: 2px;
  --color-primary: hsl(3, 55%, 68%);
  --color-primary-dark: hsl(351, 95%, 35%);
  --color-secondary: hsl(239, 64%, 24%);
  --color-black: hsl(330, 5%, 14%);
  --color-gray-1: hsl(216, 4%, 44%);
  --color-gray-2: hsl(230, 4%, 60%);
  --color-gray-3: hsl(230, 4%, 70%);
  --color-white: hsl(60, 0%, 100%);
  --color-text: var(--color-white);
  --space: 1rem;
  --space-xxs: calc(var(--space) / 3);
  --space-xs: calc(var(--space) / 2);
  --space-sm: calc(var(--space) / 1.5);
  --space-md: calc(var(--space) * 1.5);
  --space-lg: calc(var(--space) * 2);
  --space-xl: calc(var(--space) * 2.5);
  --duration: 300ms;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

::-moz-focus-inner {
  border: 0;
}

*, *:before, *:after {
  box-sizing: border-box;
}

.u-visually-hidden { 
    position: absolute !important;
    height: 1px; 
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.u-vertical-text {
  display: flex;
  flex-direction: column-reverse;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  
  > * {
    transform: rotate(180deg);
  }
}

.u-text-border {
  padding: var(--space-sm) var(--space-xs);
  border: var(--border-size) solid var(--color-white);
  border-radius: 0.25rem;
  background-color: var(--color-primary);
}

body {
  display: flex;
  flex-direction: column;
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-primary);
  color: var(--color-text);
  margin: var(--space) auto;
  padding: var(--space-sm);
  width: fit-content;
}

.pedal-description {
  margin-bottom: var(--space-sm);
  font-family: var(--font-family-secondary);
  line-height: 1.4;
  color: var(--color-black);
  width: 45ch;
}

.pedal-setting-select {
  margin-bottom: var(--space);
  
  > * + * {
    margin-left: var(--space-xs);
  }
}

.pedal-settings-name {
  font-size: 1.65rem;
  font-weight: 600;
  text-transform: uppercase;
}

.pedal-active-channels {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  
  span:first-child {
    margin-right: var(--space-sm);
  }
  
  svg {
    position: relative;
    width: 1.75em;
    height: 1.75em;
  }
}

.pedal-header,
.pedal-main {
  position: relative;
  background-color: var(--color-primary);
  padding: var(--space) var(--space-sm);
  border-radius: 1rem;
}

.pedal-header__icons {
  position: absolute;
  top: calc(var(--space-md) + 12px);
  right: calc(var(--space-md) + 4rem);
  z-index: 2;
  
  .set {
    display: flex;
    justify-content: space-between;
    color: var(--color-secondary);
    fill: var(--color-secondary);
    
    span {
      padding: 0 4px;
      background-color: var(--color-primary);
    }
    
    svg {
      width: 1rem;
      height: 1rem;
    }
  }
  
  .set > * + * {
    margin-left: var(--space-xs);
  }
}

.dip-switches {
  display: flex;
  position: relative;
  margin: var(--space) auto 0;
  z-index: 1;
  user-select: none;
  
  &:before {
    content: '';
    position: absolute;
    display: block;
    right: 0;
    top: calc(var(--space) * -2);
    bottom: 0;
    left: 0;
    margin: auto;
    padding: 0;
    width: calc(100% - calc(var(--space) * 2.25));
    height: calc(100% + calc(var(--space) * 2));
    border: var(--border-size) solid var(--color-white);
    z-index: -2;
  }
  
  &:after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 8.25rem;
    width: 5.5rem;
    height: 50%;
    background-color: var(--color-primary);
    z-index: -1;
  }
  
  > *:first-child {
    margin-right: 4px;
  }
  
  > *:last-child {
    margin-left: 4px;
  }
}

.checkbox-group {
  --size: 14px;
  --margin: 4px;
  --border-radius: 0.25rem;
  
  .input-wrapper {
    display: flex;
    padding: var(--space-md) var(--space-sm);
    background-color: var(--color-primary-dark);
  }
  
  &:first-of-type .input-wrapper {
    border-top-left-radius: var(--border-radius);
    border-bottom-left-radius: var(--border-radius);
    border-right: 1px solid var(--color-black);
  }

  &:last-of-type .input-wrapper {
    border-top-right-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
    border-left: 1px solid var(--color-black);
  }
}

.label-wrapper {
  @extend .u-vertical-text;
  font-size: var(--size);
  text-align: right;
  padding: var(--space-xs) calc(var(--space-sm) - 1px) 0;

  label {
    display: flex;
    align-items: center;
    cursor: pointer;

    &:before {
      content: '';
      display: block;
      position: relative;
      margin-bottom: 0.25rem;
      width: var(--border-size);
      height: 100%;
      min-height: 6px;
      background-color: var(--color-white);
    }

    + label {
      margin-left: var(--margin);
    }

    svg {
      position: relative;
      right: 0.05em;
      margin-top: 0.125em;
      margin-bottom: -0.125em;
      flex: 1 0 auto;
      width: var(--size);
      height: var(--size);
      fill: var(--color-white);
      transform: rotate(90deg);
    }
  }
}

input[type="checkbox"] {  
  all: unset;
  cursor: pointer;
  position: relative;
  background-color: var(--color-gray-2);
  width: calc(var(--size) - 2px);
  height: calc(var(--size) * 1.8);
  
  + * {
    margin-left: calc(var(--margin) + 2px);
  }
  
  &:before {
    content: '';
    display: block;
    width: 100%;
    height: 50%;
    background-color: var(--color-white);
    transition: transform var(--duration) var(--ease);
    transform: translateY(100%);
  }
  
  &:focus {
    background-color: var(--color-secondary);
  }
  
  &:checked:before {
    transform: translateY(0);
  }
}

.fieldset-label {
  align-self: flex-start;
  justify-self: center;
  text-align: center;
  width: 2.5rem;
  padding: var(--space) 0;
  
  span {
    margin-top: var(--space-xs);
    display: block;
  }
}

.label-wrapper .label--alt {
  color: var(--color-secondary);
  
  &:before {
    background-color: transparent;
  }
  
  svg {
    fill: var(--color-secondary);
  }
}

.pedal-header__title {
  display: inline-block;
  position: relative;
  z-index: 2;
}

.pedal-main {
  --size: 88px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: var(--space-lg);
  justify-items: center;
  align-items: start;
  margin-top: var(--space-sm);
  padding: var(--space-lg) var(--space-md) var(--space-xs);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  
  &:after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0 auto;
    background-color: rgba(black, 0.1);
    width: calc(100% - var(--space-md) * 2);
    height: 5px;
  }
}

.pedal-main__side-input {
  position: absolute;
  right: 100%;
  bottom: var(--space-xl);
  width: 8px;
  height: 80px;
  background-image: linear-gradient(to bottom, var(--color-black) 10%, var(--color-gray-3));
  
  &:nth-child(2) {
    right: unset;
    left: 100%;
    transform: rotate(180deg) scaleY(-1);
  }
    
  &:before {
    content: '';
    position: absolute;
    top: 0;
    right: calc(100% - 1px);
    display: block;
    width: 6px;
    height: 100%;
    background-color: var(--color-gray-2);
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 90%);
  }
  
  &:after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    right: calc(100% + 5px);
    bottom: 0;
    margin: auto 0;
    width: 10px;
    height: 70%;
    background-image: linear-gradient(to bottom, var(--color-gray-3) 50%, var(--color-gray-2) 50%, var(--color-gray-1));
  }
}

.pedal-main__design {
  position: absolute;
  pointer-events: none;
  top: calc(var(--space-xl) * 2 - 6px);
  bottom: calc(var(--space-xl) * 2 + 20px);
  margin: auto 0;
  left: 0;
  width: calc(31% + var(--border-size));
  border: var(--border-size) solid var(--color-white);
  clip-path: polygon(95% 0, 100% 0, 100% 100%, 74% 100%, 74% 66%, 95% 66%);
  transform: scale(1.001);
  
  &:after {
    content: '';
    position: absolute;
    top: 55%;
    right: 0;
    transform: translateY(-55%);
    width: 100%;
    height: var(--border-size);
    background-color: var(--color-white);
  }
}

.pedal-main__design--reverse {
  left: unset;
  right: 0;
  transform: scaleX(-1);
}

.knob {
  all: unset;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
  
  @media (any-hover: hover) {
    &:focus .knob-element,
    &:active .knob-element {
      background-color: var(--color-secondary);
    }
  }
}

.knob-element {
  display: block;
  position: relative;
  cursor: grab;
  width: var(--size);
  height: var(--size);
  background-color: var(--color-gray-1);
  border: 2px dotted var(--color-gray-2);
  border-radius: 100%;
  box-shadow: inset 0 0 0 12px var(--color-gray-2);
  transform: rotate(calc(var(--knob-value) * 1deg));
  transition: transform calc(var(--duration) * 2) var(--ease);

  &:active {
    transition: none;
    cursor: grabbing;
  }

  &:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 4px;
    width: calc(50% - 4px);
    height: 8px;
    background-color: var(--color-white);
    box-shadow: -6px 0 0 var(--color-primary);
    transform-origin: 100% 50%;
    transform: translate(0, -50%) rotate(-90deg);
  }
}

.knob-outline,
.knob__clock-values,
.knob__clock-ticks {
  position: absolute;
  top: calc(var(--space) / -2);
  left: calc(var(--space) / -2);
  width: calc(var(--size) + var(--space));
  height: calc(var(--size) + var(--space));
  pointer-events: none;
}

.knob-outline {
  border: var(--border-size) solid var(--color-white);
  border-radius: 100%;
  clip-path: inset(0 0 0 55%);
  transform: scale(1.001);
}

.knob-outline--reverse {
  clip-path: inset(0 55% 0 0);
}

.knob-outline--middle {
  clip-path: inset(0 0 15% 0);
}

.knob__clock-values {
  font-size: 0.75rem;
  text-transform: lowercase;
  
  span {
    position: absolute;
  }
  
  span:nth-child(1) { bottom: 6px; left: -2px; }
  span:nth-child(2) { bottom: 32px; left: -14px; }
  span:nth-child(3) { bottom: 58px; left: -16px; }
  span:nth-child(4) { top: 6px; left: -2px; }
  span:nth-child(5) { top: -10px; left: 20px; }
  span:nth-child(6) { top: -14px; left: 44px; }
  span:nth-child(7) { top: -10px; right: 16px; }
  span:nth-child(8) { top: 6px; right: -10px; }
  span:nth-child(9) { bottom: 58px; right: -20px; }
  span:nth-child(10) { bottom: 32px; right: -20px; }
  span:nth-child(11) { bottom: 6px; right: -8px; }
}

.knob__clock-ticks {
  width: calc(var(--size) + var(--space) - 2px);
  height: calc(var(--size) + var(--space) - 2px);
  transform: rotate(-116deg);
  
  span {
    position: absolute;
    left: 48%;
    top: calc(var(--space) / -2);
    width: 2px;
    height: 8px;
    transform-origin: center 60px;
    background-color: var(--color-white);

    @for $i from 1 through 10 {
      &:nth-child(#{$i}) {
        transform: rotate(#{($i - 1) * 26deg});
      }
    }
  }
}

.knob-label {
  margin-top: var(--space-sm);
}

.switch {
  all: unset;
  display: flex;
  align-items: center;
  flex-direction: column-reverse;
  position: relative;
  cursor: pointer;
  
  * {
    pointer-events: none;
  }
  
  &:focus-within {
    @media (any-hover: hover) {
      .switch-element {
        border-color: var(--color-secondary);
      }

      .bolt {
        background-color: var(--color-secondary);
      }
    }
  }
  
  
  .switch-options__line {
    position: absolute;
    top: calc(50% - 2px);
    left: calc(50% - 2px);
    width: 4px;
    height: 42px;
    background-color: var(--color-black);
    z-index: 2;
    border-radius: 360px;
    transform-origin: 50% 0;
    transition: transform var(--duration) var(--ease);
  }
  
  &[data-switch-value='0'] .switch-options__line {
    transform: rotate(25deg);
  }
  
  &[data-switch-value='1'] .switch-options__line {
    transform: rotate(0);
  }
  
  &[data-switch-value='2'] .switch-options__line {
    transform: rotate(-25deg);
  }
}

.switch-element {
  --size: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: var(--size);
  height: var(--size);
  background-color: var(--color-gray-2);
  border: 2px solid var(--color-gray-1);
  border-radius: 100%;
  
  .bolt {
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(var(--size) - var(--space-xs));
    height: calc(var(--size) - var(--space-xs));
    clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
    background-color: var(--color-gray-1);
    transform: translate(-50%, -50%);
    
    &:before,
    &:after {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      border-radius: 100%;
      transform: translate(-50%, -50%);
    }
    
    &:before {
      width: calc(var(--size) - var(--space-md));
      height: calc(var(--size) - var(--space-md));
      background-image: linear-gradient(-45deg, var(--color-gray-2), var(--color-white));
      border: 2px solid var(--color-gray-2);
    }
    
    &:after {
      width: calc(var(--size) - var(--space-xl));
      height: calc(var(--size) - var(--space-xl));
      background-color: var(--color-gray-1);
      border: 6px solid var(--color-black);
      box-shadow: inset 1px -2px 0 rgba(white, 0.15);
    }
  }
}

.switch-title {
  @extend .u-vertical-text;
  position: absolute;
  top: var(--space-lg);
  left: calc(var(--space-md) * -1);
  text-transform: uppercase;
  transform: rotate(180deg);
}

.switch-options {
  @extend .u-vertical-text;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  font-size: 0.725rem;
  letter-spacing: 0.025rem;
  text-transform: uppercase;
  text-align: center;
  margin-top: var(--space-xs);
  margin-left: calc(var(--space-xs) * -1);
  
  > * {
    margin-left: var(--space-xxs);
  }
}

.switch:last-child {
  .switch-title {
    transform: none;
    top: var(--space);
    left: calc(100% + var(--space) / 2);
  }
  
  .switch-options {
    > * { 
      transform: none;
    }
  }
}

.channel-labels {
  position: absolute;
  top: calc(100% + var(--space-sm));
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 110px;
  font-size: 0.725rem;
  letter-spacing: 0.025rem;
  text-transform: uppercase;
  
  span:nth-child(1),
  span:nth-child(3) {
    &:before {
      content: '';
      position: absolute;
      top: calc(100% + 2px);
      height: 6px;
      width: 2px;
      background-color: var(--color-white);
    }
  }
  
  span:nth-child(1):before { left: 4px; }
  span:nth-child(3):before { right: 4px; }
  
  span:last-child {
    position: absolute;
    top: calc(100% + var(--space-sm) + 4px);
    left: 50%;
    transform: translateX(-50%);
    
    svg {
      width: 2em;
    }
    
    &:before {
      content: '';
      position: absolute;
      bottom: 100%;
      left: 50%;
      height: 6px;
      width: 2px;
      background-color: var(--color-white);
      transform: translateX(-50%);
    }
  }
  
  svg {
    position: relative;
    top: 0.125em;
    width: 1em;
    fill: var(--color-white);
  }
  
  &:after {
    content: '';
    position: absolute;
    top: calc(100% + var(--space-xs));
    left: 4px;
    width: calc(100% - 8px);
    height: 2px;
    background-color: var(--color-white);
  }
}
              
            
!

JS

              
                const settings = {
  selectedId: null,
  selected: null,
  settings: [
    {
      id: 0,
      name: 'Sweet Berry Wine',
      activeChannels: ['loop', 'space'],
      dipSwitches: {
        expRamp:  ['modify-space'],
        riseFall: [],
      },
      knobs: {
        time: 85,
        mix: 225,
        length: 325,
        modifySpace: 325,
        clock: 135,
        modifyLoop: 325,
      },
      switches: {
        midi: 1,
        channel: 1,
        exp: 2
      }
    },
    {
      id: 1,
      name: 'Celery Man',
      activeChannels: ['loop', 'space'],
      dipSwitches: {
        expRamp:  ['length', 'modify-space', 'modify-loop', 'bounce'],
        riseFall: ['shape', 'trails'],
      },
      knobs: {
        time: 85,
        mix: 135,
        length: 325,
        modifySpace: 310,
        clock: 210,
        modifyLoop: 200,
      },
      switches: {
        midi: 1,
        channel: 2,
        exp: 1
      }
    },
    {
      id: 2,
      name: 'Uncle Muscles',
      activeChannels: ['loop', 'space'],
      dipSwitches: {
        expRamp:  ['motb-space'],
        riseFall: [],
      },
      knobs: {
        time: 45,
        mix: 270,
        length: 325,
        modifySpace: 45,
        clock: 200,
        modifyLoop: 250,
      },
      switches: {
        midi: 2,
        channel: 2,
        exp: 2
      }
    },
    {
      id: 3,
      name: 'Glow Bones',
      activeChannels: ['loop', 'space'],
      dipSwitches: {
        expRamp:  ['time', 'modify-space', 'bounce'],
        riseFall: ['sweep'],
      },
      knobs: {
        time: 325,
        mix: 215,
        length: 145,
        modifySpace: 95,
        clock: 220,
        modifyLoop: 235,
      },
      switches: {
        midi: 0,
        channel: 0,
        exp: 1
      }
    },
    {
      id: 4,
      name: 'All The Food Is Poison',
      activeChannels: ['loop', 'space'],
      dipSwitches: {
        expRamp:  ['modify-space', 'bounce', 'motb-loop'],
        riseFall: ['shape', 'sweep'],
      },
      knobs: {
        time: 180,
        mix: 140,
        length: 325,
        modifySpace: 235,
        clock: 325,
        modifyLoop: 35,
      },
      switches: {
        midi: 2,
        channel: 0,
        exp: 1
      }
    },
    {
      id: 5,
      name: 'Nude Tayne',
      activeChannels: ['loop'],
      dipSwitches: {
        expRamp:  ['clock', 'bounce'],
        riseFall: ['shape'],
      },
      knobs: {
        time: 35,
        mix: 90,
        length: 145,
        modifySpace: 325,
        clock: 100,
        modifyLoop: 235,
      },
      switches: {
        midi: 1,
        channel: 0,
        exp: 1
      }
    },
    {
      id: 6,
      name: 'Tittleman\'s Crest',
      activeChannels: ['loop', 'space'],
      dipSwitches: {
        expRamp:  [],
        riseFall: [],
      },
      knobs: {
        time: 95,
        mix: 275,
        length: 325,
        modifySpace: 205,
        clock: 180,
        modifyLoop: 85,
      },
      switches: {
        midi: 1,
        channel: 2,
        exp: 0
      }
    },
    {
      id: 7,
      name: 'Where\'s My Chippy?',
      activeChannels: ['loop', 'space'],
      dipSwitches: {
        expRamp:  ['time', 'bounce'],
        riseFall: ['sweep'],
      },
      knobs: {
        time: 295,
        mix: 225,
        length: 325,
        modifySpace: 225,
        clock: 325,
        modifyLoop: 165,
      },
      switches: {
        midi: 2,
        channel: 1,
        exp: 2
      }
    },
    {
      id: 8,
      name: 'Krunkle Kick',
      activeChannels: ['loop', 'space'],
      dipSwitches: {
        expRamp:  ['modify-space', 'modify-loop', 'bounce'],
        riseFall: ['shape', 'sweep'],
      },
      knobs: {
        time: 295,
        mix: 200,
        length: 325,
        modifySpace: 235,
        clock: 235,
        modifyLoop: 185,
      },
      switches: {
        midi: 2,
        channel: 1,
        exp: 2
      }
    },
    {
      id: 9,
      name: 'Business Hugs',
      activeChannels: ['loop', 'space'],
      dipSwitches: {
        expRamp:  [],
        riseFall: ['trails'],
      },
      knobs: {
        time: 140,
        mix: 265,
        length: 325,
        modifySpace: 235,
        clock: 180,
        modifyLoop: 165,
      },
      switches: {
        midi: 0,
        channel: 1,
        exp: 1
      }
    }
  ]
};

const KNOB_VALUE = '--knob-value';
const KNOB_ELEMENT = '.knob-element';

new Vue({
  el: '#app',
  data: settings,
  
  methods: {
    createKnobControls() {
      const knobs = document.querySelectorAll('.knob');
      
      Draggable.create(KNOB_ELEMENT, {
        type: 'rotation',
        inertia: true,
        onPressInit: function() {
          TweenLite.set(this.target, {
            rotation: this.target.style.getPropertyValue(KNOB_VALUE)
          });
        },
        onDrag: () => knobs.forEach(knob => knob.blur()),
        onDragEnd: function() {
          this.target.style.setProperty(KNOB_VALUE, this.rotation);
          this.target.parentNode.focus();
        },
      });      
    },
    
    setSelectedSetting(event) {
      const knobs = document.querySelectorAll(KNOB_ELEMENT);
      
      knobs.forEach(knob => knob.style.transform = '');
      this.selected = this.settings[event.target.value];
      this.selectedId = event.target.value;
    },
    
    toggleSwitchValue(event) {
      event.target.dataset.switchValue < 2
        ? event.target.dataset.switchValue++
        : event.target.dataset.switchValue = 0;
    }
  },
  
  created() {
    this.selected = this.settings[0];
    this.selectedId = this.selected.id;
  },
  
  mounted() {
    this.createKnobControls();
  }
})
              
            
!
999px

Console