This file contains 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
package seniordesign; | |
import java.time.LocalDateTime; | |
import com.leapmotion.leap.Controller; | |
public class Leapduino | |
{ | |
//Main | |
public static final void main(String args[]) | |
{ |
This file contains 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 | |
from tqdm import tqdm | |
import pandas as pd | |
import numpy as np | |
import matplotlib.pyplot as plt | |
from scipy.io import wavfile | |
from python_speech_features import mfcc, logfbank | |
import librosa | |
def plot_signals(signals): |
This file contains 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 | |
from tqdm import tqdm | |
import pandas as pd | |
import numpy as np | |
import matplotlib.pyplot as plt | |
from scipy.io import wavfile | |
from python_speech_features import mfcc, logfbank | |
import librosa | |
def plot_signals(signals): |
This file contains 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 pyaudio | |
import wave | |
import os | |
FORMAT = pyaudio.paInt16 | |
CHANNELS = 2 | |
RATE = 44100 | |
CHUNK = 1024 | |
RECORD_SECONDS = 2 | |
cat_str = os.getcwd() + '/audio/noise_' |
This file contains 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 | |
from tqdm import tqdm | |
import pandas as pd | |
import numpy as np | |
from scipy.io import wavfile | |
import librosa | |
def envelope(y, rate, threshold): | |
mask = [] | |
y = pd.Series(y).apply(np.abs) |
This file contains 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 | |
class Config: | |
def __init__(self, mode='conv', nfilt=26, nfeat=13, nfft=512, rate=16000): | |
self.mode = mode | |
self.nfilt = nfilt | |
self.nfft = nfft | |
self.nfeat = nfeat | |
self.rate = rate | |
self.step = int(rate/10) |
This file contains 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 | |
from tqdm import tqdm | |
import pandas as pd | |
import numpy as np | |
import matplotlib.pyplot as plt | |
from scipy.io import wavfile | |
from python_speech_features import mfcc, logfbank | |
import librosa | |
from keras.layers import Conv2D, MaxPool2D, Flatten, LSTM |
This file contains 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 pickle | |
import os | |
import numpy as np | |
import pandas as pd | |
from tqdm import tqdm | |
from scipy.io import wavfile | |
from python_speech_features import mfcc | |
from keras.models import load_model | |
from sklearn.metrics import accuracy_score |
This file contains 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
from adafruit_ble.uart import UARTServer | |
import time | |
import board | |
from digitalio import DigitalInOut, Direction, Pull | |
uart = UARTServer() | |
Rled = DigitalInOut(board.LED2_R) | |
Bled = DigitalInOut(board.LED2_B) | |
Gled = DigitalInOut(board.LED2_G) |
This file contains 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 'dart:async'; | |
import 'dart:convert' show utf8; | |
import 'package:control_pad/control_pad.dart'; | |
import 'package:control_pad/models/gestures.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/services.dart'; | |
import 'package:flutter_blue/flutter_blue.dart'; | |
bool scanFlag = false; |
OlderNewer