Skip to main content

Program

Struct Program 

Source
pub struct Program { /* private fields */ }
Expand description

One program: a sound, as the synthesizer stores and sends it.

See the module documentation for what it is and how it travels.

Implementations§

Source§

impl Program

The parameters, one pair of accessors each.

A getter reads the byte the program holds and a setter writes it. A setter that takes a raw byte clamps it to what the parameter accepts, since a u8 reaches values a parameter does not; Program::set is the checked way in.

The parameters that spell the program’s name are not here. They are one string, and Program::name is how a string is read.

Source

pub fn lfo1_rate(&self) -> u8

LFO 1 Rate.

Offset 0, 0 to 255.

Source

pub fn set_lfo1_rate(&mut self, value: u8)

Sets LFO 1 Rate, clamped to 0 to 255.

Source

pub fn lfo1_delay_fade(&self) -> u8

LFO 1 Delay / Fade.

Offset 1, 0 to 255.

Source

pub fn set_lfo1_delay_fade(&mut self, value: u8)

Sets LFO 1 Delay / Fade, clamped to 0 to 255.

Source

pub fn lfo1_shape(&self) -> Option<LfoShape>

LFO 1 Shape.

Offset 2. None when the byte is one the table does not list, which is also what a program written by an older firmware reads as where that firmware numbered this table differently.

Source

pub fn set_lfo1_shape(&mut self, value: LfoShape)

Sets LFO 1 Shape.

Source

pub fn lfo1_key_sync(&self) -> bool

LFO 1 Key Sync.

Offset 3. Off is zero and on is one.

Source

pub fn set_lfo1_key_sync(&mut self, value: bool)

Sets LFO 1 Key Sync.

Source

pub fn lfo1_arp_sync(&self) -> bool

LFO 1 Arp Sync.

Offset 4. Off is zero and on is one.

Source

pub fn set_lfo1_arp_sync(&mut self, value: bool)

Sets LFO 1 Arp Sync.

Source

pub fn lfo1_mono_mode(&self) -> u8

LFO 1 Mono Mode.

Offset 5, 0 to 255.

Source

pub fn set_lfo1_mono_mode(&mut self, value: u8)

Sets LFO 1 Mono Mode, clamped to 0 to 255.

Source

pub fn lfo1_slew_rate(&self) -> u8

LFO 1 Slew Rate.

Offset 6, 0 to 255.

Source

pub fn set_lfo1_slew_rate(&mut self, value: u8)

Sets LFO 1 Slew Rate, clamped to 0 to 255.

Source

pub fn lfo2_rate(&self) -> u8

LFO 2 Rate.

Offset 7, 0 to 255.

Source

pub fn set_lfo2_rate(&mut self, value: u8)

Sets LFO 2 Rate, clamped to 0 to 255.

Source

pub fn lfo2_delay_fade(&self) -> u8

LFO 2 Delay / Fade.

Offset 8, 0 to 255.

Source

pub fn set_lfo2_delay_fade(&mut self, value: u8)

Sets LFO 2 Delay / Fade, clamped to 0 to 255.

Source

pub fn lfo2_shape(&self) -> Option<LfoShape>

LFO 2 Shape.

Offset 9. None when the byte is one the table does not list, which is also what a program written by an older firmware reads as where that firmware numbered this table differently.

Source

pub fn set_lfo2_shape(&mut self, value: LfoShape)

Sets LFO 2 Shape.

Source

pub fn lfo2_key_sync(&self) -> bool

LFO 2 Key Sync.

Offset 10. Off is zero and on is one.

Source

pub fn set_lfo2_key_sync(&mut self, value: bool)

Sets LFO 2 Key Sync.

Source

pub fn lfo2_arp_sync(&self) -> bool

LFO 2 Arp Sync.

Offset 11. Off is zero and on is one.

Source

pub fn set_lfo2_arp_sync(&mut self, value: bool)

Sets LFO 2 Arp Sync.

Source

pub fn lfo2_mono_mode(&self) -> u8

LFO 2 Mono Mode.

Offset 12, 0 to 255.

Source

pub fn set_lfo2_mono_mode(&mut self, value: u8)

Sets LFO 2 Mono Mode, clamped to 0 to 255.

Source

pub fn lfo2_slew_rate(&self) -> u8

LFO 2 Slew Rate.

Offset 13, 0 to 255.

Source

pub fn set_lfo2_slew_rate(&mut self, value: u8)

Sets LFO 2 Slew Rate, clamped to 0 to 255.

Source

pub fn osc1_range(&self) -> Option<OscRange>

OSC 1 Range.

Offset 14. None when the byte is one the table does not list, which is also what a program written by an older firmware reads as where that firmware numbered this table differently.

Source

pub fn set_osc1_range(&mut self, value: OscRange)

Sets OSC 1 Range.

Source

pub fn osc2_range(&self) -> Option<OscRange>

OSC 2 Range.

Offset 15. None when the byte is one the table does not list, which is also what a program written by an older firmware reads as where that firmware numbered this table differently.

Source

pub fn set_osc2_range(&mut self, value: OscRange)

Sets OSC 2 Range.

Source

pub fn osc1_pwm_source(&self) -> Option<PwmSource>

OSC 1 PWM Source.

Offset 16. None when the byte is one the table does not list, which is also what a program written by an older firmware reads as where that firmware numbered this table differently.

Source

pub fn set_osc1_pwm_source(&mut self, value: PwmSource)

Sets OSC 1 PWM Source.

Source

pub fn osc2_tone_mod_source(&self) -> Option<ToneModSource>

OSC 2 Tone Mod Source.

Offset 17. None when the byte is one the table does not list, which is also what a program written by an older firmware reads as where that firmware numbered this table differently.

Source

pub fn set_osc2_tone_mod_source(&mut self, value: ToneModSource)

Sets OSC 2 Tone Mod Source.

Source

pub fn osc1_pulse_enable(&self) -> bool

OSC 1 Pulse Enable.

Offset 18. Off is zero and on is one.

Source

pub fn set_osc1_pulse_enable(&mut self, value: bool)

Sets OSC 1 Pulse Enable.

Source

pub fn osc1_saw_enable(&self) -> bool

OSC 1 Saw Enable.

Offset 19. Off is zero and on is one.

Source

pub fn set_osc1_saw_enable(&mut self, value: bool)

Sets OSC 1 Saw Enable.

Source

pub fn osc_sync_enable(&self) -> bool

OSC Sync Enable.

Offset 20. Off is zero and on is one.

Source

pub fn set_osc_sync_enable(&mut self, value: bool)

Sets OSC Sync Enable.

Source

pub fn osc1_pitch_mod_depth(&self) -> u8

OSC 1 Pitch Mod Depth.

Offset 21, 0 to 255.

Source

pub fn set_osc1_pitch_mod_depth(&mut self, value: u8)

Sets OSC 1 Pitch Mod Depth, clamped to 0 to 255.

Source

pub fn osc1_pitch_mod_select(&self) -> Option<PitchModSource>

OSC 1 Pitch Mod Select.

Offset 22. None when the byte is one the table does not list, which is also what a program written by an older firmware reads as where that firmware numbered this table differently.

Source

pub fn set_osc1_pitch_mod_select(&mut self, value: PitchModSource)

Sets OSC 1 Pitch Mod Select.

Source

pub fn osc1_aftertouch_to_pitch_mod_depth(&self) -> u8

OSC 1 Aftertouch > Pitch Mod Depth.

Offset 23, 0 to 255.

Source

pub fn set_osc1_aftertouch_to_pitch_mod_depth(&mut self, value: u8)

Sets OSC 1 Aftertouch > Pitch Mod Depth, clamped to 0 to 255.

Source

pub fn osc1_mod_wheel_to_pitch_mod_depth(&self) -> u8

OSC 1 Mod Wheel > Pitch Mod Depth.

Offset 24, 0 to 255.

Source

pub fn set_osc1_mod_wheel_to_pitch_mod_depth(&mut self, value: u8)

Sets OSC 1 Mod Wheel > Pitch Mod Depth, clamped to 0 to 255.

Source

pub fn osc1_pwm_depth(&self) -> u8

OSC 1 PWM Depth.

Offset 25, 0 to 255.

Source

pub fn set_osc1_pwm_depth(&mut self, value: u8)

Sets OSC 1 PWM Depth, clamped to 0 to 255.

Source

pub fn osc2_level(&self) -> u8

OSC 2 Level.

Offset 26, 0 to 255.

Source

pub fn set_osc2_level(&mut self, value: u8)

Sets OSC 2 Level, clamped to 0 to 255.

Source

pub fn osc2_pitch(&self) -> u8

OSC 2 Pitch.

Offset 27, 0 to 255.

Source

pub fn set_osc2_pitch(&mut self, value: u8)

Sets OSC 2 Pitch, clamped to 0 to 255.

Source

pub fn osc2_tone_mod_depth(&self) -> u8

OSC 2 Tone Mod Depth.

Offset 28, 0 to 255.

Source

pub fn set_osc2_tone_mod_depth(&mut self, value: u8)

Sets OSC 2 Tone Mod Depth, clamped to 0 to 255.

Source

pub fn osc2_pitch_mod_depth(&self) -> u8

OSC 2 Pitch Mod Depth.

Offset 29, 0 to 255.

Source

pub fn set_osc2_pitch_mod_depth(&mut self, value: u8)

Sets OSC 2 Pitch Mod Depth, clamped to 0 to 255.

Source

pub fn osc2_aftertouch_to_pitch_mod_depth(&self) -> u8

OSC 2 Aftertouch > Pitch Mod Depth.

Offset 30, 0 to 255.

Source

pub fn set_osc2_aftertouch_to_pitch_mod_depth(&mut self, value: u8)

Sets OSC 2 Aftertouch > Pitch Mod Depth, clamped to 0 to 255.

Source

pub fn osc2_mod_wheel_to_pitch_mod_depth(&self) -> u8

OSC 2 Mod Wheel > Pitch Mod Depth.

Offset 31, 0 to 255.

Source

pub fn set_osc2_mod_wheel_to_pitch_mod_depth(&mut self, value: u8)

Sets OSC 2 Mod Wheel > Pitch Mod Depth, clamped to 0 to 255.

Source

pub fn osc2_pitch_mod_select(&self) -> Option<PitchModSource>

OSC 2 Pitch Mod Select.

Offset 32. None when the byte is one the table does not list, which is also what a program written by an older firmware reads as where that firmware numbered this table differently.

Source

pub fn set_osc2_pitch_mod_select(&mut self, value: PitchModSource)

Sets OSC 2 Pitch Mod Select.

Source

pub fn noise_level(&self) -> u8

Noise Level.

Offset 33, 0 to 255.

Source

pub fn set_noise_level(&mut self, value: u8)

Sets Noise Level, clamped to 0 to 255.

Source

pub fn portamento_time(&self) -> u8

Portamento time.

Offset 34, 0 to 255.

Source

pub fn set_portamento_time(&mut self, value: u8)

Sets Portamento time, clamped to 0 to 255.

Source

pub fn portamento_mode(&self) -> Option<PortamentoMode>

Portamento mode.

Offset 35. None when the byte is one the table does not list, which is also what a program written by an older firmware reads as where that firmware numbered this table differently.

Source

pub fn set_portamento_mode(&mut self, value: PortamentoMode)

Sets Portamento mode.

Source

pub fn pitch_bend_up_depth(&self) -> u8

Pitch Bend Up Depth.

Offset 36, 0 to 48.

Source

pub fn set_pitch_bend_up_depth(&mut self, value: u8)

Sets Pitch Bend Up Depth, clamped to 0 to 48.

Source

pub fn pitch_bend_down_depth(&self) -> u8

Pitch Bend Down Depth.

Offset 37, 0 to 48.

Source

pub fn set_pitch_bend_down_depth(&mut self, value: u8)

Sets Pitch Bend Down Depth, clamped to 0 to 48.

Source

pub fn osc1_pitch_mod_mode(&self) -> Option<Osc1PitchModMode>

OSC 1 Pitch Mod Mode.

Offset 38. None when the byte is one the table does not list, which is also what a program written by an older firmware reads as where that firmware numbered this table differently.

Source

pub fn set_osc1_pitch_mod_mode(&mut self, value: Osc1PitchModMode)

Sets OSC 1 Pitch Mod Mode.

Source

pub fn vcf_frequency(&self) -> u8

VCF Frequency.

Offset 39, 0 to 255.

Source

pub fn set_vcf_frequency(&mut self, value: u8)

Sets VCF Frequency, clamped to 0 to 255.

Source

pub fn vcf_high_pass_frequency(&self) -> u8

VCF HighPass Frequency.

Offset 40, 0 to 255.

Source

pub fn set_vcf_high_pass_frequency(&mut self, value: u8)

Sets VCF HighPass Frequency, clamped to 0 to 255.

Source

pub fn vcf_resonance(&self) -> u8

VCF Resonance.

Offset 41, 0 to 255.

Source

pub fn set_vcf_resonance(&mut self, value: u8)

Sets VCF Resonance, clamped to 0 to 255.

Source

pub fn vcf_envelope_depth(&self) -> u8

VCF Envelope Depth.

Offset 42, 0 to 255.

Source

pub fn set_vcf_envelope_depth(&mut self, value: u8)

Sets VCF Envelope Depth, clamped to 0 to 255.

Source

pub fn vcf_envelope_velocity_sensitivity(&self) -> u8

VCF Envelope Velocity Sensitivity.

Offset 43, 0 to 255.

Source

pub fn set_vcf_envelope_velocity_sensitivity(&mut self, value: u8)

Sets VCF Envelope Velocity Sensitivity, clamped to 0 to 255.

Source

pub fn vcf_pitch_bend_to_freq_depth(&self) -> u8

VCF Pitch Bend to Freq Depth.

Offset 44, 0 to 255.

Source

pub fn set_vcf_pitch_bend_to_freq_depth(&mut self, value: u8)

Sets VCF Pitch Bend to Freq Depth, clamped to 0 to 255.

Source

pub fn vcf_lfo_depth(&self) -> u8

VCF LFO Depth.

Offset 45, 0 to 255.

Source

pub fn set_vcf_lfo_depth(&mut self, value: u8)

Sets VCF LFO Depth, clamped to 0 to 255.

Source

pub fn vcf_lfo_select(&self) -> Option<VcfLfoSelect>

VCF LFO Select.

Offset 46. None when the byte is one the table does not list, which is also what a program written by an older firmware reads as where that firmware numbered this table differently.

Source

pub fn set_vcf_lfo_select(&mut self, value: VcfLfoSelect)

Sets VCF LFO Select.

Source

pub fn vcf_aftertouch_to_lfo_depth(&self) -> u8

VCF Aftertouch > LFO Depth.

Offset 47, 0 to 255.

Source

pub fn set_vcf_aftertouch_to_lfo_depth(&mut self, value: u8)

Sets VCF Aftertouch > LFO Depth, clamped to 0 to 255.

Source

pub fn vcf_mod_wheel_to_lfo_depth(&self) -> u8

VCF Mod Wheel > LFO Depth.

Offset 48, 0 to 255.

Source

pub fn set_vcf_mod_wheel_to_lfo_depth(&mut self, value: u8)

Sets VCF Mod Wheel > LFO Depth, clamped to 0 to 255.

Source

pub fn vcf_keyboard_tracking(&self) -> u8

VCF Keyboard Tracking.

Offset 49, 0 to 255.

Source

pub fn set_vcf_keyboard_tracking(&mut self, value: u8)

Sets VCF Keyboard Tracking, clamped to 0 to 255.

Source

pub fn vcf_envelope_polarity(&self) -> Option<VcfEnvelopePolarity>

VCF Envelope Polarity.

Offset 50. None when the byte is one the table does not list, which is also what a program written by an older firmware reads as where that firmware numbered this table differently.

Source

pub fn set_vcf_envelope_polarity(&mut self, value: VcfEnvelopePolarity)

Sets VCF Envelope Polarity.

Source

pub fn vcf2_pole_mode(&self) -> Option<VcfPoleMode>

VCF 2 Pole Mode.

Offset 51. None when the byte is one the table does not list, which is also what a program written by an older firmware reads as where that firmware numbered this table differently.

Source

pub fn set_vcf2_pole_mode(&mut self, value: VcfPoleMode)

Sets VCF 2 Pole Mode.

Source

pub fn vcf_bass_boost(&self) -> bool

VCF Bass Boost.

Offset 52. Off is zero and on is one.

Source

pub fn set_vcf_bass_boost(&mut self, value: bool)

Sets VCF Bass Boost.

Source

pub fn vca_envelope_attack_time(&self) -> u8

VCA Envelope Attack Time.

Offset 53, 0 to 255.

Source

pub fn set_vca_envelope_attack_time(&mut self, value: u8)

Sets VCA Envelope Attack Time, clamped to 0 to 255.

Source

pub fn vca_envelope_decay_time(&self) -> u8

VCA Envelope Decay Time.

Offset 54, 0 to 255.

Source

pub fn set_vca_envelope_decay_time(&mut self, value: u8)

Sets VCA Envelope Decay Time, clamped to 0 to 255.

Source

pub fn vca_envelope_sustain_level(&self) -> u8

VCA Envelope Sustain Level.

Offset 55, 0 to 255.

Source

pub fn set_vca_envelope_sustain_level(&mut self, value: u8)

Sets VCA Envelope Sustain Level, clamped to 0 to 255.

Source

pub fn vca_envelope_release_time(&self) -> u8

VCA Envelope Release Time.

Offset 56, 0 to 255.

Source

pub fn set_vca_envelope_release_time(&mut self, value: u8)

Sets VCA Envelope Release Time, clamped to 0 to 255.

Source

pub fn vca_envelope_trigger_mode(&self) -> Option<EnvelopeTrigger>

VCA Envelope Trigger Mode.

Offset 57. None when the byte is one the table does not list, which is also what a program written by an older firmware reads as where that firmware numbered this table differently.

Source

pub fn set_vca_envelope_trigger_mode(&mut self, value: EnvelopeTrigger)

Sets VCA Envelope Trigger Mode.

Source

pub fn vca_envelope_attack_curve(&self) -> u8

VCA Envelope Attack Curve.

Offset 58, 0 to 255.

Source

pub fn set_vca_envelope_attack_curve(&mut self, value: u8)

Sets VCA Envelope Attack Curve, clamped to 0 to 255.

Source

pub fn vca_envelope_decay_curve(&self) -> u8

VCA Envelope Decay Curve.

Offset 59, 0 to 255.

Source

pub fn set_vca_envelope_decay_curve(&mut self, value: u8)

Sets VCA Envelope Decay Curve, clamped to 0 to 255.

Source

pub fn vca_envelope_sustain_curve(&self) -> u8

VCA Envelope Sustain Curve.

Offset 60, 0 to 255.

Source

pub fn set_vca_envelope_sustain_curve(&mut self, value: u8)

Sets VCA Envelope Sustain Curve, clamped to 0 to 255.

Source

pub fn vca_envelope_release_curve(&self) -> u8

VCA Envelope Release Curve.

Offset 61, 0 to 255.

Source

pub fn set_vca_envelope_release_curve(&mut self, value: u8)

Sets VCA Envelope Release Curve, clamped to 0 to 255.

Source

pub fn vcf_envelope_attack_time(&self) -> u8

VCF Envelope Attack Time.

Offset 62, 0 to 255.

Source

pub fn set_vcf_envelope_attack_time(&mut self, value: u8)

Sets VCF Envelope Attack Time, clamped to 0 to 255.

Source

pub fn vcf_envelope_decay_time(&self) -> u8

VCF Envelope Decay Time.

Offset 63, 0 to 255.

Source

pub fn set_vcf_envelope_decay_time(&mut self, value: u8)

Sets VCF Envelope Decay Time, clamped to 0 to 255.

Source

pub fn vcf_envelope_sustain_level(&self) -> u8

VCF Envelope Sustain Level.

Offset 64, 0 to 255.

Source

pub fn set_vcf_envelope_sustain_level(&mut self, value: u8)

Sets VCF Envelope Sustain Level, clamped to 0 to 255.

Source

pub fn vcf_envelope_release_time(&self) -> u8

VCF Envelope Release Time.

Offset 65, 0 to 255.

Source

pub fn set_vcf_envelope_release_time(&mut self, value: u8)

Sets VCF Envelope Release Time, clamped to 0 to 255.

Source

pub fn vcf_envelope_trigger_mode(&self) -> Option<EnvelopeTrigger>

VCF Envelope Trigger Mode.

Offset 66. None when the byte is one the table does not list, which is also what a program written by an older firmware reads as where that firmware numbered this table differently.

Source

pub fn set_vcf_envelope_trigger_mode(&mut self, value: EnvelopeTrigger)

Sets VCF Envelope Trigger Mode.

Source

pub fn vcf_envelope_attack_curve(&self) -> u8

VCF Envelope Attack Curve.

Offset 67, 0 to 255.

Source

pub fn set_vcf_envelope_attack_curve(&mut self, value: u8)

Sets VCF Envelope Attack Curve, clamped to 0 to 255.

Source

pub fn vcf_envelope_decay_curve(&self) -> u8

VCF Envelope Decay Curve.

Offset 68, 0 to 255.

Source

pub fn set_vcf_envelope_decay_curve(&mut self, value: u8)

Sets VCF Envelope Decay Curve, clamped to 0 to 255.

Source

pub fn vcf_envelope_sustain_curve(&self) -> u8

VCF Envelope Sustain Curve.

Offset 69, 0 to 255.

Source

pub fn set_vcf_envelope_sustain_curve(&mut self, value: u8)

Sets VCF Envelope Sustain Curve, clamped to 0 to 255.

Source

pub fn vcf_envelope_release_curve(&self) -> u8

VCF Envelope Release Curve.

Offset 70, 0 to 255.

Source

pub fn set_vcf_envelope_release_curve(&mut self, value: u8)

Sets VCF Envelope Release Curve, clamped to 0 to 255.

Source

pub fn mod_envelope_attack_time(&self) -> u8

Mod Envelope Attack Time.

Offset 71, 0 to 255.

Source

pub fn set_mod_envelope_attack_time(&mut self, value: u8)

Sets Mod Envelope Attack Time, clamped to 0 to 255.

Source

pub fn mod_envelope_decay_time(&self) -> u8

Mod Envelope Decay Time.

Offset 72, 0 to 255.

Source

pub fn set_mod_envelope_decay_time(&mut self, value: u8)

Sets Mod Envelope Decay Time, clamped to 0 to 255.

Source

pub fn mod_envelope_sustain_level(&self) -> u8

Mod Envelope Sustain Level.

Offset 73, 0 to 255.

Source

pub fn set_mod_envelope_sustain_level(&mut self, value: u8)

Sets Mod Envelope Sustain Level, clamped to 0 to 255.

Source

pub fn mod_envelope_release_time(&self) -> u8

Mod Envelope Release Time.

Offset 74, 0 to 255.

Source

pub fn set_mod_envelope_release_time(&mut self, value: u8)

Sets Mod Envelope Release Time, clamped to 0 to 255.

Source

pub fn mod_envelope_trigger_mode(&self) -> Option<EnvelopeTrigger>

Mod Envelope Trigger Mode.

Offset 75. None when the byte is one the table does not list, which is also what a program written by an older firmware reads as where that firmware numbered this table differently.

Source

pub fn set_mod_envelope_trigger_mode(&mut self, value: EnvelopeTrigger)

Sets Mod Envelope Trigger Mode.

Source

pub fn mod_envelope_attack_curve(&self) -> u8

Mod Envelope Attack Curve.

Offset 76, 0 to 255.

Source

pub fn set_mod_envelope_attack_curve(&mut self, value: u8)

Sets Mod Envelope Attack Curve, clamped to 0 to 255.

Source

pub fn mod_envelope_decay_curve(&self) -> u8

Mod Envelope Decay Curve.

Offset 77, 0 to 255.

Source

pub fn set_mod_envelope_decay_curve(&mut self, value: u8)

Sets Mod Envelope Decay Curve, clamped to 0 to 255.

Source

pub fn mod_envelope_sustain_curve(&self) -> u8

Mod Envelope Sustain Curve.

Offset 78, 0 to 255.

Source

pub fn set_mod_envelope_sustain_curve(&mut self, value: u8)

Sets Mod Envelope Sustain Curve, clamped to 0 to 255.

Source

pub fn mod_envelope_release_curve(&self) -> u8

Mod Envelope Release Curve.

Offset 79, 0 to 255.

Source

pub fn set_mod_envelope_release_curve(&mut self, value: u8)

Sets Mod Envelope Release Curve, clamped to 0 to 255.

Source

pub fn vca_level(&self) -> u8

VCA Level.

Offset 80, 0 to 255.

Source

pub fn set_vca_level(&mut self, value: u8)

Sets VCA Level, clamped to 0 to 255.

Source

pub fn vca_envelope_depth(&self) -> u8

VCA Envelope Depth.

Offset 81, 0 to 255.

Source

pub fn set_vca_envelope_depth(&mut self, value: u8)

Sets VCA Envelope Depth, clamped to 0 to 255.

Source

pub fn vca_envelope_velocity_sensitivity(&self) -> u8

VCA Envelope Velocity Sensitivity.

Offset 82, 0 to 255.

Source

pub fn set_vca_envelope_velocity_sensitivity(&mut self, value: u8)

Sets VCA Envelope Velocity Sensitivity, clamped to 0 to 255.

Source

pub fn vca_pan_spread(&self) -> u8

VCA Pan Spread.

Offset 83, 0 to 255.

Source

pub fn set_vca_pan_spread(&mut self, value: u8)

Sets VCA Pan Spread, clamped to 0 to 255.

Source

pub fn voice_priority_mode(&self) -> Option<VoicePriority>

Voice Priority Mode.

Offset 84. None when the byte is one the table does not list, which is also what a program written by an older firmware reads as where that firmware numbered this table differently.

Source

pub fn set_voice_priority_mode(&mut self, value: VoicePriority)

Sets Voice Priority Mode.

Source

pub fn polyphony_mode(&self) -> Option<PolyphonyMode>

Polyphony Mode.

Offset 85. None when the byte is one the table does not list, which is also what a program written by an older firmware reads as where that firmware numbered this table differently.

Source

pub fn set_polyphony_mode(&mut self, value: PolyphonyMode)

Sets Polyphony Mode.

Source

pub fn envelope_trigger_mode(&self) -> Option<KeyAssignMode>

Envelope Trigger Mode.

Offset 86. None when the byte is one the table does not list, which is also what a program written by an older firmware reads as where that firmware numbered this table differently.

Source

pub fn set_envelope_trigger_mode(&mut self, value: KeyAssignMode)

Sets Envelope Trigger Mode.

Source

pub fn unison_detune(&self) -> u8

Unison Detune.

Offset 87, 0 to 255.

Source

pub fn set_unison_detune(&mut self, value: u8)

Sets Unison Detune, clamped to 0 to 255.

Source

pub fn voice_drift(&self) -> u8

Voice Drift.

Offset 88, 0 to 255.

Source

pub fn set_voice_drift(&mut self, value: u8)

Sets Voice Drift, clamped to 0 to 255.

Source

pub fn parameter_drift(&self) -> u8

Parameter Drift.

Offset 89, 0 to 255.

Source

pub fn set_parameter_drift(&mut self, value: u8)

Sets Parameter Drift, clamped to 0 to 255.

Source

pub fn drift_rate(&self) -> u8

Drift Rate.

Offset 90, 0 to 255.

Source

pub fn set_drift_rate(&mut self, value: u8)

Sets Drift Rate, clamped to 0 to 255.

Source

pub fn osc_portamento_balance(&self) -> u8

OSC Portamento Balance.

Offset 91, 0 to 255.

Source

pub fn set_osc_portamento_balance(&mut self, value: u8)

Sets OSC Portamento Balance, clamped to 0 to 255.

Source

pub fn osc_key_down_reset(&self) -> bool

OSC Key Down Reset.

Offset 92. Off is zero and on is one.

Source

pub fn set_osc_key_down_reset(&mut self, value: bool)

Sets OSC Key Down Reset.

Source

pub fn mod1_source(&self) -> Option<ModSource>

Mod 1 Source.

Offset 93. None when the byte is one the table does not list, which is also what a program written by an older firmware reads as where that firmware numbered this table differently.

Source

pub fn set_mod1_source(&mut self, value: ModSource)

Sets Mod 1 Source.

Source

pub fn mod1_destination(&self) -> Option<ModDestination>

Mod 1 Destination.

Offset 94. None when the byte is one the table does not list, which is also what a program written by an older firmware reads as where that firmware numbered this table differently.

Source

pub fn set_mod1_destination(&mut self, value: ModDestination)

Sets Mod 1 Destination.

Source

pub fn mod1_depth(&self) -> u8

Mod 1 Depth.

Offset 95, 0 to 255.

Source

pub fn set_mod1_depth(&mut self, value: u8)

Sets Mod 1 Depth, clamped to 0 to 255.

Source

pub fn mod2_source(&self) -> Option<ModSource>

Mod 2 Source.

Offset 96. None when the byte is one the table does not list, which is also what a program written by an older firmware reads as where that firmware numbered this table differently.

Source

pub fn set_mod2_source(&mut self, value: ModSource)

Sets Mod 2 Source.

Source

pub fn mod2_destination(&self) -> Option<ModDestination>

Mod 2 Destination.

Offset 97. None when the byte is one the table does not list, which is also what a program written by an older firmware reads as where that firmware numbered this table differently.

Source

pub fn set_mod2_destination(&mut self, value: ModDestination)

Sets Mod 2 Destination.

Source

pub fn mod2_depth(&self) -> u8

Mod 2 Depth.

Offset 98, 0 to 255.

Source

pub fn set_mod2_depth(&mut self, value: u8)

Sets Mod 2 Depth, clamped to 0 to 255.

Source

pub fn mod3_source(&self) -> Option<ModSource>

Mod 3 Source.

Offset 99. None when the byte is one the table does not list, which is also what a program written by an older firmware reads as where that firmware numbered this table differently.

Source

pub fn set_mod3_source(&mut self, value: ModSource)

Sets Mod 3 Source.

Source

pub fn mod3_destination(&self) -> Option<ModDestination>

Mod 3 Destination.

Offset 100. None when the byte is one the table does not list, which is also what a program written by an older firmware reads as where that firmware numbered this table differently.

Source

pub fn set_mod3_destination(&mut self, value: ModDestination)

Sets Mod 3 Destination.

Source

pub fn mod3_depth(&self) -> u8

Mod 3 Depth.

Offset 101, 0 to 255.

Source

pub fn set_mod3_depth(&mut self, value: u8)

Sets Mod 3 Depth, clamped to 0 to 255.

Source

pub fn mod4_source(&self) -> Option<ModSource>

Mod 4 Source.

Offset 102. None when the byte is one the table does not list, which is also what a program written by an older firmware reads as where that firmware numbered this table differently.

Source

pub fn set_mod4_source(&mut self, value: ModSource)

Sets Mod 4 Source.

Source

pub fn mod4_destination(&self) -> Option<ModDestination>

Mod 4 Destination.

Offset 103. None when the byte is one the table does not list, which is also what a program written by an older firmware reads as where that firmware numbered this table differently.

Source

pub fn set_mod4_destination(&mut self, value: ModDestination)

Sets Mod 4 Destination.

Source

pub fn mod4_depth(&self) -> u8

Mod 4 Depth.

Offset 104, 0 to 255.

Source

pub fn set_mod4_depth(&mut self, value: u8)

Sets Mod 4 Depth, clamped to 0 to 255.

Source

pub fn mod5_source(&self) -> Option<ModSource>

Mod 5 Source.

Offset 105. None when the byte is one the table does not list, which is also what a program written by an older firmware reads as where that firmware numbered this table differently.

Source

pub fn set_mod5_source(&mut self, value: ModSource)

Sets Mod 5 Source.

Source

pub fn mod5_destination(&self) -> Option<ModDestination>

Mod 5 Destination.

Offset 106. None when the byte is one the table does not list, which is also what a program written by an older firmware reads as where that firmware numbered this table differently.

Source

pub fn set_mod5_destination(&mut self, value: ModDestination)

Sets Mod 5 Destination.

Source

pub fn mod5_depth(&self) -> u8

Mod 5 Depth.

Offset 107, 0 to 255.

Source

pub fn set_mod5_depth(&mut self, value: u8)

Sets Mod 5 Depth, clamped to 0 to 255.

Source

pub fn mod6_source(&self) -> Option<ModSource>

Mod 6 Source.

Offset 108. None when the byte is one the table does not list, which is also what a program written by an older firmware reads as where that firmware numbered this table differently.

Source

pub fn set_mod6_source(&mut self, value: ModSource)

Sets Mod 6 Source.

Source

pub fn mod6_destination(&self) -> Option<ModDestination>

Mod 6 Destination.

Offset 109. None when the byte is one the table does not list, which is also what a program written by an older firmware reads as where that firmware numbered this table differently.

Source

pub fn set_mod6_destination(&mut self, value: ModDestination)

Sets Mod 6 Destination.

Source

pub fn mod6_depth(&self) -> u8

Mod 6 Depth.

Offset 110, 0 to 255.

Source

pub fn set_mod6_depth(&mut self, value: u8)

Sets Mod 6 Depth, clamped to 0 to 255.

Source

pub fn mod7_source(&self) -> Option<ModSource>

Mod 7 Source.

Offset 111. None when the byte is one the table does not list, which is also what a program written by an older firmware reads as where that firmware numbered this table differently.

Source

pub fn set_mod7_source(&mut self, value: ModSource)

Sets Mod 7 Source.

Source

pub fn mod7_destination(&self) -> Option<ModDestination>

Mod 7 Destination.

Offset 112. None when the byte is one the table does not list, which is also what a program written by an older firmware reads as where that firmware numbered this table differently.

Source

pub fn set_mod7_destination(&mut self, value: ModDestination)

Sets Mod 7 Destination.

Source

pub fn mod7_depth(&self) -> u8

Mod 7 Depth.

Offset 113, 0 to 255.

Source

pub fn set_mod7_depth(&mut self, value: u8)

Sets Mod 7 Depth, clamped to 0 to 255.

Source

pub fn mod8_source(&self) -> Option<ModSource>

Mod 8 Source.

Offset 114. None when the byte is one the table does not list, which is also what a program written by an older firmware reads as where that firmware numbered this table differently.

Source

pub fn set_mod8_source(&mut self, value: ModSource)

Sets Mod 8 Source.

Source

pub fn mod8_destination(&self) -> Option<ModDestination>

Mod 8 Destination.

Offset 115. None when the byte is one the table does not list, which is also what a program written by an older firmware reads as where that firmware numbered this table differently.

Source

pub fn set_mod8_destination(&mut self, value: ModDestination)

Sets Mod 8 Destination.

Source

pub fn mod8_depth(&self) -> u8

Mod 8 Depth.

Offset 116, 0 to 255.

Source

pub fn set_mod8_depth(&mut self, value: u8)

Sets Mod 8 Depth, clamped to 0 to 255.

Source

pub fn ctrl_sequencer_enable(&self) -> bool

Ctrl Sequencer Enable.

Offset 117. Off is zero and on is one.

Source

pub fn set_ctrl_sequencer_enable(&mut self, value: bool)

Sets Ctrl Sequencer Enable.

Source

pub fn ctrl_sequencer_clock_divider(&self) -> u8

Ctrl Sequencer Clock Divider.

Offset 118, 0 to 15.

Source

pub fn set_ctrl_sequencer_clock_divider(&mut self, value: u8)

Sets Ctrl Sequencer Clock Divider, clamped to 0 to 15.

Source

pub fn sequence_length(&self) -> u8

Sequence Length.

Offset 119, 0 to 31.

Source

pub fn set_sequence_length(&mut self, value: u8)

Sets Sequence Length, clamped to 0 to 31.

Source

pub fn sequencer_swing_timing(&self) -> u8

Sequencer Swing Timing.

Offset 120, 0 to 255.

Source

pub fn set_sequencer_swing_timing(&mut self, value: u8)

Sets Sequencer Swing Timing, clamped to 0 to 255.

Source

pub fn key_sync_and_loop(&self) -> Option<SequencerSync>

Key Sync & Loop.

Offset 121. None when the byte is one the table does not list, which is also what a program written by an older firmware reads as where that firmware numbered this table differently.

Source

pub fn set_key_sync_and_loop(&mut self, value: SequencerSync)

Sets Key Sync & Loop.

Source

pub fn slew_rate(&self) -> u8

Slew Rate.

Offset 122, 0 to 255.

Source

pub fn set_slew_rate(&mut self, value: u8)

Sets Slew Rate, clamped to 0 to 255.

Source

pub fn seq_step_value1(&self) -> u8

Seq Step Value 1.

Offset 123, 0 to 255.

Source

pub fn set_seq_step_value1(&mut self, value: u8)

Sets Seq Step Value 1, clamped to 0 to 255.

Source

pub fn seq_step_value2(&self) -> u8

Seq Step Value 2.

Offset 124, 0 to 255.

Source

pub fn set_seq_step_value2(&mut self, value: u8)

Sets Seq Step Value 2, clamped to 0 to 255.

Source

pub fn seq_step_value3(&self) -> u8

Seq Step Value 3.

Offset 125, 0 to 255.

Source

pub fn set_seq_step_value3(&mut self, value: u8)

Sets Seq Step Value 3, clamped to 0 to 255.

Source

pub fn seq_step_value4(&self) -> u8

Seq Step Value 4.

Offset 126, 0 to 255.

Source

pub fn set_seq_step_value4(&mut self, value: u8)

Sets Seq Step Value 4, clamped to 0 to 255.

Source

pub fn seq_step_value5(&self) -> u8

Seq Step Value 5.

Offset 127, 0 to 255.

Source

pub fn set_seq_step_value5(&mut self, value: u8)

Sets Seq Step Value 5, clamped to 0 to 255.

Source

pub fn seq_step_value6(&self) -> u8

Seq Step Value 6.

Offset 128, 0 to 255.

Source

pub fn set_seq_step_value6(&mut self, value: u8)

Sets Seq Step Value 6, clamped to 0 to 255.

Source

pub fn seq_step_value7(&self) -> u8

Seq Step Value 7.

Offset 129, 0 to 255.

Source

pub fn set_seq_step_value7(&mut self, value: u8)

Sets Seq Step Value 7, clamped to 0 to 255.

Source

pub fn seq_step_value8(&self) -> u8

Seq Step Value 8.

Offset 130, 0 to 255.

Source

pub fn set_seq_step_value8(&mut self, value: u8)

Sets Seq Step Value 8, clamped to 0 to 255.

Source

pub fn seq_step_value9(&self) -> u8

Seq Step Value 9.

Offset 131, 0 to 255.

Source

pub fn set_seq_step_value9(&mut self, value: u8)

Sets Seq Step Value 9, clamped to 0 to 255.

Source

pub fn seq_step_value10(&self) -> u8

Seq Step Value 10.

Offset 132, 0 to 255.

Source

pub fn set_seq_step_value10(&mut self, value: u8)

Sets Seq Step Value 10, clamped to 0 to 255.

Source

pub fn seq_step_value11(&self) -> u8

Seq Step Value 11.

Offset 133, 0 to 255.

Source

pub fn set_seq_step_value11(&mut self, value: u8)

Sets Seq Step Value 11, clamped to 0 to 255.

Source

pub fn seq_step_value12(&self) -> u8

Seq Step Value 12.

Offset 134, 0 to 255.

Source

pub fn set_seq_step_value12(&mut self, value: u8)

Sets Seq Step Value 12, clamped to 0 to 255.

Source

pub fn seq_step_value13(&self) -> u8

Seq Step Value 13.

Offset 135, 0 to 255.

Source

pub fn set_seq_step_value13(&mut self, value: u8)

Sets Seq Step Value 13, clamped to 0 to 255.

Source

pub fn seq_step_value14(&self) -> u8

Seq Step Value 14.

Offset 136, 0 to 255.

Source

pub fn set_seq_step_value14(&mut self, value: u8)

Sets Seq Step Value 14, clamped to 0 to 255.

Source

pub fn seq_step_value15(&self) -> u8

Seq Step Value 15.

Offset 137, 0 to 255.

Source

pub fn set_seq_step_value15(&mut self, value: u8)

Sets Seq Step Value 15, clamped to 0 to 255.

Source

pub fn seq_step_value16(&self) -> u8

Seq Step Value 16.

Offset 138, 0 to 255.

Source

pub fn set_seq_step_value16(&mut self, value: u8)

Sets Seq Step Value 16, clamped to 0 to 255.

Source

pub fn seq_step_value17(&self) -> u8

Seq Step Value 17.

Offset 139, 0 to 255.

Source

pub fn set_seq_step_value17(&mut self, value: u8)

Sets Seq Step Value 17, clamped to 0 to 255.

Source

pub fn seq_step_value18(&self) -> u8

Seq Step Value 18.

Offset 140, 0 to 255.

Source

pub fn set_seq_step_value18(&mut self, value: u8)

Sets Seq Step Value 18, clamped to 0 to 255.

Source

pub fn seq_step_value19(&self) -> u8

Seq Step Value 19.

Offset 141, 0 to 255.

Source

pub fn set_seq_step_value19(&mut self, value: u8)

Sets Seq Step Value 19, clamped to 0 to 255.

Source

pub fn seq_step_value20(&self) -> u8

Seq Step Value 20.

Offset 142, 0 to 255.

Source

pub fn set_seq_step_value20(&mut self, value: u8)

Sets Seq Step Value 20, clamped to 0 to 255.

Source

pub fn seq_step_value21(&self) -> u8

Seq Step Value 21.

Offset 143, 0 to 255.

Source

pub fn set_seq_step_value21(&mut self, value: u8)

Sets Seq Step Value 21, clamped to 0 to 255.

Source

pub fn seq_step_value22(&self) -> u8

Seq Step Value 22.

Offset 144, 0 to 255.

Source

pub fn set_seq_step_value22(&mut self, value: u8)

Sets Seq Step Value 22, clamped to 0 to 255.

Source

pub fn seq_step_value23(&self) -> u8

Seq Step Value 23.

Offset 145, 0 to 255.

Source

pub fn set_seq_step_value23(&mut self, value: u8)

Sets Seq Step Value 23, clamped to 0 to 255.

Source

pub fn seq_step_value24(&self) -> u8

Seq Step Value 24.

Offset 146, 0 to 255.

Source

pub fn set_seq_step_value24(&mut self, value: u8)

Sets Seq Step Value 24, clamped to 0 to 255.

Source

pub fn seq_step_value25(&self) -> u8

Seq Step Value 25.

Offset 147, 0 to 255.

Source

pub fn set_seq_step_value25(&mut self, value: u8)

Sets Seq Step Value 25, clamped to 0 to 255.

Source

pub fn seq_step_value26(&self) -> u8

Seq Step Value 26.

Offset 148, 0 to 255.

Source

pub fn set_seq_step_value26(&mut self, value: u8)

Sets Seq Step Value 26, clamped to 0 to 255.

Source

pub fn seq_step_value27(&self) -> u8

Seq Step Value 27.

Offset 149, 0 to 255.

Source

pub fn set_seq_step_value27(&mut self, value: u8)

Sets Seq Step Value 27, clamped to 0 to 255.

Source

pub fn seq_step_value28(&self) -> u8

Seq Step Value 28.

Offset 150, 0 to 255.

Source

pub fn set_seq_step_value28(&mut self, value: u8)

Sets Seq Step Value 28, clamped to 0 to 255.

Source

pub fn seq_step_value29(&self) -> u8

Seq Step Value 29.

Offset 151, 0 to 255.

Source

pub fn set_seq_step_value29(&mut self, value: u8)

Sets Seq Step Value 29, clamped to 0 to 255.

Source

pub fn seq_step_value30(&self) -> u8

Seq Step Value 30.

Offset 152, 0 to 255.

Source

pub fn set_seq_step_value30(&mut self, value: u8)

Sets Seq Step Value 30, clamped to 0 to 255.

Source

pub fn seq_step_value31(&self) -> u8

Seq Step Value 31.

Offset 153, 0 to 255.

Source

pub fn set_seq_step_value31(&mut self, value: u8)

Sets Seq Step Value 31, clamped to 0 to 255.

Source

pub fn seq_step_value32(&self) -> u8

Seq Step Value 32.

Offset 154, 0 to 255.

Source

pub fn set_seq_step_value32(&mut self, value: u8)

Sets Seq Step Value 32, clamped to 0 to 255.

Source

pub fn arp_on_off(&self) -> bool

Arp On/Off.

Offset 155. Off is zero and on is one.

Source

pub fn set_arp_on_off(&mut self, value: bool)

Sets Arp On/Off.

Source

pub fn arp_mode(&self) -> Option<ArpMode>

Arp Mode.

Offset 156. None when the byte is one the table does not list, which is also what a program written by an older firmware reads as where that firmware numbered this table differently.

Source

pub fn set_arp_mode(&mut self, value: ArpMode)

Sets Arp Mode.

Source

pub fn arp_rate_tempo(&self) -> u8

Arp Rate (tempo).

Offset 157, 0 to 255.

Source

pub fn set_arp_rate_tempo(&mut self, value: u8)

Sets Arp Rate (tempo), clamped to 0 to 255.

Source

pub fn arp_clock(&self) -> u8

Arp Clock.

Offset 158, 0 to 12.

Source

pub fn set_arp_clock(&mut self, value: u8)

Sets Arp Clock, clamped to 0 to 12.

Source

pub fn arp_key_sync(&self) -> bool

Arp Key Sync.

Offset 159. Off is zero and on is one.

Source

pub fn set_arp_key_sync(&mut self, value: bool)

Sets Arp Key Sync.

Source

pub fn arp_gate_time(&self) -> u8

Arp Gate Time.

Offset 160, 0 to 255.

Source

pub fn set_arp_gate_time(&mut self, value: u8)

Sets Arp Gate Time, clamped to 0 to 255.

Source

pub fn arp_hold(&self) -> bool

Arp Hold.

Offset 161. Off is zero and on is one.

Source

pub fn set_arp_hold(&mut self, value: bool)

Sets Arp Hold.

Source

pub fn arp_pattern(&self) -> u8

Arp Pattern.

Offset 162, 0 to 64.

Source

pub fn set_arp_pattern(&mut self, value: u8)

Sets Arp Pattern, clamped to 0 to 64.

Source

pub fn arp_swing(&self) -> u8

Arp Swing.

Offset 163, 0 to 255.

Source

pub fn set_arp_swing(&mut self, value: u8)

Sets Arp Swing, clamped to 0 to 255.

Source

pub fn arp_octaves(&self) -> u8

Arp Octaves.

Offset 164, 0 to 5.

Source

pub fn set_arp_octaves(&mut self, value: u8)

Sets Arp Octaves, clamped to 0 to 5.

Source

pub fn fx_routing(&self) -> Option<FxRouting>

FX Routing.

Offset 165. None when the byte is one the table does not list, which is also what a program written by an older firmware reads as where that firmware numbered this table differently.

Source

pub fn set_fx_routing(&mut self, value: FxRouting)

Sets FX Routing.

Source

pub fn fx1_type(&self) -> Option<FxType>

FX 1 Type.

Offset 166. None when the byte is one the table does not list, which is also what a program written by an older firmware reads as where that firmware numbered this table differently.

Source

pub fn set_fx1_type(&mut self, value: FxType)

Sets FX 1 Type.

Source

pub fn fx1_param1(&self) -> u8

FX 1 Param 1.

Offset 167, 0 to 255.

Source

pub fn set_fx1_param1(&mut self, value: u8)

Sets FX 1 Param 1, clamped to 0 to 255.

Source

pub fn fx1_param2(&self) -> u8

FX 1 Param 2.

Offset 168, 0 to 255.

Source

pub fn set_fx1_param2(&mut self, value: u8)

Sets FX 1 Param 2, clamped to 0 to 255.

Source

pub fn fx1_param3(&self) -> u8

FX 1 Param 3.

Offset 169, 0 to 255.

Source

pub fn set_fx1_param3(&mut self, value: u8)

Sets FX 1 Param 3, clamped to 0 to 255.

Source

pub fn fx1_param4(&self) -> u8

FX 1 Param 4.

Offset 170, 0 to 255.

Source

pub fn set_fx1_param4(&mut self, value: u8)

Sets FX 1 Param 4, clamped to 0 to 255.

Source

pub fn fx1_param5(&self) -> u8

FX 1 Param 5.

Offset 171, 0 to 255.

Source

pub fn set_fx1_param5(&mut self, value: u8)

Sets FX 1 Param 5, clamped to 0 to 255.

Source

pub fn fx1_param6(&self) -> u8

FX 1 Param 6.

Offset 172, 0 to 255.

Source

pub fn set_fx1_param6(&mut self, value: u8)

Sets FX 1 Param 6, clamped to 0 to 255.

Source

pub fn fx1_param7(&self) -> u8

FX 1 Param 7.

Offset 173, 0 to 255.

Source

pub fn set_fx1_param7(&mut self, value: u8)

Sets FX 1 Param 7, clamped to 0 to 255.

Source

pub fn fx1_param8(&self) -> u8

FX 1 Param 8.

Offset 174, 0 to 255.

Source

pub fn set_fx1_param8(&mut self, value: u8)

Sets FX 1 Param 8, clamped to 0 to 255.

Source

pub fn fx1_param9(&self) -> u8

FX 1 Param 9.

Offset 175, 0 to 255.

Source

pub fn set_fx1_param9(&mut self, value: u8)

Sets FX 1 Param 9, clamped to 0 to 255.

Source

pub fn fx1_param10(&self) -> u8

FX 1 Param 10.

Offset 176, 0 to 255.

Source

pub fn set_fx1_param10(&mut self, value: u8)

Sets FX 1 Param 10, clamped to 0 to 255.

Source

pub fn fx1_param11(&self) -> u8

FX 1 Param 11.

Offset 177, 0 to 255.

Source

pub fn set_fx1_param11(&mut self, value: u8)

Sets FX 1 Param 11, clamped to 0 to 255.

Source

pub fn fx1_param12(&self) -> u8

FX 1 Param 12.

Offset 178, 0 to 255.

Source

pub fn set_fx1_param12(&mut self, value: u8)

Sets FX 1 Param 12, clamped to 0 to 255.

Source

pub fn fx2_type(&self) -> Option<FxType>

FX 2 Type.

Offset 179. None when the byte is one the table does not list, which is also what a program written by an older firmware reads as where that firmware numbered this table differently.

Source

pub fn set_fx2_type(&mut self, value: FxType)

Sets FX 2 Type.

Source

pub fn fx2_param1(&self) -> u8

FX 2 Param 1.

Offset 180, 0 to 255.

Source

pub fn set_fx2_param1(&mut self, value: u8)

Sets FX 2 Param 1, clamped to 0 to 255.

Source

pub fn fx2_param2(&self) -> u8

FX 2 Param 2.

Offset 181, 0 to 255.

Source

pub fn set_fx2_param2(&mut self, value: u8)

Sets FX 2 Param 2, clamped to 0 to 255.

Source

pub fn fx2_param3(&self) -> u8

FX 2 Param 3.

Offset 182, 0 to 255.

Source

pub fn set_fx2_param3(&mut self, value: u8)

Sets FX 2 Param 3, clamped to 0 to 255.

Source

pub fn fx2_param4(&self) -> u8

FX 2 Param 4.

Offset 183, 0 to 255.

Source

pub fn set_fx2_param4(&mut self, value: u8)

Sets FX 2 Param 4, clamped to 0 to 255.

Source

pub fn fx2_param5(&self) -> u8

FX 2 Param 5.

Offset 184, 0 to 255.

Source

pub fn set_fx2_param5(&mut self, value: u8)

Sets FX 2 Param 5, clamped to 0 to 255.

Source

pub fn fx2_param6(&self) -> u8

FX 2 Param 6.

Offset 185, 0 to 255.

Source

pub fn set_fx2_param6(&mut self, value: u8)

Sets FX 2 Param 6, clamped to 0 to 255.

Source

pub fn fx2_param7(&self) -> u8

FX 2 Param 7.

Offset 186, 0 to 255.

Source

pub fn set_fx2_param7(&mut self, value: u8)

Sets FX 2 Param 7, clamped to 0 to 255.

Source

pub fn fx2_param8(&self) -> u8

FX 2 Param 8.

Offset 187, 0 to 255.

Source

pub fn set_fx2_param8(&mut self, value: u8)

Sets FX 2 Param 8, clamped to 0 to 255.

Source

pub fn fx2_param9(&self) -> u8

FX 2 Param 9.

Offset 188, 0 to 255.

Source

pub fn set_fx2_param9(&mut self, value: u8)

Sets FX 2 Param 9, clamped to 0 to 255.

Source

pub fn fx2_param10(&self) -> u8

FX 2 Param 10.

Offset 189, 0 to 255.

Source

pub fn set_fx2_param10(&mut self, value: u8)

Sets FX 2 Param 10, clamped to 0 to 255.

Source

pub fn fx2_param11(&self) -> u8

FX 2 Param 11.

Offset 190, 0 to 255.

Source

pub fn set_fx2_param11(&mut self, value: u8)

Sets FX 2 Param 11, clamped to 0 to 255.

Source

pub fn fx2_param12(&self) -> u8

FX 2 Param 12.

Offset 191, 0 to 255.

Source

pub fn set_fx2_param12(&mut self, value: u8)

Sets FX 2 Param 12, clamped to 0 to 255.

Source

pub fn fx3_type(&self) -> Option<FxType>

FX 3 Type.

Offset 192. None when the byte is one the table does not list, which is also what a program written by an older firmware reads as where that firmware numbered this table differently.

Source

pub fn set_fx3_type(&mut self, value: FxType)

Sets FX 3 Type.

Source

pub fn fx3_param1(&self) -> u8

FX 3 Param 1.

Offset 193, 0 to 255.

Source

pub fn set_fx3_param1(&mut self, value: u8)

Sets FX 3 Param 1, clamped to 0 to 255.

Source

pub fn fx3_param2(&self) -> u8

FX 3 Param 2.

Offset 194, 0 to 255.

Source

pub fn set_fx3_param2(&mut self, value: u8)

Sets FX 3 Param 2, clamped to 0 to 255.

Source

pub fn fx3_param3(&self) -> u8

FX 3 Param 3.

Offset 195, 0 to 255.

Source

pub fn set_fx3_param3(&mut self, value: u8)

Sets FX 3 Param 3, clamped to 0 to 255.

Source

pub fn fx3_param4(&self) -> u8

FX 3 Param 4.

Offset 196, 0 to 255.

Source

pub fn set_fx3_param4(&mut self, value: u8)

Sets FX 3 Param 4, clamped to 0 to 255.

Source

pub fn fx3_param5(&self) -> u8

FX 3 Param 5.

Offset 197, 0 to 255.

Source

pub fn set_fx3_param5(&mut self, value: u8)

Sets FX 3 Param 5, clamped to 0 to 255.

Source

pub fn fx3_param6(&self) -> u8

FX 3 Param 6.

Offset 198, 0 to 255.

Source

pub fn set_fx3_param6(&mut self, value: u8)

Sets FX 3 Param 6, clamped to 0 to 255.

Source

pub fn fx3_param7(&self) -> u8

FX 3 Param 7.

Offset 199, 0 to 255.

Source

pub fn set_fx3_param7(&mut self, value: u8)

Sets FX 3 Param 7, clamped to 0 to 255.

Source

pub fn fx3_param8(&self) -> u8

FX 3 Param 8.

Offset 200, 0 to 255.

Source

pub fn set_fx3_param8(&mut self, value: u8)

Sets FX 3 Param 8, clamped to 0 to 255.

Source

pub fn fx3_param9(&self) -> u8

FX 3 Param 9.

Offset 201, 0 to 255.

Source

pub fn set_fx3_param9(&mut self, value: u8)

Sets FX 3 Param 9, clamped to 0 to 255.

Source

pub fn fx3_param10(&self) -> u8

FX 3 Param 10.

Offset 202, 0 to 255.

Source

pub fn set_fx3_param10(&mut self, value: u8)

Sets FX 3 Param 10, clamped to 0 to 255.

Source

pub fn fx3_param11(&self) -> u8

FX 3 Param 11.

Offset 203, 0 to 255.

Source

pub fn set_fx3_param11(&mut self, value: u8)

Sets FX 3 Param 11, clamped to 0 to 255.

Source

pub fn fx3_param12(&self) -> u8

FX 3 Param 12.

Offset 204, 0 to 255.

Source

pub fn set_fx3_param12(&mut self, value: u8)

Sets FX 3 Param 12, clamped to 0 to 255.

Source

pub fn fx4_type(&self) -> Option<FxType>

FX 4 Type.

Offset 205. None when the byte is one the table does not list, which is also what a program written by an older firmware reads as where that firmware numbered this table differently.

Source

pub fn set_fx4_type(&mut self, value: FxType)

Sets FX 4 Type.

Source

pub fn fx4_param1(&self) -> u8

FX 4 Param 1.

Offset 206, 0 to 255.

Source

pub fn set_fx4_param1(&mut self, value: u8)

Sets FX 4 Param 1, clamped to 0 to 255.

Source

pub fn fx4_param2(&self) -> u8

FX 4 Param 2.

Offset 207, 0 to 255.

Source

pub fn set_fx4_param2(&mut self, value: u8)

Sets FX 4 Param 2, clamped to 0 to 255.

Source

pub fn fx4_param3(&self) -> u8

FX 4 Param 3.

Offset 208, 0 to 255.

Source

pub fn set_fx4_param3(&mut self, value: u8)

Sets FX 4 Param 3, clamped to 0 to 255.

Source

pub fn fx4_param4(&self) -> u8

FX 4 Param 4.

Offset 209, 0 to 255.

Source

pub fn set_fx4_param4(&mut self, value: u8)

Sets FX 4 Param 4, clamped to 0 to 255.

Source

pub fn fx4_param5(&self) -> u8

FX 4 Param 5.

Offset 210, 0 to 255.

Source

pub fn set_fx4_param5(&mut self, value: u8)

Sets FX 4 Param 5, clamped to 0 to 255.

Source

pub fn fx4_param6(&self) -> u8

FX 4 Param 6.

Offset 211, 0 to 255.

Source

pub fn set_fx4_param6(&mut self, value: u8)

Sets FX 4 Param 6, clamped to 0 to 255.

Source

pub fn fx4_param7(&self) -> u8

FX 4 Param 7.

Offset 212, 0 to 255.

Source

pub fn set_fx4_param7(&mut self, value: u8)

Sets FX 4 Param 7, clamped to 0 to 255.

Source

pub fn fx4_param8(&self) -> u8

FX 4 Param 8.

Offset 213, 0 to 255.

Source

pub fn set_fx4_param8(&mut self, value: u8)

Sets FX 4 Param 8, clamped to 0 to 255.

Source

pub fn fx4_param9(&self) -> u8

FX 4 Param 9.

Offset 214, 0 to 255.

Source

pub fn set_fx4_param9(&mut self, value: u8)

Sets FX 4 Param 9, clamped to 0 to 255.

Source

pub fn fx4_param10(&self) -> u8

FX 4 Param 10.

Offset 215, 0 to 255.

Source

pub fn set_fx4_param10(&mut self, value: u8)

Sets FX 4 Param 10, clamped to 0 to 255.

Source

pub fn fx4_param11(&self) -> u8

FX 4 Param 11.

Offset 216, 0 to 255.

Source

pub fn set_fx4_param11(&mut self, value: u8)

Sets FX 4 Param 11, clamped to 0 to 255.

Source

pub fn fx4_param12(&self) -> u8

FX 4 Param 12.

Offset 217, 0 to 255.

Source

pub fn set_fx4_param12(&mut self, value: u8)

Sets FX 4 Param 12, clamped to 0 to 255.

Source

pub fn fx1_output_gain(&self) -> u8

FX 1 Output Gain.

Offset 218, 0 to 150.

Source

pub fn set_fx1_output_gain(&mut self, value: u8)

Sets FX 1 Output Gain, clamped to 0 to 150.

Source

pub fn fx2_output_gain(&self) -> u8

FX 2 Output Gain.

Offset 219, 0 to 150.

Source

pub fn set_fx2_output_gain(&mut self, value: u8)

Sets FX 2 Output Gain, clamped to 0 to 150.

Source

pub fn fx3_output_gain(&self) -> u8

FX 3 Output Gain.

Offset 220, 0 to 150.

Source

pub fn set_fx3_output_gain(&mut self, value: u8)

Sets FX 3 Output Gain, clamped to 0 to 150.

Source

pub fn fx4_output_gain(&self) -> u8

FX 4 Output Gain.

Offset 221, 0 to 150.

Source

pub fn set_fx4_output_gain(&mut self, value: u8)

Sets FX 4 Output Gain, clamped to 0 to 150.

Source

pub fn fx_mode(&self) -> Option<FxMode>

FX Mode.

Offset 222. None when the byte is one the table does not list, which is also what a program written by an older firmware reads as where that firmware numbered this table differently.

Source

pub fn set_fx_mode(&mut self, value: FxMode)

Sets FX Mode.

Source

pub fn program_category(&self) -> Option<ProgramCategory>

Program Category.

Offset 240. None when the byte is one the table does not list, which is also what a program written by an older firmware reads as where that firmware numbered this table differently.

Source

pub fn set_program_category(&mut self, value: ProgramCategory)

Sets Program Category.

Source

pub fn program_transpose(&self) -> u8

Program Transpose.

Offset 241, 80 to 176.

Source

pub fn set_program_transpose(&mut self, value: u8)

Sets Program Transpose, clamped to 80 to 176.

Source§

impl Program

Source

pub const MAX_LEN: usize

Bytes the longest documented program carries.

A comms protocol version 7 program; a version 6 program is three bytes shorter and those three bytes are the reserved ones.

Source

pub const PACKED_MAX_LEN: usize

Bytes Program::pack_into needs at most.

Source

pub fn new(version: ProtocolVersion) -> Self

Builds a program with every parameter at the lowest value it accepts.

Not the initialised program the synthesizer’s INIT button loads, which is a factory sound this specification does not record. It is a program that every parameter accepts, which is what building one from nothing needs.

Source

pub fn from_bytes(version: ProtocolVersion, bytes: &[u8]) -> Result<Self>

Reads a program from the bytes of an unpacked dump.

Nothing is checked beyond the length. A value outside what its parameter accepts is kept and reported by Program::invalid, since the synthesizer is the authority on what it holds.

§Errors

Returns Error::ProgramLength when bytes is not as long as that version’s program.

Source

pub fn from_packed(version: ProtocolVersion, packed: &[u8]) -> Result<Self>

Reads a program from the packed payload of a dump.

A packed run is padded to a multiple of eight bytes, so it can carry up to six bytes more than the program needs; the version says how much of it is the program and the rest is dropped. That is the same rule Frame::parse applies to a program dump, so a frame that parses is a program that decodes.

§Errors

Returns Error::PackedRunLength for a run that cannot be unpacked and Error::ProgramLength for one that unpacks to fewer bytes than this version’s program, or to a whole group more.

Source

pub fn from_dump(message: &Message<'_>) -> Result<Self>

Reads a program from the message that carried it.

Both dumps that carry a program are accepted: one stored in a bank, and the edit buffer.

§Errors

Returns Error::NotAProgramDump for any other message, and whatever Program::from_packed returns for the payload.

Source

pub const fn version(&self) -> ProtocolVersion

Returns the comms protocol version this program is stored in.

Source

pub fn as_bytes(&self) -> &[u8] ⓘ

Returns the program as an unpacked dump.

Source

pub fn reserved(&self) -> &[u8] ⓘ

Returns the bytes past the last parameter.

Empty under comms protocol version 6. Version 7 adds three reserved bytes, which are zero in every factory program examined and are carried through rather than decoded.

Source

pub fn packed_len(&self) -> usize

Returns the number of bytes Program::pack_into writes.

Source

pub fn pack_into(&self, out: &mut [u8]) -> Result<usize>

Packs the program into out, ready for a dump message to borrow.

§Errors

Returns Error::BufferTooSmall when out is shorter than Program::packed_len.

Source

pub fn get(&self, parameter: ParamId) -> u8

Returns the raw value of one parameter.

Source

pub fn algorithm(&self, engine: Engine) -> Option<&'static Algorithm>

Returns the algorithm an effect engine is running, on DEFAULT_FIRMWARE.

The join between the twelve raw bytes the engine holds and what they mean: Algorithm::slots says what each of them is, and Engine::slot_parameter which byte to read.

None when the stored byte names no algorithm, which a program written on a firmware this one does not describe can do.

use deepmind_midi::effect::Engine;
use deepmind_midi::ids::ProtocolVersion;
use deepmind_midi::param::ParamId;
use deepmind_midi::program::Program;

let mut program = Program::new(ProtocolVersion::V7);
program.set(ParamId::Fx1Type, 2)?;                 // a Room Reverb

let room = program.algorithm(Engine::One).expect("byte 2 names one");
assert_eq!(room.full_name, "Room Reverb");
assert_eq!(room.slot(3).map(|slot| slot.title), Some("Size"));
Source

pub fn algorithm_for( &self, engine: Engine, firmware: Version, ) -> Option<&'static Algorithm>

Returns the algorithm an effect engine is running, on the firmware a device inquiry reported.

Use this wherever ParamId::label_for applies: firmware 1.1 inserted an algorithm rather than appending one, so byte 33 is Rotary Speaker on 1.0 and Vintage Pitch on 1.1, and every slot of the panel follows from which of the two it is.

Source

pub fn set(&mut self, parameter: ParamId, value: u8) -> Result<()>

Sets one parameter, refusing a value it does not accept.

§Errors

Returns Error::ValueOutOfRange when the parameter does not accept the value. Program::set_clamped is there for callers that would rather bend the value than refuse it.

Source

pub fn set_clamped(&mut self, parameter: ParamId, value: u8) -> u8

Sets one parameter, bringing the value inside its range first.

Returns what was stored. This is what the generated accessors use, since a u8 reaches values a parameter does not.

Source

pub fn values(&self) -> impl Iterator<Item = (ParamId, u8)> + '_

Returns every parameter and the value it holds, in offset order.

Source

pub fn changes<'a>( &'a self, target: &'a Self, ) -> impl Iterator<Item = (ParamId, u8)> + 'a

Returns the parameters whose values differ, and what target holds.

The list of edits that turn this program into target. ParamId::edit turns one into the NRPN message that sends it.

use deepmind_midi::ids::ProtocolVersion;
use deepmind_midi::param::ParamId;
use deepmind_midi::program::Program;

let before = Program::new(ProtocolVersion::V6);
let mut after = before.clone();
after.set_lfo1_rate(64);

let changed: Vec<_> = before.changes(&after).collect();
assert_eq!(changed, [(ParamId::Lfo1Rate, 64)]);
Source

pub fn invalid(&self) -> impl Iterator<Item = (ParamId, u8)> + '_

Returns the parameters holding a value they do not accept.

Empty for anything the synthesizer sent, on the evidence so far. A dump read from a file is another matter.

Source

pub fn validate(&self) -> Result<()>

Returns whether every parameter holds a value it accepts.

§Errors

Returns Error::ValueOutOfRange for the first parameter that does not, in offset order. Program::invalid lists them all.

Source

pub fn name(&self) -> ProgramName

Returns the program’s name.

Source

pub fn set_name(&mut self, name: ProgramName)

Sets the program’s name.

ProgramName::new is where a string becomes one of these, and where a string that cannot be a program name is refused.

Source

pub fn transpose(&self) -> i8

Returns the program’s transposition in semitones, -48 to 48.

The one parameter that does not start at zero: the manual gives it as 80 to 176 for -48 to +48, so the value it carries is its distance from the middle of that range. A byte outside 80 to 176, which invalid reports, is clamped to the nearer end.

Source

pub fn set_transpose(&mut self, semitones: i8) -> Result<()>

Sets the program’s transposition in semitones.

§Errors

Returns Error::ValueOutOfRange outside -48 to 48.

Trait Implementations§

Source§

impl Clone for Program

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Program

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Names the program rather than listing 242 bytes.

Source§

impl<'de> Deserialize<'de> for Program

Available on crate feature serde only.
Source§

fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for Program

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Program

Source§

impl Hash for Program

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for Program

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for Program

Available on crate feature serde only.
Source§

fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Program

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.