skode/gen/voice_gen

Auto-generated by tools/mksynth. Do not edit directly.

Types

pub type Voice {
  Voice(
    id: Int,
    wave_table_index: Int,
    freq: Float,
    midi_note: Float,
    midi_cents: Float,
    midi_transpose: Float,
    pitch_mode: Int,
    phase: Float,
    phase_inc: Float,
    one_shot: Int,
    interpolate: Int,
    direction: Int,
    loop_enabled: Int,
    loop_count: Int,
    phase_reset: Int,
    filter_mode: Int,
    filter_freq: Float,
    filter_res: Float,
    use_filter_envelope: Int,
    filter_env_depth: Float,
    use_amp_envelope: Int,
    amp_envelope_mode: Int,
    amp: Float,
    user_amp: Float,
    pan: Float,
    disconnect: Int,
    record: Int,
    delay_send: Float,
    cz_mode: Int,
    cz_distortion: Float,
    cz_mod_osc: Int,
    cz_mod_depth: Float,
    use_cz_envelope: Int,
    cz_env_depth: Float,
    freq_mod_osc: Int,
    freq_mod_depth: Float,
    freq_mod_adder: Float,
    freq_mod_mode: Int,
    freq_mod_feedback: Float,
    freq_mod_feedback_z1: Float,
    freq_mod_feedback_z2: Float,
    amp_mod_osc: Int,
    amp_mod_depth: Float,
    amp_mod_adder: Float,
    pan_mod_osc: Int,
    pan_mod_depth: Float,
    pan_mod_adder: Float,
    ring_osc: Int,
    ring_amount: Float,
    sample_hold_ratio: Float,
    sample_hold_mode: Int,
    quantize: Int,
    glissando_enable: Int,
    glissando_mode: Int,
    glissando_time: Float,
    smoother_enable: Int,
    smoother_smoothing: Float,
    use_freq_envelope: Int,
    freq_env_depth: Float,
    sync_blep: Float,
    link_sync: List(Float),
    link_midi: List(Float),
    link_velo: List(Float),
    link_trig: Float,
    freq_bend: Float,
    freq_bend_range: Float,
    freq_bend_offset: Float,
    amp_bend: Float,
    amp_bend_range: Float,
  )
}

Constructors

  • Voice(
      id: Int,
      wave_table_index: Int,
      freq: Float,
      midi_note: Float,
      midi_cents: Float,
      midi_transpose: Float,
      pitch_mode: Int,
      phase: Float,
      phase_inc: Float,
      one_shot: Int,
      interpolate: Int,
      direction: Int,
      loop_enabled: Int,
      loop_count: Int,
      phase_reset: Int,
      filter_mode: Int,
      filter_freq: Float,
      filter_res: Float,
      use_filter_envelope: Int,
      filter_env_depth: Float,
      use_amp_envelope: Int,
      amp_envelope_mode: Int,
      amp: Float,
      user_amp: Float,
      pan: Float,
      disconnect: Int,
      record: Int,
      delay_send: Float,
      cz_mode: Int,
      cz_distortion: Float,
      cz_mod_osc: Int,
      cz_mod_depth: Float,
      use_cz_envelope: Int,
      cz_env_depth: Float,
      freq_mod_osc: Int,
      freq_mod_depth: Float,
      freq_mod_adder: Float,
      freq_mod_mode: Int,
      freq_mod_feedback: Float,
      freq_mod_feedback_z1: Float,
      freq_mod_feedback_z2: Float,
      amp_mod_osc: Int,
      amp_mod_depth: Float,
      amp_mod_adder: Float,
      pan_mod_osc: Int,
      pan_mod_depth: Float,
      pan_mod_adder: Float,
      ring_osc: Int,
      ring_amount: Float,
      sample_hold_ratio: Float,
      sample_hold_mode: Int,
      quantize: Int,
      glissando_enable: Int,
      glissando_mode: Int,
      glissando_time: Float,
      smoother_enable: Int,
      smoother_smoothing: Float,
      use_freq_envelope: Int,
      freq_env_depth: Float,
      sync_blep: Float,
      link_sync: List(Float),
      link_midi: List(Float),
      link_velo: List(Float),
      link_trig: Float,
      freq_bend: Float,
      freq_bend_range: Float,
      freq_bend_offset: Float,
      amp_bend: Float,
      amp_bend_range: Float,
    )
pub type VoiceLink {
  VoiceLink(from_voice: Int, to_voice: Int, kind: VoiceLinkKind)
}

Constructors

pub type VoiceLinkKind {
  LinkHardSync
  LinkFreqMod
  LinkAmpMod
  LinkPanMod
  LinkPhaseMod
  LinkRingMod
  LinkMidiFollow
  LinkVeloFollow
}

Constructors

  • LinkHardSync
  • LinkFreqMod
  • LinkAmpMod
  • LinkPanMod
  • LinkPhaseMod
  • LinkRingMod
  • LinkMidiFollow
  • LinkVeloFollow

Values

pub fn default(id: Int) -> Voice
pub fn get_links(voice: Voice) -> List(VoiceLink)
pub fn is_configured(voice: Voice) -> Bool
pub fn to_skode(voice: Voice) -> String
pub fn to_skode_verbose(voice: Voice) -> String
✨ Search Document