diff --git a/src/renderer/src/components/device/DeviceBar.vue b/src/renderer/src/components/device/DeviceBar.vue
index 7fc3770..f4e35f2 100644
--- a/src/renderer/src/components/device/DeviceBar.vue
+++ b/src/renderer/src/components/device/DeviceBar.vue
@@ -1,5 +1,5 @@
diff --git a/src/renderer/src/components/device/DevicePreview.vue b/src/renderer/src/components/device/DevicePreview.vue
index 7b94a10..8f7322b 100644
--- a/src/renderer/src/components/device/DevicePreview.vue
+++ b/src/renderer/src/components/device/DevicePreview.vue
@@ -48,9 +48,9 @@
class="absolute flex flex-col items-center pb-2 text-center mix-blend-screen"
>
- {{ parseInt(value) }}
+ {{ parseInt(barValue - store.turns * 100) }}
HIGH PASS
-
+
KORG MINILOGUE HIGH PASS FILTER 0-127
@@ -98,17 +98,14 @@ import LogoMidi from '@renderer/assets/logos/logoMidi.svg'
import DeviceBar from '@renderer/components/device/DeviceBar.vue'
import { useStore } from '@renderer/store'
import ScrambleText from '@renderer/components/common/ScrambleText.vue'
-import { computed, onMounted, ref } from 'vue'
+import { computed, ref } from 'vue'
import DeviceLEDRing from '@renderer/components/device/DeviceLEDRing.vue'
-import gsap from 'gsap'
import DeviceKeys from '@renderer/components/device/DeviceKeys.vue'
-const value = ref(69)
-
-const barValue = computed(() => (value.value / 127) * 100)
-
const store = useStore()
+const barValue = computed(() => 100 - (store.angle / Math.PI / 2) * 100)
+
const previewDeviceImages = {
nanoOne: RenderNanoOne,
nanoZero: RenderNanoZero
@@ -118,13 +115,6 @@ const previewDeviceImage = computed(
() => previewDeviceImages[store.previewDeviceModel || 'nanoOne']
)
-const targetValue = ref(69)
-const animateValue = () => {
- targetValue.value = Math.floor(Math.random() * 127)
- gsap.to(value, { duration: 1, value: targetValue.value, ease: 'power2.inOut' })
- setTimeout(animateValue, 1500 + Math.random() * 2000)
-}
-
const offlineText = ref('NO DEVICE CONNECTED')
const offlineTexts = [
'AWAITING CONNECTION',
@@ -152,10 +142,6 @@ const nextOfflineText = () => {
}, 3500)
}
}
-
-onMounted(() => {
- animateValue()
-})