Giter Club home page Giter Club logo

arduino-music's Introduction

Arduino Music

Installing

  • Clone this repository recursively with git clone --recursive https://github.com/shvelo/arduino-music.git
  • Run make to rebuild miditones for your system

Generating a sketch

ruby generate.rb file.mid

This will make a directory with the sketch in it, just open with Arduino IDE and upload.

Connecting

The easiest way to hear the music is to connect each of the output pins to a resistor (500 ohms, say). Connect other ends of the resistors together and then to one terminal of an 8-ohm speaker. The other terminal of the speaker is connected to ground. No other hardware is needed! If you are going to connect to an amplifier, you should DC-isolate the signal using a capacitor.

Uses libraries from LenShustek

PlayTune from https://github.com/LenShustek/arduino-playtune
MidiTones from https://github.com/LenShustek/miditones

arduino-music's People

Contributors

shvelo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

arduino-music's Issues

output sketch problem

town.ino:17:1: error: duplicate ‘const’
const unsigned char PROGMEM score [] = {
^
town.ino: In function ‘void loop()’:
town.ino:184:27: error: invalid conversion from ‘const unsigned char*’ to ‘byte* {aka unsigned char*}’ [-fpermissive]
pt.tune_playscore (score); /* start playing /
^
In file included from town.ino:13:0:
/usr/share/arduino/libraries/Playtune/Playtune.h:43:7: note: initializing argument 1 of ‘void Playtune::tune_playscore(byte
)’
void tune_playscore (byte *score); // start playing a polyphonic score
^
/usr/share/arduino/Arduino.mk:1215: recipe for target 'build-uno/town.o' failed
make: *** [build-uno/town.o] Error 1

https://pastebin.com/JdRW30s0

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.