diff --git a/src/Dexed.ttl b/src/Dexed.ttl index f9ac3ff..1c7ac94 100644 --- a/src/Dexed.ttl +++ b/src/Dexed.ttl @@ -1548,162 +1548,3 @@ doap:name "Dexed" ; doap:maintainer [ foaf:name "dcoredump" ] . - - a pset:Preset ; - lv2:appliesTo ; - rdfs:seeAlso . - - - a pset:Preset ; - lv2:appliesTo ; - rdfs:seeAlso . - - - a pset:Preset ; - lv2:appliesTo ; - rdfs:seeAlso . - - - a pset:Preset ; - lv2:appliesTo ; - rdfs:seeAlso . - - - a pset:Preset ; - lv2:appliesTo ; - rdfs:seeAlso . - - - a pset:Preset ; - lv2:appliesTo ; - rdfs:seeAlso . - - - a pset:Preset ; - lv2:appliesTo ; - rdfs:seeAlso . - - - a pset:Preset ; - lv2:appliesTo ; - rdfs:seeAlso . - - - a pset:Preset ; - lv2:appliesTo ; - rdfs:seeAlso . - - - a pset:Preset ; - lv2:appliesTo ; - rdfs:seeAlso . - - - a pset:Preset ; - lv2:appliesTo ; - rdfs:seeAlso . - - - a pset:Preset ; - lv2:appliesTo ; - rdfs:seeAlso . - - - a pset:Preset ; - lv2:appliesTo ; - rdfs:seeAlso . - - - a pset:Preset ; - lv2:appliesTo ; - rdfs:seeAlso . - - - a pset:Preset ; - lv2:appliesTo ; - rdfs:seeAlso . - - - a pset:Preset ; - lv2:appliesTo ; - rdfs:seeAlso . - - - a pset:Preset ; - lv2:appliesTo ; - rdfs:seeAlso . - - - a pset:Preset ; - lv2:appliesTo ; - rdfs:seeAlso . - - - a pset:Preset ; - lv2:appliesTo ; - rdfs:seeAlso . - - - a pset:Preset ; - lv2:appliesTo ; - rdfs:seeAlso . - - - a pset:Preset ; - lv2:appliesTo ; - rdfs:seeAlso . - - - a pset:Preset ; - lv2:appliesTo ; - rdfs:seeAlso . - - - a pset:Preset ; - lv2:appliesTo ; - rdfs:seeAlso . - - - a pset:Preset ; - lv2:appliesTo ; - rdfs:seeAlso . - - - a pset:Preset ; - lv2:appliesTo ; - rdfs:seeAlso . - - - a pset:Preset ; - lv2:appliesTo ; - rdfs:seeAlso . - - - a pset:Preset ; - lv2:appliesTo ; - rdfs:seeAlso . - - - a pset:Preset ; - lv2:appliesTo ; - rdfs:seeAlso . - - - a pset:Preset ; - lv2:appliesTo ; - rdfs:seeAlso . - - - a pset:Preset ; - lv2:appliesTo ; - rdfs:seeAlso . - - - a pset:Preset ; - lv2:appliesTo ; - rdfs:seeAlso . - - - a pset:Preset ; - lv2:appliesTo ; - rdfs:seeAlso . diff --git a/src/dexed.cpp b/src/dexed.cpp index 3a6a679..a263914 100644 --- a/src/dexed.cpp +++ b/src/dexed.cpp @@ -16,12 +16,11 @@ Dexed::Dexed(double rate) : lvtk::Synth(p_n_ports, p_midi_in) { TRACE("Hi"); - add_voices(new DexedVoice(rate)); - //add_voices(new DexedVoice(rate),new DexedVoice(rate),new DexedVoice(rate),new DexedVoice(rate),new DexedVoice(rate),new DexedVoice(rate),new DexedVoice(rate),new DexedVoice(rate),new DexedVoice(rate),new DexedVoice(rate),new DexedVoice(rate),new DexedVoice(rate),new DexedVoice(rate)); + //add_voices(new DexedVoice(rate)); add_audio_outputs(p_audio_out); - init(rate); + _rate=rate; TRACE("Bye"); } @@ -52,6 +51,7 @@ void Dexed::activate(void) TRACE("Hi"); Plugin::activate(); + init(_rate); set_params(); refreshVoice=true; @@ -651,6 +651,8 @@ void Dexed::init(double rate) Tanh::init(); Sin::init(); + add_voices(new DexedVoice(rate)); + normalizeDxVelocity = false; memset(&voiceStatus, 0, sizeof(VoiceStatus)); @@ -688,6 +690,8 @@ void Dexed::init(double rate) extra_buf_size_ = 0; + _rate=rate; + } //============================================================================== diff --git a/src/dexed.h b/src/dexed.h index c74477e..3c36f47 100644 --- a/src/dexed.h +++ b/src/dexed.h @@ -118,6 +118,7 @@ class Dexed : public lvtk::Synth private: uint8_t _param_counter; uint8_t data[156]; + double _rate; /* uint8_t data[156]={ 95, 29, 20, 50, 99, 95, 00, 00, 41, 00, 19, 00, 00, 03, 00, 06, 79, 00, 01, 00, 14, 95, 20, 20, 50, 99, 95, 00, 00, 00, 00, 00, 00, 00, 03, 00, 00, 99, 00, 01, 00, 00, diff --git a/src/manifest.ttl b/src/manifest.ttl index 94e88d3..84da7f3 100644 --- a/src/manifest.ttl +++ b/src/manifest.ttl @@ -44,3 +44,162 @@ ] ; ] . + + a pset:Preset ; + lv2:appliesTo ; + rdfs:seeAlso . + + + a pset:Preset ; + lv2:appliesTo ; + rdfs:seeAlso . + + + a pset:Preset ; + lv2:appliesTo ; + rdfs:seeAlso . + + + a pset:Preset ; + lv2:appliesTo ; + rdfs:seeAlso . + + + a pset:Preset ; + lv2:appliesTo ; + rdfs:seeAlso . + + + a pset:Preset ; + lv2:appliesTo ; + rdfs:seeAlso . + + + a pset:Preset ; + lv2:appliesTo ; + rdfs:seeAlso . + + + a pset:Preset ; + lv2:appliesTo ; + rdfs:seeAlso . + + + a pset:Preset ; + lv2:appliesTo ; + rdfs:seeAlso . + + + a pset:Preset ; + lv2:appliesTo ; + rdfs:seeAlso . + + + a pset:Preset ; + lv2:appliesTo ; + rdfs:seeAlso . + + + a pset:Preset ; + lv2:appliesTo ; + rdfs:seeAlso . + + + a pset:Preset ; + lv2:appliesTo ; + rdfs:seeAlso . + + + a pset:Preset ; + lv2:appliesTo ; + rdfs:seeAlso . + + + a pset:Preset ; + lv2:appliesTo ; + rdfs:seeAlso . + + + a pset:Preset ; + lv2:appliesTo ; + rdfs:seeAlso . + + + a pset:Preset ; + lv2:appliesTo ; + rdfs:seeAlso . + + + a pset:Preset ; + lv2:appliesTo ; + rdfs:seeAlso . + + + a pset:Preset ; + lv2:appliesTo ; + rdfs:seeAlso . + + + a pset:Preset ; + lv2:appliesTo ; + rdfs:seeAlso . + + + a pset:Preset ; + lv2:appliesTo ; + rdfs:seeAlso . + + + a pset:Preset ; + lv2:appliesTo ; + rdfs:seeAlso . + + + a pset:Preset ; + lv2:appliesTo ; + rdfs:seeAlso . + + + a pset:Preset ; + lv2:appliesTo ; + rdfs:seeAlso . + + + a pset:Preset ; + lv2:appliesTo ; + rdfs:seeAlso . + + + a pset:Preset ; + lv2:appliesTo ; + rdfs:seeAlso . + + + a pset:Preset ; + lv2:appliesTo ; + rdfs:seeAlso . + + + a pset:Preset ; + lv2:appliesTo ; + rdfs:seeAlso . + + + a pset:Preset ; + lv2:appliesTo ; + rdfs:seeAlso . + + + a pset:Preset ; + lv2:appliesTo ; + rdfs:seeAlso . + + + a pset:Preset ; + lv2:appliesTo ; + rdfs:seeAlso . + + + a pset:Preset ; + lv2:appliesTo ; + rdfs:seeAlso . diff --git a/src/presets.ttl b/src/presets.ttl index 04b1bb6..271c9b0 100644 --- a/src/presets.ttl +++ b/src/presets.ttl @@ -17,7 +17,7 @@ pset:value 1.0 ] , [ lv2:symbol "engine" ; - pset:value 2.0 + pset:value 1.0 ] , [ lv2:symbol "unisono" ; pset:value 0.0 @@ -473,7 +473,7 @@ pset:value 1.0 ] , [ lv2:symbol "engine" ; - pset:value 2.0 + pset:value 1.0 ] , [ lv2:symbol "unisono" ; pset:value 0.0 @@ -929,7 +929,7 @@ pset:value 1.0 ] , [ lv2:symbol "engine" ; - pset:value 2.0 + pset:value 1.0 ] , [ lv2:symbol "unisono" ; pset:value 0.0 @@ -1385,7 +1385,7 @@ pset:value 1.0 ] , [ lv2:symbol "engine" ; - pset:value 2.0 + pset:value 1.0 ] , [ lv2:symbol "unisono" ; pset:value 0.0 @@ -1841,7 +1841,7 @@ pset:value 1.0 ] , [ lv2:symbol "engine" ; - pset:value 2.0 + pset:value 1.0 ] , [ lv2:symbol "unisono" ; pset:value 0.0 @@ -2297,7 +2297,7 @@ pset:value 1.0 ] , [ lv2:symbol "engine" ; - pset:value 2.0 + pset:value 1.0 ] , [ lv2:symbol "unisono" ; pset:value 0.0 @@ -2753,7 +2753,7 @@ pset:value 1.0 ] , [ lv2:symbol "engine" ; - pset:value 2.0 + pset:value 1.0 ] , [ lv2:symbol "unisono" ; pset:value 0.0 @@ -3209,7 +3209,7 @@ pset:value 1.0 ] , [ lv2:symbol "engine" ; - pset:value 2.0 + pset:value 1.0 ] , [ lv2:symbol "unisono" ; pset:value 0.0 @@ -3665,7 +3665,7 @@ pset:value 1.0 ] , [ lv2:symbol "engine" ; - pset:value 2.0 + pset:value 1.0 ] , [ lv2:symbol "unisono" ; pset:value 0.0 @@ -4121,7 +4121,7 @@ pset:value 1.0 ] , [ lv2:symbol "engine" ; - pset:value 2.0 + pset:value 1.0 ] , [ lv2:symbol "unisono" ; pset:value 0.0 @@ -4577,7 +4577,7 @@ pset:value 1.0 ] , [ lv2:symbol "engine" ; - pset:value 2.0 + pset:value 1.0 ] , [ lv2:symbol "unisono" ; pset:value 0.0 @@ -5033,7 +5033,7 @@ pset:value 1.0 ] , [ lv2:symbol "engine" ; - pset:value 2.0 + pset:value 1.0 ] , [ lv2:symbol "unisono" ; pset:value 0.0 @@ -5489,7 +5489,7 @@ pset:value 1.0 ] , [ lv2:symbol "engine" ; - pset:value 2.0 + pset:value 1.0 ] , [ lv2:symbol "unisono" ; pset:value 0.0 @@ -5945,7 +5945,7 @@ pset:value 1.0 ] , [ lv2:symbol "engine" ; - pset:value 2.0 + pset:value 1.0 ] , [ lv2:symbol "unisono" ; pset:value 0.0 @@ -6401,7 +6401,7 @@ pset:value 1.0 ] , [ lv2:symbol "engine" ; - pset:value 2.0 + pset:value 1.0 ] , [ lv2:symbol "unisono" ; pset:value 0.0 @@ -6857,7 +6857,7 @@ pset:value 1.0 ] , [ lv2:symbol "engine" ; - pset:value 2.0 + pset:value 1.0 ] , [ lv2:symbol "unisono" ; pset:value 0.0 @@ -7313,7 +7313,7 @@ pset:value 1.0 ] , [ lv2:symbol "engine" ; - pset:value 2.0 + pset:value 1.0 ] , [ lv2:symbol "unisono" ; pset:value 0.0 @@ -7769,7 +7769,7 @@ pset:value 1.0 ] , [ lv2:symbol "engine" ; - pset:value 2.0 + pset:value 1.0 ] , [ lv2:symbol "unisono" ; pset:value 0.0 @@ -8225,7 +8225,7 @@ pset:value 1.0 ] , [ lv2:symbol "engine" ; - pset:value 2.0 + pset:value 1.0 ] , [ lv2:symbol "unisono" ; pset:value 0.0 @@ -8681,7 +8681,7 @@ pset:value 1.0 ] , [ lv2:symbol "engine" ; - pset:value 2.0 + pset:value 1.0 ] , [ lv2:symbol "unisono" ; pset:value 0.0 @@ -9137,7 +9137,7 @@ pset:value 1.0 ] , [ lv2:symbol "engine" ; - pset:value 2.0 + pset:value 1.0 ] , [ lv2:symbol "unisono" ; pset:value 0.0 @@ -9593,7 +9593,7 @@ pset:value 1.0 ] , [ lv2:symbol "engine" ; - pset:value 2.0 + pset:value 1.0 ] , [ lv2:symbol "unisono" ; pset:value 0.0 @@ -10049,7 +10049,7 @@ pset:value 1.0 ] , [ lv2:symbol "engine" ; - pset:value 2.0 + pset:value 1.0 ] , [ lv2:symbol "unisono" ; pset:value 0.0 @@ -10505,7 +10505,7 @@ pset:value 1.0 ] , [ lv2:symbol "engine" ; - pset:value 2.0 + pset:value 1.0 ] , [ lv2:symbol "unisono" ; pset:value 0.0 @@ -10961,7 +10961,7 @@ pset:value 1.0 ] , [ lv2:symbol "engine" ; - pset:value 2.0 + pset:value 1.0 ] , [ lv2:symbol "unisono" ; pset:value 0.0 @@ -11417,7 +11417,7 @@ pset:value 1.0 ] , [ lv2:symbol "engine" ; - pset:value 2.0 + pset:value 1.0 ] , [ lv2:symbol "unisono" ; pset:value 0.0 @@ -11873,7 +11873,7 @@ pset:value 1.0 ] , [ lv2:symbol "engine" ; - pset:value 2.0 + pset:value 1.0 ] , [ lv2:symbol "unisono" ; pset:value 0.0 @@ -12329,7 +12329,7 @@ pset:value 1.0 ] , [ lv2:symbol "engine" ; - pset:value 2.0 + pset:value 1.0 ] , [ lv2:symbol "unisono" ; pset:value 0.0 @@ -12785,7 +12785,7 @@ pset:value 1.0 ] , [ lv2:symbol "engine" ; - pset:value 2.0 + pset:value 1.0 ] , [ lv2:symbol "unisono" ; pset:value 0.0 @@ -13241,7 +13241,7 @@ pset:value 1.0 ] , [ lv2:symbol "engine" ; - pset:value 2.0 + pset:value 1.0 ] , [ lv2:symbol "unisono" ; pset:value 0.0 @@ -13697,7 +13697,7 @@ pset:value 1.0 ] , [ lv2:symbol "engine" ; - pset:value 2.0 + pset:value 1.0 ] , [ lv2:symbol "unisono" ; pset:value 0.0 @@ -14153,7 +14153,7 @@ pset:value 1.0 ] , [ lv2:symbol "engine" ; - pset:value 2.0 + pset:value 1.0 ] , [ lv2:symbol "unisono" ; pset:value 0.0