modusa 0.3.81__py3-none-any.whl → 0.3.83__py3-none-any.whl

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.
modusa/__init__.py CHANGED
@@ -7,3 +7,5 @@ from modusa.tools import plot_dist, fig
7
7
  from modusa.tools import play, convert, record, save
8
8
  from modusa.tools import download
9
9
  from modusa.tools import load, load_ann
10
+
11
+ __version__ = "0.3.83"
@@ -3,7 +3,7 @@
3
3
  import numpy as np
4
4
  from IPython.display import display, HTML, Audio
5
5
 
6
- def play(y: np.ndarray, sr: float, t0: float = 0.0, regions = None, title = None) -> None:
6
+ def play(y: np.ndarray, sr: float, title = None, t0: float = 0.0, regions = None) -> None:
7
7
  """
8
8
  Plays audio clips for given regions in Jupyter Notebooks.
9
9
 
@@ -14,6 +14,8 @@ def play(y: np.ndarray, sr: float, t0: float = 0.0, regions = None, title = None
14
14
  - Mono (1D) numpy array.
15
15
  sr: float
16
16
  - Sampling rate of the audio.
17
+ title : str | None
18
+ - Title to display above audio players.
17
19
  t0: float
18
20
  - Starting timestamp, incase the audio is cropped
19
21
  - Default: 0.0 → Starts from 0.0 sec
@@ -21,15 +23,13 @@ def play(y: np.ndarray, sr: float, t0: float = 0.0, regions = None, title = None
21
23
  - Regions to extract and play (in sec), e.g. [(0, 10.2, "tag")]
22
24
  - If there is only one region, a tuple should also work. e.g. (0, 10.2, "tag")
23
25
  - Default: None → The entire song is selected.
24
- title : str | None
25
- - Title to display above audio players.
26
26
 
27
27
  Returns
28
28
  -------
29
29
  None
30
30
  """
31
31
  if title:
32
- display(HTML(f"<h4>{title}</h4>"))
32
+ display(HTML(f"<p style='font-size:15px; font-weight:600; text-decoration: underline; margin-left:10px'>{title}</p>"))
33
33
 
34
34
  clip_tags = []
35
35
  timings = []
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: modusa
3
- Version: 0.3.81
3
+ Version: 0.3.83
4
4
  Summary: A modular signal analysis python library.
5
5
  Author-Email: Ankit Anand <ankit0.anand0@gmail.com>
6
6
  License: MIT
@@ -1,9 +1,9 @@
1
- modusa-0.3.81.dist-info/METADATA,sha256=3UWJiZ_BPe37o35sLEuZ31BnSwMiuAMI2LyK9mVbcIU,1436
2
- modusa-0.3.81.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
3
- modusa-0.3.81.dist-info/entry_points.txt,sha256=fmKpleVXj6CdaBVL14WoEy6xx7JQCs85jvzwTi3lePM,73
4
- modusa-0.3.81.dist-info/licenses/LICENSE.md,sha256=JTaXAjx5awk76VArKCx5dUW8vmLEWsL_ZlR7-umaHbA,1078
1
+ modusa-0.3.83.dist-info/METADATA,sha256=vyp-Qx9NPFeMmTRvG_ePo4Ebg6iuoBsXXOrDaKpQ1QU,1436
2
+ modusa-0.3.83.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
3
+ modusa-0.3.83.dist-info/entry_points.txt,sha256=fmKpleVXj6CdaBVL14WoEy6xx7JQCs85jvzwTi3lePM,73
4
+ modusa-0.3.83.dist-info/licenses/LICENSE.md,sha256=JTaXAjx5awk76VArKCx5dUW8vmLEWsL_ZlR7-umaHbA,1078
5
5
  modusa/.DS_Store,sha256=_gm6qJREwfMi8dE7n5S89_RG46u5t3xHyD-smNhtNoM,6148
6
- modusa/__init__.py,sha256=NePOWbyJftN9eKV6VEzS8QBMY5SCym9DzUCrVcVZ7kY,283
6
+ modusa/__init__.py,sha256=yIYUtbujbSjZTgsWt_eluNif1F5wbMEdjkvawBz50e0,307
7
7
  modusa/config.py,sha256=bTqK4t00FZqERVITrxW_q284aDDJAa9aMSfFknfR-oU,280
8
8
  modusa/decorators.py,sha256=8zeNX_wE37O6Vp0ysR4-WCZaEL8mq8dyCF_I5DHOzks,5905
9
9
  modusa/devtools/generate_docs_source.py,sha256=UDflHsk-Yh9-3YJTVBzKL32y8hcxiRgAlFEBTMiDqwM,3301
@@ -46,7 +46,7 @@ modusa/tools/_plotter_old.py,sha256=KGow7mihA2H1WNq7s5bpivhCgGo2qVIeDaO6iabpsrg,
46
46
  modusa/tools/ann_loader.py,sha256=GWiX7v4CxyAECthmtBAaSMMqsjo1YaVfRA9u-CtTTFM,1718
47
47
  modusa/tools/audio_converter.py,sha256=415qBoPm2sBIuBSI7m1XBKm0AbmVmPydIPPr-uO8D3c,1778
48
48
  modusa/tools/audio_loader.py,sha256=n9Q9t_GmlE8AtioVwRcXX3rnd6PkbGTx-hAoNgUnNOQ,2780
49
- modusa/tools/audio_player.py,sha256=GP04TWW4jBwQBjANkfR_cJtEy7cIhvbu8RTwnf9hD6E,2817
49
+ modusa/tools/audio_player.py,sha256=pXKaNsDbqhCVbrMx5QRv7aC2IPMJFY5POAG60f-1LmU,2901
50
50
  modusa/tools/audio_recorder.py,sha256=K_LGqsPdjTdf3figEZTSQLmgMzYWgz18HTO8C1j5fE4,2788
51
51
  modusa/tools/audio_saver.py,sha256=ldzfr_AydsHTnKbxmBLJblN-hLzTmOlppOm306xI4Ug,510
52
52
  modusa/tools/base.py,sha256=C0ESJ0mIfjjRlAkRbSetNtMoOfS6IrHBjexRp3l_Mh4,1293
@@ -60,4 +60,4 @@ modusa/utils/excp.py,sha256=L9vhaGjKpv9viJYdmC9n5ndmk2GVbUBuFyZyhAQZmWY,906
60
60
  modusa/utils/logger.py,sha256=K0rsnObeNKCxlNeSnVnJeRhgfmob6riB2uyU7h3dDmA,571
61
61
  modusa/utils/np_func_cat.py,sha256=TyIFgRc6bARRMDnZxlVURO5Z0I-GWhxRONYyIv-Vwxs,1007
62
62
  modusa/utils/plot.py,sha256=s_vNdxvKfwxEngvJPgrF1PcmxZNnNaaXPViHWjyjJ-c,5335
63
- modusa-0.3.81.dist-info/RECORD,,
63
+ modusa-0.3.83.dist-info/RECORD,,