wavegraph 0.1.0-arm64-darwin
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/CHANGELOG.md +11 -0
- data/LICENSE-APACHE +201 -0
- data/LICENSE-MIT +22 -0
- data/README.md +137 -0
- data/examples/acid.rb +45 -0
- data/lib/wavegraph/host.rb +99 -0
- data/lib/wavegraph/native/libwavegraph.dylib +0 -0
- data/lib/wavegraph/native.rb +51 -0
- data/lib/wavegraph/patch.rb +41 -0
- data/lib/wavegraph/performance.rb +47 -0
- data/lib/wavegraph/version.rb +5 -0
- data/lib/wavegraph.rb +24 -0
- data/licenses/COPYRIGHT-library.html +29630 -0
- data/licenses/audio-codec-algorithms-0.8.1/LICENSE-0BSD +14 -0
- data/licenses/audio-codec-algorithms-0.8.1/LICENSE-APACHE +176 -0
- data/licenses/audioadapter-5.0.0/LICENSE-APACHE +201 -0
- data/licenses/audioadapter-5.0.0/LICENSE-MIT +19 -0
- data/licenses/audioadapter-5.0.0/LICENSE.txt +6 -0
- data/licenses/audioadapter-buffers-5.2.0/LICENSE-APACHE +201 -0
- data/licenses/audioadapter-buffers-5.2.0/LICENSE-MIT +19 -0
- data/licenses/audioadapter-buffers-5.2.0/LICENSE.txt +6 -0
- data/licenses/audioadapter-sample-5.2.0/LICENSE-APACHE +201 -0
- data/licenses/audioadapter-sample-5.2.0/LICENSE-MIT +19 -0
- data/licenses/audioadapter-sample-5.2.0/LICENSE.txt +6 -0
- data/licenses/bitflags-2.13.2/LICENSE-APACHE +201 -0
- data/licenses/bitflags-2.13.2/LICENSE-MIT +25 -0
- data/licenses/block2-0.6.2/objc2-MIT +46 -0
- data/licenses/byteorder-1.5.0/COPYING +3 -0
- data/licenses/byteorder-1.5.0/LICENSE-MIT +21 -0
- data/licenses/byteorder-1.5.0/UNLICENSE +24 -0
- data/licenses/bytes-1.12.2/LICENSE +25 -0
- data/licenses/coreaudio-rs-0.14.2/LICENSE-APACHE +201 -0
- data/licenses/coreaudio-rs-0.14.2/LICENSE-MIT +25 -0
- data/licenses/cpal-0.18.2/LICENSE +201 -0
- data/licenses/dasp_sample-0.11.0/dasp_sample-MIT +21 -0
- data/licenses/dispatch2-0.3.1/objc2-MIT +46 -0
- data/licenses/hash32-0.3.1/LICENSE-APACHE +201 -0
- data/licenses/hash32-0.3.1/LICENSE-MIT +25 -0
- data/licenses/heapless-0.9.4/LICENSE-APACHE +201 -0
- data/licenses/heapless-0.9.4/LICENSE-MIT +25 -0
- data/licenses/libc-0.2.191/LICENSE-APACHE +176 -0
- data/licenses/libc-0.2.191/LICENSE-MIT +25 -0
- data/licenses/libm-0.2.16/LICENSE.txt +258 -0
- data/licenses/mach2-0.6.0/LICENSE-APACHE +176 -0
- data/licenses/mach2-0.6.0/LICENSE-BSD +23 -0
- data/licenses/mach2-0.6.0/LICENSE-MIT +25 -0
- data/licenses/micromath-2.2.0/LICENSE-APACHE +202 -0
- data/licenses/micromath-2.2.0/LICENSE-MIT +21 -0
- data/licenses/mio-1.2.5/LICENSE +19 -0
- data/licenses/num-integer-0.1.47/LICENSE-APACHE +201 -0
- data/licenses/num-integer-0.1.47/LICENSE-MIT +25 -0
- data/licenses/num-traits-0.2.19/LICENSE-APACHE +201 -0
- data/licenses/num-traits-0.2.19/LICENSE-MIT +25 -0
- data/licenses/objc2-0.6.5/objc2-MIT +46 -0
- data/licenses/objc2-audio-toolbox-0.3.2/objc2-MIT +46 -0
- data/licenses/objc2-core-audio-0.3.2/objc2-MIT +46 -0
- data/licenses/objc2-core-audio-types-0.3.2/objc2-MIT +46 -0
- data/licenses/objc2-core-foundation-0.3.2/objc2-MIT +46 -0
- data/licenses/objc2-encode-4.1.0/objc2-MIT +46 -0
- data/licenses/objc2-foundation-0.3.2/objc2-MIT +46 -0
- data/licenses/once_cell-1.21.4/LICENSE-APACHE +201 -0
- data/licenses/once_cell-1.21.4/LICENSE-MIT +23 -0
- data/licenses/peg-0.8.6/LICENSE +25 -0
- data/licenses/peg-runtime-0.8.6/LICENSE +25 -0
- data/licenses/pin-project-lite-0.2.19/LICENSE-APACHE +177 -0
- data/licenses/pin-project-lite-0.2.19/LICENSE-MIT +23 -0
- data/licenses/rtrb-0.3.6/LICENSE-APACHE +201 -0
- data/licenses/rtrb-0.3.6/LICENSE-MIT +23 -0
- data/licenses/rubato-5.1.0/LICENSE-APACHE +201 -0
- data/licenses/rubato-5.1.0/LICENSE-MIT +19 -0
- data/licenses/rubato-5.1.0/LICENSE.txt +6 -0
- data/licenses/socket2-0.6.5/LICENSE-APACHE +201 -0
- data/licenses/socket2-0.6.5/LICENSE-MIT +25 -0
- data/licenses/stable_deref_trait-1.2.1/LICENSE-APACHE +201 -0
- data/licenses/stable_deref_trait-1.2.1/LICENSE-MIT +25 -0
- data/licenses/tokio-1.54.1/LICENSE +21 -0
- data/licenses/tracing-0.1.44/LICENSE +25 -0
- data/licenses/tracing-core-0.1.36/LICENSE +25 -0
- data/licenses/wavegraph-0.1.3/LICENSE-APACHE +201 -0
- data/licenses/wavegraph-0.1.3/LICENSE-MIT +22 -0
- data/licenses/wavegraph-303-0.1.2/LICENSE +21 -0
- data/licenses/wavegraph-808-0.1.0/LICENSE-APACHE +201 -0
- data/licenses/wavegraph-808-0.1.0/LICENSE-MIT +22 -0
- data/licenses/wavegraph-909-0.1.0/LICENSE-APACHE +201 -0
- data/licenses/wavegraph-909-0.1.0/LICENSE-CC0 +102 -0
- data/licenses/wavegraph-909-0.1.0/LICENSE-MIT +21 -0
- data/licenses/wavegraph-909-0.1.0/README.md +25 -0
- data/licenses/wavegraph-adsr-0.1.0/LICENSE-APACHE +201 -0
- data/licenses/wavegraph-adsr-0.1.0/LICENSE-MIT +22 -0
- data/licenses/wavegraph-audio-0.1.1/LICENSE-APACHE +201 -0
- data/licenses/wavegraph-audio-0.1.1/LICENSE-MIT +21 -0
- data/licenses/wavegraph-compiler-0.1.0/LICENSE-APACHE +201 -0
- data/licenses/wavegraph-compiler-0.1.0/LICENSE-MIT +22 -0
- data/licenses/wavegraph-core-0.1.0/LICENSE-APACHE +201 -0
- data/licenses/wavegraph-core-0.1.0/LICENSE-MIT +22 -0
- data/licenses/wavegraph-dsp-0.1.1/LICENSE-APACHE +201 -0
- data/licenses/wavegraph-dsp-0.1.1/LICENSE-MIT +21 -0
- data/licenses/wavegraph-fx-0.1.1/LICENSE-APACHE +202 -0
- data/licenses/wavegraph-fx-0.1.1/LICENSE-MIT +22 -0
- data/licenses/wavegraph-lfo-0.1.0/LICENSE-APACHE +201 -0
- data/licenses/wavegraph-lfo-0.1.0/LICENSE-MIT +22 -0
- data/licenses/wavegraph-remote-0.1.2/LICENSE-APACHE +201 -0
- data/licenses/wavegraph-remote-0.1.2/LICENSE-MIT +21 -0
- data/licenses/wavegraph-sample-0.1.1/LICENSE-APACHE +216 -0
- data/licenses/wavegraph-sample-0.1.1/LICENSE-MIT +22 -0
- data/licenses/wavegraph-sampler-0.1.0/LICENSE-APACHE +201 -0
- data/licenses/wavegraph-sampler-0.1.0/LICENSE-MIT +21 -0
- data/licenses/windowfunctions-0.1.1/LICENSE.txt +19 -0
- metadata +167 -0
data/lib/wavegraph.rb
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "wavegraph/version"
|
|
4
|
+
|
|
5
|
+
module WaveGraph
|
|
6
|
+
class Error < StandardError; end
|
|
7
|
+
class InvalidPatch < Error; end
|
|
8
|
+
class ClosedError < Error; end
|
|
9
|
+
|
|
10
|
+
# Start the audio engine, yield its controls, and shut it down on block exit.
|
|
11
|
+
def self.open(...)
|
|
12
|
+
Host.open(...)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# Compile UTF-8 .wg source for reuse across multiple hosts.
|
|
16
|
+
def self.compile(source)
|
|
17
|
+
Patch.compile(source)
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
require_relative "wavegraph/native"
|
|
22
|
+
require_relative "wavegraph/patch"
|
|
23
|
+
require_relative "wavegraph/performance"
|
|
24
|
+
require_relative "wavegraph/host"
|