BBC BASIC - Create a 2 tone warble sound at 200hz base frequency..
- User
BBC BASIC - Create a 2 tone warble sound at 200hz base frequency..
- Assistant
In BBC BASIC, you can create sounds using the
SOUNDcommand. To create a 2 tone warble sound, you will need to rapidly switch between two frequencies that are both based around the 200Hz mark. The difference between the two frequencies will determine the warble rate.Here's an example of how you can do this:
10 REM Set the volume and channel (0 is a good default for one voice) 20 VOLUME 8 30 CH = 0 40 REM Define the base frequency and warble amount 50 BASE_FREQ = 200 60 WARBLE_AMOUNT = 20 70 REM Define the duration of each tone in centiseconds (1/100th of a second) 80 DURATION = 5 90 REM Start an infinite loop to continuously play the sound 100 WHILE TRUE 110 SOUND CH, -15, BASE_FREQ, DURATION 120 SOUND CH, -15, BASE_FREQ + WARBLE_AMOUNT, DURATION 130 WEND
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.