1. musical notes

On the Atari ST way back in 1980s in GFA BASIC as I recall there was
something called "sound()" or something like that.  And it took four
arguments: pitch, volume, duration, quality.  The Atari ST had a special
chip for sound that operated independently of the main chip.  It was easy
to make original "music" on the Atari ST.

  With DOS32 Euphoria we have "sound()" but with only pitch.
  With Win32 Euphoria, with win32lib.ew, we have playSound(), but it plays
a WAV file.

  Is there any way with Win32 Euphoria to do what I used to do on the
Atari ST?  That is:  sound(pitch,volume,duration,quality)

  One way might be to have a bunch of WAV files, each representing a
musical note and a specific instrument.  They could be named by instrument
and frequency.  For example "piano320.wav".  Each one would be the
duration of the shortest note in music.

  Where can I gitta holduv these wav files?  Or is there a better idea?
   

       Jerry Story

new topic     » topic index » view message » categorize

2. Re: musical notes

<html><div style='background-color:'><DIV>
<P><BR>&nbsp; On the Atari ST way back in 1980s in GFA BASIC as I recall there
was<BR>something called "sound()" or something like that.&nbsp; And it took
four<BR>arguments: pitch, volume, duration, quality.&nbsp; The Atari ST had a
special<BR>chip for sound that operated independently of the main chip.&nbsp; It
was easy<BR>to make original "music" on the Atari ST.<BR><BR>&nbsp; With DOS32
Euphoria we have "sound()" but with only pitch.<BR>&nbsp; With Win32 Euphoria,
with win32lib.ew, we have playSound(), but it plays<BR>a WAV file.<BR><BR>&nbsp;
Is there any way with Win32 Euphoria to do what I used to do on the<BR>Atari
ST?&nbsp; That is:&nbsp; sound(pitch,volume,duration,quality)<BR><BR>&nbsp; One
way might be to have a bunch of WAV files, each representing a<BR>musical note
and a specific instrument.&nbsp; They could be named by instrument<BR>and
frequency.&nbsp; For example "piano320.wav".&nbsp; Each one would be
the<BR>duration of the shortest note in music.<BR><BR>&nbsp; Where can I gitta
holduv these wav files?&nbsp; Or is there a better
idea?<BR><BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Jerry Story</P>

new topic     » goto parent     » topic index » view message » categorize

3. Re: musical notes

This is a multi-part message in MIME format.

------=_NextPart_000_76a_6286_1fe0

------=_NextPart_000_76a_6286_1fe0

>From list-errors.1700008810.0.1722554743.007.15118.0 at boing.topica.com Fri,
>26 Oct 2001 21:09:47 -0700
From: engale2000 at hotmail.com
Subject: Re: musical notes
X-Topica-Id: <1004155780.inmta002.13935.1557396>
  by inmta008.topica.com with SMTP; 27 Oct 2001 04:08:53 -0000
	 Fri, 26 Oct 2001 21:08:18 -0700
	Sat, 27 Oct 2001 04:08:18 GMT
X-Originating-IP: [63.30.152.164]
Mime-Version: 1.0
Content-Type: text/html
X-OriginalArrivalTime: 27 Oct 2001 04:08:18.0389 (UTC)
FILETIME=[0242C050:01C15E9D]

<html>

<div style='background-color:'><DIV>
<P><BR>&nbsp; On the Atari ST way back in 1980s in GFA BASIC as I recall there
was<BR>something called "sound()" or something like that.&nbsp; And it took
four<BR>arguments: pitch, volume, duration, quality.&nbsp; The Atari ST had a
special<BR>chip for sound that operated independently of the main chip.&nbsp; It
was easy<BR>to make original "music" on the Atari ST.<BR><BR>&nbsp; With DOS32
Euphoria we have "sound()" but with only pitch.<BR>&nbsp; With Win32 Euphoria,
with win32lib.ew, we have playSound(), but it plays<BR>a WAV file.<BR><BR>&nbsp;
Is there any way with Win32 Euphoria to do what I used to do on the<BR>Atari
ST?&nbsp; That is:&nbsp; sound(pitch,volume,duration,quality)<BR><BR>&nbsp; One
way might be to have a bunch of WAV files, each representing a<BR>musical note
and a specific instrument.&nbsp; They could be named by instrument<BR>and
frequency.&nbsp; For example "piano320.wav".&nbsp; Each one would be
the<BR>duration of the shortest note in music.<BR><BR>&!
nbsp; Where can I gitta holduv these wav files?&nbsp; Or is there a better
idea?<BR><BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Jerry Story</P>
<P>Have fun and let me see what you have done when you have
finished.</P></DIV></div><br clear=all><hr>Get your FREE download of MSN Explorer
at <a
href='http://go.msn.com/bql/hmtag_itl_EN.asp'>http://explorer.msn.com</a><br>





------=_NextPart_000_76a_6286_1fe0--

new topic     » goto parent     » topic index » view message » categorize

4. Re: musical notes

Could you please avoid sending html email? Thanks,

Kat


On 27 Oct 2001, at 0:17, engale2000 at hotmail.com wrote:


Sorry the first link didn't work but you can get FrutyLoopS from 
http://www.fruityloops.com/English/frames.htmlto make your wav files.
Get your FREE download of MSN Explorer at http://explorer.msn.com



new topic     » goto parent     » topic index » view message » categorize

5. Re: musical notes

This is a multi-part message in MIME format.

------=_NextPart_000_1004189161479
	boundary="----=_NextPart_001_1004189161479"


------=_NextPart_001_1004189161479
	charset="iso-8859-1"

new topic     » goto parent     » topic index » view message » categorize

6. Re: musical notes

Jerry Story wrote:

>  On the Atari ST way back in 1980s in GFA BASIC
> as I recall there was something called "sound()"
> or something like that.

For the most part, that's been replaced with MIDI. Andrew Greenwood has
written a MIDI library that runs under Win32Lib, and a MPU-401 library that
runs under DOS. An MPU-401 is a 'generic' type of device for sending
information to an external MIDI device, but most SoundBlasters will
interpret this for you if you don't have an external MIDI device.

I've written a wrapper around Anderew's MIDI library that simplifies working
with it.

If you are interested in working with .WAV files, Pete Eberlein wrote a MOD
tracker for DOS in Euphoria. This can play .WAV file samples in real time,
essentially turning your computer into a 4 note digital sampler.

I'd take the MIDI route myself. It's a lot simpler to use than real-time
mixing, and if you have a decent soundcard, you can get excellent sound
quality.

-- David Cuny

new topic     » goto parent     » topic index » view message » categorize

7. Re: musical notes

Is there any way with Win32 Euphoria to do what I used to do on the
>Atari ST?  That is:  sound(pitch,volume,duration,quality)
>

Do you know what kind of waveforms the atari st soundchip output? Seems 
likely that it had square and triangle (sawtooth) shaped waveforms at least. 
A square waveform channel could be simulated by playing a square wave sample 
while altering its frequency, volume and length. Same goes for any other 
type of waveform.

new topic     » goto parent     » topic index » view message » categorize

8. Re: musical notes

On Sun, 28 Oct 2001 stabmaster_ at HOTMAIL.COM wrote:

> Is there any way with Win32 Euphoria to do what I used to do on the
> >Atari ST?  That is:  sound(pitch,volume,duration,quality)
> 
> Do you know what kind of waveforms the atari st soundchip output? Seems 
> likely that it had square and triangle (sawtooth) shaped waveforms at least. 
> A square waveform channel could be simulated by playing a square wave sample 
> while altering its frequency, volume and length. Same goes for any other 
> type of waveform.

  If my memory is correct, it had a whole bunch of waveforms, depending on
the 'quality' parameter.  These included squares and triangles.

> A square waveform channel could be simulated by playing a square wave sample 
> while altering its frequency, volume and length. Same goes for any other 
> type of waveform.

  Would it be possible to computer-generate a bunch of numbers and make a
WAV file out of them that would be any pitch and any quality of sound?
If so, then the program could generate all the notes in all the octaves,
for several different 'instruments'.  Once this is done, then I do the
sound(pitch,volume,duration,quality).

       Jerry Story

new topic     » goto parent     » topic index » view message » categorize

9. Re: musical notes

Of course it is possible. There are many programs that do so. One of the
best is the freeware CSOUND, that can be downloaded from the net.
----- Original Message -----
From: <jstory at freenet.edmonton.ab.ca>
To: "EUforum" <EUforum at topica.com>
Subject: Re: musical notes


>
>
> On Sun, 28 Oct 2001 stabmaster_ at HOTMAIL.COM wrote:
>
> > Is there any way with Win32 Euphoria to do what I used to do on the
> > >Atari ST?  That is:  sound(pitch,volume,duration,quality)
> >
> > Do you know what kind of waveforms the atari st soundchip output? Seems
> > likely that it had square and triangle (sawtooth) shaped waveforms at
least.
> > A square waveform channel could be simulated by playing a square wave
sample
> > while altering its frequency, volume and length. Same goes for any other
> > type of waveform.
>
>   If my memory is correct, it had a whole bunch of waveforms, depending on
> the 'quality' parameter.  These included squares and triangles.
>
> > A square waveform channel could be simulated by playing a square wave
sample
> > while altering its frequency, volume and length. Same goes for any other
> > type of waveform.
>
>   Would it be possible to computer-generate a bunch of numbers and make a
> WAV file out of them that would be any pitch and any quality of sound?
> If so, then the program could generate all the notes in all the octaves,
> for several different 'instruments'.  Once this is done, then I do the
> sound(pitch,volume,duration,quality).
>
>        Jerry Story
>
>
>

new topic     » goto parent     » topic index » view message » categorize

10. Re: musical notes

> Sorry the first link didn't work but you can get FrutyLoopS from
http://www.fruityloops.com/English/frames.html to make > > your wav files.

You may also try Stomper - http://www.master-zap.com/stomper/

    Martin

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu