beeps 0.3.4 → 0.3.5
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 +4 -4
- data/.github/PULL_REQUEST_TEMPLATE.md +12 -0
- data/CONTRIBUTING.md +7 -0
- data/ChangeLog.md +6 -0
- data/README.md +45 -2
- data/VERSION +1 -1
- data/beeps.gemspec +2 -2
- data/src/envelope.cpp +4 -5
- data/src/signals.h +5 -0
- metadata +12 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fef183d5b385e0ac3007dd66f7a452940e2c62ad55fb16ce5d12d20dc8dcbf30
|
4
|
+
data.tar.gz: 78837bb17ed3785fd6bd4085dc2ea3c4289ecd74c4f1cd3db67b539815503149
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 180665f71bf309872fde63eba13765cab167ac5359c058cab282b354a7aa9082781826eddf03d6625fb1ae46401254e9c0504886d23fd330f8f4a61f85f4c43c
|
7
|
+
data.tar.gz: 7b0178557895cc5e48ad1b9ce90f3a4e4dca91af297ebc6a038719e7498c75b9f46cf6d96aa0ec48ef2a1fc9281c3ac83653ba21b538a190310948a5a2e77014
|
@@ -0,0 +1,12 @@
|
|
1
|
+
## Pull Requests Not Accepted 🚫
|
2
|
+
|
3
|
+
Thank you for your interest in contributing!
|
4
|
+
However, this repository does not accept pull requests directly.
|
5
|
+
|
6
|
+
### Where to Contribute?
|
7
|
+
|
8
|
+
Please submit your changes to the [xord/all](https://github.com/xord/all) monorepo, which serves as the primary repository for all our main libraries.
|
9
|
+
|
10
|
+
For more details, please refer to our [contribution guidelines](../CONTRIBUTING.md).
|
11
|
+
|
12
|
+
Thanks for your understanding! 🙌
|
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
# Contribution Guide
|
2
|
+
|
3
|
+
Thank you for your interest in contributing!
|
4
|
+
However, this repository does not accept pull requests.
|
5
|
+
Instead, please submit your changes to the [xord/all](https://github.com/xord/all) monorepo, which serves as the primary repository for all our main libraries.
|
6
|
+
|
7
|
+
For any questions, feel free to open an issue.
|
data/ChangeLog.md
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,47 @@
|
|
1
|
+
# Beeps - Plays beep sound
|
1
2
|
|
2
|
-
|
3
|
+

|
4
|
+

|
5
|
+

|
3
6
|
|
4
|
-
|
7
|
+
## ⚠️ Notice
|
8
|
+
|
9
|
+
This repository is a read-only mirror of our monorepo.
|
10
|
+
We do not accept pull requests or direct contributions here.
|
11
|
+
|
12
|
+
### 🔄 Where to Contribute?
|
13
|
+
|
14
|
+
All development happens in our [xord/all](https://github.com/xord/all) monorepo, which contains all our main libraries.
|
15
|
+
If you'd like to contribute, please submit your changes there.
|
16
|
+
|
17
|
+
For more details, check out our [Contribution Guidelines](./CONTRIBUTING.md).
|
18
|
+
|
19
|
+
Thanks for your support! 🙌
|
20
|
+
|
21
|
+
## 🚀 About
|
22
|
+
|
23
|
+
**Beeps** is a simple utility that plays a beep sound.
|
24
|
+
|
25
|
+
It is designed to be lightweight and easy to use, making it perfect for adding audible notifications to your scripts or applications.
|
26
|
+
|
27
|
+
## 📦 Installation
|
28
|
+
|
29
|
+
Add this line to your Gemfile:
|
30
|
+
```ruby
|
31
|
+
$ gem 'beeps'
|
32
|
+
```
|
33
|
+
|
34
|
+
Then, install gem:
|
35
|
+
```bash
|
36
|
+
$ bundle install
|
37
|
+
```
|
38
|
+
|
39
|
+
Or install it directly:
|
40
|
+
```bash
|
41
|
+
$ gem install beeps
|
42
|
+
```
|
43
|
+
|
44
|
+
## 📜 License
|
45
|
+
|
46
|
+
**Beeps** is licensed under the MIT License.
|
47
|
+
See the [LICENSE](./LICENSE) file for details.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.5
|
data/beeps.gemspec
CHANGED
@@ -25,8 +25,8 @@ Gem::Specification.new do |s|
|
|
25
25
|
s.platform = Gem::Platform::RUBY
|
26
26
|
s.required_ruby_version = '>= 3.0.0'
|
27
27
|
|
28
|
-
s.add_dependency 'xot', '~> 0.3.
|
29
|
-
s.add_dependency 'rucy', '~> 0.3.
|
28
|
+
s.add_dependency 'xot', '~> 0.3.5', '>= 0.3.5'
|
29
|
+
s.add_dependency 'rucy', '~> 0.3.5', '>= 0.3.5'
|
30
30
|
|
31
31
|
s.files = `git ls-files`.split $/
|
32
32
|
s.executables = s.files.grep(%r{^bin/}) {|f| File.basename f}
|
data/src/envelope.cpp
CHANGED
@@ -154,11 +154,10 @@ namespace Beeps
|
|
154
154
|
static size_t
|
155
155
|
slice (Frames* frames, size_t start, float length_sec = -1)
|
156
156
|
{
|
157
|
-
|
158
|
-
size_t len
|
159
|
-
|
160
|
-
|
161
|
-
assert(0 < len && (start + len) < frames->nframes());
|
157
|
+
size_t max = frames->nframes() - start;
|
158
|
+
size_t len = length_sec >= 0 ? length_sec * frames->sample_rate() : max;
|
159
|
+
if (len > max) len = max;
|
160
|
+
assert(0 < len && (start + len) <= frames->nframes());
|
162
161
|
|
163
162
|
return frames->slice(start, len);
|
164
163
|
}
|
data/src/signals.h
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beeps
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- xordog
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-03-
|
11
|
+
date: 2025-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xot
|
@@ -16,40 +16,40 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.3.
|
19
|
+
version: 0.3.5
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.3.
|
22
|
+
version: 0.3.5
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - "~>"
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.3.
|
29
|
+
version: 0.3.5
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 0.3.
|
32
|
+
version: 0.3.5
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: rucy
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: 0.3.
|
39
|
+
version: 0.3.5
|
40
40
|
- - ">="
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 0.3.
|
42
|
+
version: 0.3.5
|
43
43
|
type: :runtime
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
47
|
- - "~>"
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: 0.3.
|
49
|
+
version: 0.3.5
|
50
50
|
- - ">="
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version: 0.3.
|
52
|
+
version: 0.3.5
|
53
53
|
description: Synthesize and play beep sounds.
|
54
54
|
email: xordog@gmail.com
|
55
55
|
executables: []
|
@@ -89,10 +89,12 @@ files:
|
|
89
89
|
- ".doc/ext/beeps/sound.cpp"
|
90
90
|
- ".doc/ext/beeps/sound_player.cpp"
|
91
91
|
- ".doc/ext/beeps/time_stretch.cpp"
|
92
|
+
- ".github/PULL_REQUEST_TEMPLATE.md"
|
92
93
|
- ".github/workflows/release-gem.yml"
|
93
94
|
- ".github/workflows/tag.yml"
|
94
95
|
- ".github/workflows/test.yml"
|
95
96
|
- ".github/workflows/utils.rb"
|
97
|
+
- CONTRIBUTING.md
|
96
98
|
- ChangeLog.md
|
97
99
|
- Gemfile
|
98
100
|
- Gemfile.lock
|