Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
<
[-]
Slideshow

GG BASIC - wait and random functions
#1
Hello @GEKKO!

I do like your great software :woohoo: and I would like to code a "chord dictation" :

- I store the list of 19 chords in a array (Do, Ré, Mi ... C#, D, Em),
Code:
$chords[0]="A" $chords[1]="Am" $chords[2]="A#" $chords[2]="B"
- the program would draw a random chord
Code:
$draw=random(19)
- if draw is the same as previous draw: redraw
Code:
if($draw=$old_draw) then goto (xx) $old_draw=$draw
- write the name of the chord
Code:
Print(512, 120, $chords[$draw], 60, 1)
- speak it B)
Code:
Speech($chords[$draw])
- wait for the musician to play it on his instrument (guitar, piano,...)
- clear the screen
- loop


I'm looking for 2 functions
- a random function! :cheer:

- a wait/sleep function
that I can emulate by a loop
Code:
for($i = 1, 1000, 1) 'wait next($i)
:oops:

Thanks
Yours
Mat
Reply


Messages In This Thread
GG BASIC - wait and random functions - by MatBasic - 10-11-2016, 12:49 PM
GG BASIC - wait and random functions - by xGEKKOx - 15-11-2016, 04:53 PM
GG BASIC - wait and random functions - by xGEKKOx - 16-11-2016, 06:53 PM
GG BASIC - wait and random functions - by xGEKKOx - 17-11-2016, 08:59 AM
GG BASIC - wait and random functions - by xGEKKOx - 19-11-2016, 06:48 PM
GG BASIC - wait and random functions - by xGEKKOx - 27-11-2016, 04:19 PM
GG BASIC - wait and random functions - by xGEKKOx - 29-11-2016, 08:00 AM
GG BASIC - wait and random functions - by xGEKKOx - 16-12-2016, 04:04 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)
[-]
Recent Posts
Cool ISO Certification UAE Tips
In response to the people asking about about iso 9001, iso 27001...FrankJScott — 04:16 AM
LEGACY of GEKKO
In response to the people inquiring about impact iso, compliance...FrankJScott — 04:15 AM
Top Google Site
I think you could probably google thatFrankJScott — 02:48 AM
Useful Google Site
I think you could probably - google thatFrankJScott — 02:32 AM
New Google Site
I think you could probably google that I think you could probab...FrankJScott — 02:26 AM

>