From 3f9fd87a7c2284eac41a8851e0023823b8bd6cb7 Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 5 Apr 2024 18:08:46 +0200 Subject: [PATCH] Some initial attempts --- .gitignore | 1 + requirements.txt | 5 +++++ src/main.py | 8 ++++++++ 3 files changed, 14 insertions(+) create mode 100644 .gitignore create mode 100644 requirements.txt create mode 100644 src/main.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..62c8935 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea/ \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..10b1388 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,5 @@ +cython>=0.25 +mido>=1.2.6 +numpy>=1.13.4 +scipy>=0.16 +madmom \ No newline at end of file diff --git a/src/main.py b/src/main.py new file mode 100644 index 0000000..c2c03a1 --- /dev/null +++ b/src/main.py @@ -0,0 +1,8 @@ +import madmom + +audio_file = input("Enter the path to the audio file: ") + +sig = madmom.audio.signal.Signal(audio_file) +spec = madmom.audio.spectrogram.Spectrogram(sig) + +print(spec) \ No newline at end of file