Git Product home page Git Product logo

bluenote's Introduction

blueNote

th

Turn ON

Plug the power supply and switch from position 0 to position 1. The relay GPIO.14 turn on few seconds and turn off again.

45 to 60 seconds later, the routine script trigger the first lap.

Wire the fans as show in the picture. wiring

Code

routine.sh

routine.sh is active at the boot sequence.

crontab -e

@reboot option

you can change the range of the trigger simply by changing the two variables l.9 and l.10 :

mindel=540
maxdel=660

python scripts

Each .wav file as a .txt score and .py script. The score was extracted from the midi files (midi folder). Due to the silence in the start of each track, i put a sleep() (l.52) to resynchronise a bit better with the sound.

Basicly, after analysis of each track, there is a list of note. eache fans will be trigger by certain note of this list. The number depend of the track and the length of the list.

We can easily change with rangeof[] list of in findGoodFan() function.

After parsing the .txt score, we look for :

  • the last char of note_on/note_offto trigger ON or OFF
  • the pitch of note=xx
  • the duration call time=xxxx

There is a little offset we can adjust in ###TRIGGER NOTES part to avoid the note when the duration is below n millis l.67

Schematic

diagrame

We use RaleyPin=[14, 16, 8, 7, 12]
Le diagramme renseigne l'emplacement physique des relais.

case1 case

Certains GPIO sont occupés par le DAC+ (iqaudio.pdf) pinmap

bluenote's People

Contributors

lan-ensad avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.