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
clear all | |
close all | |
filenames= ["100.wav", "101.wav", "102.wav", "103.wav", "104.wav", "105.wav", "106.wav", "107.wav", "108.wav", "109.wav"]; | |
for name = filenames | |
[bpm, segments, windowSize, fs, signal, increment] = getBPMFromFile(name); | |
fprintf(" %s BPM = %.2f\n", name, bpm) | |
figure | |
subplot(3,1,1) |
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
#include <Arduino.h> | |
#include <stdio.h> | |
#define PORT PD_0 | |
int valeurPrecedente = 0; | |
int lastTime = 0; | |
int valeurSeuil = 150; | |
void setup() { | |
Serial.begin(9600); |
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
#include <Arduino.h> | |
#include <stdio.h> | |
byte PWM_PIN = A4; | |
int pwm_value; | |
int pwm_percent; | |
void setup() { | |
pinMode(PWM_PIN, INPUT); | |
Serial.begin(9600); |
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
#include <Arduino.h> | |
void setup() | |
{ | |
Serial.begin(9600); | |
Serial1.begin(9600); | |
} | |
void dec2bin(int n) | |
{ |