Comments on: One-Line C64 BASIC Music https://nickm.com/post/2010/07/one-line-c64-basic-music/ Nick Montfort Mon, 02 Dec 2024 23:26:16 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: World of Commodore – Best Recipes Ever https://nickm.com/post/2010/07/one-line-c64-basic-music/comment-page-1/#comment-988084 Mon, 02 Dec 2024 23:26:16 +0000 http://nickm.com/post/?p=996#comment-988084 […] develop your own software. Passing this code did not generate any music though and failed. Checkout Nickm.com who discusses this topic […]

]]>
By: Commodore 64 Generative Sound Art – Simon Hutchinson https://nickm.com/post/2010/07/one-line-c64-basic-music/comment-page-1/#comment-950544 Fri, 27 Aug 2021 16:40:17 +0000 http://nickm.com/post/?p=996#comment-950544 […] More on the program/piece […]

]]>
By: Nick Montfort https://nickm.com/post/2010/07/one-line-c64-basic-music/comment-page-1/#comment-887955 Sun, 10 Mar 2019 03:45:00 +0000 http://nickm.com/post/?p=996#comment-887955 In reply to Nick Montfort.

I’ve also input the program and it works … I wish I could help, but I’m not sure where the syntax error could be coming from?

]]>
By: Nick Montfort https://nickm.com/post/2010/07/one-line-c64-basic-music/comment-page-1/#comment-887952 Sun, 10 Mar 2019 03:40:34 +0000 http://nickm.com/post/?p=996#comment-887952 There is no ‘\’ in the program. It’s a problem with presenting the program in markdown. You should omit ‘\’ but you need the asterisks to multiply rnd(1) by 25 and by 256.

]]>
By: Christian https://nickm.com/post/2010/07/one-line-c64-basic-music/comment-page-1/#comment-887945 Sun, 10 Mar 2019 03:12:41 +0000 http://nickm.com/post/?p=996#comment-887945 Trying to run this on my physical 64C but there is no ‘\’ on the keyboard and when I type the 10 poke 54272+rnd(1)25,rnd(1)256 : goto 10 line in and run it, I get a syntax error.

Can you elaborate more on this example?

]]>
By: Nick Montfort https://nickm.com/post/2010/07/one-line-c64-basic-music/comment-page-1/#comment-866330 Fri, 13 Apr 2018 04:52:47 +0000 http://nickm.com/post/?p=996#comment-866330 Very nice! (I changed the code to incorporate the fix you sent in a later comment.) This is a great visual + sound one-liner, with all the elements of a demo in a single BASIC line.

]]>
By: Dave https://nickm.com/post/2010/07/one-line-c64-basic-music/comment-page-1/#comment-866322 Fri, 13 Apr 2018 03:53:04 +0000 http://nickm.com/post/?p=996#comment-866322 1pO54296,15:pO54272+rN(1)*7,rN(1)*256:?cH(98.5+rN(1));:gO1

A little longer but incorporates the one line screen art as well and only uses one voice.

]]>
By: Dan Laskowski https://nickm.com/post/2010/07/one-line-c64-basic-music/comment-page-1/#comment-9515 Thu, 17 Mar 2011 17:22:37 +0000 http://nickm.com/post/?p=996#comment-9515 Greetings! what an interesting idea! RANDOM MUSIC!!

I have recently decided to re-release my 1984 C64 SID lead synthesizer
called Fastfingers. I’m getting amazing response, considering that it
is 27 year old. If response is big enough I may even develop
Fastfingers II . However , the 27 pages of source code don’t look as
familiar to me as they were 27 years ago. I used only a few comments.

I have tried it on the VICE emulator and noticed that the sounds are
OUT OF TUNE on the Vice. I hope that your emulator is IN TUNE.

Check out the fastfingers link below complete with video demo to see
what the buzz is about.

http://musicinit.com/fastfingers.php

]]>
By: jill/txt » lesson plan: BASIC for DIKULT104 https://nickm.com/post/2010/07/one-line-c64-basic-music/comment-page-1/#comment-8436 Wed, 09 Feb 2011 09:53:42 +0000 http://nickm.com/post/?p=996#comment-8436 […] Another very short art piece in BASIC is 10 poke 54272+int(rnd(1)25),int(rnd(1)256) : goto 10 by Noah Vawter – this code generates 18 minutes of sound on a C64 (review by Nick Montfort). […]

]]>
By: Nick Montfort https://nickm.com/post/2010/07/one-line-c64-basic-music/comment-page-1/#comment-7361 Tue, 19 Oct 2010 04:59:13 +0000 http://nickm.com/post/?p=996#comment-7361 claus, thanks for your comment, which not only gave us some music – it also revealed a bug in the “Markdown for WordPress and bbPress” plugin for WordPress: “/*” isn’t correctly rendered as an asterisk. I fixed this for now by switching to the “Text Control” plugin, which allows me to use Markdown for blog posts but default formatting for comments.

]]>
By: claus https://nickm.com/post/2010/07/one-line-c64-basic-music/comment-page-1/#comment-7354 Mon, 18 Oct 2010 19:30:45 +0000 http://nickm.com/post/?p=996#comment-7354 cool..how about

10 poke54296,15:poke54272+rnd(1)*23,rnd(1)*256:goto 10

poking 54296 with random values makes my emulator click a lot

also, how about

10 poke54296,15:poke54272+rnd(1)*23,rnd(1)*128+rnd(1)*128:goto 10

..i wonder if the kernal or basic rom has some music in it..

]]>
By: Jon Grim https://nickm.com/post/2010/07/one-line-c64-basic-music/comment-page-1/#comment-3633 Wed, 04 Aug 2010 19:06:52 +0000 http://nickm.com/post/?p=996#comment-3633 I came across a web server running on a C64 some time ago it was slow but worked. Its amazing that these old machines still work.

]]>
By: Eddie https://nickm.com/post/2010/07/one-line-c64-basic-music/comment-page-1/#comment-3556 Tue, 27 Jul 2010 08:02:00 +0000 http://nickm.com/post/?p=996#comment-3556 That’s pretty awesome. It amazes me what people can still do with a C=64.

]]>
By: Nick Montfort https://nickm.com/post/2010/07/one-line-c64-basic-music/comment-page-1/#comment-3553 Mon, 26 Jul 2010 22:21:16 +0000 http://nickm.com/post/?p=996#comment-3553 Jen Bervin, the author of Nets and The Desert (books created by erasure), is working on a book based on A Million Random Digits with 100,000 Normal Deviates.

Also, check out the more than 100 reviews of that book on Amazon.

]]>
By: Kevin https://nickm.com/post/2010/07/one-line-c64-basic-music/comment-page-1/#comment-3550 Mon, 26 Jul 2010 21:34:28 +0000 http://nickm.com/post/?p=996#comment-3550 Love the detail about seeding the RND function to generate a predictable sequence of pseudorandom integers! Does this make the distinction between “song” and “song-making machine”?

Random numbers also play an interesting role in your thread demo. Pulling a value off of the SID is an elegant shortcut to randomness.

I’d love to see a historical look at randomness in the history of computing. e.g. I’ve seen some programs use the milliseconds digit from the UNIX time function.

My fave reflection on randomness is Tom Jenning’s review of a Rand Corp book titled, “A Million Random Digits with 100,000 Normal Deviates” (nice beach reading):
http://www.wps.com/J/million/index.html

Incidentally, it’s the same random technology used in the Lone Wolf playable book series! http://www.projectaon.org/en/ReadersHandbook/ExampleRandomNumberTable

]]>