Struct twang::Generator[][src]

pub struct Generator(_, _, _);

An audio wave generator.

Methods

impl Generator
[src]

Create a new generator with default pitch[hz] and volume[0-1].

Set pitch. Takes in Hertz.

Set volume. Range 0 to 1

Get the next sample's time value.

Auto Trait Implementations

impl Send for Generator

impl Sync for Generator