Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Just a silly C Pentatonic random notes player
#1
Code: (Select All)
dim c_pentatonic(0 to 4) as single
c_pentatonic(0) = 130.81
c_pentatonic(1) = 146.83
c_pentatonic(2) = 164.81
c_pentatonic(3) = 196.0
c_pentatonic(4) = 220.00
duration = 6
while inkey$ <> chr$(27)
  i = int(5 * rnd + 1) - 1
  print i,
  freq = c_pentatonic(i)
  sound freq, duration
  _delay 0.5
wend
Reply


Messages In This Thread
Just a silly C Pentatonic random notes player - by CharlieJV - 04-23-2022, 09:33 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Springs2 (random graphic art) mstasak 4 530 11-13-2025, 12:44 PM
Last Post: Dav
  Unique Random Array Program eoredson 5 826 07-10-2025, 10:29 AM
Last Post: DANILIN
  Getting a random number wihout RND. Dav 25 7,391 06-03-2025, 08:35 PM
Last Post: madscijr
  Random Object Wandering TerryRitchie 1 725 09-29-2024, 03:38 PM
Last Post: TerryRitchie
  Funny Random Sentence Generator SierraKen 5 3,493 09-12-2024, 05:57 PM
Last Post: DANILIN

Forum Jump:


Users browsing this thread: 1 Guest(s)