unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Leo Prikler <leo.prikler@student.tugraz.at>
To: 48746@debbugs.gnu.org
Subject: [bug#48746] [PATCH WIP 3/3] gnu: Add python-audio-to-midi.
Date: Sun, 30 May 2021 18:20:12 +0200	[thread overview]
Message-ID: <20210530162012.24140-3-leo.prikler@student.tugraz.at> (raw)
In-Reply-To: <20210530162012.24140-1-leo.prikler@student.tugraz.at>

* 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





  parent reply	other threads:[~2021-05-30 16:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-30 16:12 [bug#48746] [PATCH WIP 0/3] Add python-audio-to-midi Leo Prikler
2021-05-30 16:20 ` [bug#48746] [PATCH WIP 1/3] gnu: Add python-soundfile Leo Prikler
2021-05-30 16:20   ` [bug#48746] [PATCH WIP 2/3] gnu: Add python-python3-midi Leo Prikler
2021-05-30 16:20   ` Leo Prikler [this message]
2021-05-31 13:35 ` [bug#48746] [PATCH v2 1/3] gnu: Add python-soundfile Leo Prikler
2021-05-31 13:35   ` [bug#48746] [PATCH v2 2/3] gnu: Add python-python3-midi Leo Prikler
2021-05-31 13:35   ` [bug#48746] [PATCH v2 3/3] gnu: Add audio-to-midi Leo Prikler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210530162012.24140-3-leo.prikler@student.tugraz.at \
    --to=leo.prikler@student.tugraz.at \
    --cc=48746@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).