GNU bug report logs - #48746
[PATCH WIP 0/3] Add python-audio-to-midi

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: Leo Prikler <leo.prikler@HIDDEN>; Keywords: patch; dated Sun, 30 May 2021 16:14:01 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.

Message received at 48746 <at> debbugs.gnu.org:


Received: (at 48746) by debbugs.gnu.org; 31 May 2021 13:35:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 31 09:35:50 2021
Received: from localhost ([127.0.0.1]:33013 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lni58-0000CM-Ka
	for submit <at> debbugs.gnu.org; Mon, 31 May 2021 09:35:50 -0400
Received: from mailrelay.tugraz.at ([129.27.2.202]:59830)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <leo.prikler@HIDDEN>) id 1lni50-0000Bx-MM
 for 48746 <at> debbugs.gnu.org; Mon, 31 May 2021 09:35:43 -0400
Received: from localhost.localdomain (62-116-34-49.adsl.highway.telekom.at
 [62.116.34.49])
 by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4FtxBN0KKqz1LWpD
 for <48746 <at> debbugs.gnu.org>; Mon, 31 May 2021 15:35:40 +0200 (CEST)
DKIM-Filter: OpenDKIM Filter v2.11.0 mailrelay.tugraz.at 4FtxBN0KKqz1LWpD
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at;
 s=mailrelay; t=1622468140;
 bh=M9GOmcZDX+UX/CyzbMoFoQOZVVKWkGYqx7Vnj9Gjk0w=;
 h=From:To:Subject:Date:In-Reply-To:References:From;
 b=QJghwYCzIDPpZU3aRNVoZr7JLvmbCchZMXYDFas7OgzPbN2qka5kJNKNRVXPAX412
 Qa08u5AXWbcnHsvWc2nku52jRwFg4wPvk+t4wUeo+4LG9NOR2X487Hiykb4I75EvOu
 q8bzE/yS/BVXGx6FRxB7A0aTBeJAaSMIivDDRyvg=
From: Leo Prikler <leo.prikler@HIDDEN>
To: 48746 <at> debbugs.gnu.org
Subject: [PATCH v2 3/3] gnu: Add audio-to-midi.
Date: Mon, 31 May 2021 15:35:30 +0200
Message-Id: <20210531133530.22168-3-leo.prikler@HIDDEN>
X-Mailer: git-send-email 2.31.1
In-Reply-To: <20210531133530.22168-1-leo.prikler@HIDDEN>
References: <20210531133530.22168-1-leo.prikler@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw
X-Spam-Scanner: SpamAssassin 3.003001 
X-Spam-Score-relay: -1.9
X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 48746
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

* gnu/packages/audio.scm (audio-to-midi): New variable.
---
 gnu/packages/audio.scm | 40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
index d348c52e43..efde641252 100644
--- a/gnu/packages/audio.scm
+++ b/gnu/packages/audio.scm
@@ -2478,6 +2478,46 @@ CFFI and NumPy.")
 files.")
     (license license:expat)))
 
+(define-public audio-to-midi
+  (package
+    (name "audio-to-midi")
+    (version "2020.7")
+    (source
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+              (url "https://github.com/NFJones/audio-to-midi")
+              (commit (string-append "v" version))))
+        (sha256
+          (base32
+            "12wf17abn3psbsg2r2lk0xdnk8n5cd5rrvjlpxjnjfhd09n7qqgm"))))
+    (build-system python-build-system)
+    (propagated-inputs
+      `(("python-cffi" ,python-cffi)
+        ("python-cython" ,python-cython)
+        ("python-numpy" ,python-numpy)
+        ("python-progressbar2" ,python-progressbar2)
+        ("python-pycparser" ,python-pycparser)
+        ("python-python3-midi" ,python-python3-midi)
+        ("python-soundfile" ,python-soundfile)))
+    (native-inputs
+     `(("libsndfile" ,libsndfile)))
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'fix-versions
+           (lambda _
+             (substitute* "requirements.txt" (("==") ">=")))))))
+    (home-page "https://github.com/NFJones/audio-to-midi")
+    (synopsis "Convert audio to multichannel MIDI.")
+    (description "@command{audio-to-midi} converts audio files to multichannel
+MIDI files.  It accomplishes this by performing FFTs on all channels of the
+audio data at user-specified time steps.  It then separates the resulting
+frequency analysis into equivalence classes which correspond to the twelve tone
+scale; the volume of each class being the average volume of its constituent
+frequencies.  This data is then formatted to MIDI and written to disk.")
+    (license license:expat)))
+
 (define-public lilv
   (package
     (name "lilv")
-- 
2.31.1





Information forwarded to guix-patches@HIDDEN:
bug#48746; Package guix-patches. Full text available.

Message received at 48746 <at> debbugs.gnu.org:


Received: (at 48746) by debbugs.gnu.org; 31 May 2021 13:35:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 31 09:35:42 2021
Received: from localhost ([127.0.0.1]:33010 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lni50-0000Bw-Bo
	for submit <at> debbugs.gnu.org; Mon, 31 May 2021 09:35:42 -0400
Received: from mailrelay.tugraz.at ([129.27.2.202]:18059)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <leo.prikler@HIDDEN>) id 1lni4x-0000Be-Qu
 for 48746 <at> debbugs.gnu.org; Mon, 31 May 2021 09:35:40 -0400
Received: from localhost.localdomain (62-116-34-49.adsl.highway.telekom.at
 [62.116.34.49])
 by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4FtxBH5TWlz1LBCr
 for <48746 <at> debbugs.gnu.org>; Mon, 31 May 2021 15:35:35 +0200 (CEST)
DKIM-Filter: OpenDKIM Filter v2.11.0 mailrelay.tugraz.at 4FtxBH5TWlz1LBCr
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at;
 s=mailrelay; t=1622468135;
 bh=bM5czpTm1sRA8Ro/Fa/z1X4rJA5MIwFAynSVZffcdvk=;
 h=From:To:Subject:Date:From;
 b=nFrWSiCm/n0aIcV2ncEJkABDoahBkj9epqY1m43HhSY0+fE7aMnQaOz4N0uxMzgHN
 fNmnqWlezKMfPnTNmIl516Au6ZCUaFh32/TPh5MPs/Yhw6akFvyEa2bouwtLNqR46O
 zO7SOOoK9Tn0zBXCa7X7fWqZ10BNfpyrhm5PLMd0=
From: Leo Prikler <leo.prikler@HIDDEN>
To: 48746 <at> debbugs.gnu.org
Subject: [PATCH v2 1/3] gnu: Add python-soundfile.
Date: Mon, 31 May 2021 15:35:28 +0200
Message-Id: <20210531133530.22168-1-leo.prikler@HIDDEN>
X-Mailer: git-send-email 2.31.1
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw
X-Spam-Scanner: SpamAssassin 3.003001 
X-Spam-Score-relay: -1.9
X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 48746
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

* gnu/packages/audio.scm (python-soundfile): New variable.
---
 gnu/packages/audio.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
index 5e30ed296d..7c469a81c4 100644
--- a/gnu/packages/audio.scm
+++ b/gnu/packages/audio.scm
@@ -84,6 +84,7 @@
   #:use-module (gnu packages icu4c)
   #:use-module (gnu packages image)
   #:use-module (gnu packages libbsd)
+  #:use-module (gnu packages libffi)
   #:use-module (gnu packages libusb)
   #:use-module (gnu packages linux)
   #:use-module (gnu packages llvm)
@@ -2425,6 +2426,40 @@ included are the command line utilities @code{send_osc} and @code{dump_osc}.")
 (define-public python2-pyliblo
   (package-with-python2 python-pyliblo))
 
+(define-public python-soundfile
+  (package
+    (name "python-soundfile")
+    (version "0.10.3.post1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "SoundFile" version))
+       (sha256
+        (base32
+         "0yqhrfz7xkvqrwdxdx2ydy4h467sk7z3gf984y1x2cq7cm1gy329"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-cffi" ,python-cffi)
+       ("python-numpy" ,python-numpy)
+       ("libsndfile" ,libsndfile)))
+    (native-inputs
+     `(("python-pytest" ,python-pytest)))
+    (arguments
+     `(#:tests? #f ; missing OGG support
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'patch
+           (lambda* (#:key inputs #:allow-other-keys)
+             (substitute* "soundfile.py"
+               (("_find_library\\('sndfile'\\)")
+                (string-append "\"" (assoc-ref inputs "libsndfile")
+                               "/lib/libsndfile.so\""))))))))
+    (home-page "https://github.com/bastibe/SoundFile")
+    (synopsis "Python bindings for libsndfile")
+    (description "This package provides python bindings for libsndfile based on
+CFFI and NumPy.")
+    (license license:expat)))
+
 (define-public lilv
   (package
     (name "lilv")
-- 
2.31.1





Information forwarded to guix-patches@HIDDEN:
bug#48746; Package guix-patches. Full text available.

Message received at 48746 <at> debbugs.gnu.org:


Received: (at 48746) by debbugs.gnu.org; 31 May 2021 13:35:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 31 09:35:42 2021
Received: from localhost ([127.0.0.1]:33008 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lni50-0000Bu-4k
	for submit <at> debbugs.gnu.org; Mon, 31 May 2021 09:35:42 -0400
Received: from mailrelay.tugraz.at ([129.27.2.202]:59478)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <leo.prikler@HIDDEN>) id 1lni4y-0000Bh-Gl
 for 48746 <at> debbugs.gnu.org; Mon, 31 May 2021 09:35:40 -0400
Received: from localhost.localdomain (62-116-34-49.adsl.highway.telekom.at
 [62.116.34.49])
 by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4FtxBK6dX8z1LB21
 for <48746 <at> debbugs.gnu.org>; Mon, 31 May 2021 15:35:37 +0200 (CEST)
DKIM-Filter: OpenDKIM Filter v2.11.0 mailrelay.tugraz.at 4FtxBK6dX8z1LB21
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at;
 s=mailrelay; t=1622468137;
 bh=aoqMqTQvb9hnKLzsI2NptXoSixfgULonAY7ARbjKAWU=;
 h=From:To:Subject:Date:In-Reply-To:References:From;
 b=FqqUwD99EIeSbN1hZBgMQVMj4Y5FcYHMfh0hrn9hbYh8/8GC93Lu3Qh0WI0jI2poX
 /Ah9pSAL6XE7LSdpQz6MlJTAb+p0gjbTLbY+KD42x5pGDCQU15asMkXgRpseQLtfls
 EiNkCPtfRNjzSMoHZazSJ4qvJkpdPA9E873N0UZo=
From: Leo Prikler <leo.prikler@HIDDEN>
To: 48746 <at> debbugs.gnu.org
Subject: [PATCH v2 2/3] gnu: Add python-python3-midi.
Date: Mon, 31 May 2021 15:35:29 +0200
Message-Id: <20210531133530.22168-2-leo.prikler@HIDDEN>
X-Mailer: git-send-email 2.31.1
In-Reply-To: <20210531133530.22168-1-leo.prikler@HIDDEN>
References: <20210531133530.22168-1-leo.prikler@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw
X-Spam-Scanner: SpamAssassin 3.003001 
X-Spam-Score-relay: -1.9
X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 48746
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

* gnu/packages/audio.scm (python-python3-midi): New variable.
---
 gnu/packages/audio.scm | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
index 7c469a81c4..d348c52e43 100644
--- a/gnu/packages/audio.scm
+++ b/gnu/packages/audio.scm
@@ -2460,6 +2460,24 @@ included are the command line utilities @code{send_osc} and @code{dump_osc}.")
 CFFI and NumPy.")
     (license license:expat)))
 
+(define-public python-python3-midi
+  (package
+    (name "python-python3-midi")
+    (version "0.2.5")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "python3_midi" version))
+       (sha256
+        (base32
+         "1z9j1w7mpn3xhkcpxmqm5rvmj6nffb5rf14bv7n3sdh07nf6n7sf"))))
+    (build-system python-build-system)
+    (home-page "https://github.com/NFJones/python3-midi")
+    (synopsis "Python MIDI API")
+    (description "This package provides a python API to read and write MIDI
+files.")
+    (license license:expat)))
+
 (define-public lilv
   (package
     (name "lilv")
-- 
2.31.1





Information forwarded to guix-patches@HIDDEN:
bug#48746; Package guix-patches. Full text available.

Message received at 48746 <at> debbugs.gnu.org:


Received: (at 48746) by debbugs.gnu.org; 30 May 2021 16:21:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 30 12:21:31 2021
Received: from localhost ([127.0.0.1]:60240 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lnOBu-0002mM-Ot
	for submit <at> debbugs.gnu.org; Sun, 30 May 2021 12:21:30 -0400
Received: from mailrelay.tugraz.at ([129.27.2.202]:11747)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <leo.prikler@HIDDEN>) id 1lnOBs-0002mB-BN
 for 48746 <at> debbugs.gnu.org; Sun, 30 May 2021 12:21:28 -0400
Received: from localhost.localdomain (188-23-51-252.adsl.highway.telekom.at
 [188.23.51.252])
 by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4FtNw56H9zz3wXd
 for <48746 <at> debbugs.gnu.org>; Sun, 30 May 2021 18:21:25 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at;
 s=mailrelay; t=1622391685;
 bh=DmNGGJNCGvlpUz1VBHfslrUA24dRrr8/wUPzcX2JN8g=;
 h=From:To:Subject:Date:In-Reply-To:References;
 b=vJIWm44Nbdnk8LOtD4hWkiwM6WmBU7rghKbEMQWCE4168YuBiASp2ZMQU1cm9ftfX
 kRosWp1c50CMi10+V6WVo+sEu2DeJME5gYAD2u3VZJ1IQ4VaJA0f5sJcu9RPiI1YOC
 EHU9OF7nz/BXZ+Deir3ZoTWlA8Dqc/KUz0cbOKkM=
From: Leo Prikler <leo.prikler@HIDDEN>
To: 48746 <at> debbugs.gnu.org
Subject: [PATCH WIP 3/3] gnu: Add python-audio-to-midi.
Date: Sun, 30 May 2021 18:20:12 +0200
Message-Id: <20210530162012.24140-3-leo.prikler@HIDDEN>
X-Mailer: git-send-email 2.31.1
In-Reply-To: <20210530162012.24140-1-leo.prikler@HIDDEN>
References: <20210530162012.24140-1-leo.prikler@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw
X-Spam-Scanner: SpamAssassin 3.003001 
X-Spam-Score-relay: -1.9
X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 48746
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

* gnu/packages/python-xyz.scm (python-audio-to-midi): New variable.
---
 gnu/packages/python-xyz.scm | 40 +++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 3589f8c96a..0a5c0a9635 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -24172,6 +24172,46 @@ CFFI and NumPy.")
 files.")
     (license license:expat)))
 
+(define-public python-audio-to-midi
+  (package
+    (name "python-audio-to-midi")
+    (version "2020.7")
+    (source
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+              (url "https://github.com/NFJones/audio-to-midi")
+              (commit (string-append "v" version))))
+        (sha256
+          (base32
+            "12wf17abn3psbsg2r2lk0xdnk8n5cd5rrvjlpxjnjfhd09n7qqgm"))))
+    (build-system python-build-system)
+    (propagated-inputs
+      `(("python-cffi" ,python-cffi)
+        ("python-cython" ,python-cython)
+        ("python-numpy" ,python-numpy)
+        ("python-progressbar2" ,python-progressbar2)
+        ("python-pycparser" ,python-pycparser)
+        ("python-python3-midi" ,python-python3-midi)
+        ("python-soundfile" ,python-soundfile)))
+    (native-inputs
+     `(("libsndfile" ,libsndfile)))
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'fix-versions
+           (lambda _
+             (substitute* "requirements.txt" (("==") ">=")))))))
+    (home-page "https://github.com/NFJones/audio-to-midi")
+    (synopsis "Convert audio to multichannel MIDI.")
+    (description "@command{audio-to-midi} converts audio files to multichannel
+MIDI files.  It accomplishes this by performing FFTs on all channels of the
+audio data at user-specified time steps.  It then separates the resulting
+frequency analysis into equivalence classes which correspond to the twelve tone
+scale; the volume of each class being the average volume of its constituent
+frequencies.  This data is then formatted to MIDI and written to disk.")
+    (license license:expat)))
+
 (define-public python-voluptuous
   (package
     (name "python-voluptuous")
-- 
2.31.1





Information forwarded to guix-patches@HIDDEN:
bug#48746; Package guix-patches. Full text available.

Message received at 48746 <at> debbugs.gnu.org:


Received: (at 48746) by debbugs.gnu.org; 30 May 2021 16:21:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 30 12:21:30 2021
Received: from localhost ([127.0.0.1]:60238 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lnOBu-0002mK-I6
	for submit <at> debbugs.gnu.org; Sun, 30 May 2021 12:21:30 -0400
Received: from mailrelay.tugraz.at ([129.27.2.202]:17762)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <leo.prikler@HIDDEN>) id 1lnOBq-0002lx-A1
 for 48746 <at> debbugs.gnu.org; Sun, 30 May 2021 12:21:26 -0400
Received: from localhost.localdomain (188-23-51-252.adsl.highway.telekom.at
 [188.23.51.252])
 by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4FtNw363Hcz3wYh
 for <48746 <at> debbugs.gnu.org>; Sun, 30 May 2021 18:21:23 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at;
 s=mailrelay; t=1622391683;
 bh=NIzM9VVHttXghkUwaZsMLqRCz6KrLIzzuLTkQi9jEcM=;
 h=From:To:Subject:Date:In-Reply-To:References;
 b=fPHWIirKRMpk4+iEqEtCfxrdRO7EYs1y5/gVE/6lRrP8dHJfxg9+rUQhZ65jRTIfv
 xpJg7xvUgV7ZEraeSqzJyF0R01EfQfnuRVdD9ZhCinxmC7/MhDKgRkXYLjVGHrMo2B
 /Md3BpgO2Wesj8bYzty4iiUNEDXMxUJF8Bizmhy4=
From: Leo Prikler <leo.prikler@HIDDEN>
To: 48746 <at> debbugs.gnu.org
Subject: [PATCH WIP 2/3] gnu: Add python-python3-midi.
Date: Sun, 30 May 2021 18:20:11 +0200
Message-Id: <20210530162012.24140-2-leo.prikler@HIDDEN>
X-Mailer: git-send-email 2.31.1
In-Reply-To: <20210530162012.24140-1-leo.prikler@HIDDEN>
References: <20210530162012.24140-1-leo.prikler@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw
X-Spam-Scanner: SpamAssassin 3.003001 
X-Spam-Score-relay: -1.9
X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 48746
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

* gnu/packages/python-xyz.scm (python-python3-midi): New variable.
---
 gnu/packages/python-xyz.scm | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index e190588efa..3589f8c96a 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -24154,6 +24154,24 @@ Open Sound Control 1.0} specification.")
 CFFI and NumPy.")
     (license license:expat)))
 
+(define-public python-python3-midi
+  (package
+    (name "python-python3-midi")
+    (version "0.2.5")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "python3_midi" version))
+        (sha256
+          (base32
+            "1z9j1w7mpn3xhkcpxmqm5rvmj6nffb5rf14bv7n3sdh07nf6n7sf"))))
+    (build-system python-build-system)
+    (home-page "https://github.com/NFJones/python3-midi")
+    (synopsis "Python MIDI API")
+    (description "This package provides a python API to read and write MIDI
+files.")
+    (license license:expat)))
+
 (define-public python-voluptuous
   (package
     (name "python-voluptuous")
-- 
2.31.1





Information forwarded to guix-patches@HIDDEN:
bug#48746; Package guix-patches. Full text available.

Message received at 48746 <at> debbugs.gnu.org:


Received: (at 48746) by debbugs.gnu.org; 30 May 2021 16:21:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 30 12:21:27 2021
Received: from localhost ([127.0.0.1]:60235 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lnOBr-0002m4-9e
	for submit <at> debbugs.gnu.org; Sun, 30 May 2021 12:21:27 -0400
Received: from mailrelay.tugraz.at ([129.27.2.202]:17638)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <leo.prikler@HIDDEN>) id 1lnOBo-0002lp-WE
 for 48746 <at> debbugs.gnu.org; Sun, 30 May 2021 12:21:25 -0400
Received: from localhost.localdomain (188-23-51-252.adsl.highway.telekom.at
 [188.23.51.252])
 by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4FtNw159qhz3wXd
 for <48746 <at> debbugs.gnu.org>; Sun, 30 May 2021 18:21:21 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at;
 s=mailrelay; t=1622391681;
 bh=PDoPCGtQB1sdfyW44VNMYFqPpyWHzD/+bavcFBXhTTg=;
 h=From:To:Subject:Date;
 b=p5S+g31WoiRzBe8PYmIKWbYMZmqafHIBqF046zzU+/QLMV6Z3PfzPEyrEwqQKyRWW
 KuOYD9DHZfLYBF2zRJ2yExLOJdskLiny3YVDvs3BlZrzQAK0FWCqr7PKo77dbT1hCs
 Tnz14zcNbxCNS885qDEgltb1PwfGLTvzJVzndBN0=
From: Leo Prikler <leo.prikler@HIDDEN>
To: 48746 <at> debbugs.gnu.org
Subject: [PATCH WIP 1/3] gnu: Add python-soundfile.
Date: Sun, 30 May 2021 18:20:10 +0200
Message-Id: <20210530162012.24140-1-leo.prikler@HIDDEN>
X-Mailer: git-send-email 2.31.1
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw
X-Spam-Scanner: SpamAssassin 3.003001 
X-Spam-Score-relay: -1.9
X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 48746
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

* gnu/packages/python-xyz.scm (python-soundfile): New variable.
---
 gnu/packages/python-xyz.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 770beb0336..e190588efa 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -24120,6 +24120,40 @@ dependencies.  It implements the @uref{http://opensoundcontrol.org/spec-1_0,
 Open Sound Control 1.0} specification.")
     (license license:unlicense)))
 
+(define-public python-soundfile
+  (package
+    (name "python-soundfile")
+    (version "0.10.3.post1")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "SoundFile" version))
+        (sha256
+          (base32
+            "0yqhrfz7xkvqrwdxdx2ydy4h467sk7z3gf984y1x2cq7cm1gy329"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-cffi" ,python-cffi)
+       ("python-numpy" ,python-numpy)
+       ("libsndfile" ,libsndfile)))
+    (native-inputs
+     `(("python-pytest" ,python-pytest)))
+    (arguments
+     `(#:tests? #f ; missing OGG support
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'patch
+           (lambda* (#:key inputs #:allow-other-keys)
+             (substitute* "soundfile.py"
+               (("_find_library\\('sndfile'\\)")
+                (string-append "\"" (assoc-ref inputs "libsndfile")
+                               "/lib/libsndfile.so\""))))))))
+    (home-page "https://github.com/bastibe/SoundFile")
+    (synopsis "Python bindings for libsndfile")
+    (description "This package provides python bindings for libsndfile based on
+CFFI and NumPy.")
+    (license license:expat)))
+
 (define-public python-voluptuous
   (package
     (name "python-voluptuous")
-- 
2.31.1





Information forwarded to guix-patches@HIDDEN:
bug#48746; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 30 May 2021 16:13:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 30 12:13:13 2021
Received: from localhost ([127.0.0.1]:60226 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lnO3t-0002Yo-GF
	for submit <at> debbugs.gnu.org; Sun, 30 May 2021 12:13:13 -0400
Received: from lists.gnu.org ([209.51.188.17]:56944)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <leo.prikler@HIDDEN>) id 1lnO3r-0002Yf-Ce
 for submit <at> debbugs.gnu.org; Sun, 30 May 2021 12:13:12 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:48648)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <leo.prikler@HIDDEN>)
 id 1lnO3r-0002Fz-7v
 for guix-patches@HIDDEN; Sun, 30 May 2021 12:13:11 -0400
Received: from mailrelay.tugraz.at ([129.27.2.202]:16599)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <leo.prikler@HIDDEN>)
 id 1lnO3o-0007uh-0y
 for guix-patches@HIDDEN; Sun, 30 May 2021 12:13:10 -0400
Received: from nijino.local (188-23-51-252.adsl.highway.telekom.at
 [188.23.51.252])
 by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4FtNkN03pJz1LLyW
 for <guix-patches@HIDDEN>; Sun, 30 May 2021 18:12:59 +0200 (CEST)
DKIM-Filter: OpenDKIM Filter v2.11.0 mailrelay.tugraz.at 4FtNkN03pJz1LLyW
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at;
 s=mailrelay; t=1622391180;
 bh=IV8pmkL/m8LEnqjMK+e5iwpj6BCeRfU3lZ0spkpkA6k=;
 h=Subject:From:To:Date:From;
 b=FDXbmk5aIAGj3WHIAF6dWTmq21PsGIRsb4cu8a26rfTfrXVcu3hpEFowYG2fAue4V
 tRZl0Z/cug4VqtCCrG4N2eDh2WmxVpqQWraq/wfcVSaRmvAbBuzDP0Dy55o/jd9b7f
 GdfbuqG/gAlsNbT2L7sAfNnntsocKuuioD80PPsU=
Message-ID: <77c460fce68720ea8daf78b1647027f9b178e6ad.camel@HIDDEN>
Subject: [PATCH WIP 0/3] Add python-audio-to-midi
From: Leo Prikler <leo.prikler@HIDDEN>
To: guix-patches@HIDDEN
Date: Sun, 30 May 2021 18:12:58 +0200
Content-Type: text/plain; charset="UTF-8"
User-Agent: Evolution 3.34.2 
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw
X-Spam-Scanner: SpamAssassin 3.003001 
X-Spam-Score-relay: -1.9
X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117
Received-SPF: pass client-ip=129.27.2.202;
 envelope-from=leo.prikler@HIDDEN; helo=mailrelay.tugraz.at
X-Spam_score_int: -42
X-Spam_score: -4.3
X-Spam_bar: ----
X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3,
 RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

Hi Guix,

For no particular reason I set out to search for a way of turning audio
files into MIDI.  It turns out, that a program exists, that does just
that; one might argue about the quality of the output especially when
giving it the wrong settings, but it's certainly a neat little toy. 
Anyway, have fun with it.

Regards,
Leo





Acknowledgement sent to Leo Prikler <leo.prikler@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#48746; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 31 May 2021 13:45:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.