From debbugs-submit-bounces@debbugs.gnu.org Sun May 30 12:13:13 2021 Received: (at submit) by debbugs.gnu.org; 30 May 2021 16:13:13 +0000 Received: from localhost ([127.0.0.1]:60226 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnO3t-0002Yo-GF for submit@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 ) id 1lnO3r-0002Yf-Ce for submit@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 ) id 1lnO3r-0002Fz-7v for guix-patches@gnu.org; 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 ) id 1lnO3o-0007uh-0y for guix-patches@gnu.org; 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 ; 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@student.tugraz.at> Subject: [PATCH WIP 0/3] Add python-audio-to-midi From: Leo Prikler To: guix-patches@gnu.org 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@student.tugraz.at; 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@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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 From debbugs-submit-bounces@debbugs.gnu.org Sun May 30 12:21:27 2021 Received: (at 48746) by debbugs.gnu.org; 30 May 2021 16:21:27 +0000 Received: from localhost ([127.0.0.1]:60235 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnOBr-0002m4-9e for submit@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 ) id 1lnOBo-0002lp-WE for 48746@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@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 To: 48746@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@student.tugraz.at> 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@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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 From debbugs-submit-bounces@debbugs.gnu.org Sun May 30 12:21:30 2021 Received: (at 48746) by debbugs.gnu.org; 30 May 2021 16:21:30 +0000 Received: from localhost ([127.0.0.1]:60238 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnOBu-0002mK-I6 for submit@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 ) id 1lnOBq-0002lx-A1 for 48746@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@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 To: 48746@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@student.tugraz.at> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210530162012.24140-1-leo.prikler@student.tugraz.at> References: <20210530162012.24140-1-leo.prikler@student.tugraz.at> 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@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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 From debbugs-submit-bounces@debbugs.gnu.org Sun May 30 12:21:31 2021 Received: (at 48746) by debbugs.gnu.org; 30 May 2021 16:21:31 +0000 Received: from localhost ([127.0.0.1]:60240 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnOBu-0002mM-Ot for submit@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 ) id 1lnOBs-0002mB-BN for 48746@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@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 To: 48746@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@student.tugraz.at> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210530162012.24140-1-leo.prikler@student.tugraz.at> References: <20210530162012.24140-1-leo.prikler@student.tugraz.at> 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@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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 From debbugs-submit-bounces@debbugs.gnu.org Mon May 31 09:35:42 2021 Received: (at 48746) by debbugs.gnu.org; 31 May 2021 13:35:42 +0000 Received: from localhost ([127.0.0.1]:33008 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lni50-0000Bu-4k for submit@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 ) id 1lni4y-0000Bh-Gl for 48746@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@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 To: 48746@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@student.tugraz.at> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531133530.22168-1-leo.prikler@student.tugraz.at> References: <20210531133530.22168-1-leo.prikler@student.tugraz.at> 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@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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 From debbugs-submit-bounces@debbugs.gnu.org Mon May 31 09:35:42 2021 Received: (at 48746) by debbugs.gnu.org; 31 May 2021 13:35:42 +0000 Received: from localhost ([127.0.0.1]:33010 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lni50-0000Bw-Bo for submit@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 ) id 1lni4x-0000Be-Qu for 48746@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@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 To: 48746@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@student.tugraz.at> 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@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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 From debbugs-submit-bounces@debbugs.gnu.org Mon May 31 09:35:50 2021 Received: (at 48746) by debbugs.gnu.org; 31 May 2021 13:35:51 +0000 Received: from localhost ([127.0.0.1]:33013 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lni58-0000CM-Ka for submit@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 ) id 1lni50-0000Bx-MM for 48746@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@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 To: 48746@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@student.tugraz.at> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531133530.22168-1-leo.prikler@student.tugraz.at> References: <20210531133530.22168-1-leo.prikler@student.tugraz.at> 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@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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 From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 22 12:49:17 2021 Received: (at control) by debbugs.gnu.org; 22 Jun 2021 16:49:17 +0000 Received: from localhost ([127.0.0.1]:39765 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lvjaP-00004q-Df for submit@debbugs.gnu.org; Tue, 22 Jun 2021 12:49:17 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:42379) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lvjaN-0008WN-44 for control@debbugs.gnu.org; Tue, 22 Jun 2021 12:49:16 -0400 Received: from nijino.local (62-116-34-49.adsl.highway.telekom.at [62.116.34.49]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4G8XRY2XYyz3xpc for ; Tue, 22 Jun 2021 18:49:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1624380553; bh=qYr14YFelMEl5m2h/wtLcxZUpvi0dBe+a6ELlYLNhdI=; h=Subject:From:To:Date:In-Reply-To:References; b=gimtNBsd3bkFdLTDqaVPXXL94cGc6PUHzDGZEXf3guAYyIHFCW/eZ7mnns9fJjF9Z 840Uq50BfbaOGAOTtuViZzEgqhDpNM4GiaUcRd7eKMYr3rAnXSEg0byI8+rmebyN5M w5X7Jbkk0upiinXdus4ACbO3vZbnZrC5KYg0R/Eg= Message-ID: <6569eb927f47d8b5adb4e7c3b0175e6affbae6af.camel@student.tugraz.at> Subject: Re: Processed (with 2 errors): Pushing old patches From: Leo Prikler To: GNU bug tracker automated control server Date: Tue, 22 Jun 2021 18:49:12 +0200 In-Reply-To: References: <1355396ba740a2b74f7c0e7e6dcb9733a9120891.camel@student.tugraz.at> Content-Type: text/plain User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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.116 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 48746 thanks From unknown Wed Aug 20 05:43:05 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 21 Jul 2021 11:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator