1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// This program is free software. It comes without any warranty, to the extent permitted by
// applicable law.

//! Create scaleless music.
//!
//! # Usage
//!
//! Add `scaleless_music` to your project by adding the dependency to your Cargo.toml as follows:
//!
//! ```toml
//! [dependencies]
//! music = { git = "https://github.com/tiborgats/scaleless_music" }
//! ```
//!
//!
//! Building the documentation:
//!
//! ```bash
//! cargo doc --no-deps --features "be-portaudio be-rsoundio"
//! ```
//!
#![doc(html_root_url = "https://tiborgats.github.io/music/")]

#![forbid(bad_style, exceeding_bitshifts, mutable_transmutes, no_mangle_const_items,
    unknown_crate_types)]
#![deny(deprecated, improper_ctypes, missing_docs,
    non_shorthand_field_patterns, overflowing_literals, plugin_as_library,
    private_no_mangle_fns, private_no_mangle_statics, stable_features, unconditional_recursion,
    unknown_lints, unsafe_code, unused, unused_allocation, unused_attributes,
    unused_comparisons, unused_features, unused_parens, while_true)]
#![warn(trivial_casts, trivial_numeric_casts, unused_extern_crates, unused_import_braces,
    unused_qualifications, unused_results)]

// #![feature(question_mark)]

#[cfg(feature = "be-portaudio")]
extern crate portaudio;
#[cfg(feature = "be-rsoundio")]
extern crate rsoundio;
#[cfg(feature = "be-rsoundio")]
extern crate rb;
#[cfg(feature = "be-sdl2")]
extern crate sdl2;


extern crate num;

/// Basic sound synthesizer routines.
pub mod sound;