Skip to main content

ModulatableGenerator

Trait ModulatableGenerator 

Source
pub trait ModulatableGenerator<T: Transcendental>: Generator<T> {
    // Required methods
    fn modulate_frequency(&mut self, amount: T);
    fn modulation_index(&self) -> T;
    fn set_modulation_index(&mut self, index: T);
}
Expand description

Генератор с модуляцией частоты

Поддерживает частотную модуляцию (FM) для создания сложных тембров.

Required Methods§

Source

fn modulate_frequency(&mut self, amount: T)

Применить модуляцию частоты

§Arguments
  • amount - величина модуляции
Source

fn modulation_index(&self) -> T

Индекс модуляции (текущая величина FM)

Source

fn set_modulation_index(&mut self, index: T)

Установить индекс модуляции

Implementors§