Page 1 of 1

Music accents

Posted: Mon Jun 26, 2017 3:34 pm
by gerry
Don't know much about programming yet. Music, I know a bit.
How about these music accents? Got the idea from Dav.

Code: Select all

' major scale up
NOTES SET "12:tc6d6e6f6g6a6b6c7"
PRINT "major scale up"
NOTES PLAY
PAUSE 2
' major scale down
NOTES SET "12:tc7b6a6g6f6e6d6c6"
PRINT "major scale down"
NOTES PLAY
PAUSE 2
' minor scale up
NOTES SET "12:tc6d6e$6f6g6a$6b6c7"
PRINT "minor scale up"
NOTES PLAY
PAUSE 2
' minor scale down
NOTES SET "12:tc7b$6a$6g6f6e$6d6c6"
PRINT "minor scale down"
NOTES PLAY
PAUSE 2
' major arpeggio up and down
NOTES SET "12:tc6e6g6c7g6e6c6"
PRINT "major arpeggio up and down"
NOTES PLAY
PAUSE 2
' major arpeggio down and up
NOTES SET "12:tc7g6e6c6e6g6c7"
PRINT "major arpeggio down and up"
NOTES PLAY
PAUSE 2
' minor arpeggio up and down
NOTES SET "12:tc6d#6g6c7g6d#6c6"
PRINT "minor arpeggio up and down"
NOTES PLAY
PAUSE 2
' minor arpeggio down and up
NOTES SET "12:tc7g6d#6c6d#6g6c7"
PRINT "minor arpeggio up and down"
NOTES PLAY
PAUSE 2
' chromatic scale up
NOTES SET "12:xc6c#6d6d#6e6f6f#6g6g#6a6a#6b6c7"
PRINT "chromatic scale up"
NOTES PLAY
PAUSE 2
' chromatic scale down
NOTES SET "12:xc7b6a#6a6g#6g6f#6f6e6d#6d6c#6c6"
PRINT "chromatic scale down"
NOTES PLAY
PAUSE 2

Re: Music accents

Posted: Mon Jun 26, 2017 9:41 pm
by Henko
Look for "Opus Magnificus for ipad" on page 11 of this section

Re: Music accents

Posted: Tue Jun 27, 2017 3:13 am
by rbytes
I like musical stingers. They are handy to use for testing programs, and also to confirm certain actions in programs where the results aren't obvious - e.g. Saving a file. Also helpful for vision-impaired people.

I will use these. Thanks, gerry.

I recommend Opus Magnificus. It's a good example of how powerful smart Basic can be once you get the hang of it.

Also, have you tried creating chords yet? Here is an example of chords played back-to-back: C Major and D minor

Code: Select all

NOTES SET "46:q(c6e6g6)(d6f6a6)
NOTES PLAY
The q sets duration as quarter notes. The notes inside parentheses play togetheras a chord.
46 is just one of 127 MIDI instruments you can use. You can look it up in the help files under Instruments - it is the Orchestral Harp.

Re: Music accents

Posted: Wed Jun 28, 2017 12:54 am
by gerry
Chords are fun. Also tried Opus. Does some great FX but way beyond my know how.

Code: Select all

' c inv major 6 chord
NOTES SET "12:h(c5a4g4e4)"
PRINT "C inv major 6 chord"
NOTES PLAY
PAUSE 2
' c inv major 7 chord
NOTES SET "8:h(b4g4e4c4)"
PRINT "C inv major 7 chord"
NOTES PLAY
PAUSE 2
' c inv major 9 chord
NOTES SET "17:h(d5b4g4e4c4)"
PRINT "C inv major 9 chord"
NOTES PLAY
PAUSE 2
' c inv major 11 chord
NOTES SET "28:h(g$5d5b4g4e4c4)"
PRINT "C inv major 11 chord"
NOTES PLAY
PAUSE 2
' c inv major 13 chord
NOTES SET "46:h(a5g$5d5b4g4c4)"
PRINT "C inv major 13 chord"
NOTES PLAY
PAUSE 5

Re: Music accents

Posted: Sat Jul 01, 2017 2:23 am
by rbytes
Nice chords. Are you a professional musician?