From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id WM2BK8K7s2AUHgAAgWs5BA (envelope-from ) for ; Sun, 30 May 2021 18:22:26 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id GCjfJsK7s2AuPwAA1q6Kng (envelope-from ) for ; Sun, 30 May 2021 16:22:26 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 46A6C130A6 for ; Sun, 30 May 2021 18:22:26 +0200 (CEST) Received: from localhost ([::1]:43980 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lnOCn-0005KP-AA for larch@yhetil.org; Sun, 30 May 2021 12:22:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49796) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnOCR-00050U-GL for guix-patches@gnu.org; Sun, 30 May 2021 12:22:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48696) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lnOCR-0003nI-9F for guix-patches@gnu.org; Sun, 30 May 2021 12:22:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lnOCR-0002nP-6K for guix-patches@gnu.org; Sun, 30 May 2021 12:22:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48746] [PATCH WIP 3/3] gnu: Add python-audio-to-midi. Resent-From: Leo Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 30 May 2021 16:22:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48746 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48746@debbugs.gnu.org Received: via spool by 48746-submit@debbugs.gnu.org id=B48746.162239169110695 (code B ref 48746); Sun, 30 May 2021 16:22:03 +0000 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 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1622391746; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=DmNGGJNCGvlpUz1VBHfslrUA24dRrr8/wUPzcX2JN8g=; b=EMoR/JTeYsVYUHUwMR8kttMGQHf+XxvjlGQly1IZqof2ui6R5q9qYUA5YypTyFZ174DI5Z dTFUjtwDmDes3SfHuIVaxQ0AgkOf6OMR1kLUhaNkeUv4HKV0SCyoN0NtGH/Ya7H6w5AuWP TsKvZLOW4oBLYryFIY3mJYkhou7f8RXIHedS6/oHp1jf5n95J8+tVv+vdSXbDWtTvhPpBq 0/AbV3puZTMIOxJWQlYkstaE6xyWIE5+FTS1zYyho6XWTJpxCp6igi2x/ly1GPKc47RZxG cWia+by6n0QFlgKLC81au6R8zRuhFaF2bSc3axAvi+cLdt/fNEEsOhKYWtZeEg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622391746; a=rsa-sha256; cv=none; b=OfWNrKixV2MjtQoiAmNPb+mvCulJZRSLRDuzEYP+XLqn2LXhyEpLhxCTiPNEFUAtfjMaab 3K9stqxRYRlVF4s9WA9xjsiTZo/Xh/EnYVAEB2rJcFJddvhqt4qZHbEP1R+XJYLw02uPYd 4zApA68qc53aDdRzVJFhNzTsQ2HIlYXHLJoiklNpe/jV346lPt53E10ugT5k5AEXeGi7vV T2Ym6OVwEIhzLpBfY7KauPps3j9amTlBAVRTWWdYKEHG6Pt0AL5y5cMu8nwTIlr6YJZ8+z lGJWxb+Co1TH+kGkTuOgTAK6xO7h2DHMrGdwDWP2QDhvpRdW3S5b2zP/6UfXdQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=vJIWm44N; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 3.67 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=vJIWm44N; dmarc=fail reason="SPF not aligned (relaxed)" header.from=student.tugraz.at (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 46A6C130A6 X-Spam-Score: 3.67 X-Migadu-Scanner: scn1.migadu.com X-TUID: 336TB3vsyC8+ * 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