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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ae9d30dfbfb0c838c21c7a793595ef7c7b18d5fc4cabcec918fcd9b66792431f
4
- data.tar.gz: 5c477afae53ae3da5f251c40bece2b6430979c3c242ce06fbad5e8a25d5201ce
3
+ metadata.gz: 808fcd9cad8ea582e68af1c54f1e6c2377a0fba3554d0fc7593a11ba05e3c260
4
+ data.tar.gz: 669f92eb3dba1419404c3bd2c9f2f29623c8110d73800cab6a6116a8d0d8b02b
5
5
  SHA512:
6
- metadata.gz: ea69e08b31487add78b3c5a69ea1a7cbed7ba5c6fc10b350f58103cc118bd8af90c7c94479fbc2883a94275f604b57d08559eb120b3a4e6394fc92e53d006885
7
- data.tar.gz: 53455b3b49b633c21a65e28b0e5d9b91e2e26df3844dc2690b2edfb9995cfc844251b110a5023418afd184da35d0c32ba6adcf51d1d8a942ce3c0a3b46d9e405
6
+ metadata.gz: 2a36a5b1579bcb1eb07d9b71e333023d14764962a22c3b4ae5407c935c8505f69cb5feb03bbfd94d3c97f4d39425f8cc08c433fbd4cbc156d64c2688e2900d0f
7
+ data.tar.gz: 95adea0987991dff6f49d0072107bb8d02c25b7c9693c142ddbc2b69907385561777b821289412073397cbecfb62c734ba7261aba13497a71d6b6cd759e18e01
@@ -1,4 +1,4 @@
1
1
  module Tonal
2
2
  TOOLS_PRODUCER = "mTonal"
3
- TOOLS_VERSION = "7.5.0"
3
+ TOOLS_VERSION = "7.6.0"
4
4
  end
@@ -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.5.0
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-29 00:00:00.000000000 Z
10
+ date: 2025-12-30 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: yaml