MCPcopy Create free account
hub / github.com/LabSound/LabSound / ResetParams

Method ResetParams

src/extended/SfxrNode.cpp:313–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311};
312
313void SfxrNode::Sfxr::ResetParams()
314{
315 wave_type = 0;
316
317 p_base_freq = 0.3f;
318 p_freq_limit = 0.0f;
319 p_freq_ramp = 0.0f;
320 p_freq_dramp = 0.0f;
321 p_duty = 0.0f;
322 p_duty_ramp = 0.0f;
323
324 p_vib_strength = 0.0f;
325 p_vib_speed = 0.0f;
326 p_vib_delay = 0.0f;
327
328 p_env_attack = 0.0f;
329 p_env_sustain = 0.3f;
330 p_env_decay = 0.4f;
331 p_env_punch = 0.0f;
332
333 filter_on = false;
334 p_lpf_resonance = 0.0f;
335 p_lpf_freq = 1.0f;
336 p_lpf_ramp = 0.0f;
337 p_hpf_freq = 0.0f;
338 p_hpf_ramp = 0.0f;
339
340 p_pha_offset = 0.0f;
341 p_pha_ramp = 0.0f;
342
343 p_repeat_speed = 0.0f;
344
345 p_arp_speed = 0.0f;
346 p_arp_mod = 0.0f;
347
348 wav_bits = 16;
349 wav_freq = 44100;
350 sound_vol = 0.5f;
351 master_vol = 0.05f;
352}
353
354void SfxrNode::Sfxr::ResetSample(bool restart)
355{

Callers 1

SfxrNodeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected