[Gambas-user] R: morse code sound ?
Fabien Bodard
gambas.fr at ...626...
Sat Feb 8 10:52:34 CET 2014
At the days of GW-BASIC they were not any system shared libs . And the
access to the hardware is now behind different layers and quite
difficult to manage. These functionnality must not be part of the core
language. Even C doesn't have this.
But Gambas have tools to do that ... and SDL sound is sure not the
better. You must use gb.media that have tons of modules, or gb.openal
for more advanced use.
2014-02-08 9:39 GMT+01:00 Caveat <Gambas at ...1950...>:
> I have to say I was a little surprised to find no simple play(note,
> duration) or BEEP command built-in.
>
> Could we add this to the wish-list, Benoit? :-)
>
> Kind regards,
> Caveat
>
> On 08/02/14 08:55, Randall Morgan wrote:
>> I got 5F here. Looking forward to a possible 30F next week.
>>
>> True the old BASIC machines used the internal speakers, and those are hard
>> to find. But almost every *nix box has a sound system. And we no-longer
>> need to count clock cycles, we can use the the built-in timing routines or
>> delay routines. The Sound and Play function where blocking functions. No
>> need for anything fancy. But I do think adding a simple Play freq.,
>> duration function would be a great addition to the language and would make
>> it more complete. For anything more elaborate there is Sdl and such.
>>
>>
>>
>>
>> On Fri, Feb 7, 2014 at 10:07 PM, Bruce <bbruen at ...2308...> wrote:
>>
>>> On Fri, 2014-02-07 at 18:15 -0800, Randall Morgan wrote:
>>>> It seems like playing a simple tone is something that should be a
>>> primitive
>>>> in the Gambas Language... A simple Play(frequency, duration) type of
>>>> function as was found in many of the early BASIC languages. Am I the only
>>>> one who think like this?
>>>>
>>> Ah yes! But those magical sounds were made by dividing the clock signal
>>> and sending the resultant wave directly out to the onboard speaker port.
>>> I dont think any of the boxes here have a onboard speaker any more?
>>>
>>> "Leisure Suit Larry" anyone?
>>>
>>> cheers
>>> Bruce
>>>
>>> p.s. It's cooled down a bit, only 42C today
>>>
>>>
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Managing the Performance of Cloud-Based Applications
>>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>>> Read the Whitepaper.
>>>
>>> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Gambas-user mailing list
>>> Gambas-user at lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>>
>>
>>
>
>
> ------------------------------------------------------------------------------
> Managing the Performance of Cloud-Based Applications
> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
> Read the Whitepaper.
> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
--
Fabien Bodard
More information about the User
mailing list