Home
last modified time | relevance | path

Searched refs:adsr (Results 1 – 25 of 339) sorted by relevance

12345678910>>...14

/dports/games/libretro-pcsx_rearmed/pcsx_rearmed-c2d67cd/plugins/dfsound/
H A Dadsr.c71 if (adsr->State == ADSR_RELEASE) in MixADSR()
75 if (adsr->ReleaseModeExp) in MixADSR()
103 switch (adsr->State) in MixADSR()
124 adsr->State = ADSR_DECAY; in MixADSR()
134 level = adsr->SustainLevel; in MixADSR()
157 if (adsr->SustainIncrease) in MixADSR()
187 if (adsr->SustainModeExp) in MixADSR()
229 if (adsr->ReleaseModeExp) in SkipADSR()
249 switch (adsr->State) in SkipADSR()
266 adsr->State = ADSR_DECAY; in SkipADSR()
[all …]
/dports/games/kodi-addon-game.libretro.pcsx-rearmed/game.libretro.pcsx-rearmed-22.0.0.19-Matrix/depends/common/pcsx-rearmed/plugins/dfsound/
H A Dadsr.c71 if (adsr->State == ADSR_RELEASE) in MixADSR()
75 if (adsr->ReleaseModeExp) in MixADSR()
103 switch (adsr->State) in MixADSR()
124 adsr->State = ADSR_DECAY; in MixADSR()
134 level = adsr->SustainLevel; in MixADSR()
157 if (adsr->SustainIncrease) in MixADSR()
187 if (adsr->SustainModeExp) in MixADSR()
229 if (adsr->ReleaseModeExp) in SkipADSR()
249 switch (adsr->State) in SkipADSR()
266 adsr->State = ADSR_DECAY; in SkipADSR()
[all …]
/dports/audio/ardour6/Ardour-6.8.0/libs/plugins/reasonablesynth.lv2/
H A Drsynth.c80 ADSRcfg adsr; member
119 adsr->vol[0] = avol; in init_adsr()
120 adsr->vol[1] = svol; in init_adsr()
128 assert (adsr->vol[0] >= 0 && adsr->vol[1] <= 1.0); in init_adsr()
129 assert (adsr->vol[1] >= 0 && adsr->vol[1] <= 1.0); in init_adsr()
131 adsr->off[0] = adsr->tme[0]; in init_adsr()
132 adsr->off[1] = adsr->tme[1] + adsr->off[0]; in init_adsr()
133 adsr->off[2] = adsr->tme[2] + adsr->off[1]; in init_adsr()
162 return sc->adsr.vol[1]; in adsr_env()
361 adsr->tme[0], adsr->tme[1], adsr->tme[2], in synth_load()
[all …]
/dports/audio/fabla2-lv2/openAV-Fabla2-33f4062/src/dsp/
H A Dvoice.cxx52 adsr = new ADSR(); in Voice()
61 adsr->setSustainLevel( 0.5 ); in Voice()
119 adsr->reset(); in playLayer()
120 adsr->gate( true ); in playLayer()
291 adsr->reset(); in play()
292 adsr->gate( true ); in play()
338 adsr->gate( false ); in stop()
347 adsr->gate( false ); in kill()
371 adsr->gate( false ); in process()
454 adsrVal = adsr->process(); in process()
[all …]
/dports/audio/klystrack/klystrack-1.7.6-make-fix-12-gfe6e746/klystron/src/snd/
H A Dcyd.c267 adsr->envelope += adsr->env_speed; in cyd_cycle_adsr()
273 adsr->env_speed = envspd(eng, adsr->d); in cyd_cycle_adsr()
280 if (adsr->envelope > ((Uint32)adsr->s << 19) + adsr->env_speed) in cyd_cycle_adsr()
281 adsr->envelope -= adsr->env_speed; in cyd_cycle_adsr()
292 if (adsr->envelope > adsr->env_speed) in cyd_cycle_adsr()
294 adsr->envelope -= adsr->env_speed; in cyd_cycle_adsr()
315 adsr->envelope += adsr->env_speed; in cyd_cycle_adsr()
335 if (adsr->envelope >= adsr->env_speed) in cyd_cycle_adsr()
336 adsr->envelope -= adsr->env_speed; in cyd_cycle_adsr()
341 adsr->envelope = (Uint32)adsr->env_speed - adsr->envelope; in cyd_cycle_adsr()
[all …]
/dports/audio/surge-synthesizer-lv2/surge-release_1.9.0/src/common/dsp/
H A DAdsrEnvelope.h48 this->adsr = adsr; in init()
52 a = adsr->a.param_id_in_scene; in init()
53 d = adsr->d.param_id_in_scene; in init()
54 s = adsr->s.param_id_in_scene; in init()
55 r = adsr->r.param_id_in_scene; in init()
57 a_s = adsr->a_s.param_id_in_scene; in init()
58 d_s = adsr->d_s.param_id_in_scene; in init()
59 r_s = adsr->r_s.param_id_in_scene; in init()
61 mode = adsr->mode.param_id_in_scene; in init()
93 if ((lc[a].f - adsr->a.val_min.f) < 0.01) in attack()
[all …]
/dports/audio/zplugins-lv2/ZPlugins-0.2.4/ext/Soundpipe/examples/
H A Dex_adsr.c7 sp_adsr *adsr; member
14 SPFLOAT osc = 0, adsr = 0, gate = 0; in process() local
18 sp_adsr_compute(sp, ud->adsr, &gate, &adsr); in process()
20 sp->out[0] = adsr * osc; in process()
29 sp_adsr_create(&ud.adsr); in main()
33 sp_adsr_init(sp, ud.adsr); in main()
41 sp_adsr_destroy(&ud.adsr); in main()
/dports/audio/zplugins-lv2/ZPlugins-0.2.4/ext/Soundpipe/test/t/
H A Dt_adsr.c7 sp_adsr *adsr; member
18 sp_adsr_create(&ud.adsr); in t_adsr()
21 SPFLOAT osc = 0, adsr = 0, gate = 0; in t_adsr() local
24 sp_adsr_init(sp, ud.adsr); in t_adsr()
38 sp_adsr_compute(sp, ud.adsr, &gate, &adsr); in t_adsr()
40 sp_test_add_sample(tst, adsr * osc); in t_adsr()
47 sp_adsr_destroy(&ud.adsr); in t_adsr()
/dports/audio/csound/csound-6.15.0/Opcodes/
H A Dfm4op.c144 make_ADSR(&p->adsr[0]); in make_FM4Op()
145 make_ADSR(&p->adsr[1]); in make_FM4Op()
146 make_ADSR(&p->adsr[2]); in make_FM4Op()
147 make_ADSR(&p->adsr[3]); in make_FM4Op()
199 ADSR_keyOff(&p->adsr[0]); in FM4Op_keyOff()
200 ADSR_keyOff(&p->adsr[1]); in FM4Op_keyOff()
201 ADSR_keyOff(&p->adsr[2]); in FM4Op_keyOff()
293 ADSR_keyOn(&p->adsr[0]); in tubebellset()
294 ADSR_keyOn(&p->adsr[1]); in tubebellset()
295 ADSR_keyOn(&p->adsr[2]); in tubebellset()
[all …]
H A Dbowedbar.c88 make_ADSR(&p->adsr); in bowedbarset()
114 p->adsr.target = FL(0.0); in bowedbarset()
115 p->adsr.value = FL(0.0); in bowedbarset()
116 p->adsr.rate = amplitude * FL(0.001); in bowedbarset()
117 p->adsr.state = ATTACK; in bowedbarset()
179 ADSR_setTarget(csound, &p->adsr, p->lastBowPos); in bowedbar()
184 ADSR_setReleaseRate(csound, &p->adsr, (FL(1.0) - amp) * FL(0.005)); in bowedbar()
185 p->adsr.target = FL(0.0); in bowedbar()
186 p->adsr.rate = p->adsr.releaseRate; in bowedbar()
187 p->adsr.state = RELEASE; in bowedbar()
[all …]
H A Dphysmod.c313 make_ADSR(&p->adsr); in fluteset()
336 ADSR_keyOn(&p->adsr); in fluteset()
395 p->adsr.releaseRate = p->adsr.value / (*p->dettack * CS_ESR); in flute()
397 p->adsr.rate = p->adsr.releaseRate; in flute()
533 make_ADSR(&p->adsr); in bowedset()
549 p->adsr.rate = p->adsr.attackRate; in bowedset()
602 ADSR_setDecayRate(csound, &p->adsr, (FL(1.0) - p->adsr.value) * FL(0.005)); in bowed()
604 p->adsr.rate = p->adsr.releaseRate; in bowed()
818 make_ADSR(&p->adsr); in brassset()
825 ADSR_keyOn(&p->adsr); in brassset()
[all …]
/dports/audio/zplugins-lv2/ZPlugins-0.2.4/plugins/saw/
H A Ddsp.c55 sp_adsr * adsr;
217 key->adsr->atk = values->attack;
218 key->adsr->dec = values->decay;
219 key->adsr->sus = values->sustain;
360 sp_adsr_create (&key->adsr);
361 sp_adsr_init (self->sp, key->adsr);
458 SPFLOAT adsr = 0, gate = key->pressed;
460 self->sp, key->adsr, &gate, &adsr);
461 adsr = adsr < 1.001f ? adsr : 0.0f;
465 if (adsr > 0.0f)
[all …]
/dports/devel/juce/JUCE-f37e9a1/modules/juce_audio_formats/sampler/
H A Djuce_Sampler.cpp89 adsr.setSampleRate (sound->sourceSampleRate); in startNote()
90 adsr.setParameters (sound->params); in startNote()
92 adsr.noteOn(); in startNote()
104 adsr.noteOff(); in stopNote()
109 adsr.reset(); in stopNote()
139 auto envelopeValue = adsr.getNextSample(); in renderNextBlock()
/dports/audio/libopenshot-audio/libopenshot-audio-0.2.2/JuceLibraryCode/modules/juce_audio_formats/sampler/
H A Djuce_Sampler.cpp90 adsr.setSampleRate (sound->sourceSampleRate); in startNote()
91 adsr.setParameters (sound->params); in startNote()
93 adsr.noteOn(); in startNote()
105 adsr.noteOff(); in stopNote()
110 adsr.reset(); in stopNote()
140 auto envelopeValue = adsr.getNextSample(); in renderNextBlock()
/dports/games/cosmosmash/cosmosmash-1.4.8/src/roundbeetle/
H A Dc-api.cpp93 ADSR adsr(attackLevel, sustainLevel, in flatzebra_sound_requestSquareWave() local
96 LinearMovingFreq *ff = new LinearMovingFreq(startFreq, endFreq, adsr.getTotalTime()); in flatzebra_sound_requestSquareWave()
100 int reqHandle = engine.requestSquareWave(*ff, adsr, loopCount, mainBus); in flatzebra_sound_requestSquareWave()
131 ADSR adsr(attackLevel, sustainLevel, in flatzebra_sound_requestWhiteNoise() local
134 return engine.requestWhiteNoise(adsr, loopCount, mainBus); in flatzebra_sound_requestWhiteNoise()
H A DEngine.cpp222 Engine::requestSquareWave(float _freq, const ADSR &adsr, size_t loopCount, Bus &bus) in requestSquareWave() argument
227 return addSampleSourceToBus(ss, &adsr, loopCount, bus); in requestSquareWave()
232 Engine::requestSquareWave(FrequencyFunction &freqFunc, const ADSR &adsr, size_t loopCount, Bus &bus) in requestSquareWave() argument
237 return addSampleSourceToBus(ss, &adsr, loopCount, bus); in requestSquareWave()
263 Engine::requestWhiteNoise(const ADSR &adsr, size_t loopCount, Bus &bus) in requestWhiteNoise() argument
268 return addSampleSourceToBus(ss, &adsr, loopCount, bus); in requestWhiteNoise()
281 Engine::addSampleSourceToBus(SampleSource *ss, const ADSR *adsr, size_t loopCount, Bus &bus) in addSampleSourceToBus() argument
283 ADSRSource *as = (adsr == NULL ? NULL : new ADSRSource(ss, *adsr)); in addSampleSourceToBus()
H A DEngine.h95 int requestSquareWave(float _freq, const ADSR &adsr, size_t loopCount, Bus &bus);
100 … int requestSquareWave(FrequencyFunction &freqFunc, const ADSR &adsr, size_t loopCount, Bus &bus);
106 int requestWhiteNoise(const ADSR &adsr, size_t loopCount, Bus &bus);
144 int addSampleSourceToBus(SampleSource *ss, const ADSR *adsr, size_t loopCount, Bus &bus);
/dports/textproc/py-pygments/Pygments-2.7.2/tests/examplefiles/
H A Dexample.scd8 modEnvShape = Env.adsr(
16 carrierEnvShape = Env.adsr(
60 EnvSpec(Env.adsr(
68 EnvSpec(Env.adsr(
/dports/textproc/py-pygments-25/Pygments-2.5.2/tests/examplefiles/
H A Dexample.scd8 modEnvShape = Env.adsr(
16 carrierEnvShape = Env.adsr(
60 EnvSpec(Env.adsr(
68 EnvSpec(Env.adsr(
/dports/audio/spectmorph/spectmorph-0.5.2/glui/
H A Dsmmorphoutputview.cc92 adsr_check_box->set_checked (morph_output->adsr()); in MorphOutputView()
198 output_adsr_widget->set_visible (morph_output->adsr()); in update_visible()
200 pv_adsr_skip.set_visible (morph_output->adsr()); in update_visible()
201 pv_adsr_attack.set_visible (morph_output->adsr()); in update_visible()
202 pv_adsr_decay.set_visible (morph_output->adsr()); in update_visible()
203 pv_adsr_sustain.set_visible (morph_output->adsr()); in update_visible()
204 pv_adsr_release.set_visible (morph_output->adsr()); in update_visible()
/dports/emulators/mgba/mgba-0.9.2/src/gba/extra/
H A Daudio-mixer.c69 …instrument->extInfo.adsr.attack = memory->load8(cpu, base + offsetof(struct GBAMP2kInstrument, ext… in _loadInstrument()
70 …instrument->extInfo.adsr.decay = memory->load8(cpu, base + offsetof(struct GBAMP2kInstrument, extI… in _loadInstrument()
71 …instrument->extInfo.adsr.sustain = memory->load8(cpu, base + offsetof(struct GBAMP2kInstrument, ex… in _loadInstrument()
72 …instrument->extInfo.adsr.release = memory->load8(cpu, base + offsetof(struct GBAMP2kInstrument, ex… in _loadInstrument()
165 ch->adsr.attack = memory->load8(cpu, base + offsetof(struct GBAMP2kSoundChannel, adsr.attack), 0); in _mp2kReload()
166 ch->adsr.decay = memory->load8(cpu, base + offsetof(struct GBAMP2kSoundChannel, adsr.decay), 0); in _mp2kReload()
167 …ch->adsr.sustain = memory->load8(cpu, base + offsetof(struct GBAMP2kSoundChannel, adsr.sustain), 0… in _mp2kReload()
168 …ch->adsr.release = memory->load8(cpu, base + offsetof(struct GBAMP2kSoundChannel, adsr.release), 0… in _mp2kReload()
/dports/games/libretro-mgba/mgba-6186d45/src/gba/extra/
H A Daudio-mixer.c69 …instrument->extInfo.adsr.attack = memory->load8(cpu, base + offsetof(struct GBAMP2kInstrument, ext… in _loadInstrument()
70 …instrument->extInfo.adsr.decay = memory->load8(cpu, base + offsetof(struct GBAMP2kInstrument, extI… in _loadInstrument()
71 …instrument->extInfo.adsr.sustain = memory->load8(cpu, base + offsetof(struct GBAMP2kInstrument, ex… in _loadInstrument()
72 …instrument->extInfo.adsr.release = memory->load8(cpu, base + offsetof(struct GBAMP2kInstrument, ex… in _loadInstrument()
165 ch->adsr.attack = memory->load8(cpu, base + offsetof(struct GBAMP2kSoundChannel, adsr.attack), 0); in _mp2kReload()
166 ch->adsr.decay = memory->load8(cpu, base + offsetof(struct GBAMP2kSoundChannel, adsr.decay), 0); in _mp2kReload()
167 …ch->adsr.sustain = memory->load8(cpu, base + offsetof(struct GBAMP2kSoundChannel, adsr.sustain), 0… in _mp2kReload()
168 …ch->adsr.release = memory->load8(cpu, base + offsetof(struct GBAMP2kSoundChannel, adsr.release), 0… in _mp2kReload()
/dports/audio/faust/faust-2.37.3/tools/faust2pd/examples/seqdemo/
H A Dorgan.dsp20 // additive synth: 3 sine oscillators with adsr envelop
23 * (gate : vgroup("1-adsr", adsr(attack, decay, sustain, release)))
/dports/audio/faustlive/faustlive-2.5.7/Resources/Examples/
H A Dorgan.dsp20 // additive synth: 3 sine oscillators with adsr envelop
23 * (gate : vgroup("1-adsr", en.adsr(attack, decay, sustain, release)))
/dports/audio/csound/csound-6.15.0/tests/soak/
H A Dequals.csd21 kenv adsr 0.05, 0.05, 0.95, 0.05 ;sustained envelope
23 kenv adsr 0.5, 1, 0.5, 0.5 ;triangular envelope
25 kenv adsr 1, 1, 1, 0 ;ramp up

12345678910>>...14