diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mdaPiano.cpp | 9 | ||||
-rw-r--r-- | src/presets/broken.ttl | 48 | ||||
-rw-r--r-- | src/presets/compressed.ttl | 48 | ||||
-rw-r--r-- | src/presets/concert.ttl | 48 | ||||
-rw-r--r-- | src/presets/dance.ttl | 48 | ||||
-rw-r--r-- | src/presets/dark.ttl | 48 | ||||
-rw-r--r-- | src/presets/default.ttl | 48 | ||||
-rw-r--r-- | src/presets/plain.ttl | 49 | ||||
-rw-r--r-- | src/presets/school.ttl | 48 |
9 files changed, 386 insertions, 8 deletions
diff --git a/src/mdaPiano.cpp b/src/mdaPiano.cpp index a1f87ca..f054b54 100644 --- a/src/mdaPiano.cpp +++ b/src/mdaPiano.cpp @@ -50,15 +50,8 @@ mdaPiano::mdaPiano(audioMasterCallback audioMaster) : AudioEffectX(audioMaster, { //fill patches... VstInt32 i=0; + //TODO: load initial values from default preset fillpatch(i++, "mda Piano", 0.500f, 0.500f, 0.500f, 0.5f, 0.803f, 0.251f, 0.376f, 0.500f, 0.330f, 0.500f, 0.246f, 0.500f); - fillpatch(i++, "Plain Piano", 0.500f, 0.500f, 0.500f, 0.5f, 0.751f, 0.000f, 0.452f, 0.000f, 0.000f, 0.500f, 0.000f, 0.500f); - fillpatch(i++, "Compressed Piano", 0.902f, 0.399f, 0.623f, 0.5f, 1.000f, 0.331f, 0.299f, 0.499f, 0.330f, 0.500f, 0.000f, 0.500f); - fillpatch(i++, "Dance Piano", 0.399f, 0.251f, 1.000f, 0.5f, 0.672f, 0.124f, 0.127f, 0.249f, 0.330f, 0.500f, 0.283f, 0.667f); - fillpatch(i++, "Concert Piano", 0.648f, 0.500f, 0.500f, 0.5f, 0.298f, 0.602f, 0.550f, 0.850f, 0.356f, 0.500f, 0.339f, 0.660f); - fillpatch(i++, "Dark Piano", 0.500f, 0.602f, 0.000f, 0.5f, 0.304f, 0.200f, 0.336f, 0.651f, 0.330f, 0.500f, 0.317f, 0.500f); - fillpatch(i++, "School Piano", 0.450f, 0.598f, 0.626f, 0.5f, 0.603f, 0.500f, 0.174f, 0.331f, 0.330f, 0.500f, 0.421f, 0.801f); - fillpatch(i++, "Broken Piano", 0.050f, 0.957f, 0.500f, 0.5f, 0.299f, 1.000f, 0.000f, 0.500f, 0.330f, 0.450f, 0.718f, 0.000f); - setProgram(0); } diff --git a/src/presets/broken.ttl b/src/presets/broken.ttl new file mode 100644 index 0000000..8593af5 --- /dev/null +++ b/src/presets/broken.ttl @@ -0,0 +1,48 @@ +@prefix lv2: <http://lv2plug.in/ns/lv2core#> . +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . +@prefix base: <http://elephly.net/lv2/> . +@prefix pset: <http://lv2plug.in/ns/ext/presets#> . +@prefix pre: <http://elephly.net/lv2/mdaPiano/presets#> . + +pre:default + a pset:Preset ; + rdfs:label "Broken Piano" ; + pset:appliesTo base:mdaPiano ; + + lv2:port [ + lv2:symbol "envelope_decay" ; + pset:value 0.050 + ] , [ + lv2:symbol "envelope_release" ; + pset:value 0.957 + ] , [ + lv2:symbol "hardness_offset" ; + pset:value 0.500 + ] , [ + lv2:symbol "velocity_to_hardness" ; + pset:value 0.500 + ] , [ + lv2:symbol "muffling_filter" ; + pset:value 0.299 + ] , [ + lv2:symbol "velocity_to_muffling" ; + pset:value 1.000 + ] , [ + lv2:symbol "velocity_sensitivity" ; + pset:value 0.000 + ] , [ + lv2:symbol "stereo_width" ; + pset:value 0.500 + ] , [ + lv2:symbol "polyphony" ; + pset:value 0.330 + ] , [ + lv2:symbol "fine_tuning" ; + pset:value 0.450 + ] , [ + lv2:symbol "random_detuning" ; + pset:value 0.718 + ] , [ + lv2:symbol "stretch_tuning" ; + pset:value 0.000 + ] . diff --git a/src/presets/compressed.ttl b/src/presets/compressed.ttl new file mode 100644 index 0000000..ca69f69 --- /dev/null +++ b/src/presets/compressed.ttl @@ -0,0 +1,48 @@ +@prefix lv2: <http://lv2plug.in/ns/lv2core#> . +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . +@prefix base: <http://elephly.net/lv2/> . +@prefix pset: <http://lv2plug.in/ns/ext/presets#> . +@prefix pre: <http://elephly.net/lv2/mdaPiano/presets#> . + +pre:default + a pset:Preset ; + rdfs:label "Compressed Piano" ; + pset:appliesTo base:mdaPiano ; + + lv2:port [ + lv2:symbol "envelope_decay" ; + pset:value 0.902 + ] , [ + lv2:symbol "envelope_release" ; + pset:value 0.399 + ] , [ + lv2:symbol "hardness_offset" ; + pset:value 0.623 + ] , [ + lv2:symbol "velocity_to_hardness" ; + pset:value 0.500 + ] , [ + lv2:symbol "muffling_filter" ; + pset:value 1.000 + ] , [ + lv2:symbol "velocity_to_muffling" ; + pset:value 0.331 + ] , [ + lv2:symbol "velocity_sensitivity" ; + pset:value 0.299 + ] , [ + lv2:symbol "stereo_width" ; + pset:value 0.499 + ] , [ + lv2:symbol "polyphony" ; + pset:value 0.330 + ] , [ + lv2:symbol "fine_tuning" ; + pset:value 0.500 + ] , [ + lv2:symbol "random_detuning" ; + pset:value 0.000 + ] , [ + lv2:symbol "stretch_tuning" ; + pset:value 0.500 + ] . diff --git a/src/presets/concert.ttl b/src/presets/concert.ttl new file mode 100644 index 0000000..83540f5 --- /dev/null +++ b/src/presets/concert.ttl @@ -0,0 +1,48 @@ +@prefix lv2: <http://lv2plug.in/ns/lv2core#> . +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . +@prefix base: <http://elephly.net/lv2/> . +@prefix pset: <http://lv2plug.in/ns/ext/presets#> . +@prefix pre: <http://elephly.net/lv2/mdaPiano/presets#> . + +pre:default + a pset:Preset ; + rdfs:label "Concert Piano" ; + pset:appliesTo base:mdaPiano ; + + lv2:port [ + lv2:symbol "envelope_decay" ; + pset:value 0.648 + ] , [ + lv2:symbol "envelope_release" ; + pset:value 0.500 + ] , [ + lv2:symbol "hardness_offset" ; + pset:value 0.500 + ] , [ + lv2:symbol "velocity_to_hardness" ; + pset:value 0.500 + ] , [ + lv2:symbol "muffling_filter" ; + pset:value 0.298 + ] , [ + lv2:symbol "velocity_to_muffling" ; + pset:value 0.602 + ] , [ + lv2:symbol "velocity_sensitivity" ; + pset:value 0.550 + ] , [ + lv2:symbol "stereo_width" ; + pset:value 0.850 + ] , [ + lv2:symbol "polyphony" ; + pset:value 0.356 + ] , [ + lv2:symbol "fine_tuning" ; + pset:value 0.500 + ] , [ + lv2:symbol "random_detuning" ; + pset:value 0.339 + ] , [ + lv2:symbol "stretch_tuning" ; + pset:value 0.660 + ] . diff --git a/src/presets/dance.ttl b/src/presets/dance.ttl new file mode 100644 index 0000000..983ebef --- /dev/null +++ b/src/presets/dance.ttl @@ -0,0 +1,48 @@ +@prefix lv2: <http://lv2plug.in/ns/lv2core#> . +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . +@prefix base: <http://elephly.net/lv2/> . +@prefix pset: <http://lv2plug.in/ns/ext/presets#> . +@prefix pre: <http://elephly.net/lv2/mdaPiano/presets#> . + +pre:default + a pset:Preset ; + rdfs:label "Dance Piano" ; + pset:appliesTo base:mdaPiano ; + + lv2:port [ + lv2:symbol "envelope_decay" ; + pset:value 0.399 + ] , [ + lv2:symbol "envelope_release" ; + pset:value 0.251 + ] , [ + lv2:symbol "hardness_offset" ; + pset:value 1.000 + ] , [ + lv2:symbol "velocity_to_hardness" ; + pset:value 0.500 + ] , [ + lv2:symbol "muffling_filter" ; + pset:value 0.672 + ] , [ + lv2:symbol "velocity_to_muffling" ; + pset:value 0.124 + ] , [ + lv2:symbol "velocity_sensitivity" ; + pset:value 0.127 + ] , [ + lv2:symbol "stereo_width" ; + pset:value 0.249 + ] , [ + lv2:symbol "polyphony" ; + pset:value 0.330 + ] , [ + lv2:symbol "fine_tuning" ; + pset:value 0.500 + ] , [ + lv2:symbol "random_detuning" ; + pset:value 0.283 + ] , [ + lv2:symbol "stretch_tuning" ; + pset:value 0.667 + ] . diff --git a/src/presets/dark.ttl b/src/presets/dark.ttl new file mode 100644 index 0000000..809e328 --- /dev/null +++ b/src/presets/dark.ttl @@ -0,0 +1,48 @@ +@prefix lv2: <http://lv2plug.in/ns/lv2core#> . +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . +@prefix base: <http://elephly.net/lv2/> . +@prefix pset: <http://lv2plug.in/ns/ext/presets#> . +@prefix pre: <http://elephly.net/lv2/mdaPiano/presets#> . + +pre:default + a pset:Preset ; + rdfs:label "Dark Piano" ; + pset:appliesTo base:mdaPiano ; + + lv2:port [ + lv2:symbol "envelope_decay" ; + pset:value 0.500 + ] , [ + lv2:symbol "envelope_release" ; + pset:value 0.602 + ] , [ + lv2:symbol "hardness_offset" ; + pset:value 0.000 + ] , [ + lv2:symbol "velocity_to_hardness" ; + pset:value 0.500 + ] , [ + lv2:symbol "muffling_filter" ; + pset:value 0.304 + ] , [ + lv2:symbol "velocity_to_muffling" ; + pset:value 0.200 + ] , [ + lv2:symbol "velocity_sensitivity" ; + pset:value 0.336 + ] , [ + lv2:symbol "stereo_width" ; + pset:value 0.651 + ] , [ + lv2:symbol "polyphony" ; + pset:value 0.330 + ] , [ + lv2:symbol "fine_tuning" ; + pset:value 0.500 + ] , [ + lv2:symbol "random_detuning" ; + pset:value 0.317 + ] , [ + lv2:symbol "stretch_tuning" ; + pset:value 0.500 + ] . diff --git a/src/presets/default.ttl b/src/presets/default.ttl new file mode 100644 index 0000000..a68ec44 --- /dev/null +++ b/src/presets/default.ttl @@ -0,0 +1,48 @@ +@prefix lv2: <http://lv2plug.in/ns/lv2core#> . +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . +@prefix base: <http://elephly.net/lv2/> . +@prefix pset: <http://lv2plug.in/ns/ext/presets#> . +@prefix pre: <http://elephly.net/lv2/mdaPiano/presets#> . + +pre:default + a pset:Preset ; + rdfs:label "mda Piano" ; + pset:appliesTo base:mdaPiano ; + + lv2:port [ + lv2:symbol "envelope_decay" ; + pset:value 0.500 + ] , [ + lv2:symbol "envelope_release" ; + pset:value 0.500 + ] , [ + lv2:symbol "hardness_offset" ; + pset:value 0.500 + ] , [ + lv2:symbol "velocity_to_hardness" ; + pset:value 0.500 + ] , [ + lv2:symbol "muffling_filter" ; + pset:value 0.803 + ] , [ + lv2:symbol "velocity_to_muffling" ; + pset:value 0.251 + ] , [ + lv2:symbol "velocity_sensitivity" ; + pset:value 0.376 + ] , [ + lv2:symbol "stereo_width" ; + pset:value 0.500 + ] , [ + lv2:symbol "polyphony" ; + pset:value 0.330 + ] , [ + lv2:symbol "fine_tuning" ; + pset:value 0.500 + ] , [ + lv2:symbol "random_detuning" ; + pset:value 0.246 + ] , [ + lv2:symbol "stretch_tuning" ; + pset:value 0.500 + ] . diff --git a/src/presets/plain.ttl b/src/presets/plain.ttl new file mode 100644 index 0000000..161cf0d --- /dev/null +++ b/src/presets/plain.ttl @@ -0,0 +1,49 @@ +@prefix lv2: <http://lv2plug.in/ns/lv2core#> . +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . +@prefix base: <http://elephly.net/lv2/> . +@prefix pset: <http://lv2plug.in/ns/ext/presets#> . +@prefix pre: <http://elephly.net/lv2/mdaPiano/presets#> . + +pre:plain + a pset:Preset ; + rdfs:label "Plain Piano" ; + pset:appliesTo base:mdaPiano ; + + lv2:port [ + lv2:symbol "envelope_decay" ; + pset:value 0.500 + ] , [ + lv2:symbol "envelope_release" ; + pset:value 0.500 + ] , [ + lv2:symbol "hardness_offset" ; + pset:value 0.500 + ] , [ + lv2:symbol "velocity_to_hardness" ; + pset:value 0.500 + ] , [ + lv2:symbol "muffling_filter" ; + pset:value 0.751 + ] , [ + lv2:symbol "velocity_to_muffling" ; + pset:value 0.000 + ] , [ + lv2:symbol "velocity_sensitivity" ; + pset:value 0.452 + ] , [ + lv2:symbol "stereo_width" ; + pset:value 0.000 + ] , [ + lv2:symbol "polyphony" ; + pset:value 0.000 + ] , [ + lv2:symbol "fine_tuning" ; + pset:value 0.500 + ] , [ + lv2:symbol "random_detuning" ; + pset:value 0.000 + ] , [ + lv2:symbol "stretch_tuning" ; + pset:value 0.500 + ] . + diff --git a/src/presets/school.ttl b/src/presets/school.ttl new file mode 100644 index 0000000..05f57ee --- /dev/null +++ b/src/presets/school.ttl @@ -0,0 +1,48 @@ +@prefix lv2: <http://lv2plug.in/ns/lv2core#> . +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . +@prefix base: <http://elephly.net/lv2/> . +@prefix pset: <http://lv2plug.in/ns/ext/presets#> . +@prefix pre: <http://elephly.net/lv2/mdaPiano/presets#> . + +pre:default + a pset:Preset ; + rdfs:label "School Piano" ; + pset:appliesTo base:mdaPiano ; + + lv2:port [ + lv2:symbol "envelope_decay" ; + pset:value 0.450 + ] , [ + lv2:symbol "envelope_release" ; + pset:value 0.598 + ] , [ + lv2:symbol "hardness_offset" ; + pset:value 0.626 + ] , [ + lv2:symbol "velocity_to_hardness" ; + pset:value 0.500 + ] , [ + lv2:symbol "muffling_filter" ; + pset:value 0.603 + ] , [ + lv2:symbol "velocity_to_muffling" ; + pset:value 0.500 + ] , [ + lv2:symbol "velocity_sensitivity" ; + pset:value 0.174 + ] , [ + lv2:symbol "stereo_width" ; + pset:value 0.331 + ] , [ + lv2:symbol "polyphony" ; + pset:value 0.330 + ] , [ + lv2:symbol "fine_tuning" ; + pset:value 0.500 + ] , [ + lv2:symbol "random_detuning" ; + pset:value 0.421 + ] , [ + lv2:symbol "stretch_tuning" ; + pset:value 0.801 + ] . |