[comp.sys.cbm] Basic Music for c64

hicksm@astro.as.arizona.edu (Michael Hicks) (12/03/90)

	

	Howdy,  CBM fans


	I was able to find a old and cheap '64 via the net in order
	to fiddle around with computer generated music.   This 
	morning I implimented my first experiment in deterministic,
	yet chaotic note generation.   Here it is:

		
		10 S=54272: FOR SW = S TO S+24: POKE SW,0: NEXT SW
		20 POKE S+24,15
		30 POKE S+2,255
		40 POKE S+3,0
		50 POKE S+5,9
		60 POKE S+6,0
		70 N11=1.03: N21=0.96: DR1=0.50
		80 N12=24+6*SIN(N11)
		90 N22=174+70*COS(N21)
		100 DR2=375+125*SIN(DR1)
		110 N11=N12: N21=N22: DR1=DR2
		120 POKE S+1,N12: POKE S,N22
		130 POKE S+4,17
		140 FOR Z=1 TO DR2: NEXT Z
		150 POKE S+4,64
		160 FOR T=1 TO 5: NEXT T
		170 GOTO 80

	
	If you wish to run this program,  feel free to manipulate
	the initial conditions found in line 70,  as well as the
	values of the constants and the coefficients for the 
	equations in lines 80, 90, and 100.

	I invite you to take a listen.   

					-Michael Hicks

Michelle@cup.portal.com (TRACY M WIRS) (12/04/90)

Hi..... I intend to give a listen to that as soon as 
I'm offline......  but a suggestion for you:

See if you can find an old copy of COMPUTE!'s Music book/disk 
packages for the C64/128.  One of them is what I have:  THE 
COMPLETE 64, which has the UNenhanced SID program in it as well as
a prg. for turning your 
SIDs into BASIC, I believe (I'll look it up again and make sure 'bout that)
This way is probably easier to do than trying to do it in BASIC on 
your own.

Good luck & Have fun!

Michelle@cup.portal.com   <Internet>
sun!cup.portal.com!Michelle  <UUCP>

(ignore the next line; it's my terminal prg.)
1

kentsu@microsoft.UUCP (Kent SULLIVAN) (12/12/90)

In article <36509@cup.portal.com>, Michelle@cup.portal.com (TRACY M WIRS) writes:
> Hi..... I intend to give a listen to that as soon as 
> I'm offline......  but a suggestion for you:
> 
> See if you can find an old copy of COMPUTE!'s Music book/disk 
> packages for the C64/128.  One of them is what I have:  THE 
> COMPLETE 64, which has the UNenhanced SID program in it as well as
> a prg. for turning your 
> SIDs into BASIC, I believe (I'll look it up again and make sure 'bout that)
> This way is probably easier to do than trying to do it in BASIC on 
> your own.
> 
> Good luck & Have fun!
> 
> Michelle@cup.portal.com   <Internet>
> sun!cup.portal.com!Michelle  <UUCP>

The current Sidplayer package is "Compute!'s Music System for the Commodore 128
and 64: The Enhanced Sidplayer", by Craig Chamberlain.  Retail price for this
book/disk combo is $24.95.

The original Sidplayer was published in "All About the Commodore 64, Vol. 2",
also by Craig Chamberlain.  This book is now out of print.

Both Sidplayer packages come with Sidplayer "drivers" which allow you to play
Sidplayer tunes in your BASIC programs.

You might also want to check out a program that Chris Newman wrote that was
published in RUN (October '90, I think) called SID BASIC.  This is a wedge to
C-64 BASIC which adds 5 of the 6 C-128 BASIC 7.0 music commands (all but SOUND)
to the C-64.