Skip to content

Commit

Permalink
feat: Add second line to demo and adapt over sync
Browse files Browse the repository at this point in the history
  • Loading branch information
TimSusa committed Jan 2, 2021
1 parent 88b48b2 commit 66cc182
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/global-state/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const PAGE_TYPES = {

export const viewSettingsInitState = {
bpm: 95,
windowFrameInSteps: 4,
windowFrameInSteps: 8,
currentSceneIdx: null,
columns: 18,
availableDrivers: {
Expand Down
55 changes: 45 additions & 10 deletions src/utils/example.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
export const content = {
track: {
track: []
},
content: {
tracks: [
{
Expand All @@ -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
}
]
},
Expand All @@ -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
}
]
},
Expand All @@ -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
}
]
},
Expand All @@ -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
}
]
},
Expand All @@ -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: {
Expand Down

1 comment on commit 66cc182

@vercel
Copy link

@vercel vercel bot commented on 66cc182 Jan 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.