Play Tone

Description

This command plays a tone derived from the parameter. The tone is played indefinitely until the rMP3 receives either the Play Tone command again with no parameter, or the Stop command. If a file is being played when the Play Tone command is received, playback will resume if the Play Tone command is received with no parameter.

Note: Tones are generated using the VS10xx decoder's “Sine Test”. The range and quantization of frequencies are pretty limited. For reference, here is an entire table of frequencies.


Format

PC T [tone]


Parameters

  • tone is a value between 0 and 255.

    • To calculate the tone value:

      • Tone Frequency = Base Frequency * d/128

        • This means that there can be more than one combination of Base Frequency and d for a Tone Frequency.

      • tone = Base Frequency Index + d

      • d is the divider value (1 → 31), which will give a range of divider fractions (1/128 → 31/128). A divider value of 0 will produce no sound.

      • Base Frequency Index Table:

        Base Frequency Index
        Base Frequency Hexadecimal Decimal
        44100 Hz 0x00 0
        48000 Hz 0x20 32
        32000 Hz 0x40 64
        22050 Hz 0x60 96
        24000 Hz 0x80 128
        16000 Hz 0xA0 160
        11025 Hz 0xC0 192
        12000 Hz 0xE0 224
      • Example:

        • Base Frequency = 48000 Hz, therefore Base Frequency Index = 32.

        • d = 16.

        • Tone Frequency = 48000 * 16/128 = 6000 Hz.

        • tone = 32 + 16 = 48

          • PC T 48


Response Format

NULL


Example

PC T 48

  • Bookmark at
  • Bookmark "Play Tone" at del.icio.us
  • Bookmark "Play Tone" at Digg
  • Bookmark "Play Tone" at Google
  • Bookmark "Play Tone" at StumbleUpon
  • Bookmark "Play Tone" at Technorati
  • Bookmark "Play Tone" at Facebook
  • Bookmark "Play Tone" at Twitter
  • Bookmark "Play Tone" at Slashdot
  • Bookmark "Play Tone" at Yahoo! Bookmarks
  • Bookmark "Play Tone" at Furl
  • Bookmark "Play Tone" at Reddit
  • Bookmark "Play Tone" at Ask
  • Bookmark "Play Tone" at BlinkList
  • Bookmark "Play Tone" at blogmarks
  • Bookmark "Play Tone" at Ma.gnolia
  • Bookmark "Play Tone" at Netscape
  • Bookmark "Play Tone" at ppnow
  • Bookmark "Play Tone" at Rojo
  • Bookmark "Play Tone" at Shadows
  • Bookmark "Play Tone" at Simpy
  • Bookmark "Play Tone" at Socializer
  • Bookmark "Play Tone" at Spurl
  • Bookmark "Play Tone" at Tailrank
  • Bookmark "Play Tone" at Live Bookmarks
  • Bookmark "Play Tone" at Wists
  • Bookmark "Play Tone" at Yahoo! Myweb
  • Bookmark "Play Tone" at BobrDobr
  • Bookmark "Play Tone" at Memori
  • Bookmark "Play Tone" at Faves
  • Bookmark "Play Tone" at Favorites
  • Bookmark "Play Tone" at Newsvine
  • Bookmark "Play Tone" at myAOL
  • Bookmark "Play Tone" at Fark
  • Bookmark "Play Tone" at RawSugar
  • Bookmark "Play Tone" at LinkaGoGo
  • Bookmark "Play Tone" at Mister Wong
  • Bookmark "Play Tone" at Wink
  • Bookmark "Play Tone" at BackFlip
  • Bookmark "Play Tone" at Diigo
  • Bookmark "Play Tone" at Segnalo
  • Bookmark "Play Tone" at Netvouz
  • Bookmark "Play Tone" at DropJack
  • Bookmark "Play Tone" at Feed Me Links
  • Bookmark "Play Tone" at funP
  • Bookmark "Play Tone" at HEMiDEMi
rmp3/documentation/command/play_tone.txt · Last modified: 2009/11/12 14:13 by bhagman
Valid CSS Recent changes RSS feed Valid XHTML 1.0