@@ -3,25 +3,47 @@ import type { Project } from '#model'
33export const simpleProjectMock : Project = {
44 synthTree : {
55 nodes : {
6- out : {
6+ output : {
77 type : 'output' ,
88 position : { x : 0 , y : 0 } ,
99 params : { } ,
1010 color : 'zinc' ,
1111 number : 0 ,
1212 } ,
13- gen : {
13+ generator : {
1414 type : 'generator' ,
15- position : { x : - 200 , y : 0 } ,
15+ position : { x : - 200 , y : - 50 } ,
1616 params : { waveShape : 'sawtooth' , release : 1 } ,
1717 color : 'emerald' ,
1818 number : 1 ,
1919 } ,
20+ oscillator : {
21+ type : 'oscillator' ,
22+ position : { x : - 400 , y : 0 } ,
23+ params : { } ,
24+ color : 'yellow' ,
25+ number : 2 ,
26+ } ,
27+ reverb : {
28+ type : 'reverb' ,
29+ position : { x : - 200 , y : 50 } ,
30+ params : { } ,
31+ color : 'orange' ,
32+ number : 3 ,
33+ } ,
2034 } ,
2135 edges : {
2236 main : {
23- source : { node : 'gen' , socket : 0 } ,
24- target : { node : 'out' , socket : 0 } ,
37+ source : { node : 'generator' , socket : 0 } ,
38+ target : { node : 'output' , socket : 0 } ,
39+ } ,
40+ oscToReverb : {
41+ source : { node : 'oscillator' , socket : 0 } ,
42+ target : { node : 'reverb' , socket : 0 } ,
43+ } ,
44+ reverbToOutput : {
45+ source : { node : 'reverb' , socket : 0 } ,
46+ target : { node : 'output' , socket : 0 } ,
2547 } ,
2648 } ,
2749 } ,
@@ -30,10 +52,10 @@ export const simpleProjectMock: Project = {
3052 beatsPerMinute : 125 ,
3153 endingNote : 2 ,
3254 notes : {
33- 'note-1' : { synth : 'gen ' , pitch : 'c4' , time : 0 , duration : 0.25 } ,
34- 'note-2' : { synth : 'gen ' , pitch : 'e4' , time : 0.25 , duration : 0.25 } ,
35- 'note-3' : { synth : 'gen ' , pitch : 'd4' , time : 0.5 , duration : 0.25 } ,
36- 'note-4' : { synth : 'gen ' , pitch : 'f4' , time : 0.75 , duration : 0.25 } ,
55+ 'note-1' : { synth : 'generator ' , pitch : 'c4' , time : 0 , duration : 0.25 } ,
56+ 'note-2' : { synth : 'generator ' , pitch : 'e4' , time : 0.25 , duration : 0.25 } ,
57+ 'note-3' : { synth : 'generator ' , pitch : 'd4' , time : 0.5 , duration : 0.25 } ,
58+ 'note-4' : { synth : 'generator ' , pitch : 'f4' , time : 0.75 , duration : 0.25 } ,
3759 } ,
3860 } ,
3961}
0 commit comments