This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# bash 4.1.5(1) Linux Ubuntu 10.04 Date : 2011-10-04 | |
# | |
# _______________| noise : ambient Brown noise generator (cf. white noise). | |
# | |
# Usage: noise [minutes=59] [band-pass freq center=1786] [wave] | |
# ^minutes can be any positive integer. | |
# Command "noise 1" will display peak-level meter. | |
# | |
# Dependencies: play (from sox package) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create background noise profile from mp3 | |
/usr/bin/sox noise.mp3 -n noiseprof noise.prof | |
# Remove noise from mp3 using profile | |
/usr/bin/sox input.mp3 output.mp3 noisered noise.prof 0.21 | |
# Remove silence from mp3 | |
/usr/bin/sox input.mp3 output.mp3 silence -l 1 0.3 5% -1 2.0 5% | |
# Remove noise and silence in a single command |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function error = msewav(inputFile ,outputFile) | |
% function to compute mse between two .wav. files | |
% usage: mse=msewav(cleanfile.wav,enhanced.wav) | |
% matlab spectrum library for Vibrastic Lab, ITS | |
% modified by [email protected] (21/7/2014) for .wav files | |
if nargin<2 | |
fprintf('mse=msewav(inputFile, outputFile) \n'); | |
return; | |
end; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DPI=150 | |
PDF_DESTINATION="" | |
help() { | |
echo "optimize_pdf help" | |
echo "-h : show this help" | |
echo "-d : (optional) output pdf document resolution, by default : 150" | |
echo "-s : pdf source file, this file must exist" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%% Molecular Dynamics Simulator | |
% <md.m> Mark D. Shattuck 7/22/2010 | |
% revision history: | |
% 7/22/2010 Mark D. Shattuck <mds> md.m | |
% MD Demo for HandsOn 2010 | |
% 000 mds Initial conditions and visualization | |
%% Parmeters |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vimcheat.sh: the vim cheatsheet | |
# Ref: https://www.catswhocode.com/blog/vim-cheat-sheet-for-2016 | |
# Usage: less `vimcheat.sh` then `/typewhatyoulookfor` | |
# :command arguments Explanation for command inside VIM OR | |
# shortcut Explanation for shortcut, eg: ciw (C+I+W) to change inner word | |
#Basics | |
:e filename Open filename for edition | |
:w Save file | |
:q Exit Vim |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/share/env python3 | |
# demo zeropadding | |
# dimodifikasi dari: https://dsp.stackexchange.com/questions/10363/algorithm-to-zero-pad-data-before-fft | |
# ada implementasi yang lebih mudah dari ini yakni dengan menggunakan np.pad | |
import numpy as np | |
import matplotlib.pyplot as plt | |
from scipy.fftpack import fft, fftshift | |
Fs = 16000 # Frekuensi sampling | |
f0 = 5000 # Frekuensi tengah |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import pathlib | |
import matplotlib.pyplot as plt | |
import numpy as np | |
import seaborn as sns | |
import tensorflow as tf | |
from tensorflow.keras.layers.experimental import preprocessing | |
from tensorflow.keras import layers |
OlderNewer