Skip to content

Commit

Permalink
Change default sample rate conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
yamadapc committed Mar 28, 2023
1 parent 8116d73 commit b88cfb9
Show file tree
Hide file tree
Showing 42 changed files with 1,452 additions and 674 deletions.
120 changes: 73 additions & 47 deletions .idea/libraries/Dart_Packages.xml

Large diffs are not rendered by default.

65 changes: 65 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions crates/apps/daw/src/bridge_generated.io.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
// = copyright ====================================================================
// DAW: Flutter UI for a DAW application
// Copyright (C) 2022 Pedro Tacla Yamada
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published
// by the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
// = /copyright ===================================================================

use super::*;
// Section: wire functions

Expand Down
18 changes: 18 additions & 0 deletions crates/apps/daw/src/bridge_generated.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
// = copyright ====================================================================
// DAW: Flutter UI for a DAW application
// Copyright (C) 2022 Pedro Tacla Yamada
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published
// by the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
// = /copyright ===================================================================

#![allow(
non_camel_case_types,
unused,
Expand Down
23 changes: 23 additions & 0 deletions crates/apps/demo-plugin/src/view.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
// Augmented Audio: Audio libraries and applications
// Copyright (c) 2022 Pedro Tacla Yamada
//
// The MIT License (MIT)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

// Augmented Audio: Audio libraries and applications
use augmented::gui::iced;
use augmented::gui::iced_baseview;
Expand Down
23 changes: 23 additions & 0 deletions crates/apps/looper/looper-processor/examples/render_audio_file.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
// Augmented Audio: Audio libraries and applications
// Copyright (c) 2022 Pedro Tacla Yamada
//
// The MIT License (MIT)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

use cacao::appkit::window::Window;
use cacao::appkit::{App, AppDelegate};
use cacao::view::View;
Expand Down
9 changes: 7 additions & 2 deletions crates/apps/metronome/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ repository = "https://github.com/yamadapc/augmented-audio"
license = "AGPL-3.0"

[lib]
crate-type = ["staticlib", "lib"]
crate-type = ["staticlib", "lib", "cdylib"]

[dependencies]
anyhow = "1.0.52"
Expand All @@ -19,12 +19,17 @@ ringbuf = "0.2.8"

wisual-logger = { path = "../../augmented/ops/wisual-logger", version = "0.1.4" }
audio-processor-metronome = { path = "../../augmented/audio/audio-processor-metronome" , version = "2.0.0" }
audio-processor-standalone = { path = "../../augmented/application/audio-processor-standalone" , version = "2.0.0" }
audio-processor-standalone = { path = "../../augmented/application/audio-processor-standalone" , version = "2.0.0", default-features = false }
audio-garbage-collector = { path = "../../augmented/audio/audio-garbage-collector" , version = "1.1.1" }
audio-processor-file = { path = "../../augmented/audio/audio-processor-file", version = "2.3.0" }
audio-processor-traits = { path = "../../augmented/audio/audio-processor-traits", version = "3.2.0" }
macos-bundle-resources = { path = "../../augmented/gui/macos-bundle-resources" }

[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = "0.2.84"
wasm-bindgen-futures = "0.4.34"
wasm_thread = { version = "0.2.0", features = ["es_modules"] }

[build-dependencies]
cbindgen = "0.24.3"
flutter_rust_bridge_codegen = "1.62"
Expand Down
18 changes: 18 additions & 0 deletions crates/apps/metronome/src/bridge_generated.io.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
// = copyright ====================================================================
// Simple Metronome: macOS Metronome app
// Copyright (C) 2022 Pedro Tacla Yamada
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published
// by the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
// = /copyright ===================================================================

#![allow(clippy::not_unsafe_ptr_arg_deref)]
use super::*;
// Section: wire functions
Expand Down
18 changes: 18 additions & 0 deletions crates/apps/metronome/src/bridge_generated.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
// = copyright ====================================================================
// Simple Metronome: macOS Metronome app
// Copyright (C) 2022 Pedro Tacla Yamada
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published
// by the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
// = /copyright ===================================================================

#![allow(
non_camel_case_types,
unused,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ repository = "https://github.com/yamadapc/augmented-audio"
[features]
default = []
actix = ["dep:actix"]
vst = ["dep:vst"]

[dependencies]
basedrop = "^0.1.2"
thiserror = "^1.0.26"
midir = "0.8"
log = "^0.4.14"
vst = { version = "0.3", path = "../../../vendor/vst" }
vst = { version = "0.3", path = "../../../vendor/vst", optional = true }

# augmented
atomic-queue = { version = "1.0.1", path = "../../data/atomic-queue" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ pub mod audio_thread;
pub mod constants;
/// Hosting of MIDI
pub mod host;

#[cfg(feature = "vst")]
/// VST API conversion
pub mod vst;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ repository = "https://github.com/yamadapc/augmented-audio"
readme = "README.md"

[features]
default = []
default = ["midi"]
gui = ["audio-processor-standalone-gui"]
clap = []
vst = ["dep:vst", "audio-processor-traits/vst", "audio-processor-standalone-midi/vst"]
midi = ["audio-processor-standalone-midi", "dep:augmented-midi"]

[dependencies]
# Logging & options
Expand All @@ -25,18 +27,18 @@ thiserror = "^1.0.25"
audio-processor-file = { path = "../../audio/audio-processor-file", version = "2.3.0" }
audio-garbage-collector = { path = "../../audio/audio-garbage-collector", version = "1.1.1" }
audio-processor-traits = { version = "3.2.0", path = "../../audio/audio-processor-traits" }
augmented-midi = { path = "../../data/augmented-midi", version = "1.4.0" }
augmented-midi = { path = "../../data/augmented-midi", version = "1.4.0", optional = true }

# Audio
basedrop = "^0.1.2"
cpal = { version = "0.14.0" }
ringbuf = "^0.2.5"
vst = { version = "0.3", path = "../../../vendor/vst" }
vst = { version = "0.3", path = "../../../vendor/vst", optional = true }

audio-processor-standalone-gui = { path = "../audio-processor-standalone-gui", optional = true , version = "0.7.0" }

[target.'cfg(not(target_os = "ios"))'.dependencies]
audio-processor-standalone-midi = { version = "1.4.0", path = "../audio-processor-standalone-midi" }
audio-processor-standalone-midi = { version = "1.4.0", path = "../audio-processor-standalone-midi", optional = true }

[dev-dependencies]
atomic-queue = { version = "1.0.1", path = "../../data/atomic-queue" }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
// Augmented Audio: Audio libraries and applications
// Copyright (c) 2022 Pedro Tacla Yamada
//
// The MIT License (MIT)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

use audio_processor_traits::combinators::mono_generator_function;
use audio_processor_traits::BufferProcessor;
use std::f32::consts::PI;
Expand Down
Loading

0 comments on commit b88cfb9

Please sign in to comment.