Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.apple2.programmer > #481

Re: Apple II 8bit sound

From Daniel Kruszyna <dan@krue.net>
Newsgroups comp.sys.apple2.programmer
Subject Re: Apple II 8bit sound
Date 2012-09-08 18:15 +0000
Organization A noiseless patient Spider
Message-ID <k2g200$m2m$1@dont-email.me> (permalink)
References (2 earlier) <dce2bee4-cac5-474f-b88e-de3db667f8eb@googlegroups.com> <k2a19u$be1$1@dont-email.me> <097c0a3c-3628-4165-b474-7ff60c7982aa@googlegroups.com> <k2aodg$tsv$1@dont-email.me> <046c20ef-9fb3-4ddb-a0b8-fa52757deb25@googlegroups.com>

Show all headers | View raw


aiiadict@gmail.com wrote:
> On Thursday, September 6, 2012 11:01:22 AM UTC-7, Daniel Kruszyna wrote: 
>> The notes you mention are also a triplet -- that's what the lines
>> 
>> labeled '3' mean. 
> 
> Could you show me how to enter that into Electric Duet?

How are you entering durations right now? The "official" way is to use
the constants '1', '2.', '2', '4.', '4', and so on. These mimic the way
sheet music is notated. If you press 'M' followed by 'L' at the main
menu, you'll find that these constants are actually stored as 8bit
delay values.

If you enter a value that doesn't match any of the offical note
durations, then the editor will use that value directly for the
duration. So, to make a triplet:

1. Find the total duration that the triplet should take.
   (Use the note duration table.)
2. Divide by 3 -- one of the notes may be a little longer than the
   others
3. Change the durations directly to these values. You'll have to cross
   your fingers that the values you calculate won't be detected as one of
   the official constants. If they are, then it's still possible to
   change the song data directly outside of the editor.

I don't know if this behavior in the editor is intentional or not. I
tried searching for some type of escape key which would allow you to
enter duration values even if they matched one of the offical constants,
but could not find one.

> I'm going to do all the music.  Already did the graphics :-)
> 
> can anybody offer tips on:
> 
> http://www.mariopiano.com/mario-sheet-music-flagpole-fanfare.html


Do you mean the glissando?
You could enter all of the white notes in the glissando with very short
durations. That's how it would be played on a piano. However, the actual
game probably uses a continuous tone (correct me if I'm wrong -- I
haven't played lately).

Electric Duet can't play a continuous glissando, but it's easy to code.
Keep a timer loop and toggle the speaker every time the timer expires.
Additionally, decrement the reset value of the timer each loop to make
the frequency increase with time.

-- Daniel

Back to comp.sys.apple2.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Apple II 8bit sound aiiadict@gmail.com - 2012-08-20 14:12 -0700
  Re: Apple II 8bit sound D Finnigan <dog_cow@macgui.com> - 2012-08-20 22:13 +0000
    Re: Apple II 8bit sound aiiadict@gmail.com - 2012-08-20 15:24 -0700
  Re: Apple II 8bit sound Michael J. Mahon <mjmahon@aol.com> - 2012-08-20 22:06 -0500
    Re: Apple II 8bit sound aiiadict@gmail.com - 2012-09-05 13:02 -0700
      Re: Apple II 8bit sound Antoine Vignau <antoine.vignau@laposte.net> - 2012-09-05 13:22 -0700
        Re: Apple II 8bit sound aiiadict@gmail.com - 2012-09-10 16:51 -0700
      Re: Apple II 8bit sound Daniel Kruszyna <dan@krue.net> - 2012-09-06 11:26 +0000
        Re: Apple II 8bit sound aiiadict@gmail.com - 2012-09-06 08:53 -0700
          Re: Apple II 8bit sound D Finnigan <dog_cow@macgui.com> - 2012-09-06 17:10 +0000
          Re: Apple II 8bit sound BLuRry <brendan.robert@gmail.com> - 2012-09-06 10:13 -0700
          Re: Apple II 8bit sound Daniel Kruszyna <dan@krue.net> - 2012-09-06 18:01 +0000
            Re: Apple II 8bit sound D Finnigan <dog_cow@macgui.com> - 2012-09-06 18:32 +0000
            Re: Apple II 8bit sound aiiadict@gmail.com - 2012-09-06 11:44 -0700
              Re: Apple II 8bit sound BLuRry <brendan.robert@gmail.com> - 2012-09-06 20:44 -0700
              Re: Apple II 8bit sound Daniel Kruszyna <dan@krue.net> - 2012-09-08 18:15 +0000
                Re: Apple II 8bit sound aiiadict@gmail.com - 2012-09-08 11:47 -0700
  Re: Apple II 8bit sound Antoine Vignau <antoine.vignau@laposte.net> - 2012-08-21 01:09 -0700
    Re: Apple II 8bit sound Dagen Brock <DagenBrock@gmail.com> - 2012-08-21 14:02 -0700
      Re: Apple II 8bit sound BLuRry <brendan.robert@gmail.com> - 2012-08-21 14:41 -0700
      Re: Apple II 8bit sound Daniel Kruszyna <dan@krue.net> - 2012-08-21 23:11 +0000
        Re: Apple II 8bit sound aiiadict@gmail.com - 2012-09-04 14:06 -0700
      Re: Apple II 8bit sound Antoine Vignau <antoine.vignau@laposte.net> - 2012-08-21 14:26 -0700
        Re: Apple II 8bit sound aiiadict@gmail.com - 2012-08-22 10:01 -0700
          Re: Apple II 8bit sound aiiadict@gmail.com - 2012-08-23 08:35 -0700
            Re: Apple II 8bit sound aiiadict@gmail.com - 2012-09-04 12:05 -0700
              Re: Apple II 8bit sound Daniel Kruszyna <dan@krue.net> - 2012-09-04 19:49 +0000
                Re: Apple II 8bit sound aiiadict@gmail.com - 2012-09-06 10:38 -0700
                Re: Apple II 8bit sound aiiadict@gmail.com - 2012-09-08 09:53 -0700
  Re: Apple II 8bit sound aiiadict@gmail.com - 2012-09-16 11:40 -0700

csiph-web