tonal-tools 7.5.0 → 7.6.0
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/lib/tonal/attributions.rb +1 -1
- data/lib/tonal/irb_helpers.rb +16 -5
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 808fcd9cad8ea582e68af1c54f1e6c2377a0fba3554d0fc7593a11ba05e3c260
|
|
4
|
+
data.tar.gz: 669f92eb3dba1419404c3bd2c9f2f29623c8110d73800cab6a6116a8d0d8b02b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2a36a5b1579bcb1eb07d9b71e333023d14764962a22c3b4ae5407c935c8505f69cb5feb03bbfd94d3c97f4d39425f8cc08c433fbd4cbc156d64c2688e2900d0f
|
|
7
|
+
data.tar.gz: 95adea0987991dff6f49d0072107bb8d02c25b7c9693c142ddbc2b69907385561777b821289412073397cbecfb62c734ba7261aba13497a71d6b6cd759e18e01
|
data/lib/tonal/attributions.rb
CHANGED
data/lib/tonal/irb_helpers.rb
CHANGED
|
@@ -33,13 +33,24 @@ module Tonal
|
|
|
33
33
|
def i(*args, reduced: true)
|
|
34
34
|
Tonal::Interval.new(*args, reduced:)
|
|
35
35
|
end
|
|
36
|
+
|
|
37
|
+
# @return [Tonal::ExtendedRatio] an extended ratio
|
|
38
|
+
# @example
|
|
39
|
+
# er(partials: [4,5,6]) => Tonal::ExtendedRatio with partials 4,5,6
|
|
40
|
+
#
|
|
41
|
+
def er(**kwargs)
|
|
42
|
+
Tonal::ExtendedRatio.new(**kwargs)
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# @return [Tonal::SubharmonicExtendedRatio] a subharmonic extended ratio
|
|
46
|
+
# @example
|
|
47
|
+
# ser(partials: [4,5,6]) => Tonal::SubharmonicExtendedRatio with partials 4,5,6
|
|
48
|
+
#
|
|
49
|
+
def ser(**kwargs)
|
|
50
|
+
Tonal::SubharmonicExtendedRatio.new(**kwargs)
|
|
51
|
+
end
|
|
36
52
|
end
|
|
37
53
|
|
|
38
|
-
# @note
|
|
39
|
-
# Intended for activation from +~/.irbrc+, by placing: +ENV["MTONAL_IRB_HELPERS" ] = "1"+, in the file
|
|
40
|
-
#
|
|
41
|
-
# Invoking this command from the IRB will add the helper methods: +r+, +rr+, +i+ in +main+.
|
|
42
|
-
# These methods represent {Tonal::Ratio}, {Tonal::ReducedRatio} and {Tonal::Interval} respectively.
|
|
43
54
|
#
|
|
44
55
|
# @see Tonal::IRBHelpers
|
|
45
56
|
#
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tonal-tools
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 7.
|
|
4
|
+
version: 7.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jose Hales-Garcia
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2025-12-
|
|
10
|
+
date: 2025-12-30 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: yaml
|