Reference.RobotPlayFile History

Hide minor edits - Show changes to markup

May 15, 2013, at 09:33 AM by Scott Fitzgerald -
Changed lines 9-10 from:

Unlike Robot.playMelody() and Robot.playBeep(), playFile() does not halt other processes while playing.

to:

Unlike Robot.playMelody() and Robot.playBeep(), playFile() does not halt other processes while playing. However, you cannot load new images on the LCD screen when playFile() is in use.

May 03, 2013, at 11:20 AM by Xun Yang -
Changed lines 1-2 from:
to:
April 14, 2013, at 12:49 PM by Scott Fitzgerald -
Changed lines 1-2 from:

playFile(filename)

to:

Robot?

playFile()

Changed lines 7-8 from:

Play a .sqm music file stored in the SD card.

to:

Play a .sqm music file stored on a SD card. Robot.beginSpeaker() and Robot.beginSD() are both required in setup().

Unlike Robot.playMelody() and Robot.playBeep(), playFile() does not halt other processes while playing.

Valid files for playback are generated/converted by the sound library Squawk. See the library README for details on how to create your own music.

Syntax

Robot.playFile(filename)

Added line 29:
Added line 36:
Changed line 38 from:
  //do other stuff here, the music does not pause the programme.
to:
  //do other stuff here
Deleted lines 41-47:

Note

Robot.beginSpeaker() and Robot.beginSD() is needed for Robot.playFile.

The programme is NOT paused when the melody is being played. You can do other stuff with the music on.

Music files can be used by the robot are generated/converted by Squawk, which is our sound playing library. See their description if you want to create your own music: https://github.com/stg/Squawk

April 11, 2013, at 09:12 PM by Xun Yang -
Added line 22:
  Robot.beginSD();//Initialize the sd card
Changed lines 31-32 from:

Robot.beginSpeaker() is needed for Robot.playMelody.

to:

Robot.beginSpeaker() and Robot.beginSD() is needed for Robot.playFile.

April 11, 2013, at 09:10 PM by Xun Yang -
Changed lines 34-37 from:

Music files can be used by the robot are generated/converted by Squawk, which is our sound playing library. See their description if you want to create your own music:

https://github.com/stg/Squawk

to:

Music files can be used by the robot are generated/converted by Squawk, which is our sound playing library. See their description if you want to create your own music: https://github.com/stg/Squawk

April 11, 2013, at 09:09 PM by Xun Yang -
Changed lines 34-35 from:

If you want to make your own music, check out the description of library we uses for playing melody: https://github.com/stg/Squawk

to:

Music files can be used by the robot are generated/converted by Squawk, which is our sound playing library. See their description if you want to create your own music:

https://github.com/stg/Squawk

April 11, 2013, at 08:16 PM by Xun Yang -
Changed lines 30-31 from:

Robot.readySpeaker() is needed for Robot.playMelody.

to:

Robot.beginSpeaker() is needed for Robot.playMelody.

Changed lines 34-35 from:

If you want to make your own music, check out the description of library we used for playing melody: https://github.com/stg/Squawk

to:

If you want to make your own music, check out the description of library we uses for playing melody: https://github.com/stg/Squawk

April 11, 2013, at 08:12 PM by Xun Yang -
Added lines 34-35:

If you want to make your own music, check out the description of library we used for playing melody: https://github.com/stg/Squawk

Changed line 40 from:
to:
April 11, 2013, at 08:10 PM by Xun Yang -
Added lines 1-38:

Share