Coder Social home page Coder Social logo

arduino-tone's People

Watchers

 avatar

arduino-tone's Issues

error: 'TIMSK1' was not declared in this scope

What steps will reproduce the problem?
1. Install Arduino v 17
2. Un-zip Tone in hardware/libraries
3. Open Arduino and type:

#include <Tone.h>

void setup() {}
void loop() {}

4. Press Verify

What is the expected output? What do you see instead?
Result:

arduino-0017\hardware\libraries\Tone\Tone.cpp:431: error: 'TIMSK1' was not 
declared in this scope

What version of the product are you using? On what operating system?
OS: Windows XP Professional


Original issue reported on code.google.com by [email protected] on 20 Sep 2009 at 9:31

Please add pause note

I think it would be nice to have a NOTE_PAUSE or NOTE_SILENT "note" so when
you could write note_player.play(NOTE_PAUSE, 100) to have a non-blocking
pause in the melody. It could be used like this:

int melody[]          = { NOTE_C4, NOTE_D4,    NOTE_E4, NOTE_PAUSE, 
                          NOTE_G4, NOTE_PAUSE, NOTE_A4, NOTE_PAUSE };
int melody_duration[] = { 100,     100,        100,     50, 
                          100,     300,        50,      250, };
int melody_length = sizeof(melody) / 2; // Melody length, for looping.

void loop()
{
  play_melody();
  do_something_else();
}

void play_melody()
{
  if(!(note_player.isPlaying())) // if the last tone has stopped
  {
    if(i<melody_length)
    {
      tone_maker.play(melody[position], melody_duration[position]);
      position++;
    }
    else
    {
      position = 0;
    }
  }
}


I could try to add it myself, but I don't have time this week, and I've
never tried to write or modify arduino libraries before... But maybe I'll
give it a try next week if it hasn't been implemented by then. 

Thanks for a great library!

Regards Martin

Original issue reported on code.google.com by [email protected] on 11 Nov 2009 at 6:46

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.