• Join/Login
  • Business Software
  • Open Source Software
  • For Vendors
  • Blog
  • About
  • More
    • Articles
    • Create
    • SourceForge Podcast
    • Site Documentation
    • Subscribe to our Newsletter
    • Support Request
SourceForge logo
For Vendors Help Create Join Login
SourceForge logo
Business Software
Open Source Software
SourceForge Podcast
Resources
  • Articles
  • Case Studies
  • Blog
Menu
  • Help
  • Create
  • Join
  • Login
  • Home
  • Browse
  • FMSLogo
  • Bugs
FMSLogo

TONE plays a minimum frequency of 37 Hz

A Logo programming environment for Microsoft Windows

Brought to you by: david_costanzo
  • Summary
  • Files
  • Reviews
  • Support
  • Tickets ▾
    • Feature Requests
    • Bugs
    • Support Requests
  • Discussion
  • Code
Menu ▾ ▴
  • Create Ticket
  • View Stats

Group

  • v_6.06x
  • v_6.07.X
  • v_6.08.X
  • v_6.10.X
  • v_6.11.X
  • v_6.13.X
  • v_6.22.X
  • v_6.25.X
  • v_6.26.X
  • v_6.27.X
  • v_6.28.X
  • v_6.29.X

Searches

  • Changes
  • Closed Tickets
  • Open Tickets

Help

  • Formatting Help

#215 TONE plays a minimum frequency of 37 Hz

v_6.06x
closed-fixed
David Costanzo
Language Engine (245)
5
2024-07-04
2006-10-13
David Costanzo
No

TONE plays a tone of a given frequency for a given
duration. However, if the programmer gives TONE a
frequency below 37 Hz, TONE uses 37 Hz. Based on the
code, this looks deliberate (perhaps George was afraid
of TONE playing sounds outside the range of human
hearing), but I consider it a bug because it masks the
physics of how sound works. If you request TONE of 0,
then you shouldn't hear anything, because that's what a
0 Hz tone sounds like.

How Reproducible:
Every Time

Steps to Reproduce:
TONE 0 1000

What happens:
You hear a low-pitch for a second.

Expected Result:
FMSLogo pauses for a second and you hear nothing during
that time.

Discussion

  • David Costanzo

    David Costanzo - 2006-10-13
    • priority: 1 --> 5
    • summary: TONE plays a minimum frequence of 37 Hz --> TONE plays a minimum frequency of 37 Hz
    • status: open --> open-accepted
     
    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
  • David Costanzo

    David Costanzo - 2006-10-13

    Logged In: YES
    user_id=109252

    I think I understand the 37 Hz cut-off. It's a limitation
    of the Beep() function upon which TONE is implemented. From
    the MSDN description of Beep().

    dwFreq [in] The frequency of the sound, in hertz. This
    parameter must be in the range 37 through 32,767 (0x25
    through 0x7FFF).

     
    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
  • David Costanzo

    David Costanzo - 2024-07-04
    • status: open-accepted --> closed-fixed
     
    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
  • David Costanzo

    David Costanzo - 2024-07-04

    This is fixed by [r6072]. The fix will be available in FMSLogo 8.4.0. This fix necessitated changing SOUND to reject negative frequencies and durations (which it always should have done, since TONE does it).

    To fix a different bug, I had rewritten TONE to generate its own sound wave and call sndPlaySound instead of using Beep(). Once that work was done, the lower bound which Beep() imposed was no longer a problem.

    My hearing is not good enough to hear frequencies below 70 Hz. However, I expect that with good enough hearing, or good enough recording equipment, FMSLogo can now play tones below 37 Hz. Playing a tone of 0 Hz will interrupt any playing tone with silence.

     

    Related

    Commit: [r6072]

    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:

Log in to post a comment.

SourceForge
  • Create a Project
  • Open Source Software
  • Business Software
  • Top Downloaded Projects
Company
  • About
  • Team
  • SourceForge Headquarters
    1320 Columbia Street Suite 310
    San Diego, CA 92101
    +1 (858) 422-6466
Resources
  • Support
  • Site Documentation
  • Site Status
  • SourceForge Reviews
SourceForge logo
© 2026 Slashdot Media. All Rights Reserved.
Terms Privacy Opt Out Advertise
mdb logo