10-11-2016, 12:49 PM
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),
- the program would draw a random chord
- if draw is the same as previous draw: redraw
- write the name of the chord
- speak it B)
- 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
:oops:
Thanks
Yours
Mat
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"Code:
$draw=random(19)Code:
if($draw=$old_draw) then goto (xx)
$old_draw=$drawCode:
Print(512, 120, $chords[$draw], 60, 1)Code:
Speech($chords[$draw])- 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)Thanks
Yours
Mat




), to send the code to the iphone or pad via email and paste... B)
