Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

I am not now, nor have I ever been, a member of the demigodic party. -- Dennis Ritchie


computers / comp.sys.apple2 / Re: IIgs sound from Applesoft

SubjectAuthor
* IIgs sound from ApplesoftMichael J. Mahon
`* IIgs sound from Applesoftduhas...@gmail.com
 `* IIgs sound from ApplesoftBrian Patrie
  `- IIgs sound from Applesoftduhas...@gmail.com

1
Re: IIgs sound from Applesoft

<vDydna9Gz9VNmq34nZ2dnZfqn_ednZ2d@giganews.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=6173&group=comp.sys.apple2#6173

  copy link   Newsgroups: comp.sys.apple2
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!69.80.99.26.MISMATCH!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 18 Oct 2023 16:29:03 +0000
User-Agent: NewsTap/5.5 (iPhone/iPod Touch)
Cancel-Lock: sha1:O309nFECNS/s0WOhB/SdHgufosY=
Newsgroups: comp.sys.apple2
Subject: Re: IIgs sound from Applesoft
Content-Type: text/plain; charset=UTF-8
Mime-Version: 1.0
Content-Transfer-Encoding: 8bit
From: mjmahon@aol.com (Michael J. Mahon)
References: <82b1e7e9-dd12-4738-95b5-cec0907b3e10n@googlegroups.com> <79a44b40-1554-4c7e-9d49-dc2fb53e7f97n@googlegroups.com> <52aeb4ec-4963-4214-bf83-06d34dc8b554n@googlegroups.com>
Message-ID: <vDydna9Gz9VNmq34nZ2dnZfqn_ednZ2d@giganews.com>
Date: Wed, 18 Oct 2023 16:29:04 +0000
Lines: 25
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-VDe/gFx9an3yhVusSROLpIjboG6izQA5+IRCi4z01qU2vzYdet9ZI+/fIh3E+huHEvXEnbIsJzfcq4D!25MxS/4NFKvUNigONdMhN0NbAPrFT3yAnER1qa2uyepN8ONPx3ZMPQxJa3r3t9Jal3bH5zZjA4Y=
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
 by: Michael J. Mahon - Wed, 18 Oct 2023 16:29 UTC

duhas...@gmail.com <duhast6377@gmail.com> wrote:
> On Saturday, October 14, 2023 at 10:54:12 AM UTC-4, fadden wrote:
>> On Friday, October 13, 2023 at 3:52:33 PM UTC-7, duhas...@g.com wrote:
>>> Is there a sanctioned way to play a digitized sound on the IIgs in
>>> Applesoft basic? I have a read a few ways of loading square waves of
>>> 256 bytes, but the sounds I want to play are substantially larger.
>> Purely from Applesoft could be tricky. Is your goal to be 100%
>> Applesoft, or just to do it without IIgs toolbox support?
>
> Purely from Applesoft I'm thinking. Bloading the sound file into memory
> and then setting up a transfer to the sound RAM. It seems possible, but
> just not explained clearly anywhere....

“Purely” is a non-starter, since PEEK and POKE can’t access sound
memory—there will *have* to be some machine code involved. So, the only
question is how much and how it’s loaded.

Where do you draw the line for *how* purely you feel you need it to be. ;-)

Are short sequences of machine code OK? How about a machine code library
of sound-related functions?

--
-michael - NadaNet 3.1 and AppleCrate II: http://michaeljmahon.com

Re: IIgs sound from Applesoft

<a63d3a34-1b61-4eaa-8137-9c9896afa4b4n@googlegroups.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=6174&group=comp.sys.apple2#6174

  copy link   Newsgroups: comp.sys.apple2
X-Received: by 2002:ac8:4703:0:b0:416:fd6d:7d63 with SMTP id f3-20020ac84703000000b00416fd6d7d63mr14269qtp.2.1697669037702;
Wed, 18 Oct 2023 15:43:57 -0700 (PDT)
X-Received: by 2002:a05:6870:2312:b0:1e5:7978:9ce4 with SMTP id
w18-20020a056870231200b001e579789ce4mr345652oao.11.1697669037328; Wed, 18 Oct
2023 15:43:57 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.apple2
Date: Wed, 18 Oct 2023 15:43:56 -0700 (PDT)
In-Reply-To: <vDydna9Gz9VNmq34nZ2dnZfqn_ednZ2d@giganews.com>
Injection-Info: google-groups.googlegroups.com; posting-host=24.44.48.62; posting-account=8HiZFgoAAABB_kJH861D-cdz-QeDMCep
NNTP-Posting-Host: 24.44.48.62
References: <82b1e7e9-dd12-4738-95b5-cec0907b3e10n@googlegroups.com>
<79a44b40-1554-4c7e-9d49-dc2fb53e7f97n@googlegroups.com> <52aeb4ec-4963-4214-bf83-06d34dc8b554n@googlegroups.com>
<vDydna9Gz9VNmq34nZ2dnZfqn_ednZ2d@giganews.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a63d3a34-1b61-4eaa-8137-9c9896afa4b4n@googlegroups.com>
Subject: Re: IIgs sound from Applesoft
From: duhast6377@gmail.com (duhas...@gmail.com)
Injection-Date: Wed, 18 Oct 2023 22:43:57 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2870
 by: duhas...@gmail.com - Wed, 18 Oct 2023 22:43 UTC

On Wednesday, October 18, 2023 at 12:29:17 PM UTC-4, Michael J. Mahon wrote:

> > Purely from Applesoft I'm thinking. Bloading the sound file into memory
> > and then setting up a transfer to the sound RAM. It seems possible, but
> > just not explained clearly anywhere....
> “Purely” is a non-starter, since PEEK and POKE can’t access sound
> memory—there will *have* to be some machine code involved. So, the only
> question is how much and how it’s loaded.
>
> Where do you draw the line for *how* purely you feel you need it to be. ;-)
>
>
> Are short sequences of machine code OK? How about a machine code library
> of sound-related functions?
>
> --
> -michael - NadaNet 3.1 and AppleCrate II: http://michaeljmahon.com

Purely? Apparently this guy can play some sound without using anything but peeks and pokes.

https://lateblt.tripod.com/appl2snd.htm

Looking at this, and Ampersound, 256 byte sound waves are loaded. What if I want to load, say an 8192 byte long wave form? Just change the for next loop and as long as the wave is padded with zeros to whatever weird page boundaries are needed it will work? Every example is a generated sine wave, if I download a digitized .WAV file of Curly going Nyuk, Nyuk, Nyuk, and strip the first few bytes of info, will that work?

I'm still trying to get through Sonix, but semi-tones and some other stuff is hanging me up at the moment.

Re: IIgs sound from Applesoft

<ugqjp6$6tgp$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=6178&group=comp.sys.apple2#6178

  copy link   Newsgroups: comp.sys.apple2
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bpatrie@bellsouth.spamisicky.net (Brian Patrie)
Newsgroups: comp.sys.apple2
Subject: Re: IIgs sound from Applesoft
Date: Thu, 19 Oct 2023 01:53:23 -0500
Organization: an elaborate system of piles and accidents
Lines: 11
Message-ID: <ugqjp6$6tgp$1@dont-email.me>
References: <82b1e7e9-dd12-4738-95b5-cec0907b3e10n@googlegroups.com>
<79a44b40-1554-4c7e-9d49-dc2fb53e7f97n@googlegroups.com>
<52aeb4ec-4963-4214-bf83-06d34dc8b554n@googlegroups.com>
<vDydna9Gz9VNmq34nZ2dnZfqn_ednZ2d@giganews.com>
<a63d3a34-1b61-4eaa-8137-9c9896afa4b4n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 19 Oct 2023 06:53:26 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d717531417d23deb83a5df71cb01068d";
logging-data="226841"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX183Ox6/dCFjeDY/EQ9LpJtrR+IY7X2wj3U="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:T+slPFVa6VWNWV6J9nSDDwLSpPQ=
In-Reply-To: <a63d3a34-1b61-4eaa-8137-9c9896afa4b4n@googlegroups.com>
Content-Language: en-GB
 by: Brian Patrie - Thu, 19 Oct 2023 06:53 UTC

duhas...@gmail.com wrote:
> if I download a digitized .WAV file of Curly going Nyuk, Nyuk, Nyuk, and
> strip the first few bytes of info, will that work?

MS .wav files are RIFF (Resource Interchange File Format)--a structured
resource format similar in concept to a Macintosh or GS/OS resource fork
(but without being a forked file). They can contain all manner of
metadata. So getting the waveform data out of them is not as simple as
truncating a header off of them. You have to find at least the first
WAVE chunk (there can be more than one), and its associated geometry
metadata (sample width, sample rate, etc).

Re: IIgs sound from Applesoft

<b6df8a79-b5dc-47fe-8230-72f83eb12f59n@googlegroups.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=6183&group=comp.sys.apple2#6183

  copy link   Newsgroups: comp.sys.apple2
X-Received: by 2002:ac8:6992:0:b0:41c:b99d:5254 with SMTP id o18-20020ac86992000000b0041cb99d5254mr4835qtq.10.1697761329765;
Thu, 19 Oct 2023 17:22:09 -0700 (PDT)
X-Received: by 2002:a05:6870:6587:b0:1dd:1837:c704 with SMTP id
fp7-20020a056870658700b001dd1837c704mr186505oab.2.1697761329544; Thu, 19 Oct
2023 17:22:09 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.apple2
Date: Thu, 19 Oct 2023 17:22:09 -0700 (PDT)
In-Reply-To: <ugqjp6$6tgp$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=24.44.48.62; posting-account=8HiZFgoAAABB_kJH861D-cdz-QeDMCep
NNTP-Posting-Host: 24.44.48.62
References: <82b1e7e9-dd12-4738-95b5-cec0907b3e10n@googlegroups.com>
<79a44b40-1554-4c7e-9d49-dc2fb53e7f97n@googlegroups.com> <52aeb4ec-4963-4214-bf83-06d34dc8b554n@googlegroups.com>
<vDydna9Gz9VNmq34nZ2dnZfqn_ednZ2d@giganews.com> <a63d3a34-1b61-4eaa-8137-9c9896afa4b4n@googlegroups.com>
<ugqjp6$6tgp$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <b6df8a79-b5dc-47fe-8230-72f83eb12f59n@googlegroups.com>
Subject: Re: IIgs sound from Applesoft
From: duhast6377@gmail.com (duhas...@gmail.com)
Injection-Date: Fri, 20 Oct 2023 00:22:09 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2493
 by: duhas...@gmail.com - Fri, 20 Oct 2023 00:22 UTC

On Thursday, October 19, 2023 at 2:53:29 AM UTC-4, Brian Patrie wrote:
> duhas...@gmail.com wrote:
> > if I download a digitized .WAV file of Curly going Nyuk, Nyuk, Nyuk, and
> > strip the first few bytes of info, will that work?
> MS .wav files are RIFF (Resource Interchange File Format)--a structured
> resource format similar in concept to a Macintosh or GS/OS resource fork
> (but without being a forked file). They can contain all manner of
> metadata. So getting the waveform data out of them is not as simple as
> truncating a header off of them. You have to find at least the first
> WAVE chunk (there can be more than one), and its associated geometry
> metadata (sample width, sample rate, etc).

Has the format changed over the years? I remember 25 years ago in college downloading .WAV and loading them up in Audiozap or similiar and cutting a little off the front and it playing just fine. I didn't examine them on a byte level, but regardless, if not loading a .WAV, then a raw sound file over 256 bytes long....

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor