From 66cc18259103c5d986b200effa262e570cd32b55 Mon Sep 17 00:00:00 2001 From: TimSusa Date: Sat, 2 Jan 2021 09:52:15 +0100 Subject: [PATCH] feat: Add second line to demo and adapt over sync --- src/global-state/index.js | 2 +- src/utils/example.js | 55 ++++++++++++++++++++++++++++++++------- 2 files changed, 46 insertions(+), 11 deletions(-) diff --git a/src/global-state/index.js b/src/global-state/index.js index 9dfefde..296e5fe 100644 --- a/src/global-state/index.js +++ b/src/global-state/index.js @@ -27,7 +27,7 @@ export const PAGE_TYPES = { export const viewSettingsInitState = { bpm: 95, - windowFrameInSteps: 4, + windowFrameInSteps: 8, currentSceneIdx: null, columns: 18, availableDrivers: { diff --git a/src/utils/example.js b/src/utils/example.js index e71d112..a8f9e73 100644 --- a/src/utils/example.js +++ b/src/utils/example.js @@ -1,7 +1,4 @@ export const content = { - track: { - track: [] - }, content: { tracks: [ { @@ -14,6 +11,14 @@ export const content = { isLooping: true, isWaveformShown: true, isPlaying: false + }, + { + id: 'clip-8f524c15-fb16-4c0b-8a8b-cb7e1c03cb5a', + src: 'beat-95bpm.m4a', + volume: 0.66, + isLooping: true, + isWaveformShown: true, + isPlaying: false } ] }, @@ -27,6 +32,14 @@ export const content = { isLooping: true, isWaveformShown: true, isPlaying: false + }, + { + id: 'clip-0a2d301f-3a58-4de9-8aa3-50bddeca6983', + src: 'piano.m4a', + volume: 0.66, + isLooping: true, + isWaveformShown: true, + isPlaying: false } ] }, @@ -40,6 +53,14 @@ export const content = { isLooping: true, isWaveformShown: true, isPlaying: false + }, + { + id: 'clip-3e83efc8-1672-4a3c-85a3-9ef9aae520a6', + src: 'tim-95bpm Keys 1.m4a', + volume: 0.66, + isLooping: true, + isWaveformShown: true, + isPlaying: false } ] }, @@ -53,6 +74,14 @@ export const content = { isLooping: true, isWaveformShown: true, isPlaying: false + }, + { + id: 'clip-7fdf6491-177f-425a-ad52-171bd2c71097', + src: 'tim-95bpm Keys 2.m4a', + volume: 0.66, + isLooping: true, + isWaveformShown: true, + isPlaying: false } ] }, @@ -66,19 +95,25 @@ export const content = { isLooping: true, isWaveformShown: true, isPlaying: false + }, + { + id: 'clip-ccb0fe5d-ae60-4cef-a63a-3e095eb9063a', + src: 'tim-95bpm Piano 1.m4a', + volume: 0.66, + isLooping: true, + isWaveformShown: true, + isPlaying: false } ] } - ] + ], + sceneIdx: null }, viewSettings: { + bpm: 95, + windowFrameInSteps: 4, + currentSceneIdx: null, columns: 18, - rowHeight: 40, - isAutoSize: false, - marginX: 8, - marginY: 8, - paddingX: 8, - paddingY: 8, availableDrivers: { inputs: { None: {