From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id zhK2F0nmtGB8tQAAgWs5BA (envelope-from ) for ; Mon, 31 May 2021 15:36:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id OEI8EknmtGC7cgAAbx9fmQ (envelope-from ) for ; Mon, 31 May 2021 13:36:09 +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 160DE18B17 for ; Mon, 31 May 2021 15:36:09 +0200 (CEST) Received: from localhost ([::1]:52816 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lni5Q-0001Bg-3y for larch@yhetil.org; Mon, 31 May 2021 09:36:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53966) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lni5K-00018X-R6 for guix-patches@gnu.org; Mon, 31 May 2021 09:36:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49702) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lni5K-00029p-Iw for guix-patches@gnu.org; Mon, 31 May 2021 09:36:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lni5K-0000D0-Gy for guix-patches@gnu.org; Mon, 31 May 2021 09:36:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48746] [PATCH v2 3/3] gnu: Add audio-to-midi. Resent-From: Leo Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 31 May 2021 13:36:02 +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.1622468151771 (code B ref 48746); Mon, 31 May 2021 13:36:02 +0000 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 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-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=1622468169; 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=M9GOmcZDX+UX/CyzbMoFoQOZVVKWkGYqx7Vnj9Gjk0w=; b=DHxSIJoHEHPt2BGmtC3GMwKjerHzaIxYBezFMAo8gRl0Vqr04fjuAdT9iTuM3fKetkmten PL3L1JkKWFCHZ38v+9sWa2mQbA9ZjxKtfgarrNyr5WbrPGOVMGdURDUkXWJLViqPGNpNEh IWhkGVKgouus6iyUi+wb4uAXIpiTDe0jrl3M6/vhERg1Qr+AWrVpgqNLicDbU0akAizdKO DnW/TDq+3dgmtXF+8gxK+sTR9PxBoG/LwjdKrOfK3mlXDKw+r6dSsDpEOfT00gwQMMIxex YEMp0duo19+SXy+bXdXgWezOCw1T2xvs7DYmaF98iNPoDj1Oh/JTbCOV6gzo1w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622468169; a=rsa-sha256; cv=none; b=uFhYxyaZCB2BV0eMl2hQzLyzFjkjRR/GRmx5KdXYWsJRzBXYw71//eXylVGrZN6/2MT8ap CAt6GpQpA5dGDT6L/bgj/9DoQeGZ2a6vk6yEnKnUcz4JuwQZryigwXNtKn2qhRfY4sFKWl YgYMO1uJgyfgWqk4lzxvt3XZL4FUtfGmp3XaQ3n1dySl1gcBpCDbF9SdbMsNw0KhvWSJHx Pb8f10gvf6SRbluBwvTTCuC+m3TuKKavDnw7KBzpzQDtHzRXmFkfyu9pqbVKq04akMMCgz cLBGkgLLDlQSEJ1cAzIgpfCYZ+EYBMZdp5OlSco1sZ0TVQRc0nEFaJkfTA3Q9w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=QJghwYCz; 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-Spam-Score: 3.67 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=QJghwYCz; 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: 160DE18B17 X-Spam-Score: 3.67 X-Migadu-Scanner: scn0.migadu.com X-TUID: L+H0ko7HnMmM * 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