Skip to content

Commit

Permalink
Improviser
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-van-bergen committed Feb 20, 2021
1 parent 64f95fb commit cda7d14
Show file tree
Hide file tree
Showing 21 changed files with 617 additions and 131 deletions.
1 change: 1 addition & 0 deletions Synth.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@
<ClCompile Include="src\components\distortion.cpp" />
<ClCompile Include="src\components\filter.cpp" />
<ClCompile Include="src\components\flanger.cpp" />
<ClCompile Include="src\components\improviser.cpp" />
<ClCompile Include="src\components\keyboard.cpp" />
<ClCompile Include="src\components\oscillator.cpp" />
<ClCompile Include="src\components\oscilloscope.cpp" />
Expand Down
3 changes: 3 additions & 0 deletions Synth.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@
<ClCompile Include="src\components\arp.cpp">
<Filter>components</Filter>
</ClCompile>
<ClCompile Include="src\components\improviser.cpp">
<Filter>components</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="src\json.h">
Expand Down
Binary file added midi/nirvana.mid
Binary file not shown.
Binary file added midi/nirvana_guitar.mid
Binary file not shown.
40 changes: 27 additions & 13 deletions projects/arp.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
},
"SpeakerComponent": {
"id": 0,
"pos_x": 1372.000000,
"pos_y": 348.000000,
"size_x": 100.000000,
"size_y": 100.000000
"pos_x": 1231.000000,
"pos_y": 394.000000,
"size_x": 109.000000,
"size_y": 132.000000
},
"PianoRollComponent": {
"id": 2,
Expand All @@ -26,7 +26,7 @@
"size_y": 341.000000,
"invert": 0,
"phase": 0.000000,
"transpose": 0,
"transpose": -12,
"detune": 0.000000,
"portamento": 0.050000,
"attack": 0.000000,
Expand All @@ -38,8 +38,8 @@
},
"SamplerComponent": {
"id": 5,
"pos_x": 706.000000,
"pos_y": 578.000000,
"pos_x": 672.000000,
"pos_y": 590.000000,
"size_x": 171.000000,
"size_y": 114.000000,
"base_note": 36,
Expand All @@ -59,7 +59,7 @@
"pos_y": 34.000000,
"size_x": 177.000000,
"size_y": 211.000000,
"steps": 1.000000
"steps": 3.000000
},
"SamplerComponent": {
"id": 8,
Expand All @@ -76,7 +76,7 @@
"pos_y": 709.000000,
"size_x": 392.000000,
"size_y": 116.000000,
"pattern": [ 0.000000, 0.660000, 1.000000, 0.520000, 0.000000, 0.560000, 1.000000, 0.640000, 0.000000, 0.640000, 1.000000, 0.600000, 0.000000, 0.660000, 1.000000, 0.480000 ]
"pattern": [ 0.000000, 0.660000, 1.000000, 0.520000, 0.180000, 0.560000, 1.000000, 0.640000, 0.000000, 0.640000, 1.000000, 0.600000, 0.280000, 0.660000, 1.000000, 0.480000 ]
},
"OscillatorComponent": {
"id": 10,
Expand All @@ -98,8 +98,8 @@
},
"DistortionComponent": {
"id": 12,
"pos_x": 959.000000,
"pos_y": 556.000000,
"pos_x": 952.000000,
"pos_y": 582.000000,
"size_x": 127.000000,
"size_y": 100.000000,
"amount": 0.529000
Expand All @@ -122,12 +122,19 @@
"release": 0.000000,
"waveform": 1
},
"DecibelComponent": {
"id": 14,
"pos_x": 1396.000000,
"pos_y": 87.000000,
"size_x": 135.000000,
"size_y": 218.000000
},
"Connection": {
"component_out": 4,
"component_in": 0,
"offset_out": 0,
"offset_in": 0,
"weight": 0.300000
"weight": 0.400000
},
"Connection": {
"component_out": 8,
Expand Down Expand Up @@ -155,7 +162,7 @@
"component_in": 0,
"offset_out": 0,
"offset_in": 0,
"weight": 0.100000
"weight": 0.200000
},
"Connection": {
"component_out": 7,
Expand Down Expand Up @@ -205,5 +212,12 @@
"offset_out": 0,
"offset_in": 0,
"weight": 1.000000
},
"Connection": {
"component_out": 0,
"component_in": 14,
"offset_out": 0,
"offset_in": 0,
"weight": 1.000000
}
}
58 changes: 18 additions & 40 deletions projects/debug.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"Settings": {
"tempo": 130,
"master_volume": 1.000000
"master_volume": 0.800000
},
"SpeakerComponent": {
"id": 0,
Expand All @@ -10,56 +10,34 @@
"size_x": 100.000000,
"size_y": 100.000000
},
"KeyboardComponent": {
"id": 1,
"ImproviserComponent": {
"id": 3,
"pos_x": 60.000000,
"pos_y": 60.000000,
"size_x": 100.000000,
"size_y": 100.000000
"size_x": 156.000000,
"size_y": 124.000000,
"tonality": 0,
"num_notes": 3
},
"ArpComponent": {
"id": 2,
"pos_x": 225.000000,
"pos_y": 132.000000,
"size_x": 142.000000,
"size_y": 338.000000,
"steps": 1.000100
},
"OscillatorComponent": {
"id": 3,
"pos_x": 483.000000,
"pos_y": 78.000000,
"size_x": 181.000000,
"size_y": 348.000000,
"invert": 0,
"phase": 0.000000,
"transpose": 12,
"detune": 0.000000,
"portamento": 0.000000,
"attack": 0.100000,
"hold": 0.500000,
"decay": 1.000000,
"sustain": 0.600000,
"release": 0.600000,
"waveform": 2
"SamplerComponent": {
"id": 4,
"pos_x": 360.000000,
"pos_y": 165.000000,
"size_x": 246.000000,
"size_y": 111.000000,
"base_note": 36,
"filename": "samples/piano.wav"
},
"Connection": {
"component_out": 3,
"component_out": 4,
"component_in": 0,
"offset_out": 0,
"offset_in": 0,
"weight": 1.000000
},
"Connection": {
"component_out": 1,
"component_in": 2,
"offset_out": 0,
"offset_in": 0,
"weight": 1.000000
},
"Connection": {
"component_out": 2,
"component_in": 3,
"component_out": 3,
"component_in": 4,
"offset_out": 0,
"offset_in": 0,
"weight": 1.000000
Expand Down
4 changes: 2 additions & 2 deletions projects/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"id": 0,
"pos_x": 1372.000000,
"pos_y": 348.000000,
"size_x": 100.000000,
"size_y": 100.000000
"size_x": 101.000000,
"size_y": 113.000000
}
}
Loading

0 comments on commit cda7d14

Please sign in to comment.