-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathwavExtractNote.sh
More file actions
35 lines (28 loc) · 1.17 KB
/
wavExtractNote.sh
File metadata and controls
35 lines (28 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
# docs: https://aubio.org/manual/latest/cli.html
source @includes.sh
echo '###################################################'
echo '# Description: Extract a midi note from a wav file'
echo '# Info: Displays tmies and MIDI notes if successful'
echo '# Usage: $ ./wavExtractNote.sh /path/to/file.wav'
echo '# Param 1: Wav or Aif file'
echo '# Requires: Aubio'
echo '###################################################'
echoNewline
################################################################################
################################################################################
# check parameters
if [[ $1 == "" ]] ; then
echoError '1st arg must be a wav or aif file'
exit 1
fi
################################################################################
################################################################################
# get filename
filename=$1
# do conversion
aubio notes "$filename" --release-drop 90
################################################################################
################################################################################
# complete
# echoSuccess "Converted to 16/44.1 mp3 \n# $outputFile"